@teamdoticca/argos
v0.2.0
Published
Argos workspace intelligence for Node.js / TypeScript
Maintainers
Readme
Argos for Node.js
Workspace intelligence maintained by Doticca: discover packages, plan watch scopes, explain paths and find owners from an immutable WorkspaceSnapshot.
npm install @teamdoticca/argosimport { Workspace, watch } from '@teamdoticca/argos'
const workspace = await Workspace.openAsync('/path/to/repo')
try {
const snapshot = workspace.currentSnapshot // typed WorkspaceSnapshot
console.log(snapshot.identity.state, workspace.listScopes())
for await (const event of watch(workspace, AbortSignal.timeout(30_000))) {
console.log(workspace.getAffectedScopes(event))
}
} finally {
workspace.close()
}Filesystem-only mode for an explicit media directory (CommonJS and ESM examples under examples/):
const ws = Workspace.open(mediaRoot, {
mode: 'filesystem',
symlinkMode: 'nofollow',
include: ['**/*.flac'],
exclude: ['**/*.partial'],
})
console.log(ws.currentSnapshot.planning.coverage)
const ac = new AbortController()
try {
for await (const event of watch(ws, ac.signal)) {
if (event.reason) console.log('rescan', event)
}
} finally {
ws.close()
}Run the workspace example as an ES module. Stop the watcher before closing the workspace and use one iterator per workspace.
Types for every result and event (WorkspaceSnapshot, DomainEvent, ExplainPathResult, …) ship in types.d.ts, generated from the Rust contract; the matching JSON Schema is contract/argos.schema.json. openAsync, rebuildSnapshotAsync and watchPollAsync run on the libuv thread pool; watch() uses watchPollAsync, so it does not block the event loop. Also available: explainScope, platformInfo, validateSnapshot and computeDelta.
Shipped addons: Windows x64, Linux x64 glibc, macOS ARM64. Use maintained Node.js 22 or 24. Older versions allowed by the manifest are not maintained support targets. Alpine/musl and other architectures are not included.
Argos is an early-stage 0.x library; pin versions and review compatibility before upgrading. Watching is optional, not a durable event log or a security boundary.
- Repository and full examples
- Compatibility and troubleshooting
- Contributing
- Security reporting
- Changelog
MIT licensed; license text is included in the package.
