tenjin-cli 0.1.0-alpha.11 → 0.1.0-alpha.13

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 (131) hide show
  1. package/README.md +236 -596
  2. package/dist/{buy-THMVOPUH.js → buy-X4VPHFUA.js} +20 -20
  3. package/dist/{chunk-GKV6VZSZ.js → chunk-3NZCU6SD.js} +7 -7
  4. package/dist/chunk-3NZCU6SD.js.map +1 -0
  5. package/dist/{chunk-Y7ERTA7D.js → chunk-3P3ES4XU.js} +4 -6
  6. package/dist/chunk-3P3ES4XU.js.map +1 -0
  7. package/dist/{chunk-OZHJ3FLR.js → chunk-47YKYDOF.js} +5 -5
  8. package/dist/{chunk-IXTENA2H.js → chunk-6JKD46OJ.js} +12 -10
  9. package/dist/{chunk-IXTENA2H.js.map → chunk-6JKD46OJ.js.map} +1 -1
  10. package/dist/chunk-736DW4V3.js +65 -0
  11. package/dist/chunk-736DW4V3.js.map +1 -0
  12. package/dist/{chunk-IB63U6BM.js → chunk-B676GPS2.js} +34 -11
  13. package/dist/chunk-B676GPS2.js.map +1 -0
  14. package/dist/{chunk-4NTZETIL.js → chunk-BRAVLUGI.js} +2 -2
  15. package/dist/{chunk-UY6CGULW.js → chunk-CA3JV7FX.js} +2 -2
  16. package/dist/{chunk-UY6CGULW.js.map → chunk-CA3JV7FX.js.map} +1 -1
  17. package/dist/{chunk-ALUNME53.js → chunk-ELVDOTU7.js} +50 -66
  18. package/dist/chunk-ELVDOTU7.js.map +1 -0
  19. package/dist/{chunk-IAFYUFIC.js → chunk-GCGMXA2O.js} +13 -11
  20. package/dist/{chunk-IAFYUFIC.js.map → chunk-GCGMXA2O.js.map} +1 -1
  21. package/dist/{chunk-XWHXX2BI.js → chunk-IAR25V2E.js} +6 -6
  22. package/dist/{chunk-6UY2UQMY.js → chunk-IFPKA32J.js} +4 -4
  23. package/dist/{chunk-JTYIX6OD.js → chunk-IGHSLJUF.js} +6 -4
  24. package/dist/{chunk-JTYIX6OD.js.map → chunk-IGHSLJUF.js.map} +1 -1
  25. package/dist/{chunk-2SDUV6MQ.js → chunk-IKAJSA7E.js} +12 -10
  26. package/dist/{chunk-2SDUV6MQ.js.map → chunk-IKAJSA7E.js.map} +1 -1
  27. package/dist/{chunk-NUF2PKJO.js → chunk-J6FUAIRR.js} +4 -6
  28. package/dist/{chunk-NUF2PKJO.js.map → chunk-J6FUAIRR.js.map} +1 -1
  29. package/dist/{chunk-CNUXRXI2.js → chunk-JVBMPU5G.js} +5 -7
  30. package/dist/{chunk-CNUXRXI2.js.map → chunk-JVBMPU5G.js.map} +1 -1
  31. package/dist/{chunk-VWY3U732.js → chunk-L4XNT3UW.js} +21 -16
  32. package/dist/chunk-L4XNT3UW.js.map +1 -0
  33. package/dist/{chunk-EDVI7RRD.js → chunk-NKN4YC5C.js} +6 -6
  34. package/dist/{chunk-EDVI7RRD.js.map → chunk-NKN4YC5C.js.map} +1 -1
  35. package/dist/{chunk-P74I3WH4.js → chunk-OC3EIDCP.js} +3 -5
  36. package/dist/{chunk-P74I3WH4.js.map → chunk-OC3EIDCP.js.map} +1 -1
  37. package/dist/{chunk-E6YOODH7.js → chunk-OE36HRWG.js} +31 -5
  38. package/dist/{chunk-E6YOODH7.js.map → chunk-OE36HRWG.js.map} +1 -1
  39. package/dist/chunk-OUJDDY5L.js +189 -0
  40. package/dist/chunk-OUJDDY5L.js.map +1 -0
  41. package/dist/{chunk-6BGYHARE.js → chunk-OWVVI4VQ.js} +15 -15
  42. package/dist/{chunk-4TCU3YRD.js → chunk-OXUJ3FXU.js} +5 -1
  43. package/dist/{chunk-4TCU3YRD.js.map → chunk-OXUJ3FXU.js.map} +1 -1
  44. package/dist/{chunk-PZRAAAY2.js → chunk-PAOVPSP6.js} +10 -3
  45. package/dist/chunk-PAOVPSP6.js.map +1 -0
  46. package/dist/{chunk-3GSZUADW.js → chunk-SPUORKD7.js} +3 -3
  47. package/dist/{chunk-UFPJBS4C.js → chunk-T4UWMVKV.js} +9 -7
  48. package/dist/{chunk-UFPJBS4C.js.map → chunk-T4UWMVKV.js.map} +1 -1
  49. package/dist/{chunk-GUUAYR3K.js → chunk-TXVC46SA.js} +8 -8
  50. package/dist/chunk-TXVC46SA.js.map +1 -0
  51. package/dist/{chunk-SFGXAZ3M.js → chunk-UUARTUY2.js} +42 -9
  52. package/dist/chunk-UUARTUY2.js.map +1 -0
  53. package/dist/{chunk-ZE7KOO7A.js → chunk-WMFRCSNC.js} +8 -8
  54. package/dist/{chunk-TDDN5GXR.js → chunk-WU5CZPLD.js} +5 -5
  55. package/dist/{chunk-RSBN67PA.js → chunk-WVHPGQH5.js} +4 -6
  56. package/dist/{chunk-RSBN67PA.js.map → chunk-WVHPGQH5.js.map} +1 -1
  57. package/dist/{chunk-PZSUWDF2.js → chunk-XGZ5EVMB.js} +2 -2
  58. package/dist/{chunk-O25VWJCG.js → chunk-XXY77EZJ.js} +24 -24
  59. package/dist/{chunk-OCN27NJV.js → chunk-YMUJZWHB.js} +10 -8
  60. package/dist/{chunk-OCN27NJV.js.map → chunk-YMUJZWHB.js.map} +1 -1
  61. package/dist/{cli-Y2HBOSGK.js → cli-XK5JZWU6.js} +51 -146
  62. package/dist/cli-XK5JZWU6.js.map +1 -0
  63. package/dist/{config-WDGMZKHU.js → config-CNK7MYUR.js} +7 -7
  64. package/dist/doctor-R7N7FUX5.js +27 -0
  65. package/dist/{edit-E7N6F3OY.js → edit-QSUEG7CL.js} +19 -19
  66. package/dist/{fund-OKK627GL.js → fund-JF6A76YS.js} +16 -16
  67. package/dist/index.js +1 -1
  68. package/dist/{inspect-573WHEV4.js → inspect-NFNAA4LA.js} +17 -17
  69. package/dist/{install-SQAYMNQC.js → install-YQVM3SUW.js} +20 -21
  70. package/dist/{install-SQAYMNQC.js.map → install-YQVM3SUW.js.map} +1 -1
  71. package/dist/outcome-IUSYFJTN.js +22 -0
  72. package/dist/{publish-N5U4XYVA.js → publish-O2I6IAEL.js} +20 -20
  73. package/dist/{read-PJ7Z6UGF.js → read-UF7QVQOU.js} +21 -21
  74. package/dist/{run-FSO3MMXN.js → run-GDZWHNWZ.js} +30 -30
  75. package/dist/search-JVOHEF3E.js +23 -0
  76. package/dist/{send-F34ZDXDZ.js → send-SI254H3R.js} +11 -10
  77. package/dist/{send-F34ZDXDZ.js.map → send-SI254H3R.js.map} +1 -1
  78. package/dist/{session-4N4ZT3AH.js → session-GJZJEXLJ.js} +14 -14
  79. package/dist/{skill-heal-XBEK272G.js → skill-heal-BPFT22XS.js} +5 -6
  80. package/dist/{skill-heal-XBEK272G.js.map → skill-heal-BPFT22XS.js.map} +1 -1
  81. package/dist/{uninstall-BTKPHPDL.js → uninstall-7ZZG6WQ5.js} +6 -7
  82. package/dist/{uninstall-BTKPHPDL.js.map → uninstall-7ZZG6WQ5.js.map} +1 -1
  83. package/dist/update-FPSBITLB.js +315 -0
  84. package/dist/update-FPSBITLB.js.map +1 -0
  85. package/dist/{wallet-UL4P2JRO.js → wallet-NS7TYWNN.js} +5 -6
  86. package/dist/{wallet-WJ6UP5OU.js → wallet-TZVD2M4I.js} +9 -9
  87. package/docs/agent-permissions.md +13 -2
  88. package/docs/command-reference.md +251 -0
  89. package/docs/safety-model.md +45 -0
  90. package/package.json +1 -1
  91. package/skills/tenjin/SKILL.md +3 -3
  92. package/skills/tenjin-publish/SKILL.md +27 -11
  93. package/skills/tenjin-search/SKILL.md +14 -13
  94. package/dist/chunk-2I4QTOLB.js +0 -11
  95. package/dist/chunk-2I4QTOLB.js.map +0 -1
  96. package/dist/chunk-ALUNME53.js.map +0 -1
  97. package/dist/chunk-GKV6VZSZ.js.map +0 -1
  98. package/dist/chunk-GUUAYR3K.js.map +0 -1
  99. package/dist/chunk-IB63U6BM.js.map +0 -1
  100. package/dist/chunk-PZRAAAY2.js.map +0 -1
  101. package/dist/chunk-SFGXAZ3M.js.map +0 -1
  102. package/dist/chunk-VWY3U732.js.map +0 -1
  103. package/dist/chunk-Y7ERTA7D.js.map +0 -1
  104. package/dist/cli-Y2HBOSGK.js.map +0 -1
  105. package/dist/doctor-CSIWKWM2.js +0 -27
  106. package/dist/outcome-W3KYGF23.js +0 -22
  107. package/dist/search-ZWOP4EGK.js +0 -23
  108. /package/dist/{buy-THMVOPUH.js.map → buy-X4VPHFUA.js.map} +0 -0
  109. /package/dist/{chunk-OZHJ3FLR.js.map → chunk-47YKYDOF.js.map} +0 -0
  110. /package/dist/{chunk-4NTZETIL.js.map → chunk-BRAVLUGI.js.map} +0 -0
  111. /package/dist/{chunk-XWHXX2BI.js.map → chunk-IAR25V2E.js.map} +0 -0
  112. /package/dist/{chunk-6UY2UQMY.js.map → chunk-IFPKA32J.js.map} +0 -0
  113. /package/dist/{chunk-6BGYHARE.js.map → chunk-OWVVI4VQ.js.map} +0 -0
  114. /package/dist/{chunk-3GSZUADW.js.map → chunk-SPUORKD7.js.map} +0 -0
  115. /package/dist/{chunk-ZE7KOO7A.js.map → chunk-WMFRCSNC.js.map} +0 -0
  116. /package/dist/{chunk-TDDN5GXR.js.map → chunk-WU5CZPLD.js.map} +0 -0
  117. /package/dist/{chunk-PZSUWDF2.js.map → chunk-XGZ5EVMB.js.map} +0 -0
  118. /package/dist/{chunk-O25VWJCG.js.map → chunk-XXY77EZJ.js.map} +0 -0
  119. /package/dist/{config-WDGMZKHU.js.map → config-CNK7MYUR.js.map} +0 -0
  120. /package/dist/{doctor-CSIWKWM2.js.map → doctor-R7N7FUX5.js.map} +0 -0
  121. /package/dist/{edit-E7N6F3OY.js.map → edit-QSUEG7CL.js.map} +0 -0
  122. /package/dist/{fund-OKK627GL.js.map → fund-JF6A76YS.js.map} +0 -0
  123. /package/dist/{inspect-573WHEV4.js.map → inspect-NFNAA4LA.js.map} +0 -0
  124. /package/dist/{outcome-W3KYGF23.js.map → outcome-IUSYFJTN.js.map} +0 -0
  125. /package/dist/{publish-N5U4XYVA.js.map → publish-O2I6IAEL.js.map} +0 -0
  126. /package/dist/{read-PJ7Z6UGF.js.map → read-UF7QVQOU.js.map} +0 -0
  127. /package/dist/{run-FSO3MMXN.js.map → run-GDZWHNWZ.js.map} +0 -0
  128. /package/dist/{search-ZWOP4EGK.js.map → search-JVOHEF3E.js.map} +0 -0
  129. /package/dist/{session-4N4ZT3AH.js.map → session-GJZJEXLJ.js.map} +0 -0
  130. /package/dist/{wallet-UL4P2JRO.js.map → wallet-NS7TYWNN.js.map} +0 -0
  131. /package/dist/{wallet-WJ6UP5OU.js.map → wallet-TZVD2M4I.js.map} +0 -0
@@ -1,25 +1,28 @@
1
1
  import { createRequire as __tenjinCreateRequire } from 'node:module'; const require = __tenjinCreateRequire(import.meta.url);
2
2
  import {
3
3
  PERMISSIONS_DOC_URL
4
- } from "./chunk-4TCU3YRD.js";
4
+ } from "./chunk-OXUJ3FXU.js";
5
+ import {
6
+ maybeUpdate,
7
+ readUpdateSignal
8
+ } from "./chunk-OUJDDY5L.js";
5
9
  import {
6
10
  package_default
7
- } from "./chunk-UY6CGULW.js";
11
+ } from "./chunk-CA3JV7FX.js";
8
12
  import {
9
13
  defaultIo,
10
14
  emitFailure,
11
- emitNotice,
12
15
  emitSuccess
13
- } from "./chunk-IB63U6BM.js";
16
+ } from "./chunk-B676GPS2.js";
17
+ import "./chunk-ELVDOTU7.js";
14
18
  import {
15
- dataDir,
16
- updateCheckPath
19
+ dataDir
17
20
  } from "./chunk-ZQIQ55KK.js";
21
+ import "./chunk-OC3EIDCP.js";
18
22
  import {
19
23
  CliError,
20
- external_exports,
21
- writeFileAtomic
22
- } from "./chunk-PZRAAAY2.js";
24
+ external_exports
25
+ } from "./chunk-PAOVPSP6.js";
23
26
  import {
24
27
  __commonJS,
25
28
  __require,
@@ -3476,118 +3479,6 @@ var {
3476
3479
  Help
3477
3480
  } = import_index.default;
3478
3481
 
3479
- // src/lib/update-check.ts
3480
- import { readFile } from "fs/promises";
3481
- var CHECK_INTERVAL_MS = 864e5;
3482
- var FETCH_TIMEOUT_MS = 1500;
3483
- var DIST_TAGS_URL = "https://registry.npmjs.org/-/package/tenjin-cli/dist-tags";
3484
- var TagEntrySchema = external_exports.object({
3485
- checkedAtMs: external_exports.number(),
3486
- latest: external_exports.string(),
3487
- /** When the nudge was last PRINTED for this tag. Absent until one has been. */
3488
- notifiedAtMs: external_exports.number().optional()
3489
- });
3490
- var CacheSchema = external_exports.object({
3491
- schemaVersion: external_exports.literal(1),
3492
- tags: external_exports.record(external_exports.string(), TagEntrySchema)
3493
- });
3494
- var DistTagsSchema = external_exports.record(external_exports.string(), external_exports.string());
3495
- async function maybeNudgeUpdate(deps) {
3496
- try {
3497
- const env = deps.env ?? process.env;
3498
- if (!deps.io.isTTY || deps.json) return;
3499
- if (env.CI !== void 0 && env.CI.length > 0) return;
3500
- const nowMs = (deps.now ?? Date.now)();
3501
- const current = deps.currentVersion ?? package_default.version;
3502
- const path = updateCheckPath(deps.dir);
3503
- const tag = parseVersion(current)?.alpha !== null ? "alpha" : "latest";
3504
- const cached = await readCache(path);
3505
- const entry = cached?.tags[tag];
3506
- const fresh = entry !== void 0 && nowMs - entry.checkedAtMs < CHECK_INTERVAL_MS;
3507
- const latest = fresh ? entry.latest : await fetchLatest(deps, tag);
3508
- if (latest === null) return;
3509
- const notifiedAtMs = entry?.notifiedAtMs;
3510
- const due = isNewer(latest, current) && (notifiedAtMs === void 0 || nowMs - notifiedAtMs >= CHECK_INTERVAL_MS);
3511
- const nudgedAtMs = due ? nowMs : notifiedAtMs;
3512
- if (!fresh || due) {
3513
- await writeCache(path, {
3514
- schemaVersion: 1,
3515
- // Read-modify-write: the tag this run did not ask about keeps whatever it
3516
- // knew, including its own nudge clock.
3517
- tags: {
3518
- ...cached?.tags,
3519
- [tag]: {
3520
- checkedAtMs: fresh ? entry.checkedAtMs : nowMs,
3521
- latest,
3522
- ...nudgedAtMs !== void 0 ? { notifiedAtMs: nudgedAtMs } : {}
3523
- }
3524
- }
3525
- });
3526
- }
3527
- if (!due) return;
3528
- const target = parseVersion(latest)?.alpha === null ? "tenjin-cli" : "tenjin-cli@alpha";
3529
- emitNotice(
3530
- deps.io,
3531
- `tenjin-cli ${latest} is available (you have ${current}). Update: npm i -g ${target}`,
3532
- { json: deps.json }
3533
- );
3534
- } catch {
3535
- }
3536
- }
3537
- async function fetchLatest(deps, tag) {
3538
- const doFetch = deps.fetchImpl ?? fetch;
3539
- let json;
3540
- try {
3541
- const res = await doFetch(DIST_TAGS_URL, { signal: AbortSignal.timeout(FETCH_TIMEOUT_MS) });
3542
- if (!res.ok) return null;
3543
- json = await res.json();
3544
- } catch {
3545
- return null;
3546
- }
3547
- const parsed = DistTagsSchema.safeParse(json);
3548
- if (!parsed.success) return null;
3549
- return parsed.data[tag] ?? null;
3550
- }
3551
- async function writeCache(path, cache) {
3552
- await writeFileAtomic(path, `${JSON.stringify(cache, null, 2)}
3553
- `, {
3554
- mode: 384,
3555
- dirMode: 448
3556
- });
3557
- }
3558
- async function readCache(path) {
3559
- try {
3560
- const parsed = CacheSchema.safeParse(JSON.parse(await readFile(path, "utf8")));
3561
- return parsed.success ? parsed.data : null;
3562
- } catch {
3563
- return null;
3564
- }
3565
- }
3566
- var VERSION_RE = /^(\d+)\.(\d+)\.(\d+)(?:-alpha\.(\d+))?$/;
3567
- function parseVersion(raw) {
3568
- const m = VERSION_RE.exec(raw);
3569
- if (m === null) return null;
3570
- const [, major, minor, patch, alpha] = m;
3571
- if (major === void 0 || minor === void 0 || patch === void 0) return null;
3572
- return {
3573
- major: Number(major),
3574
- minor: Number(minor),
3575
- patch: Number(patch),
3576
- alpha: alpha !== void 0 ? Number(alpha) : null
3577
- };
3578
- }
3579
- function isNewer(candidate, current) {
3580
- const a = parseVersion(candidate);
3581
- const b = parseVersion(current);
3582
- if (a === null || b === null) return false;
3583
- if (a.major !== b.major) return a.major > b.major;
3584
- if (a.minor !== b.minor) return a.minor > b.minor;
3585
- if (a.patch !== b.patch) return a.patch > b.patch;
3586
- if (a.alpha === null) return b.alpha !== null;
3587
- if (b.alpha === null) return false;
3588
- return a.alpha > b.alpha;
3589
- }
3590
-
3591
3482
  // src/cli.ts
3592
3483
  var GlobalOptsSchema = external_exports.object({
3593
3484
  json: external_exports.boolean().default(false),
@@ -3616,17 +3507,23 @@ function buildProgram(io, setExit) {
3616
3507
  const program2 = new Command();
3617
3508
  const runCommand = async (command, cmd, run) => {
3618
3509
  const json = cmd.optsWithGlobals().json === true;
3510
+ const updateAvailable = command === "update" ? null : await readUpdateSignal(dataDir(process.env));
3619
3511
  try {
3620
3512
  const ctx = buildContext(cmd, io);
3621
3513
  const result = await run(ctx);
3622
- emitSuccess(ctx.io, command, result.data, result.humanLines, { json: ctx.flags.json });
3514
+ emitSuccess(ctx.io, command, result.data, result.humanLines, {
3515
+ json: ctx.flags.json,
3516
+ updateAvailable
3517
+ });
3623
3518
  } catch (err) {
3624
- setExit(emitFailure(io, command, err, { json }).exitCode);
3519
+ setExit(emitFailure(io, command, err, { json, updateAvailable }).exitCode);
3520
+ }
3521
+ if (command !== "update") {
3522
+ await maybeUpdate({ dir: dataDir(process.env), io, json });
3625
3523
  }
3626
- await maybeNudgeUpdate({ dir: dataDir(process.env), io, json });
3627
3524
  if (command !== "install") {
3628
3525
  try {
3629
- const { healWiredSkills } = await import("./skill-heal-XBEK272G.js");
3526
+ const { healWiredSkills } = await import("./skill-heal-BPFT22XS.js");
3630
3527
  await healWiredSkills({ io });
3631
3528
  } catch {
3632
3529
  }
@@ -3673,7 +3570,7 @@ function buildProgram(io, setExit) {
3673
3570
  const o = this.opts();
3674
3571
  const claudeMdGiven = this.getOptionValueSource("claudeMd") !== "default";
3675
3572
  const allowGiven = this.getOptionValueSource("allowFreeVerbs") !== "default";
3676
- const { runInstall } = await import("./install-SQAYMNQC.js");
3573
+ const { runInstall } = await import("./install-YQVM3SUW.js");
3677
3574
  return runInstall(
3678
3575
  {
3679
3576
  ...Array.isArray(o.harness) && o.harness.length > 0 ? { harness: o.harness } : {},
@@ -3693,34 +3590,42 @@ function buildProgram(io, setExit) {
3693
3590
  "Remove everything `tenjin install` wrote: the skills, the harness hooks and their settings entries, and the tenjin permission rules. Nothing under ~/.tenjin is touched"
3694
3591
  ).action(async function() {
3695
3592
  await runCommand("uninstall", this, async (ctx) => {
3696
- const { runUninstall } = await import("./uninstall-BTKPHPDL.js");
3593
+ const { runUninstall } = await import("./uninstall-7ZZG6WQ5.js");
3697
3594
  return runUninstall(ctx);
3698
3595
  });
3699
3596
  });
3700
3597
  addGlobalFlags(program2.command("doctor")).description("Check the local environment and Tenjin API reachability").action(async function() {
3701
3598
  await runCommand("doctor", this, async (ctx) => {
3702
- const { runDoctor } = await import("./doctor-CSIWKWM2.js");
3599
+ const { runDoctor } = await import("./doctor-R7N7FUX5.js");
3703
3600
  return runDoctor(ctx);
3704
3601
  });
3705
3602
  });
3603
+ addGlobalFlags(program2.command("update")).description(
3604
+ "Update tenjin-cli to the newest version on its release channel (an alpha build follows @alpha)"
3605
+ ).option("--check", "report whether a newer version exists without installing it").action(async function() {
3606
+ await runCommand("update", this, async (ctx) => {
3607
+ const { runUpdate } = await import("./update-FPSBITLB.js");
3608
+ return runUpdate({ check: this.opts().check === true }, ctx);
3609
+ });
3610
+ });
3706
3611
  const config = addGlobalFlags(program2.command("config")).description(
3707
3612
  "Show or change CLI configuration"
3708
3613
  );
3709
3614
  config.action(async function() {
3710
3615
  await runCommand("config", this, async (ctx) => {
3711
- const { runConfigList } = await import("./config-WDGMZKHU.js");
3616
+ const { runConfigList } = await import("./config-CNK7MYUR.js");
3712
3617
  return runConfigList(ctx);
3713
3618
  });
3714
3619
  });
3715
3620
  addGlobalFlags(config.command("get <key>")).description("Print one effective config value").action(async function(key) {
3716
3621
  await runCommand("config.get", this, async (ctx) => {
3717
- const { runConfigGet } = await import("./config-WDGMZKHU.js");
3622
+ const { runConfigGet } = await import("./config-CNK7MYUR.js");
3718
3623
  return runConfigGet({ key }, ctx);
3719
3624
  });
3720
3625
  });
3721
3626
  addGlobalFlags(config.command("set <key> <value>")).description("Set a config value (decimal USD accepted for spend keys)").action(async function(key, value) {
3722
3627
  await runCommand("config.set", this, async (ctx) => {
3723
- const { runConfigSet } = await import("./config-WDGMZKHU.js");
3628
+ const { runConfigSet } = await import("./config-CNK7MYUR.js");
3724
3629
  return runConfigSet({ key, value }, ctx);
3725
3630
  });
3726
3631
  });
@@ -3733,19 +3638,19 @@ function buildProgram(io, setExit) {
3733
3638
  ).action(async function() {
3734
3639
  await runCommand("wallet.create", this, async (ctx) => {
3735
3640
  const o = this.opts();
3736
- const { runWalletCreate } = await import("./wallet-WJ6UP5OU.js");
3641
+ const { runWalletCreate } = await import("./wallet-TZVD2M4I.js");
3737
3642
  return runWalletCreate(ctx, o.replace === true ? { replace: true } : {});
3738
3643
  });
3739
3644
  });
3740
3645
  addGlobalFlags(wallet.command("show")).description("Show the wallet address and key source (never the key)").action(async function() {
3741
3646
  await runCommand("wallet.show", this, async (ctx) => {
3742
- const { runWalletShow } = await import("./wallet-WJ6UP5OU.js");
3647
+ const { runWalletShow } = await import("./wallet-TZVD2M4I.js");
3743
3648
  return runWalletShow(ctx);
3744
3649
  });
3745
3650
  });
3746
3651
  addGlobalFlags(wallet.command("balance")).description("Show the wallet USDC balance on Base").action(async function() {
3747
3652
  await runCommand("wallet.balance", this, async (ctx) => {
3748
- const { runWalletBalance } = await import("./wallet-WJ6UP5OU.js");
3653
+ const { runWalletBalance } = await import("./wallet-TZVD2M4I.js");
3749
3654
  return runWalletBalance(ctx);
3750
3655
  });
3751
3656
  });
@@ -3757,7 +3662,7 @@ function buildProgram(io, setExit) {
3757
3662
  ).action(async function(amountUsd) {
3758
3663
  await runCommand("fund", this, async (ctx) => {
3759
3664
  const o = this.opts();
3760
- const { runFund } = await import("./fund-OKK627GL.js");
3665
+ const { runFund } = await import("./fund-JF6A76YS.js");
3761
3666
  return runFund(ctx, {
3762
3667
  ...amountUsd !== void 0 ? { amountUsd } : {},
3763
3668
  ...o.open === false ? { open: false } : {},
@@ -3770,7 +3675,7 @@ function buildProgram(io, setExit) {
3770
3675
  ).option("--yes", "skip the interactive confirm (required to send when not at a TTY)").action(async function(amount, token, to) {
3771
3676
  await runCommand("send", this, async (ctx) => {
3772
3677
  const o = this.opts();
3773
- const { runSend } = await import("./send-F34ZDXDZ.js");
3678
+ const { runSend } = await import("./send-SI254H3R.js");
3774
3679
  return runSend({ amount, token, to, ...o.yes === true ? { yes: true } : {} }, ctx);
3775
3680
  });
3776
3681
  });
@@ -3779,7 +3684,7 @@ function buildProgram(io, setExit) {
3779
3684
  ).option("--max-price <usd>", "only candidates at or below this decimal-USD price").option("--fresh-within <window>", "freshness window, e.g. P30D, P2W, P1Y").option("--limit <n>", "maximum candidates (1-10, default 5)").option("--applies-to <pair>", "applicability filter key=value (repeatable)", collect, []).action(async function(question) {
3780
3685
  await runCommand("search", this, async (ctx) => {
3781
3686
  const o = this.opts();
3782
- const { runSearch } = await import("./search-ZWOP4EGK.js");
3687
+ const { runSearch } = await import("./search-JVOHEF3E.js");
3783
3688
  return runSearch(
3784
3689
  {
3785
3690
  question,
@@ -3796,7 +3701,7 @@ function buildProgram(io, setExit) {
3796
3701
  "Show a candidate's pre-purchase card / preview. Use after search, before buy, to check price, scope, and freshness; it never pays"
3797
3702
  ).action(async function(resource) {
3798
3703
  await runCommand("inspect", this, async (ctx) => {
3799
- const { runInspect } = await import("./inspect-573WHEV4.js");
3704
+ const { runInspect } = await import("./inspect-NFNAA4LA.js");
3800
3705
  return runInspect({ ref: resource }, ctx);
3801
3706
  });
3802
3707
  });
@@ -3808,7 +3713,7 @@ function buildProgram(io, setExit) {
3808
3713
  ).action(async function(resource) {
3809
3714
  await runCommand("read", this, async (ctx) => {
3810
3715
  const o = this.opts();
3811
- const { runRead } = await import("./read-PJ7Z6UGF.js");
3716
+ const { runRead } = await import("./read-UF7QVQOU.js");
3812
3717
  return runRead(
3813
3718
  {
3814
3719
  ref: resource,
@@ -3829,7 +3734,7 @@ function buildProgram(io, setExit) {
3829
3734
  ).option("--scope <scope>", "session scope; this version mints `read` only (default: read)").action(async function() {
3830
3735
  await runCommand("session.start", this, async (ctx) => {
3831
3736
  const o = this.opts();
3832
- const { runSessionStart } = await import("./session-4N4ZT3AH.js");
3737
+ const { runSessionStart } = await import("./session-GJZJEXLJ.js");
3833
3738
  return runSessionStart(typeof o.scope === "string" ? { scope: o.scope } : {}, ctx);
3834
3739
  });
3835
3740
  });
@@ -3841,7 +3746,7 @@ function buildProgram(io, setExit) {
3841
3746
  ).action(async function(resource) {
3842
3747
  await runCommand("buy", this, async (ctx) => {
3843
3748
  const o = this.opts();
3844
- const { runBuy } = await import("./buy-THMVOPUH.js");
3749
+ const { runBuy } = await import("./buy-X4VPHFUA.js");
3845
3750
  return runBuy(
3846
3751
  {
3847
3752
  ref: resource,
@@ -3865,7 +3770,7 @@ function buildProgram(io, setExit) {
3865
3770
  ).option("--question <text>", "a question this piece answers (repeatable)", collect, []).option("--task <text>", "a task this piece supports (repeatable)", collect, []).option("--scope <text>", "what the piece covers (card scope)").option("--exclusions <text>", "what the piece does not cover (card exclusions)").option("--applies-to <pair>", "applicability key=value (repeatable)", collect, []).option("--as-of <iso>", "as-of timestamp, ISO-8601 with offset").option("--valid-until <iso>", "valid-until timestamp, ISO-8601 with offset").option("--artifact-type <type>", "document | skill | dataset").option("--temporal-mode <mode>", "snapshot | maintained | evergreen").option("--provenance <text>", "provenance summary (card)").option("--methodology <text>", "methodology summary (card)").action(async function(file) {
3866
3771
  await runCommand("publish", this, async (ctx) => {
3867
3772
  const o = this.opts();
3868
- const { runPublish } = await import("./publish-N5U4XYVA.js");
3773
+ const { runPublish } = await import("./publish-O2I6IAEL.js");
3869
3774
  return runPublish(
3870
3775
  {
3871
3776
  ...typeof file === "string" ? { file } : {},
@@ -3921,7 +3826,7 @@ function buildProgram(io, setExit) {
3921
3826
  ).action(async function(postId) {
3922
3827
  await runCommand("edit", this, async (ctx) => {
3923
3828
  const o = this.opts();
3924
- const { runEdit } = await import("./edit-E7N6F3OY.js");
3829
+ const { runEdit } = await import("./edit-QSUEG7CL.js");
3925
3830
  return runEdit(
3926
3831
  {
3927
3832
  postId,
@@ -3961,7 +3866,7 @@ function buildProgram(io, setExit) {
3961
3866
  ).option("--resource <id>", "the resourceId the outcome concerns").option("--content-hash <hash>", "sha256:<64hex> of the exact body read").action(async function() {
3962
3867
  await runCommand("outcome", this, async (ctx) => {
3963
3868
  const o = this.opts();
3964
- const { runOutcome } = await import("./outcome-W3KYGF23.js");
3869
+ const { runOutcome } = await import("./outcome-IUSYFJTN.js");
3965
3870
  return runOutcome(
3966
3871
  {
3967
3872
  status: String(o.status),
@@ -3976,7 +3881,7 @@ function buildProgram(io, setExit) {
3976
3881
  });
3977
3882
  addGlobalFlags(program2.command("mcp")).description("Run a local stdio MCP server exposing the Tenjin command cores to an MCP client").action(async function() {
3978
3883
  const ctx = buildContext(this, io);
3979
- const { runMcpServer } = await import("./run-FSO3MMXN.js");
3884
+ const { runMcpServer } = await import("./run-GDZWHNWZ.js");
3980
3885
  await runMcpServer({ dataDir: ctx.dataDir, flags: ctx.flags });
3981
3886
  });
3982
3887
  return program2;
@@ -4018,4 +3923,4 @@ export {
4018
3923
  buildProgram,
4019
3924
  main
4020
3925
  };
4021
- //# sourceMappingURL=cli-Y2HBOSGK.js.map
3926
+ //# sourceMappingURL=cli-XK5JZWU6.js.map