autark-cli 0.1.8 → 0.1.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/autark.mjs +11 -8
  2. package/package.json +1 -1
package/autark.mjs CHANGED
@@ -16,6 +16,17 @@ const AGENTMAIL_API = process.env.AGENTMAIL_API_URL || 'https://api.agentmail.to
16
16
  const AUTARK_HOME = process.env.AUTARK_HOME || path.join(os.homedir(), '.autark')
17
17
  const CREDS_PATH = process.env.AUTARK_CREDENTIALS || path.join(AUTARK_HOME, 'credentials.json')
18
18
 
19
+ // Constants used by `autark update` — hoisted before main() runs because
20
+ // async function bodies execute synchronously until their first await; main()
21
+ // dispatches to update() which references these in its first synchronous
22
+ // loop, so they need to be initialized at module-load time before the
23
+ // main().catch() call below.
24
+ const RAW_RUNTIME_BASE = process.env.AUTARK_RUNTIME_RAW_BASE
25
+ || 'https://autark.kushalsm.com/runtime'
26
+ const SKILL_NAMES = ['autark', 'plumcake', 'chrome-relay', 'email', 'outreach', 'email-finder']
27
+ const ECOSYSTEM_CLIS = ['autark-cli', 'plumcake-cli', 'chrome-relay']
28
+ const PROGRAM_FILES = ['start.md', 'double-down.md', 'check.md', 'followup.md']
29
+
19
30
  const args = process.argv.slice(2)
20
31
  main()
21
32
  .then(() => maybeNudge())
@@ -272,14 +283,6 @@ function settingsUsage() {
272
283
  // AUTARK_UPDATE_OFFLINE=1 skips the self-update step (for tests).
273
284
  // AUTARK_HOME overrides the install root (for sandbox tests).
274
285
 
275
- // The autark repo is private. Pages serves the canonical files at
276
- // autark.kushalsm.com/runtime/* (synced from runtime/ at build time).
277
- const RAW_RUNTIME_BASE = process.env.AUTARK_RUNTIME_RAW_BASE
278
- || 'https://autark.kushalsm.com/runtime'
279
- const SKILL_NAMES = ['autark', 'plumcake', 'chrome-relay', 'email', 'outreach', 'email-finder']
280
- const ECOSYSTEM_CLIS = ['autark-cli', 'plumcake-cli', 'chrome-relay']
281
- const PROGRAM_FILES = ['start.md', 'double-down.md', 'check.md', 'followup.md']
282
-
283
286
  async function update(rest) {
284
287
  const opts = parseArgs(rest)
285
288
  const dryRun = !!process.env.AUTARK_UPDATE_DRY_RUN || !!opts['dry-run']
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "autark-cli",
3
- "version": "0.1.8",
3
+ "version": "0.1.9",
4
4
  "description": "CLI for autark — hypothesis-driven product runbooks. Track products, hypotheses, runs, and actions from the terminal.",
5
5
  "type": "module",
6
6
  "license": "MIT",