Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

js-longrun

Latest version: v0.2.0-alpha.7

Overview

Last scanned
29 Nov 2026
Published
29 Nov 2026
npm package Publisher: imjszhang
0 Stars
0 Forks
11 Versions
1.5K Downloads
JavaScript Repo language

Scan summary

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.

  • Releases: 11 versions; the latest 5 were published within 2 days (28 and 29 Nov 2026).
  • Findings: No rules fired in version 0.2.0-alpha.7.
  • Downloads: 1,474 downloads.

Versions

11 versions published
Versions and the rules that fired in each
VersionPublishedStatus
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

No rules fired in 0.2.0-alpha.7

Findings

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.

README

The publisher’s own README, as collected from the registry.

js-longrun

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.

Responsibilities

  • js-longrun: task definitions, run cadence and limits, review/settlement evidence, immediate collection and scheduled reconciliation.
  • js-superagent: durable tickets, worker scheduling, isolated workspaces, human replies and Feishu transport. It is a peer dependency; the consumer owns its deployment and credentials.
  • Your project: business rules, registered execution capabilities, custom validation/output behavior and production task history. A business adapter may use js-agent-runtime, but js-longrun does not require it.

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.

Install the candidate

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.

Create a task without starting it

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.

Built-in task types

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.

Enable and operate

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.

Review and settle

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.

Documentation

  • Task design template
  • Operation, limits and state
  • Host integration and migration

MIT license. See LICENSE.

See release preparation for reproducible archives, validation and publication boundaries.

OX Radar and Response Center

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.

Where it’s listed

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).

  • npm js-longrun

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Microsoft's Official agent framework Hijacked
AI & VibeSec

BREAKING: Hijacked Releases of Microsoft’s Official agent-framework Steals Azure and CI Credentials

Cry2Wolf: How to Tell a Real Bug from a Nothingburger
AI & VibeSec

Cry2Wolf: Not Every Branded Bug Deserves a Fire Drill

Plug and Pray: Your AI Agents Are Taking Orders From Strangers
Research

Plug and Pray: Your AI Agents Are Taking Orders From Strangers

Frame 2085668439 (1)
Group 1261154229