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

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 (116) hide show
  1. package/README.md +107 -33
  2. package/dist/{buy-YMXXVNFH.js → buy-XVOMNWKN.js} +18 -16
  3. package/dist/{candidate-H7FR4AU5.js → candidate-DJB2NNTG.js} +7 -8
  4. package/dist/{chunk-TXPPMK4L.js → chunk-2KIDDWQO.js} +5 -5
  5. package/dist/{chunk-3IRDP7TN.js → chunk-2L73UI6T.js} +6 -4
  6. package/dist/{chunk-3IRDP7TN.js.map → chunk-2L73UI6T.js.map} +1 -1
  7. package/dist/{chunk-ZW3B5LWX.js → chunk-2YX6LTCD.js} +5 -5
  8. package/dist/{chunk-HTDALK7M.js → chunk-5X4EBGGU.js} +15 -12
  9. package/dist/{chunk-HTDALK7M.js.map → chunk-5X4EBGGU.js.map} +1 -1
  10. package/dist/{chunk-RTJLLPFA.js → chunk-6S44OLND.js} +123 -23
  11. package/dist/chunk-6S44OLND.js.map +1 -0
  12. package/dist/{chunk-FU6MCSLG.js → chunk-7WDY4AXV.js} +2 -64
  13. package/dist/chunk-7WDY4AXV.js.map +1 -0
  14. package/dist/{chunk-NFSOVL3C.js → chunk-BBUYCDSG.js} +12 -3
  15. package/dist/chunk-BBUYCDSG.js.map +1 -0
  16. package/dist/chunk-CYRYVZPN.js +213 -0
  17. package/dist/chunk-CYRYVZPN.js.map +1 -0
  18. package/dist/{chunk-MDDGEGSW.js → chunk-DAJ56EUU.js} +3 -3
  19. package/dist/{chunk-IOPWPMT2.js → chunk-DH6D6QIO.js} +5 -5
  20. package/dist/chunk-E6BNARCS.js +614 -0
  21. package/dist/chunk-E6BNARCS.js.map +1 -0
  22. package/dist/chunk-GABYDXWL.js +190 -0
  23. package/dist/chunk-GABYDXWL.js.map +1 -0
  24. package/dist/{chunk-LAM66WFJ.js → chunk-GM4RZUVU.js} +6 -8
  25. package/dist/{chunk-LAM66WFJ.js.map → chunk-GM4RZUVU.js.map} +1 -1
  26. package/dist/{chunk-ZDY2KY5X.js → chunk-GXYNLMUQ.js} +28 -11
  27. package/dist/chunk-GXYNLMUQ.js.map +1 -0
  28. package/dist/{chunk-PAUXMRSF.js → chunk-J6CVKC4M.js} +73 -2
  29. package/dist/chunk-J6CVKC4M.js.map +1 -0
  30. package/dist/{chunk-BIKAUVC2.js → chunk-KT2DGKFT.js} +40 -6
  31. package/dist/chunk-KT2DGKFT.js.map +1 -0
  32. package/dist/chunk-L6AV2Q73.js +105 -0
  33. package/dist/chunk-L6AV2Q73.js.map +1 -0
  34. package/dist/{chunk-CVX6JNGD.js → chunk-OTDI5FXG.js} +3 -5
  35. package/dist/{chunk-CVX6JNGD.js.map → chunk-OTDI5FXG.js.map} +1 -1
  36. package/dist/chunk-PIIWLEEG.js +337 -0
  37. package/dist/chunk-PIIWLEEG.js.map +1 -0
  38. package/dist/{chunk-PYNSGYBE.js → chunk-PLU3E63S.js} +249 -552
  39. package/dist/chunk-PLU3E63S.js.map +1 -0
  40. package/dist/{chunk-C444K6MI.js → chunk-RGFBBNGP.js} +42 -17
  41. package/dist/{chunk-C444K6MI.js.map → chunk-RGFBBNGP.js.map} +1 -1
  42. package/dist/chunk-SGK2B724.js +67 -0
  43. package/dist/chunk-SGK2B724.js.map +1 -0
  44. package/dist/{chunk-5SCU253N.js → chunk-UYP7G3GZ.js} +2 -2
  45. package/dist/{chunk-ZIYVN4CD.js → chunk-VZ3AJCO5.js} +3 -5
  46. package/dist/{chunk-ZIYVN4CD.js.map → chunk-VZ3AJCO5.js.map} +1 -1
  47. package/dist/{chunk-NJF2WENW.js → chunk-WDJTGVKN.js} +2 -2
  48. package/dist/{chunk-NJF2WENW.js.map → chunk-WDJTGVKN.js.map} +1 -1
  49. package/dist/{chunk-4WVKXKDK.js → chunk-WI5EOAQQ.js} +29 -238
  50. package/dist/chunk-WI5EOAQQ.js.map +1 -0
  51. package/dist/{chunk-QONTBYQW.js → chunk-WRWCDLVK.js} +4 -6
  52. package/dist/{chunk-QONTBYQW.js.map → chunk-WRWCDLVK.js.map} +1 -1
  53. package/dist/chunk-XBJ3VLWX.js +35 -0
  54. package/dist/chunk-XBJ3VLWX.js.map +1 -0
  55. package/dist/{chunk-ADJYSM45.js → chunk-ZEWY3RJ3.js} +27 -13
  56. package/dist/chunk-ZEWY3RJ3.js.map +1 -0
  57. package/dist/chunk-ZFE7STX7.js +143 -0
  58. package/dist/chunk-ZFE7STX7.js.map +1 -0
  59. package/dist/{cli-IW76QTN3.js → cli-7B2QNJG3.js} +231 -23
  60. package/dist/cli-7B2QNJG3.js.map +1 -0
  61. package/dist/{config-VCOS7P5K.js → config-SAQEQRFB.js} +5 -6
  62. package/dist/{doctor-WS65JG3V.js → doctor-ENJ22XWN.js} +10 -9
  63. package/dist/{publish-DSFWQRUN.js → edit-2QO5GQDU.js} +18 -16
  64. package/dist/index.js +1 -1
  65. package/dist/{inspect-SFJWUQHO.js → inspect-IPKKQB2S.js} +15 -14
  66. package/dist/{install-RVPQPCKH.js → install-7ZIYISQ7.js} +17 -17
  67. package/dist/outcome-NSDE2KAJ.js +20 -0
  68. package/dist/publish-7WIFFNFG.js +40 -0
  69. package/dist/read-5TQR7LCF.js +158 -0
  70. package/dist/read-5TQR7LCF.js.map +1 -0
  71. package/dist/{run-OMPKA43G.js → run-NPKIP26Y.js} +102 -28
  72. package/dist/{run-OMPKA43G.js.map → run-NPKIP26Y.js.map} +1 -1
  73. package/dist/search-63ELMRZH.js +24 -0
  74. package/dist/{send-3G4C64HJ.js → send-ENE47KQE.js} +7 -7
  75. package/dist/session-FZU4VFFE.js +87 -0
  76. package/dist/session-FZU4VFFE.js.map +1 -0
  77. package/dist/{wallet-PP22LAX7.js → wallet-OCCGEH6H.js} +7 -7
  78. package/dist/{wallet-B7KJS2R5.js → wallet-RBDVNZVR.js} +5 -5
  79. package/dist/wallet-RBDVNZVR.js.map +1 -0
  80. package/package.json +1 -1
  81. package/skills/tenjin/SKILL.md +2 -2
  82. package/skills/tenjin-publish/SKILL.md +12 -4
  83. package/skills/tenjin-search/SKILL.md +68 -12
  84. package/dist/chunk-2JQ5JSG6.js +0 -68
  85. package/dist/chunk-2JQ5JSG6.js.map +0 -1
  86. package/dist/chunk-4WVKXKDK.js.map +0 -1
  87. package/dist/chunk-ADJYSM45.js.map +0 -1
  88. package/dist/chunk-BIKAUVC2.js.map +0 -1
  89. package/dist/chunk-FU6MCSLG.js.map +0 -1
  90. package/dist/chunk-L4IHCN6B.js +0 -63
  91. package/dist/chunk-L4IHCN6B.js.map +0 -1
  92. package/dist/chunk-NFSOVL3C.js.map +0 -1
  93. package/dist/chunk-PAUXMRSF.js.map +0 -1
  94. package/dist/chunk-PYNSGYBE.js.map +0 -1
  95. package/dist/chunk-RTJLLPFA.js.map +0 -1
  96. package/dist/chunk-ZDY2KY5X.js.map +0 -1
  97. package/dist/cli-IW76QTN3.js.map +0 -1
  98. package/dist/outcome-GNYCSZ7J.js +0 -20
  99. package/dist/search-KOI6Y7P6.js +0 -24
  100. /package/dist/{buy-YMXXVNFH.js.map → buy-XVOMNWKN.js.map} +0 -0
  101. /package/dist/{candidate-H7FR4AU5.js.map → candidate-DJB2NNTG.js.map} +0 -0
  102. /package/dist/{chunk-TXPPMK4L.js.map → chunk-2KIDDWQO.js.map} +0 -0
  103. /package/dist/{chunk-ZW3B5LWX.js.map → chunk-2YX6LTCD.js.map} +0 -0
  104. /package/dist/{chunk-MDDGEGSW.js.map → chunk-DAJ56EUU.js.map} +0 -0
  105. /package/dist/{chunk-IOPWPMT2.js.map → chunk-DH6D6QIO.js.map} +0 -0
  106. /package/dist/{chunk-5SCU253N.js.map → chunk-UYP7G3GZ.js.map} +0 -0
  107. /package/dist/{config-VCOS7P5K.js.map → config-SAQEQRFB.js.map} +0 -0
  108. /package/dist/{doctor-WS65JG3V.js.map → doctor-ENJ22XWN.js.map} +0 -0
  109. /package/dist/{inspect-SFJWUQHO.js.map → edit-2QO5GQDU.js.map} +0 -0
  110. /package/dist/{outcome-GNYCSZ7J.js.map → inspect-IPKKQB2S.js.map} +0 -0
  111. /package/dist/{install-RVPQPCKH.js.map → install-7ZIYISQ7.js.map} +0 -0
  112. /package/dist/{publish-DSFWQRUN.js.map → outcome-NSDE2KAJ.js.map} +0 -0
  113. /package/dist/{search-KOI6Y7P6.js.map → publish-7WIFFNFG.js.map} +0 -0
  114. /package/dist/{wallet-B7KJS2R5.js.map → search-63ELMRZH.js.map} +0 -0
  115. /package/dist/{send-3G4C64HJ.js.map → send-ENE47KQE.js.map} +0 -0
  116. /package/dist/{wallet-PP22LAX7.js.map → wallet-OCCGEH6H.js.map} +0 -0
@@ -5,13 +5,12 @@ import {
5
5
  runConfigGet,
6
6
  runConfigList,
7
7
  runConfigSet
8
- } from "./chunk-LAM66WFJ.js";
9
- import "./chunk-MDDGEGSW.js";
8
+ } from "./chunk-GM4RZUVU.js";
9
+ import "./chunk-DAJ56EUU.js";
10
10
  import "./chunk-YBMMV4Y4.js";
11
11
  import "./chunk-UO22YNY4.js";
12
- import "./chunk-5SCU253N.js";
13
- import "./chunk-2JQ5JSG6.js";
14
- import "./chunk-PAUXMRSF.js";
12
+ import "./chunk-UYP7G3GZ.js";
13
+ import "./chunk-J6CVKC4M.js";
15
14
  import "./chunk-ZXTAQYNA.js";
16
15
  export {
17
16
  persistInstallHarness,
@@ -20,4 +19,4 @@ export {
20
19
  runConfigList,
21
20
  runConfigSet
22
21
  };
23
- //# sourceMappingURL=config-VCOS7P5K.js.map
22
+ //# sourceMappingURL=config-SAQEQRFB.js.map
@@ -3,19 +3,20 @@ import {
3
3
  collectDoctorChecks,
4
4
  renderDoctorHuman,
5
5
  runDoctor
6
- } from "./chunk-RTJLLPFA.js";
7
- import "./chunk-QONTBYQW.js";
8
- import "./chunk-ZDY2KY5X.js";
9
- import "./chunk-NJF2WENW.js";
10
- import "./chunk-NFSOVL3C.js";
6
+ } from "./chunk-6S44OLND.js";
7
+ import "./chunk-GABYDXWL.js";
8
+ import "./chunk-WRWCDLVK.js";
9
+ import "./chunk-GXYNLMUQ.js";
10
+ import "./chunk-WDJTGVKN.js";
11
+ import "./chunk-XBJ3VLWX.js";
11
12
  import "./chunk-2I4QTOLB.js";
12
- import "./chunk-5SCU253N.js";
13
- import "./chunk-2JQ5JSG6.js";
14
- import "./chunk-PAUXMRSF.js";
13
+ import "./chunk-BBUYCDSG.js";
14
+ import "./chunk-UYP7G3GZ.js";
15
+ import "./chunk-J6CVKC4M.js";
15
16
  import "./chunk-ZXTAQYNA.js";
16
17
  export {
17
18
  collectDoctorChecks,
18
19
  renderDoctorHuman,
19
20
  runDoctor
20
21
  };
21
- //# sourceMappingURL=doctor-WS65JG3V.js.map
22
+ //# sourceMappingURL=doctor-ENJ22XWN.js.map
@@ -1,27 +1,29 @@
1
1
  import { createRequire as __tenjinCreateRequire } from 'node:module'; const require = __tenjinCreateRequire(import.meta.url);
2
2
  import {
3
- runPublish
4
- } from "./chunk-PYNSGYBE.js";
5
- import "./chunk-FU6MCSLG.js";
3
+ runEdit
4
+ } from "./chunk-E6BNARCS.js";
5
+ import "./chunk-PLU3E63S.js";
6
+ import "./chunk-ZFE7STX7.js";
7
+ import "./chunk-7WDY4AXV.js";
6
8
  import "./chunk-POJRB2AE.js";
7
- import "./chunk-C444K6MI.js";
8
- import "./chunk-QONTBYQW.js";
9
- import "./chunk-3IRDP7TN.js";
10
- import "./chunk-ZIYVN4CD.js";
9
+ import "./chunk-GABYDXWL.js";
10
+ import "./chunk-RGFBBNGP.js";
11
+ import "./chunk-WRWCDLVK.js";
12
+ import "./chunk-2L73UI6T.js";
11
13
  import "./chunk-WWX32ML4.js";
12
- import "./chunk-ZDY2KY5X.js";
13
- import "./chunk-NJF2WENW.js";
14
- import "./chunk-NFSOVL3C.js";
14
+ import "./chunk-GXYNLMUQ.js";
15
+ import "./chunk-WDJTGVKN.js";
16
+ import "./chunk-XBJ3VLWX.js";
15
17
  import "./chunk-2I4QTOLB.js";
18
+ import "./chunk-BBUYCDSG.js";
16
19
  import "./chunk-KZAAWQNP.js";
17
20
  import "./chunk-S5RYMCV6.js";
18
21
  import "./chunk-YLYINX2H.js";
19
- import "./chunk-MDDGEGSW.js";
22
+ import "./chunk-DAJ56EUU.js";
20
23
  import "./chunk-YBMMV4Y4.js";
21
24
  import "./chunk-UO22YNY4.js";
22
- import "./chunk-5SCU253N.js";
23
- import "./chunk-2JQ5JSG6.js";
24
- import "./chunk-PAUXMRSF.js";
25
+ import "./chunk-UYP7G3GZ.js";
26
+ import "./chunk-J6CVKC4M.js";
25
27
  import "./chunk-M2O56UK7.js";
26
28
  import "./chunk-UHTVXQ2O.js";
27
29
  import "./chunk-W6R3HAAG.js";
@@ -31,6 +33,6 @@ import "./chunk-RBJPAZFI.js";
31
33
  import "./chunk-KYQVEKP5.js";
32
34
  import "./chunk-ZXTAQYNA.js";
33
35
  export {
34
- runPublish
36
+ runEdit
35
37
  };
36
- //# sourceMappingURL=publish-DSFWQRUN.js.map
38
+ //# sourceMappingURL=edit-2QO5GQDU.js.map
package/dist/index.js CHANGED
@@ -21,6 +21,6 @@ if (Number.isNaN(nodeMajor) || nodeMajor < MIN_NODE_MAJOR) {
21
21
  `);
22
22
  process.exit(1);
23
23
  }
24
- var { main } = await import("./cli-IW76QTN3.js");
24
+ var { main } = await import("./cli-7B2QNJG3.js");
25
25
  process.exit(await main(process.argv.slice(2)));
26
26
  //# sourceMappingURL=index.js.map
@@ -1,26 +1,27 @@
1
1
  import { createRequire as __tenjinCreateRequire } from 'node:module'; const require = __tenjinCreateRequire(import.meta.url);
2
2
  import {
3
3
  runInspect
4
- } from "./chunk-ADJYSM45.js";
5
- import "./chunk-BIKAUVC2.js";
6
- import "./chunk-FU6MCSLG.js";
4
+ } from "./chunk-ZEWY3RJ3.js";
5
+ import "./chunk-KT2DGKFT.js";
6
+ import "./chunk-SGK2B724.js";
7
+ import "./chunk-7WDY4AXV.js";
7
8
  import "./chunk-POJRB2AE.js";
8
- import "./chunk-L4IHCN6B.js";
9
- import "./chunk-CVX6JNGD.js";
10
- import "./chunk-3IRDP7TN.js";
9
+ import "./chunk-CYRYVZPN.js";
10
+ import "./chunk-OTDI5FXG.js";
11
+ import "./chunk-2L73UI6T.js";
11
12
  import "./chunk-WWX32ML4.js";
12
- import "./chunk-ZDY2KY5X.js";
13
- import "./chunk-NJF2WENW.js";
14
- import "./chunk-NFSOVL3C.js";
13
+ import "./chunk-GXYNLMUQ.js";
14
+ import "./chunk-WDJTGVKN.js";
15
+ import "./chunk-XBJ3VLWX.js";
16
+ import "./chunk-BBUYCDSG.js";
15
17
  import "./chunk-KZAAWQNP.js";
16
18
  import "./chunk-S5RYMCV6.js";
17
19
  import "./chunk-YLYINX2H.js";
18
- import "./chunk-MDDGEGSW.js";
20
+ import "./chunk-DAJ56EUU.js";
19
21
  import "./chunk-YBMMV4Y4.js";
20
22
  import "./chunk-UO22YNY4.js";
21
- import "./chunk-5SCU253N.js";
22
- import "./chunk-2JQ5JSG6.js";
23
- import "./chunk-PAUXMRSF.js";
23
+ import "./chunk-UYP7G3GZ.js";
24
+ import "./chunk-J6CVKC4M.js";
24
25
  import "./chunk-UHTVXQ2O.js";
25
26
  import "./chunk-W6R3HAAG.js";
26
27
  import "./chunk-XJN5WUKL.js";
@@ -30,4 +31,4 @@ import "./chunk-ZXTAQYNA.js";
30
31
  export {
31
32
  runInspect
32
33
  };
33
- //# sourceMappingURL=inspect-SFJWUQHO.js.map
34
+ //# sourceMappingURL=inspect-IPKKQB2S.js.map
@@ -1,33 +1,35 @@
1
1
  import { createRequire as __tenjinCreateRequire } from 'node:module'; const require = __tenjinCreateRequire(import.meta.url);
2
2
  import {
3
3
  runWalletCreate
4
- } from "./chunk-IOPWPMT2.js";
4
+ } from "./chunk-DH6D6QIO.js";
5
5
  import {
6
6
  collectDoctorChecks,
7
7
  recommendedPermissions,
8
8
  renderPermissionsBlock
9
- } from "./chunk-RTJLLPFA.js";
9
+ } from "./chunk-6S44OLND.js";
10
+ import "./chunk-GABYDXWL.js";
10
11
  import {
11
12
  promptYesNo
12
13
  } from "./chunk-QW2Q2KAH.js";
13
14
  import {
14
15
  describeWallet,
15
16
  resolveWalletProvider
16
- } from "./chunk-C444K6MI.js";
17
+ } from "./chunk-RGFBBNGP.js";
17
18
  import {
18
19
  walletFileExists
19
- } from "./chunk-QONTBYQW.js";
20
- import "./chunk-ZDY2KY5X.js";
21
- import "./chunk-NJF2WENW.js";
20
+ } from "./chunk-WRWCDLVK.js";
21
+ import "./chunk-GXYNLMUQ.js";
22
+ import "./chunk-WDJTGVKN.js";
23
+ import "./chunk-XBJ3VLWX.js";
24
+ import "./chunk-2I4QTOLB.js";
22
25
  import {
23
26
  sanitizeForTerminal
24
- } from "./chunk-NFSOVL3C.js";
25
- import "./chunk-2I4QTOLB.js";
27
+ } from "./chunk-BBUYCDSG.js";
26
28
  import {
27
29
  persistInstallHarness,
28
30
  persistPublishMode
29
- } from "./chunk-LAM66WFJ.js";
30
- import "./chunk-MDDGEGSW.js";
31
+ } from "./chunk-GM4RZUVU.js";
32
+ import "./chunk-DAJ56EUU.js";
31
33
  import "./chunk-YBMMV4Y4.js";
32
34
  import "./chunk-UO22YNY4.js";
33
35
  import {
@@ -44,14 +46,12 @@ import {
44
46
  onPath,
45
47
  parsePublishModeFlag,
46
48
  resolveSkillsSource
47
- } from "./chunk-5SCU253N.js";
48
- import {
49
- writeFileAtomic
50
- } from "./chunk-2JQ5JSG6.js";
49
+ } from "./chunk-UYP7G3GZ.js";
51
50
  import {
52
51
  CliError,
53
- external_exports
54
- } from "./chunk-PAUXMRSF.js";
52
+ external_exports,
53
+ writeFileAtomic
54
+ } from "./chunk-J6CVKC4M.js";
55
55
  import "./chunk-MJZZTKCC.js";
56
56
  import "./chunk-7FK2UN2T.js";
57
57
  import "./chunk-M2O56UK7.js";
@@ -586,4 +586,4 @@ async function assertSkillsSource(dir) {
586
586
  export {
587
587
  runInstall
588
588
  };
589
- //# sourceMappingURL=install-RVPQPCKH.js.map
589
+ //# sourceMappingURL=install-7ZIYISQ7.js.map
@@ -0,0 +1,20 @@
1
+ import { createRequire as __tenjinCreateRequire } from 'node:module'; const require = __tenjinCreateRequire(import.meta.url);
2
+ import {
3
+ runOutcome
4
+ } from "./chunk-2KIDDWQO.js";
5
+ import "./chunk-OTDI5FXG.js";
6
+ import "./chunk-2L73UI6T.js";
7
+ import "./chunk-WWX32ML4.js";
8
+ import "./chunk-GXYNLMUQ.js";
9
+ import "./chunk-WDJTGVKN.js";
10
+ import "./chunk-XBJ3VLWX.js";
11
+ import "./chunk-DAJ56EUU.js";
12
+ import "./chunk-YBMMV4Y4.js";
13
+ import "./chunk-UO22YNY4.js";
14
+ import "./chunk-UYP7G3GZ.js";
15
+ import "./chunk-J6CVKC4M.js";
16
+ import "./chunk-ZXTAQYNA.js";
17
+ export {
18
+ runOutcome
19
+ };
20
+ //# sourceMappingURL=outcome-NSDE2KAJ.js.map
@@ -0,0 +1,40 @@
1
+ import { createRequire as __tenjinCreateRequire } from 'node:module'; const require = __tenjinCreateRequire(import.meta.url);
2
+ import {
3
+ runPublish
4
+ } from "./chunk-PIIWLEEG.js";
5
+ import "./chunk-SGK2B724.js";
6
+ import "./chunk-PLU3E63S.js";
7
+ import "./chunk-ZFE7STX7.js";
8
+ import "./chunk-7WDY4AXV.js";
9
+ import "./chunk-POJRB2AE.js";
10
+ import "./chunk-GABYDXWL.js";
11
+ import "./chunk-RGFBBNGP.js";
12
+ import "./chunk-WRWCDLVK.js";
13
+ import "./chunk-VZ3AJCO5.js";
14
+ import "./chunk-2L73UI6T.js";
15
+ import "./chunk-WWX32ML4.js";
16
+ import "./chunk-GXYNLMUQ.js";
17
+ import "./chunk-WDJTGVKN.js";
18
+ import "./chunk-XBJ3VLWX.js";
19
+ import "./chunk-2I4QTOLB.js";
20
+ import "./chunk-BBUYCDSG.js";
21
+ import "./chunk-KZAAWQNP.js";
22
+ import "./chunk-S5RYMCV6.js";
23
+ import "./chunk-YLYINX2H.js";
24
+ import "./chunk-DAJ56EUU.js";
25
+ import "./chunk-YBMMV4Y4.js";
26
+ import "./chunk-UO22YNY4.js";
27
+ import "./chunk-UYP7G3GZ.js";
28
+ import "./chunk-J6CVKC4M.js";
29
+ import "./chunk-M2O56UK7.js";
30
+ import "./chunk-UHTVXQ2O.js";
31
+ import "./chunk-W6R3HAAG.js";
32
+ import "./chunk-47PP7TAG.js";
33
+ import "./chunk-XJN5WUKL.js";
34
+ import "./chunk-RBJPAZFI.js";
35
+ import "./chunk-KYQVEKP5.js";
36
+ import "./chunk-ZXTAQYNA.js";
37
+ export {
38
+ runPublish
39
+ };
40
+ //# sourceMappingURL=publish-7WIFFNFG.js.map
@@ -0,0 +1,158 @@
1
+ import { createRequire as __tenjinCreateRequire } from 'node:module'; const require = __tenjinCreateRequire(import.meta.url);
2
+ import {
3
+ deliverExisting,
4
+ deliverFresh,
5
+ parseSectionsBudget
6
+ } from "./chunk-L6AV2Q73.js";
7
+ import {
8
+ fetchRead
9
+ } from "./chunk-KT2DGKFT.js";
10
+ import "./chunk-SGK2B724.js";
11
+ import "./chunk-7WDY4AXV.js";
12
+ import "./chunk-POJRB2AE.js";
13
+ import {
14
+ isSessionPresentable,
15
+ loadSessionFile,
16
+ signWithSession
17
+ } from "./chunk-GABYDXWL.js";
18
+ import {
19
+ findDelivered,
20
+ findDeliveredByUrl,
21
+ resolveResourceRef
22
+ } from "./chunk-CYRYVZPN.js";
23
+ import "./chunk-OTDI5FXG.js";
24
+ import "./chunk-2L73UI6T.js";
25
+ import "./chunk-WWX32ML4.js";
26
+ import "./chunk-GXYNLMUQ.js";
27
+ import "./chunk-WDJTGVKN.js";
28
+ import {
29
+ originOf
30
+ } from "./chunk-XBJ3VLWX.js";
31
+ import "./chunk-2I4QTOLB.js";
32
+ import {
33
+ sanitizeForTerminal
34
+ } from "./chunk-BBUYCDSG.js";
35
+ import "./chunk-KZAAWQNP.js";
36
+ import "./chunk-S5RYMCV6.js";
37
+ import "./chunk-YLYINX2H.js";
38
+ import {
39
+ resolveContextSettings
40
+ } from "./chunk-DAJ56EUU.js";
41
+ import "./chunk-YBMMV4Y4.js";
42
+ import "./chunk-UO22YNY4.js";
43
+ import {
44
+ formatUsdDisplay,
45
+ toMoney
46
+ } from "./chunk-UYP7G3GZ.js";
47
+ import {
48
+ CliError
49
+ } from "./chunk-J6CVKC4M.js";
50
+ import "./chunk-UHTVXQ2O.js";
51
+ import "./chunk-W6R3HAAG.js";
52
+ import "./chunk-XJN5WUKL.js";
53
+ import "./chunk-RBJPAZFI.js";
54
+ import "./chunk-KYQVEKP5.js";
55
+ import "./chunk-ZXTAQYNA.js";
56
+
57
+ // src/commands/read.ts
58
+ async function runRead(args, ctx, deps = {}) {
59
+ const settings = await resolveContextSettings(ctx);
60
+ const sectionsBudget = parseSectionsBudget(args.sections);
61
+ const ref = await resolveResourceRef(args.ref, ctx.dataDir, settings.baseUrl);
62
+ const presentOpts = { printBody: args.printBody === true, sectionsBudget };
63
+ const existing = ref.resourceId !== void 0 ? await findDelivered(ctx.dataDir, ref.resourceId) : await findDeliveredByUrl(ctx.dataDir, ref.url);
64
+ if (existing !== null) {
65
+ return deliverExisting(existing, presentOpts);
66
+ }
67
+ const fetchOpts = {
68
+ timeoutMs: ctx.flags.timeout,
69
+ ...deps.fetchImpl !== void 0 ? { fetchImpl: deps.fetchImpl } : {}
70
+ };
71
+ const first = await fetchRead(ref.url, fetchOpts);
72
+ if (first.kind === "entitled") {
73
+ return await deliverFresh(ctx.dataDir, ref.url, first.body, "free", void 0, presentOpts);
74
+ }
75
+ if (first.kind === "already_purchased") {
76
+ throw new CliError("API_UNREACHABLE", "Unexpected 409 on an unauthenticated read.", {
77
+ fix: "Retry; if it persists, update tenjin-cli."
78
+ });
79
+ }
80
+ const firstRequirement = first.paymentRequired.accepts[0];
81
+ if (firstRequirement === void 0) {
82
+ throw new CliError("PAYMENT_FAILED", "The 402 advertised no payment requirements.", {
83
+ fix: "Try another candidate; this resource looks misconfigured."
84
+ });
85
+ }
86
+ const cached = await loadSessionFile(ctx.dataDir);
87
+ const now = deps.now ?? Date.now;
88
+ const origin = originOf(ref.url);
89
+ const outcome = await presentIfUsable(cached, origin, now, ref.url, fetchOpts);
90
+ if (outcome.kind === "entitled") {
91
+ return await deliverFresh(
92
+ ctx.dataDir,
93
+ ref.url,
94
+ outcome.body,
95
+ "entitled",
96
+ void 0,
97
+ presentOpts
98
+ );
99
+ }
100
+ throw refusal(ref, firstRequirement, outcome.check);
101
+ }
102
+ var LOUD_CODES = /* @__PURE__ */ new Set(["CONTRACT_MISMATCH", "RATE_LIMITED"]);
103
+ async function presentIfUsable(cached, origin, now, url, fetchOpts) {
104
+ if (cached === null) return { kind: "refuse", check: "not_performed" };
105
+ if (cached.origin !== origin) {
106
+ return { kind: "refuse", check: "session_origin_mismatch" };
107
+ }
108
+ if (!isSessionPresentable(cached, now(), "read", origin)) {
109
+ return { kind: "refuse", check: "not_performed" };
110
+ }
111
+ return await present(cached, url, fetchOpts, now);
112
+ }
113
+ async function present(session, url, fetchOpts, now) {
114
+ let second;
115
+ try {
116
+ const sessionHeaders = await signWithSession(session, { method: "GET", url }, { now });
117
+ second = await fetchRead(url, { ...fetchOpts, sessionHeaders });
118
+ } catch (err) {
119
+ if (err instanceof CliError && LOUD_CODES.has(err.code)) throw err;
120
+ return { kind: "refuse", check: "session_inconclusive" };
121
+ }
122
+ switch (second.kind) {
123
+ case "entitled":
124
+ return { kind: "entitled", body: second.body };
125
+ case "payment_required":
126
+ return { kind: "refuse", check: "session" };
127
+ case "session_rejected":
128
+ return { kind: "refuse", check: "session_rejected" };
129
+ case "already_purchased":
130
+ return { kind: "refuse", check: "session_inconclusive" };
131
+ }
132
+ }
133
+ function refusal(ref, requirement, check) {
134
+ const price = toMoney(requirement.amount);
135
+ const priceText = `${formatUsdDisplay(price.atomic)} USD (${price.atomic} atomic)`;
136
+ const url = sanitizeForTerminal(ref.url);
137
+ const buyFix = `Run \`tenjin buy ${url}\` to pay and read it, or \`tenjin inspect\` for the card first.`;
138
+ const mismatch = check === "session_origin_mismatch";
139
+ const mintable = check !== "session" && !mismatch;
140
+ const fix = mismatch ? `Your session key was minted for a different Tenjin deployment, so it was not presented. Read from the origin it belongs to, rather than minting a new session against this one. Check the configured origin with \`tenjin config get baseUrl\` and drop any host override. ${buyFix}` : mintable ? `${buyFix} If you already bought it, \`tenjin session start --scope read\` lets this read recover it free.` : buyFix;
141
+ return new CliError("REFUSED", `This piece costs ${priceText}; \`tenjin read\` never pays.`, {
142
+ fix,
143
+ details: {
144
+ reason: "payment_required",
145
+ entitlementCheck: check,
146
+ url: ref.url,
147
+ ...ref.resourceId !== void 0 ? { resourceId: ref.resourceId } : {},
148
+ price,
149
+ network: requirement.network,
150
+ buyCommand: `tenjin buy ${ref.url}`,
151
+ ...mintable ? { sessionCommand: "tenjin session start --scope read" } : {}
152
+ }
153
+ });
154
+ }
155
+ export {
156
+ runRead
157
+ };
158
+ //# sourceMappingURL=read-5TQR7LCF.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/commands/read.ts"],"sourcesContent":["import { CliError } from '../lib/errors';\nimport { formatUsdDisplay, toMoney } from '../lib/money';\nimport { resolveContextSettings } from '../lib/settings';\nimport { resolveResourceRef } from '../lib/resource-ref';\nimport { fetchRead } from '../lib/read-client';\nimport type { ReadBody, SessionReadResult } from '../lib/read-client';\nimport { findDelivered, findDeliveredByUrl } from '../lib/library';\nimport {\n deliverExisting,\n deliverFresh,\n parseSectionsBudget,\n type PresentOpts,\n} from '../lib/delivery';\nimport { sanitizeForTerminal } from '../lib/output';\nimport { isSessionPresentable, loadSessionFile, signWithSession } from '../lib/session-present';\nimport type { SessionFile } from '../lib/session-present';\nimport { originOf } from '../lib/url';\nimport type { CommandContext, CommandResult } from '../context';\n\n/**\n * `tenjin read <resource-url-or-id>`, the FREE-ONLY delivery verb (#42).\n *\n * `buy` was the only verb that delivered a body, so a zero-cost re-read of\n * something you already own was indistinguishable — to a prefix-matching harness\n * permission classifier, and to a human reading a transcript — from a purchase.\n * `read` is the half of `buy` that never spends:\n * 1. local library (already delivered → re-deliver from disk, no network)\n * 2. first GET, unauthenticated → a FREE resource delivers immediately\n * 3. a PAID resource, with a read-scoped session key on disk for THIS origin →\n * present it on ONE bodyless signed GET; a 200 means this wallet owns the\n * piece and it delivers, free\n * 4. anything else → REFUSED (exit 3), naming the price, and pointing at\n * `tenjin buy` only when the server actually answered \"you do not own this\".\n * Nothing is charged, and the refusal lands before any payment could be\n * constructed, because none can be.\n *\n * The hard invariant, test-pinned rather than merely intended (read.test.ts): this\n * module and its whole transitive import graph never reach `lib/x402-pay`,\n * `lib/wallet`, or `lib/session-key`. Step 3 uses the present-only half, so read\n * can load a delegation and sign with it but cannot mint one and cannot pay.\n * Those two are the whole of what the pin guarantees; what a minted delegation is\n * worth to a holder is answered in `lib/permissions.ts`.\n *\n * Step 3 therefore presents ONLY to the origin the session was minted against.\n * `--base-url` rides this verb like every other and `read` is always-safe, so\n * without that check one auto-allowed command line would hand a wallet-derived\n * credential to a host an agent picked.\n */\n\nexport interface ReadArgs {\n ref: string;\n /** Include the full body in the machine output (default: outline only). */\n printBody?: boolean;\n /** Include leading sections within this token budget (deterministic split). */\n sections?: string;\n}\n\nexport interface ReadDeps {\n /** No `provider`/`authorizer` seam, unlike BuyDeps: there is no wallet to inject. */\n fetchImpl?: typeof fetch;\n /** Clock seam (ms since epoch) for the session-expiry decision. */\n now?: () => number;\n}\n\nexport async function runRead(\n args: ReadArgs,\n ctx: CommandContext,\n deps: ReadDeps = {},\n): Promise<CommandResult> {\n const settings = await resolveContextSettings(ctx);\n const sectionsBudget = parseSectionsBudget(args.sections);\n const ref = await resolveResourceRef(args.ref, ctx.dataDir, settings.baseUrl);\n const presentOpts: PresentOpts = { printBody: args.printBody === true, sectionsBudget };\n\n // 1. Library idempotence, BEFORE any network: an owned resource re-delivers\n // from disk. This is the case #42 exists for — the re-read that used to need\n // a `buy` approval. Matched by id or by url, exactly as buy matches it.\n const existing =\n ref.resourceId !== undefined\n ? await findDelivered(ctx.dataDir, ref.resourceId)\n : await findDeliveredByUrl(ctx.dataDir, ref.url);\n if (existing !== null) {\n return deliverExisting(existing, presentOpts);\n }\n\n const fetchOpts = {\n timeoutMs: ctx.flags.timeout,\n ...(deps.fetchImpl !== undefined ? { fetchImpl: deps.fetchImpl } : {}),\n };\n\n // 2. First GET, unauthenticated — the same probe buy opens with, and like buy's\n // probe it is unattributed (no search id rides a non-purchase).\n const first = await fetchRead(ref.url, fetchOpts);\n\n if (first.kind === 'entitled') {\n // Free resource (no payment challenge was issued): deliver and save. No wallet\n // was resolved to get here.\n return await deliverFresh(ctx.dataDir, ref.url, first.body, 'free', undefined, presentOpts);\n }\n\n if (first.kind === 'already_purchased') {\n // A plain GET carries no payment header, so the read route cannot answer the\n // owned-re-pay 409 here; the contract makes this unreachable. Same loud failure\n // buy raises rather than guessing a recovery chain.\n throw new CliError('API_UNREACHABLE', 'Unexpected 409 on an unauthenticated read.', {\n fix: 'Retry; if it persists, update tenjin-cli.',\n });\n }\n\n // A paid resource. Capture the advertised price: it is what the refusal reports.\n const firstRequirement = first.paymentRequired.accepts[0];\n if (firstRequirement === undefined) {\n throw new CliError('PAYMENT_FAILED', 'The 402 advertised no payment requirements.', {\n fix: 'Try another candidate; this resource looks misconfigured.',\n });\n }\n\n // 3. Paid and not on disk. A live session key minted for THIS origin means the\n // wallet may already own the piece. Exactly one attempt: re-establishing\n // would need the wallet this module cannot reach.\n const cached = await loadSessionFile(ctx.dataDir);\n const now = deps.now ?? Date.now;\n // Against the origin of the URL actually being signed, not the configured base\n // URL. They are equal only because `resolveResourceRef` asserted it in another\n // module; checking the request target makes this guard locally sound instead of\n // dependent on a pin someone could move.\n const origin = originOf(ref.url);\n const outcome = await presentIfUsable(cached, origin, now, ref.url, fetchOpts);\n if (outcome.kind === 'entitled') {\n return await deliverFresh(\n ctx.dataDir,\n ref.url,\n outcome.body,\n 'entitled',\n undefined,\n presentOpts,\n );\n }\n\n // 4. Not entitled, not asked, or not answered: refuse (exit 3) on the advertised\n // price. No payment is constructed; none can be.\n throw refusal(ref, firstRequirement, outcome.check);\n}\n\n/** What the entitlement question got, which is not the same as what was asked. */\ntype EntitlementCheck =\n | 'not_performed'\n | 'session'\n | 'session_rejected'\n | 'session_inconclusive'\n | 'session_origin_mismatch';\n\ntype PresentOutcome =\n { kind: 'entitled'; body: ReadBody } | { kind: 'refuse'; check: EntitlementCheck };\n\n/** Failures that must NOT be folded into a price refusal; see `present`. */\nconst LOUD_CODES = new Set(['CONTRACT_MISMATCH', 'RATE_LIMITED']);\n\n/**\n * Decide whether the cached session may be presented, and present it if so.\n *\n * The origin mismatch is its own outcome rather than \"no session\": the two are\n * indistinguishable to an agent, and the remedy for one is the remedy the other\n * must NOT get. `not_performed` tells the agent to run `session start`, which is\n * the single verb that opens the keystore — and an agent that reached a mismatch\n * by carrying `--base-url` would carry it straight into that suggestion, minting\n * a wallet-signed delegation against the wrong host and clobbering the good one.\n */\nasync function presentIfUsable(\n cached: SessionFile | null,\n origin: string,\n now: () => number,\n url: string,\n fetchOpts: { timeoutMs: number; fetchImpl?: typeof fetch },\n): Promise<PresentOutcome> {\n if (cached === null) return { kind: 'refuse', check: 'not_performed' };\n if (cached.origin !== origin) {\n return { kind: 'refuse', check: 'session_origin_mismatch' };\n }\n if (!isSessionPresentable(cached, now(), 'read', origin)) {\n return { kind: 'refuse', check: 'not_performed' };\n }\n return await present(cached, url, fetchOpts, now);\n}\n\n/**\n * The one signed GET. Never throws for a transport failure: the first 402 already\n * told us the price, and losing it turns a recoverable refusal into a bare\n * network error that says nothing about the piece. Two exceptions stay loud: a\n * blocked redirect (a signal about where a credential was nearly sent) and a\n * rate limit (a recoverable pause the CLI models explicitly everywhere else —\n * swallowing it costs a looping agent its backoff and points it at a\n * keystore-opening command instead).\n */\nasync function present(\n session: SessionFile,\n url: string,\n fetchOpts: { timeoutMs: number; fetchImpl?: typeof fetch },\n now: () => number,\n): Promise<PresentOutcome> {\n let second: SessionReadResult;\n try {\n const sessionHeaders = await signWithSession(session, { method: 'GET', url }, { now });\n second = await fetchRead(url, { ...fetchOpts, sessionHeaders });\n } catch (err) {\n if (err instanceof CliError && LOUD_CODES.has(err.code)) throw err;\n return { kind: 'refuse', check: 'session_inconclusive' };\n }\n switch (second.kind) {\n case 'entitled':\n return { kind: 'entitled', body: second.body };\n case 'payment_required':\n // The only state where the server actually answered the ownership question.\n return { kind: 'refuse', check: 'session' };\n case 'session_rejected':\n // The delegation was declined (expired, revoked, origin drift, rotated\n // wallet). The entitlement question was never asked, so \"you must buy\" is\n // not the answer — re-minting is.\n return { kind: 'refuse', check: 'session_rejected' };\n case 'already_purchased':\n // A 409 on a request carrying no payment is contract-anomalous: the server\n // said \"already purchased\" and delivered nothing. Handled by name rather\n // than swept into a default, because the one thing this must never become\n // is a price refusal telling the agent to buy what it was just told it owns.\n return { kind: 'refuse', check: 'session_inconclusive' };\n }\n}\n\n/**\n * The exit-3 refusal: the price, in human money, plus the move that actually gets\n * past it. `entitlementCheck` reports what the server said, and the fix follows\n * from it rather than from a single default:\n *\n * - `session` — the server answered \"you do not own this\". Buying is the answer.\n * - `session_origin_mismatch` — a session exists, for a DIFFERENT origin. The\n * remedy is to stop redirecting the CLI, never to mint. `sessionCommand` is\n * deliberately absent: recommending it here would send an agent that still\n * carries `--base-url` to wallet-sign a delegation against the wrong host and\n * overwrite the good one.\n * - everything else — the question is still open, so re-minting may deliver it\n * free and `sessionCommand` rides.\n */\nfunction refusal(\n ref: { url: string; resourceId?: string },\n requirement: { amount: string; network: string },\n check: EntitlementCheck,\n): CliError {\n const price = toMoney(requirement.amount);\n // formatUsdDisplay (not the machine `usd`) because this string is human copy:\n // a price a person reads renders as 0.10, never 0.1.\n const priceText = `${formatUsdDisplay(price.atomic)} USD (${price.atomic} atomic)`;\n const url = sanitizeForTerminal(ref.url);\n const buyFix = `Run \\`tenjin buy ${url}\\` to pay and read it, or \\`tenjin inspect\\` for the card first.`;\n const mismatch = check === 'session_origin_mismatch';\n const mintable = check !== 'session' && !mismatch;\n const fix = mismatch\n ? `Your session key was minted for a different Tenjin deployment, so it was not presented. Read from the origin it belongs to, rather than minting a new session against this one. Check the configured origin with \\`tenjin config get baseUrl\\` and drop any host override. ${buyFix}`\n : mintable\n ? `${buyFix} If you already bought it, \\`tenjin session start --scope read\\` lets this read recover it free.`\n : buyFix;\n return new CliError('REFUSED', `This piece costs ${priceText}; \\`tenjin read\\` never pays.`, {\n fix,\n details: {\n reason: 'payment_required',\n entitlementCheck: check,\n url: ref.url,\n ...(ref.resourceId !== undefined ? { resourceId: ref.resourceId } : {}),\n price,\n network: requirement.network,\n buyCommand: `tenjin buy ${ref.url}`,\n ...(mintable ? { sessionCommand: 'tenjin session start --scope read' } : {}),\n },\n });\n}\n"],"mappings":"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","names":[]}