Scan your whole stack
Are you using js-longrun?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v0.2.0-alpha.7
js-longrun was last scanned on 29 Nov 2026 at version 0.2.0-alpha.7. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 0.2.0-alpha.7 LATEST | 29 Nov 2026 | No rules fired |
| 0.2.0-alpha.6 | 29 Nov 2026 | No rules fired |
| 0.2.0-alpha.5 | 29 Nov 2026 | No rules fired |
| 0.2.0-alpha.4 | 28 Nov 2026 | Not shown |
| 0.2.0-alpha.3 | 28 Nov 2026 | Not shown |
Findings for v0.2.0-alpha.7. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The score describes 0.2.0-alpha.7; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
Persistent, bounded rounds of work for a long-term project goal. js-longrun decides when a task may run, freezes its inputs, submits work to js-superagent, verifies review evidence and applies results to the owning project.
Status: 0.1.0-alpha.2, local npm candidate; not published. Preparing or installing a tarball does not publish it. This extraction preserves the existing task format and execution model; it does not introduce a new cloud service.
Runtime data remains under the consumer's research/longrun/ and working/longrun/. No account secret, production state, candidate record or review answer belongs in this npm package.
Node.js 22.13 or newer is required.
# In this source checkout:
npm ci
npm run check
npm pack
# In the consuming project, use the produced tarball:
npm install --save-exact /path/to/js-longrun-0.1.0-alpha.2.tgz js-superagent@0.14.0-alpha.1
The package's scripts are authoritative for release checks. Runtime consumers do not need to compile the package. Install optional channel dependencies in the consuming project if its js-superagent deployment needs them, such as the Feishu SDK.
The peer range is js-superagent@^0.14.0-alpha.1. Tests and clean consumer checks use published 0.14.0-alpha.1, which fixes per-ticket managed-job restrictions in DSH. Updating source files alone does not update a running service.
npx --no-install js-longrun --project /path/to/project types
npx --no-install js-longrun --project /path/to/project design weekly-report --type change-report@1
npx --no-install js-longrun --project /path/to/project create weekly-report \
--type change-report@1 --goal 'Summarize changes in the supplied local documents'
Creation stays draft. It does not submit a ticket, send a card or enable scheduling. Edit the instance's task.json to add repository-relative UTF-8 input files; use task.md for the goal and scope. Then inspect the actual execution plan:
npx --no-install js-longrun validate weekly-report
npx --no-install js-longrun plan weekly-report
npx --no-install js-longrun status weekly-report
The current working directory is the project unless --project is supplied. Task IDs and data are scoped to that project; installation location is never used as the project root.
| Type | Output | Review | Execution |
|---|---|---|---|
review-items@1 |
Evidence-backed suggestions | Adopt / reject / defer, with reasons; supports re-review | Supplied local inputs |
change-report@1 |
Change report, evidence and next-round memory | No item-by-item review | Supplied local inputs |
These types do not browse the web or start managed subjobs. Unsupported definitions fail validation. Custom business pipelines stay in the consuming project and can integrate through scheduler routes; their state must not be silently rewritten as a built-in type.
After the user has authorized the task and the js-superagent service is configured for the project:
npx --no-install js-longrun enable weekly-report --reason 'User authorized this task and its configured cadence'
npx --no-install js-longrun round weekly-report
npx --no-install js-longrun watch
enable records authorization but does not immediately submit work. round enforces enabled state, due time, quotas and active-run checks. watch only collects results; it never opens new rounds.
Run reconciliation through the consuming project's scheduler:
npx --no-install js-longrun tick # collect/check only
LONGRUN_OPEN_ROUNDS=1 npx --no-install js-longrun tick # also open eligible rounds
A project integrating custom task routes should schedule its own thin CLI wrapper instead, so those routes are registered for both watch and tick. Use one production watcher and one fallback timer for the project. Hosts can use the watcher’s routes.onStart hook to repair derived views after restart; repair failures retry without blocking result collection. This package does not install a scheduler or send a message merely by being installed.
Feishu is provided by the existing js-superagent operator channel. The host saves an immutable snapshot before presenting a review. A structured answer is stored against that review, and the original worker writes its result. After the ticket completes, watch wakes the collector, which verifies the snapshot, answer, output scope and existing artifact baseline before applying the result.
Worker completion and business settlement are separate facts. Collection also works through tick or manual collect. Repeated events and concurrent collectors use the same lock and settlement record. Multi-file settlement is recoverable and conflict-aware; it is not a distributed exactly-once transaction.
Re-review uses source-run identities and frozen original evidence:
npx --no-install js-longrun rereview suggestions --ids R0001:I0001,R0002:I0001
npx --no-install js-longrun reply suggestions --answers answers.json
Text replies do not substitute for structured item decisions. Re-review expiry preserves old decisions and memory.
MIT license. See LICENSE.
See release preparation for reproducible archives, validation and publication boundaries.
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.