tenjin-cli 0.1.0-alpha.7 → 0.1.0-alpha.8

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 (61) hide show
  1. package/README.md +133 -237
  2. package/dist/{buy-XVOMNWKN.js → buy-K2G6XQY2.js} +9 -9
  3. package/dist/{chunk-WI5EOAQQ.js → chunk-6OE2IJMH.js} +3 -3
  4. package/dist/{chunk-ZEWY3RJ3.js → chunk-6ZBZCBR7.js} +2 -2
  5. package/dist/{chunk-5X4EBGGU.js → chunk-B7YB4MMU.js} +5 -5
  6. package/dist/{chunk-PIIWLEEG.js → chunk-C3S6725N.js} +2 -2
  7. package/dist/{chunk-WDJTGVKN.js → chunk-DQDGBWWH.js} +4 -2
  8. package/dist/chunk-DQDGBWWH.js.map +1 -0
  9. package/dist/{chunk-E6BNARCS.js → chunk-EDENZN2Q.js} +2 -2
  10. package/dist/{chunk-PLU3E63S.js → chunk-NVHQCTIC.js} +4 -4
  11. package/dist/{chunk-2L73UI6T.js → chunk-P3FBESBB.js} +2 -2
  12. package/dist/{chunk-7WDY4AXV.js → chunk-PCLPVJ3J.js} +15 -15
  13. package/dist/{chunk-ZFE7STX7.js → chunk-QB2NNV6C.js} +2 -2
  14. package/dist/{chunk-2KIDDWQO.js → chunk-RGTTACP3.js} +2 -2
  15. package/dist/{chunk-GXYNLMUQ.js → chunk-URSGGRO4.js} +2 -2
  16. package/dist/{chunk-6S44OLND.js → chunk-XFHZWORF.js} +2 -3
  17. package/dist/{chunk-KT2DGKFT.js → chunk-ZA3RFDAV.js} +4 -4
  18. package/dist/{cli-7B2QNJG3.js → cli-KNCYWMAG.js} +19 -15
  19. package/dist/{cli-7B2QNJG3.js.map → cli-KNCYWMAG.js.map} +1 -1
  20. package/dist/dist-U4M6QCKE.js +2842 -0
  21. package/dist/dist-U4M6QCKE.js.map +1 -0
  22. package/dist/{doctor-ENJ22XWN.js → doctor-FBRQNOUQ.js} +4 -4
  23. package/dist/{edit-2QO5GQDU.js → edit-IZZ2HIMR.js} +10 -10
  24. package/dist/index.js +1 -1
  25. package/dist/{inspect-IPKKQB2S.js → inspect-BFWZ5XOP.js} +9 -9
  26. package/dist/{install-7ZIYISQ7.js → install-QXZCHIBT.js} +387 -153
  27. package/dist/install-QXZCHIBT.js.map +1 -0
  28. package/dist/{outcome-NSDE2KAJ.js → outcome-VXCBEGNC.js} +5 -5
  29. package/dist/{publish-7WIFFNFG.js → publish-5NTCRF2V.js} +10 -10
  30. package/dist/{read-5TQR7LCF.js → read-T6OTMU72.js} +8 -8
  31. package/dist/{run-NPKIP26Y.js → run-5OGX64IY.js} +19 -19
  32. package/dist/{search-63ELMRZH.js → search-LIIWUMWV.js} +6 -6
  33. package/dist/{session-FZU4VFFE.js → session-HY4QIWHV.js} +5 -5
  34. package/docs/agent-permissions.md +255 -0
  35. package/package.json +3 -1
  36. package/skills/tenjin/SKILL.md +55 -11
  37. package/dist/chunk-WDJTGVKN.js.map +0 -1
  38. package/dist/install-7ZIYISQ7.js.map +0 -1
  39. /package/dist/{buy-XVOMNWKN.js.map → buy-K2G6XQY2.js.map} +0 -0
  40. /package/dist/{chunk-WI5EOAQQ.js.map → chunk-6OE2IJMH.js.map} +0 -0
  41. /package/dist/{chunk-ZEWY3RJ3.js.map → chunk-6ZBZCBR7.js.map} +0 -0
  42. /package/dist/{chunk-5X4EBGGU.js.map → chunk-B7YB4MMU.js.map} +0 -0
  43. /package/dist/{chunk-PIIWLEEG.js.map → chunk-C3S6725N.js.map} +0 -0
  44. /package/dist/{chunk-E6BNARCS.js.map → chunk-EDENZN2Q.js.map} +0 -0
  45. /package/dist/{chunk-PLU3E63S.js.map → chunk-NVHQCTIC.js.map} +0 -0
  46. /package/dist/{chunk-2L73UI6T.js.map → chunk-P3FBESBB.js.map} +0 -0
  47. /package/dist/{chunk-7WDY4AXV.js.map → chunk-PCLPVJ3J.js.map} +0 -0
  48. /package/dist/{chunk-ZFE7STX7.js.map → chunk-QB2NNV6C.js.map} +0 -0
  49. /package/dist/{chunk-2KIDDWQO.js.map → chunk-RGTTACP3.js.map} +0 -0
  50. /package/dist/{chunk-GXYNLMUQ.js.map → chunk-URSGGRO4.js.map} +0 -0
  51. /package/dist/{chunk-6S44OLND.js.map → chunk-XFHZWORF.js.map} +0 -0
  52. /package/dist/{chunk-KT2DGKFT.js.map → chunk-ZA3RFDAV.js.map} +0 -0
  53. /package/dist/{doctor-ENJ22XWN.js.map → doctor-FBRQNOUQ.js.map} +0 -0
  54. /package/dist/{edit-2QO5GQDU.js.map → edit-IZZ2HIMR.js.map} +0 -0
  55. /package/dist/{inspect-IPKKQB2S.js.map → inspect-BFWZ5XOP.js.map} +0 -0
  56. /package/dist/{outcome-NSDE2KAJ.js.map → outcome-VXCBEGNC.js.map} +0 -0
  57. /package/dist/{publish-7WIFFNFG.js.map → publish-5NTCRF2V.js.map} +0 -0
  58. /package/dist/{read-5TQR7LCF.js.map → read-T6OTMU72.js.map} +0 -0
  59. /package/dist/{run-NPKIP26Y.js.map → run-5OGX64IY.js.map} +0 -0
  60. /package/dist/{search-63ELMRZH.js.map → search-LIIWUMWV.js.map} +0 -0
  61. /package/dist/{session-FZU4VFFE.js.map → session-HY4QIWHV.js.map} +0 -0
@@ -3,10 +3,10 @@ import {
3
3
  SESSION_CHAIN_ID,
4
4
  createSessionKeyAuth,
5
5
  createSiwxAuth
6
- } from "./chunk-ZFE7STX7.js";
6
+ } from "./chunk-QB2NNV6C.js";
7
7
  import {
8
8
  rateLimitError
9
- } from "./chunk-2L73UI6T.js";
9
+ } from "./chunk-P3FBESBB.js";
10
10
  import {
11
11
  ATOMIC_RE,
12
12
  UUID_RE
@@ -14,7 +14,7 @@ import {
14
14
  import {
15
15
  CLIENT_HEADER,
16
16
  httpRequest
17
- } from "./chunk-GXYNLMUQ.js";
17
+ } from "./chunk-URSGGRO4.js";
18
18
  import {
19
19
  trimSlash
20
20
  } from "./chunk-XBJ3VLWX.js";
@@ -1369,4 +1369,4 @@ export {
1369
1369
  dedupeFindings,
1370
1370
  describeFindings
1371
1371
  };
1372
- //# sourceMappingURL=chunk-PLU3E63S.js.map
1372
+ //# sourceMappingURL=chunk-NVHQCTIC.js.map
@@ -6,7 +6,7 @@ import {
6
6
  import {
7
7
  CLIENT_HEADER,
8
8
  httpRequest
9
- } from "./chunk-GXYNLMUQ.js";
9
+ } from "./chunk-URSGGRO4.js";
10
10
  import {
11
11
  trimSlash
12
12
  } from "./chunk-XBJ3VLWX.js";
@@ -319,4 +319,4 @@ export {
319
319
  buildOutcomeItem,
320
320
  postOutcomes
321
321
  };
322
- //# sourceMappingURL=chunk-2L73UI6T.js.map
322
+ //# sourceMappingURL=chunk-P3FBESBB.js.map
@@ -1,4 +1,18 @@
1
1
  import { createRequire as __tenjinCreateRequire } from 'node:module'; const require = __tenjinCreateRequire(import.meta.url);
2
+ import {
3
+ a,
4
+ c,
5
+ h,
6
+ i,
7
+ i2,
8
+ m,
9
+ n,
10
+ p,
11
+ r,
12
+ s,
13
+ t2 as t,
14
+ u
15
+ } from "./chunk-YLYINX2H.js";
2
16
  import {
3
17
  AbiDecodingDataSizeTooSmallError,
4
18
  AbiDecodingZeroDataError,
@@ -151,20 +165,6 @@ import {
151
165
  validate2,
152
166
  withResolvers
153
167
  } from "./chunk-KZAAWQNP.js";
154
- import {
155
- a,
156
- c,
157
- h,
158
- i,
159
- i2,
160
- m,
161
- n,
162
- p,
163
- r,
164
- s,
165
- t2 as t,
166
- u
167
- } from "./chunk-YLYINX2H.js";
168
168
  import {
169
169
  sha256
170
170
  } from "./chunk-UHTVXQ2O.js";
@@ -14617,4 +14617,4 @@ export {
14617
14617
  SIWX_HEADER,
14618
14618
  buildSiwxHeader
14619
14619
  };
14620
- //# sourceMappingURL=chunk-7WDY4AXV.js.map
14620
+ //# sourceMappingURL=chunk-PCLPVJ3J.js.map
@@ -1,7 +1,7 @@
1
1
  import { createRequire as __tenjinCreateRequire } from 'node:module'; const require = __tenjinCreateRequire(import.meta.url);
2
2
  import {
3
3
  buildSiwxHeader
4
- } from "./chunk-7WDY4AXV.js";
4
+ } from "./chunk-PCLPVJ3J.js";
5
5
  import {
6
6
  isSessionUsable,
7
7
  loadSessionFile,
@@ -140,4 +140,4 @@ export {
140
140
  createSessionKeyAuth,
141
141
  createSiwxAuth
142
142
  };
143
- //# sourceMappingURL=chunk-ZFE7STX7.js.map
143
+ //# sourceMappingURL=chunk-QB2NNV6C.js.map
@@ -5,7 +5,7 @@ import {
5
5
  import {
6
6
  buildOutcomeItem,
7
7
  postOutcomes
8
- } from "./chunk-2L73UI6T.js";
8
+ } from "./chunk-P3FBESBB.js";
9
9
  import {
10
10
  resolveContextSettings
11
11
  } from "./chunk-DAJ56EUU.js";
@@ -56,4 +56,4 @@ async function resolveSearchId(args, ctx) {
56
56
  export {
57
57
  runOutcome
58
58
  };
59
- //# sourceMappingURL=chunk-2KIDDWQO.js.map
59
+ //# sourceMappingURL=chunk-RGTTACP3.js.map
@@ -1,7 +1,7 @@
1
1
  import { createRequire as __tenjinCreateRequire } from 'node:module'; const require = __tenjinCreateRequire(import.meta.url);
2
2
  import {
3
3
  package_default
4
- } from "./chunk-WDJTGVKN.js";
4
+ } from "./chunk-DQDGBWWH.js";
5
5
 
6
6
  // src/lib/http.ts
7
7
  var CREDENTIAL_HEADERS = /* @__PURE__ */ new Set([
@@ -166,4 +166,4 @@ export {
166
166
  httpRequest,
167
167
  CLIENT_HEADER
168
168
  };
169
- //# sourceMappingURL=chunk-GXYNLMUQ.js.map
169
+ //# sourceMappingURL=chunk-URSGGRO4.js.map
@@ -9,7 +9,7 @@ import {
9
9
  import {
10
10
  CLIENT_HEADER,
11
11
  fetchJson
12
- } from "./chunk-GXYNLMUQ.js";
12
+ } from "./chunk-URSGGRO4.js";
13
13
  import {
14
14
  trimSlash,
15
15
  tryOriginOf
@@ -691,9 +691,8 @@ function isRecord(value) {
691
691
 
692
692
  export {
693
693
  recommendedPermissions,
694
- renderPermissionsBlock,
695
694
  collectDoctorChecks,
696
695
  runDoctor,
697
696
  renderDoctorHuman
698
697
  };
699
- //# sourceMappingURL=chunk-6S44OLND.js.map
698
+ //# sourceMappingURL=chunk-XFHZWORF.js.map
@@ -3,10 +3,10 @@ import {
3
3
  SIWX_HEADER,
4
4
  decodePaymentRequiredHeader,
5
5
  decodePaymentResponseHeader
6
- } from "./chunk-7WDY4AXV.js";
6
+ } from "./chunk-PCLPVJ3J.js";
7
7
  import {
8
8
  rateLimitError
9
- } from "./chunk-2L73UI6T.js";
9
+ } from "./chunk-P3FBESBB.js";
10
10
  import {
11
11
  SLUG_RE,
12
12
  UUID_RE
@@ -14,7 +14,7 @@ import {
14
14
  import {
15
15
  CLIENT_HEADER,
16
16
  httpRequest
17
- } from "./chunk-GXYNLMUQ.js";
17
+ } from "./chunk-URSGGRO4.js";
18
18
  import {
19
19
  CliError,
20
20
  external_exports
@@ -234,4 +234,4 @@ function readMessage(json) {
234
234
  export {
235
235
  fetchRead
236
236
  };
237
- //# sourceMappingURL=chunk-KT2DGKFT.js.map
237
+ //# sourceMappingURL=chunk-ZA3RFDAV.js.map
@@ -1,7 +1,7 @@
1
1
  import { createRequire as __tenjinCreateRequire } from 'node:module'; const require = __tenjinCreateRequire(import.meta.url);
2
2
  import {
3
3
  package_default
4
- } from "./chunk-WDJTGVKN.js";
4
+ } from "./chunk-DQDGBWWH.js";
5
5
  import {
6
6
  defaultIo,
7
7
  emitFailure,
@@ -3642,18 +3642,22 @@ function buildProgram(io, setExit) {
3642
3642
  ).option("--dry-run", "print what would change without writing anything").option(
3643
3643
  "--publish-mode <mode>",
3644
3644
  "set the publish consent mode non-interactively: review | auto | full-auto"
3645
- ).option("--no-wallet", "skip the wallet-setup step of the interactive walkthrough").option("--claude-md", "append the Tenjin search nudge to ~/.claude/CLAUDE.md").option("--no-claude-md", "skip the CLAUDE.md nudge (and its interactive question)").action(async function() {
3645
+ ).option("--no-wallet", "skip the wallet-setup step of the interactive walkthrough").option("--claude-md", "append the Tenjin search nudge to ~/.claude/CLAUDE.md").option("--no-claude-md", "skip the CLAUDE.md nudge").option(
3646
+ "--allow-free-verbs",
3647
+ "add the free Tenjin commands to Claude Code's ~/.claude/settings.json allowlist without asking; none can spend USDC or open the keystore, see `tenjin doctor` for the caveats"
3648
+ ).action(async function() {
3646
3649
  await runCommand("install", this, async (ctx) => {
3647
3650
  const o = this.opts();
3648
3651
  const claudeMdGiven = this.getOptionValueSource("claudeMd") !== "default";
3649
- const { runInstall } = await import("./install-7ZIYISQ7.js");
3652
+ const { runInstall } = await import("./install-QXZCHIBT.js");
3650
3653
  return runInstall(
3651
3654
  {
3652
3655
  ...Array.isArray(o.harness) && o.harness.length > 0 ? { harness: o.harness } : {},
3653
3656
  ...o.dryRun === true ? { dryRun: true } : {},
3654
3657
  ...typeof o.publishMode === "string" ? { publishMode: o.publishMode } : {},
3655
3658
  ...o.wallet === false ? { noWallet: true } : {},
3656
- ...claudeMdGiven && typeof o.claudeMd === "boolean" ? { claudeMd: o.claudeMd } : {}
3659
+ ...claudeMdGiven && typeof o.claudeMd === "boolean" ? { claudeMd: o.claudeMd } : {},
3660
+ ...o.allowFreeVerbs === true ? { allowFreeVerbs: true } : {}
3657
3661
  },
3658
3662
  ctx
3659
3663
  );
@@ -3661,7 +3665,7 @@ function buildProgram(io, setExit) {
3661
3665
  });
3662
3666
  addGlobalFlags(program2.command("doctor")).description("Check the local environment and Tenjin API reachability").action(async function() {
3663
3667
  await runCommand("doctor", this, async (ctx) => {
3664
- const { runDoctor } = await import("./doctor-ENJ22XWN.js");
3668
+ const { runDoctor } = await import("./doctor-FBRQNOUQ.js");
3665
3669
  return runDoctor(ctx);
3666
3670
  });
3667
3671
  });
@@ -3725,7 +3729,7 @@ function buildProgram(io, setExit) {
3725
3729
  ).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) {
3726
3730
  await runCommand("search", this, async (ctx) => {
3727
3731
  const o = this.opts();
3728
- const { runSearch } = await import("./search-63ELMRZH.js");
3732
+ const { runSearch } = await import("./search-LIIWUMWV.js");
3729
3733
  return runSearch(
3730
3734
  {
3731
3735
  question,
@@ -3742,7 +3746,7 @@ function buildProgram(io, setExit) {
3742
3746
  "Show a candidate's pre-purchase card / preview. Use after search, before buy, to check price, scope, and freshness; it never pays"
3743
3747
  ).action(async function(resource) {
3744
3748
  await runCommand("inspect", this, async (ctx) => {
3745
- const { runInspect } = await import("./inspect-IPKKQB2S.js");
3749
+ const { runInspect } = await import("./inspect-BFWZ5XOP.js");
3746
3750
  return runInspect({ ref: resource }, ctx);
3747
3751
  });
3748
3752
  });
@@ -3754,7 +3758,7 @@ function buildProgram(io, setExit) {
3754
3758
  ).action(async function(resource) {
3755
3759
  await runCommand("read", this, async (ctx) => {
3756
3760
  const o = this.opts();
3757
- const { runRead } = await import("./read-5TQR7LCF.js");
3761
+ const { runRead } = await import("./read-T6OTMU72.js");
3758
3762
  return runRead(
3759
3763
  {
3760
3764
  ref: resource,
@@ -3775,7 +3779,7 @@ function buildProgram(io, setExit) {
3775
3779
  ).option("--scope <scope>", "session scope; this version mints `read` only (default: read)").action(async function() {
3776
3780
  await runCommand("session.start", this, async (ctx) => {
3777
3781
  const o = this.opts();
3778
- const { runSessionStart } = await import("./session-FZU4VFFE.js");
3782
+ const { runSessionStart } = await import("./session-HY4QIWHV.js");
3779
3783
  return runSessionStart(typeof o.scope === "string" ? { scope: o.scope } : {}, ctx);
3780
3784
  });
3781
3785
  });
@@ -3787,7 +3791,7 @@ function buildProgram(io, setExit) {
3787
3791
  ).action(async function(resource) {
3788
3792
  await runCommand("buy", this, async (ctx) => {
3789
3793
  const o = this.opts();
3790
- const { runBuy } = await import("./buy-XVOMNWKN.js");
3794
+ const { runBuy } = await import("./buy-K2G6XQY2.js");
3791
3795
  return runBuy(
3792
3796
  {
3793
3797
  ref: resource,
@@ -3808,7 +3812,7 @@ function buildProgram(io, setExit) {
3808
3812
  ).option("--draft", "save as a private draft instead of publishing").option("--yes", "clear soft findings and the review confirm (never a hard block)").option("--mode <mode>", "consent mode for this run: review | auto | full-auto").option("--price <usd>", "post price in decimal USD (defaults to publish.defaultPrice)").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) {
3809
3813
  await runCommand("publish", this, async (ctx) => {
3810
3814
  const o = this.opts();
3811
- const { runPublish } = await import("./publish-7WIFFNFG.js");
3815
+ const { runPublish } = await import("./publish-5NTCRF2V.js");
3812
3816
  return runPublish(
3813
3817
  {
3814
3818
  ...typeof file === "string" ? { file } : {},
@@ -3863,7 +3867,7 @@ function buildProgram(io, setExit) {
3863
3867
  ).action(async function(postId) {
3864
3868
  await runCommand("edit", this, async (ctx) => {
3865
3869
  const o = this.opts();
3866
- const { runEdit } = await import("./edit-2QO5GQDU.js");
3870
+ const { runEdit } = await import("./edit-IZZ2HIMR.js");
3867
3871
  return runEdit(
3868
3872
  {
3869
3873
  postId,
@@ -3900,7 +3904,7 @@ function buildProgram(io, setExit) {
3900
3904
  ).option("--resource <id>", "the resourceId the outcome concerns").option("--content-hash <hash>", "sha256:<64hex> of the exact body read").action(async function() {
3901
3905
  await runCommand("outcome", this, async (ctx) => {
3902
3906
  const o = this.opts();
3903
- const { runOutcome } = await import("./outcome-NSDE2KAJ.js");
3907
+ const { runOutcome } = await import("./outcome-VXCBEGNC.js");
3904
3908
  return runOutcome(
3905
3909
  {
3906
3910
  status: String(o.status),
@@ -3946,7 +3950,7 @@ function buildProgram(io, setExit) {
3946
3950
  });
3947
3951
  addGlobalFlags(program2.command("mcp")).description("Run a local stdio MCP server exposing the Tenjin command cores to an MCP client").action(async function() {
3948
3952
  const ctx = buildContext(this, io);
3949
- const { runMcpServer } = await import("./run-NPKIP26Y.js");
3953
+ const { runMcpServer } = await import("./run-5OGX64IY.js");
3950
3954
  await runMcpServer({ dataDir: ctx.dataDir, flags: ctx.flags });
3951
3955
  });
3952
3956
  return program2;
@@ -3988,4 +3992,4 @@ export {
3988
3992
  buildProgram,
3989
3993
  main
3990
3994
  };
3991
- //# sourceMappingURL=cli-7B2QNJG3.js.map
3995
+ //# sourceMappingURL=cli-KNCYWMAG.js.map