mirror of
https://github.com/aipoch/open-science.git
synced 2026-10-02 02:14:40 +08:00
* feat(cli): add headless task SDK and CLI Expose a versioned local task API, publishable Node SDK, and automation-focused CLI commands for projects, sessions, runs, and artifacts.\n\nRefs #276 * fix(cli): harden automation output and event streaming Keep daemon tokens out of normal output, provide structured machine errors, wait for event readiness, and cover the public CLI, SDK, and task interfaces.\n\nRefs #276 * feat(cli): add run status command Allow non-waiting automation to poll the run ID returned by the daemon.\n\nRefs #276 * docs(cli): add dedicated command guide * fix(cli): harden headless run lifecycle * ci(cli): verify SDK tests and package contents * ci(npm): add trusted publishing workflow * docs(npm): defer initial package release * fix(cli): bound waits and clarify automation output
15 lines
408 B
JavaScript
15 lines
408 B
JavaScript
#!/usr/bin/env node
|
|
|
|
import { resolve } from 'node:path'
|
|
import { fileURLToPath } from 'node:url'
|
|
|
|
import { reportCliError, runCli } from '../packages/open-science/cli.mjs'
|
|
|
|
export * from '../packages/open-science/cli.mjs'
|
|
|
|
const isEntryPoint =
|
|
process.argv[1] && resolve(process.argv[1]) === resolve(fileURLToPath(import.meta.url))
|
|
if (isEntryPoint) {
|
|
runCli().catch((error) => reportCliError(error))
|
|
}
|