agents-inc 0.161.0 → 0.161.1

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 (125) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/dist/{chunk-QKMT6OOP.js → chunk-2P3MKX5Q.js} +2 -2
  3. package/dist/{chunk-DTCUZL7S.js → chunk-3JDVBHWO.js} +2 -2
  4. package/dist/{chunk-BLGETWYI.js → chunk-3QBOVV6A.js} +2 -2
  5. package/dist/{chunk-5MML3K36.js → chunk-4NAWM4OQ.js} +2 -2
  6. package/dist/{chunk-UMYEY6BA.js → chunk-77YZFVQD.js} +2 -2
  7. package/dist/{chunk-YSQ76LWG.js → chunk-7WKNPDN2.js} +3 -3
  8. package/dist/{chunk-F6LS2BQD.js → chunk-7ZFEZN4Y.js} +5 -5
  9. package/dist/{chunk-N6CILY5A.js → chunk-ADSIYZGS.js} +2 -2
  10. package/dist/{chunk-ADDYIMWN.js → chunk-C2K7Q7HO.js} +3 -3
  11. package/dist/{chunk-EY7Z34Y4.js → chunk-DOQUAWL4.js} +14 -14
  12. package/dist/chunk-DOQUAWL4.js.map +1 -0
  13. package/dist/{chunk-EEFTUZHZ.js → chunk-EN5MEPAS.js} +5 -5
  14. package/dist/{chunk-T4RVCFWN.js → chunk-ESI3JYOQ.js} +3 -3
  15. package/dist/{chunk-2MPXMJ2O.js → chunk-F5JTW3HZ.js} +5 -5
  16. package/dist/{chunk-BRHU6J3C.js → chunk-FL2CJ5T5.js} +3 -3
  17. package/dist/{chunk-3TM4FHTG.js → chunk-FXL63LDL.js} +2 -2
  18. package/dist/{chunk-EQSMVZGS.js → chunk-GUFRQJAE.js} +8 -8
  19. package/dist/{chunk-5DWDT6GM.js → chunk-IAN7QDBR.js} +4 -4
  20. package/dist/{chunk-AMZO4YJK.js → chunk-IV42Z63R.js} +2 -2
  21. package/dist/{chunk-AMZO4YJK.js.map → chunk-IV42Z63R.js.map} +1 -1
  22. package/dist/{chunk-XA4SWA2Z.js → chunk-JEJJHRZA.js} +4 -4
  23. package/dist/{chunk-264XDRU7.js → chunk-MI7LKLD7.js} +2 -2
  24. package/dist/{chunk-HB3YIAFD.js → chunk-MSUTHS2V.js} +2 -2
  25. package/dist/{chunk-ODUACQLV.js → chunk-Q4KCUR2T.js} +6 -6
  26. package/dist/{chunk-WVCF7KFV.js → chunk-QG4NRKZD.js} +5 -5
  27. package/dist/{chunk-W2RXRWDB.js → chunk-QM3ZNOWJ.js} +2 -2
  28. package/dist/{chunk-B3YSTZZC.js → chunk-QTLYSVYE.js} +3 -3
  29. package/dist/{chunk-DHRW3MDM.js → chunk-RLSZWDTB.js} +3 -3
  30. package/dist/{chunk-3M75HVIM.js → chunk-SBL4AYSB.js} +3 -3
  31. package/dist/{chunk-3H42U56X.js → chunk-SWYV7QXX.js} +2 -2
  32. package/dist/{chunk-6PVWDTEM.js → chunk-SXYFATQN.js} +12 -12
  33. package/dist/{chunk-AO6DXJUK.js → chunk-TPRRWOHZ.js} +3 -3
  34. package/dist/{chunk-MED6GNV3.js → chunk-U5O4BWKI.js} +9 -9
  35. package/dist/{chunk-YOVUXONB.js → chunk-UE3MLDL2.js} +4 -4
  36. package/dist/{chunk-DGXW2ZFY.js → chunk-VFZF7LVY.js} +3 -3
  37. package/dist/{chunk-LZPRLHUE.js → chunk-WDN4HAN7.js} +6 -6
  38. package/dist/{chunk-EERGAAGE.js → chunk-X6KXPRKI.js} +4 -4
  39. package/dist/{chunk-A2NA377T.js → chunk-YC4CLTQE.js} +6 -6
  40. package/dist/{chunk-SX57ZIGM.js → chunk-Z56AUTER.js} +4 -4
  41. package/dist/{chunk-B7YTQVAF.js → chunk-ZPFM2VHZ.js} +4 -4
  42. package/dist/{chunk-ZQZHDYHQ.js → chunk-ZYXQUU2P.js} +7 -7
  43. package/dist/commands/build/marketplace.js +7 -7
  44. package/dist/commands/build/plugins.js +7 -7
  45. package/dist/commands/compile.js +10 -10
  46. package/dist/commands/doctor.js +10 -10
  47. package/dist/commands/edit.js +37 -37
  48. package/dist/commands/edit.js.map +1 -1
  49. package/dist/commands/eject.js +10 -10
  50. package/dist/commands/init.js +36 -36
  51. package/dist/commands/list.js +8 -8
  52. package/dist/commands/new/marketplace.js +7 -7
  53. package/dist/commands/search.js +10 -10
  54. package/dist/commands/share.js +8 -8
  55. package/dist/commands/uninstall.js +11 -11
  56. package/dist/commands/update.js +6 -6
  57. package/dist/components/common/removal-plan-confirm.js +2 -2
  58. package/dist/components/common/select-list.js +2 -2
  59. package/dist/components/wizard/category-grid.js +4 -4
  60. package/dist/components/wizard/checkbox-grid.js +4 -4
  61. package/dist/components/wizard/domain-selection.js +9 -9
  62. package/dist/components/wizard/run-wizard-session.js +26 -26
  63. package/dist/components/wizard/scroll-affordance.js +2 -2
  64. package/dist/components/wizard/skill-agent-summary.js +5 -5
  65. package/dist/components/wizard/source-grid.js +5 -5
  66. package/dist/components/wizard/stack-selection.js +7 -7
  67. package/dist/components/wizard/step-agents.js +8 -8
  68. package/dist/components/wizard/step-build.js +7 -7
  69. package/dist/components/wizard/step-confirm.js +9 -9
  70. package/dist/components/wizard/step-sources.js +8 -8
  71. package/dist/components/wizard/step-stack.js +8 -8
  72. package/dist/components/wizard/summary-panel.js +8 -8
  73. package/dist/components/wizard/toast.js +2 -2
  74. package/dist/components/wizard/wizard-layout.js +12 -12
  75. package/dist/components/wizard/wizard-tabs.js +2 -2
  76. package/dist/components/wizard/wizard.js +25 -25
  77. package/dist/hooks/init.js +36 -36
  78. package/dist/load-agent-defs-TWDFYM5S.js +13 -0
  79. package/dist/recompile-project-agents-YIGIVMCQ.js +17 -0
  80. package/dist/{source-loader-TSF5VS6V.js → source-loader-7T754EZC.js} +4 -4
  81. package/dist/stores/wizard-store.js +4 -4
  82. package/package.json +1 -1
  83. package/dist/chunk-EY7Z34Y4.js.map +0 -1
  84. package/dist/load-agent-defs-LDSND43G.js +0 -13
  85. package/dist/recompile-project-agents-GQLODH24.js +0 -17
  86. /package/dist/{chunk-QKMT6OOP.js.map → chunk-2P3MKX5Q.js.map} +0 -0
  87. /package/dist/{chunk-DTCUZL7S.js.map → chunk-3JDVBHWO.js.map} +0 -0
  88. /package/dist/{chunk-BLGETWYI.js.map → chunk-3QBOVV6A.js.map} +0 -0
  89. /package/dist/{chunk-5MML3K36.js.map → chunk-4NAWM4OQ.js.map} +0 -0
  90. /package/dist/{chunk-UMYEY6BA.js.map → chunk-77YZFVQD.js.map} +0 -0
  91. /package/dist/{chunk-YSQ76LWG.js.map → chunk-7WKNPDN2.js.map} +0 -0
  92. /package/dist/{chunk-F6LS2BQD.js.map → chunk-7ZFEZN4Y.js.map} +0 -0
  93. /package/dist/{chunk-N6CILY5A.js.map → chunk-ADSIYZGS.js.map} +0 -0
  94. /package/dist/{chunk-ADDYIMWN.js.map → chunk-C2K7Q7HO.js.map} +0 -0
  95. /package/dist/{chunk-EEFTUZHZ.js.map → chunk-EN5MEPAS.js.map} +0 -0
  96. /package/dist/{chunk-T4RVCFWN.js.map → chunk-ESI3JYOQ.js.map} +0 -0
  97. /package/dist/{chunk-2MPXMJ2O.js.map → chunk-F5JTW3HZ.js.map} +0 -0
  98. /package/dist/{chunk-BRHU6J3C.js.map → chunk-FL2CJ5T5.js.map} +0 -0
  99. /package/dist/{chunk-3TM4FHTG.js.map → chunk-FXL63LDL.js.map} +0 -0
  100. /package/dist/{chunk-EQSMVZGS.js.map → chunk-GUFRQJAE.js.map} +0 -0
  101. /package/dist/{chunk-5DWDT6GM.js.map → chunk-IAN7QDBR.js.map} +0 -0
  102. /package/dist/{chunk-XA4SWA2Z.js.map → chunk-JEJJHRZA.js.map} +0 -0
  103. /package/dist/{chunk-264XDRU7.js.map → chunk-MI7LKLD7.js.map} +0 -0
  104. /package/dist/{chunk-HB3YIAFD.js.map → chunk-MSUTHS2V.js.map} +0 -0
  105. /package/dist/{chunk-ODUACQLV.js.map → chunk-Q4KCUR2T.js.map} +0 -0
  106. /package/dist/{chunk-WVCF7KFV.js.map → chunk-QG4NRKZD.js.map} +0 -0
  107. /package/dist/{chunk-W2RXRWDB.js.map → chunk-QM3ZNOWJ.js.map} +0 -0
  108. /package/dist/{chunk-B3YSTZZC.js.map → chunk-QTLYSVYE.js.map} +0 -0
  109. /package/dist/{chunk-DHRW3MDM.js.map → chunk-RLSZWDTB.js.map} +0 -0
  110. /package/dist/{chunk-3M75HVIM.js.map → chunk-SBL4AYSB.js.map} +0 -0
  111. /package/dist/{chunk-3H42U56X.js.map → chunk-SWYV7QXX.js.map} +0 -0
  112. /package/dist/{chunk-6PVWDTEM.js.map → chunk-SXYFATQN.js.map} +0 -0
  113. /package/dist/{chunk-AO6DXJUK.js.map → chunk-TPRRWOHZ.js.map} +0 -0
  114. /package/dist/{chunk-MED6GNV3.js.map → chunk-U5O4BWKI.js.map} +0 -0
  115. /package/dist/{chunk-YOVUXONB.js.map → chunk-UE3MLDL2.js.map} +0 -0
  116. /package/dist/{chunk-DGXW2ZFY.js.map → chunk-VFZF7LVY.js.map} +0 -0
  117. /package/dist/{chunk-LZPRLHUE.js.map → chunk-WDN4HAN7.js.map} +0 -0
  118. /package/dist/{chunk-EERGAAGE.js.map → chunk-X6KXPRKI.js.map} +0 -0
  119. /package/dist/{chunk-A2NA377T.js.map → chunk-YC4CLTQE.js.map} +0 -0
  120. /package/dist/{chunk-SX57ZIGM.js.map → chunk-Z56AUTER.js.map} +0 -0
  121. /package/dist/{chunk-B7YTQVAF.js.map → chunk-ZPFM2VHZ.js.map} +0 -0
  122. /package/dist/{chunk-ZQZHDYHQ.js.map → chunk-ZYXQUU2P.js.map} +0 -0
  123. /package/dist/{load-agent-defs-LDSND43G.js.map → load-agent-defs-TWDFYM5S.js.map} +0 -0
  124. /package/dist/{recompile-project-agents-GQLODH24.js.map → recompile-project-agents-YIGIVMCQ.js.map} +0 -0
  125. /package/dist/{source-loader-TSF5VS6V.js.map → source-loader-7T754EZC.js.map} +0 -0
@@ -1,16 +1,16 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  StepStack
4
- } from "../../chunk-3H42U56X.js";
5
- import "../../chunk-WVCF7KFV.js";
4
+ } from "../../chunk-SWYV7QXX.js";
5
+ import "../../chunk-QG4NRKZD.js";
6
6
  import "../../chunk-TSIU7DME.js";
7
7
  import "../../chunk-XVAQG2CV.js";
8
- import "../../chunk-BRHU6J3C.js";
9
- import "../../chunk-264XDRU7.js";
10
- import "../../chunk-YOVUXONB.js";
11
- import "../../chunk-YSQ76LWG.js";
12
- import "../../chunk-BLGETWYI.js";
13
- import "../../chunk-AMZO4YJK.js";
8
+ import "../../chunk-FL2CJ5T5.js";
9
+ import "../../chunk-MI7LKLD7.js";
10
+ import "../../chunk-UE3MLDL2.js";
11
+ import "../../chunk-7WKNPDN2.js";
12
+ import "../../chunk-3QBOVV6A.js";
13
+ import "../../chunk-IV42Z63R.js";
14
14
  import "../../chunk-OI2H6M5I.js";
15
15
  export {
16
16
  StepStack
@@ -1,15 +1,15 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  SummaryPanel
4
- } from "../../chunk-ODUACQLV.js";
5
- import "../../chunk-W2RXRWDB.js";
6
- import "../../chunk-3M75HVIM.js";
4
+ } from "../../chunk-Q4KCUR2T.js";
5
+ import "../../chunk-QM3ZNOWJ.js";
6
+ import "../../chunk-SBL4AYSB.js";
7
7
  import "../../chunk-TSIU7DME.js";
8
- import "../../chunk-SX57ZIGM.js";
9
- import "../../chunk-YOVUXONB.js";
10
- import "../../chunk-YSQ76LWG.js";
11
- import "../../chunk-BLGETWYI.js";
12
- import "../../chunk-AMZO4YJK.js";
8
+ import "../../chunk-Z56AUTER.js";
9
+ import "../../chunk-UE3MLDL2.js";
10
+ import "../../chunk-7WKNPDN2.js";
11
+ import "../../chunk-3QBOVV6A.js";
12
+ import "../../chunk-IV42Z63R.js";
13
13
  import "../../chunk-OI2H6M5I.js";
14
14
  export {
15
15
  SummaryPanel
@@ -1,8 +1,8 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  Toast
4
- } from "../../chunk-HB3YIAFD.js";
5
- import "../../chunk-AMZO4YJK.js";
4
+ } from "../../chunk-MSUTHS2V.js";
5
+ import "../../chunk-IV42Z63R.js";
6
6
  export {
7
7
  Toast
8
8
  };
@@ -1,20 +1,20 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  WizardLayout
4
- } from "../../chunk-EQSMVZGS.js";
5
- import "../../chunk-ODUACQLV.js";
6
- import "../../chunk-HB3YIAFD.js";
7
- import "../../chunk-5MML3K36.js";
8
- import "../../chunk-W2RXRWDB.js";
9
- import "../../chunk-3M75HVIM.js";
4
+ } from "../../chunk-GUFRQJAE.js";
5
+ import "../../chunk-Q4KCUR2T.js";
6
+ import "../../chunk-MSUTHS2V.js";
7
+ import "../../chunk-4NAWM4OQ.js";
8
+ import "../../chunk-QM3ZNOWJ.js";
9
+ import "../../chunk-SBL4AYSB.js";
10
10
  import "../../chunk-TSIU7DME.js";
11
11
  import "../../chunk-WTJ3AY33.js";
12
- import "../../chunk-SX57ZIGM.js";
13
- import "../../chunk-YOVUXONB.js";
14
- import "../../chunk-UMYEY6BA.js";
15
- import "../../chunk-YSQ76LWG.js";
16
- import "../../chunk-BLGETWYI.js";
17
- import "../../chunk-AMZO4YJK.js";
12
+ import "../../chunk-Z56AUTER.js";
13
+ import "../../chunk-UE3MLDL2.js";
14
+ import "../../chunk-77YZFVQD.js";
15
+ import "../../chunk-7WKNPDN2.js";
16
+ import "../../chunk-3QBOVV6A.js";
17
+ import "../../chunk-IV42Z63R.js";
18
18
  import "../../chunk-OI2H6M5I.js";
19
19
  export {
20
20
  WizardLayout
@@ -2,8 +2,8 @@
2
2
  import {
3
3
  WizardTabs,
4
4
  wizardTabsFor
5
- } from "../../chunk-5MML3K36.js";
6
- import "../../chunk-AMZO4YJK.js";
5
+ } from "../../chunk-4NAWM4OQ.js";
6
+ import "../../chunk-IV42Z63R.js";
7
7
  export {
8
8
  WizardTabs,
9
9
  wizardTabsFor
@@ -2,35 +2,35 @@
2
2
  import {
3
3
  Wizard,
4
4
  resolveSelectedSkillIds
5
- } from "../../chunk-6PVWDTEM.js";
6
- import "../../chunk-QKMT6OOP.js";
7
- import "../../chunk-DHRW3MDM.js";
8
- import "../../chunk-3H42U56X.js";
9
- import "../../chunk-EQSMVZGS.js";
10
- import "../../chunk-ODUACQLV.js";
11
- import "../../chunk-HB3YIAFD.js";
12
- import "../../chunk-5MML3K36.js";
13
- import "../../chunk-LZPRLHUE.js";
14
- import "../../chunk-EEFTUZHZ.js";
15
- import "../../chunk-W2RXRWDB.js";
16
- import "../../chunk-WVCF7KFV.js";
17
- import "../../chunk-ZQZHDYHQ.js";
18
- import "../../chunk-3M75HVIM.js";
19
- import "../../chunk-T4RVCFWN.js";
5
+ } from "../../chunk-SXYFATQN.js";
6
+ import "../../chunk-2P3MKX5Q.js";
7
+ import "../../chunk-RLSZWDTB.js";
8
+ import "../../chunk-SWYV7QXX.js";
9
+ import "../../chunk-GUFRQJAE.js";
10
+ import "../../chunk-Q4KCUR2T.js";
11
+ import "../../chunk-MSUTHS2V.js";
12
+ import "../../chunk-4NAWM4OQ.js";
13
+ import "../../chunk-WDN4HAN7.js";
14
+ import "../../chunk-EN5MEPAS.js";
15
+ import "../../chunk-QM3ZNOWJ.js";
16
+ import "../../chunk-QG4NRKZD.js";
17
+ import "../../chunk-ZYXQUU2P.js";
18
+ import "../../chunk-SBL4AYSB.js";
19
+ import "../../chunk-ESI3JYOQ.js";
20
20
  import "../../chunk-TSIU7DME.js";
21
21
  import "../../chunk-XVAQG2CV.js";
22
- import "../../chunk-EERGAAGE.js";
22
+ import "../../chunk-X6KXPRKI.js";
23
23
  import "../../chunk-J27W6TXS.js";
24
- import "../../chunk-DGXW2ZFY.js";
25
- import "../../chunk-BRHU6J3C.js";
24
+ import "../../chunk-VFZF7LVY.js";
25
+ import "../../chunk-FL2CJ5T5.js";
26
26
  import "../../chunk-WTJ3AY33.js";
27
- import "../../chunk-264XDRU7.js";
28
- import "../../chunk-SX57ZIGM.js";
29
- import "../../chunk-YOVUXONB.js";
30
- import "../../chunk-UMYEY6BA.js";
31
- import "../../chunk-YSQ76LWG.js";
32
- import "../../chunk-BLGETWYI.js";
33
- import "../../chunk-AMZO4YJK.js";
27
+ import "../../chunk-MI7LKLD7.js";
28
+ import "../../chunk-Z56AUTER.js";
29
+ import "../../chunk-UE3MLDL2.js";
30
+ import "../../chunk-77YZFVQD.js";
31
+ import "../../chunk-7WKNPDN2.js";
32
+ import "../../chunk-3QBOVV6A.js";
33
+ import "../../chunk-IV42Z63R.js";
34
34
  import "../../chunk-OI2H6M5I.js";
35
35
  export {
36
36
  Wizard,
@@ -1,51 +1,51 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  runDashboardFlow
4
- } from "../chunk-EY7Z34Y4.js";
5
- import "../chunk-DTCUZL7S.js";
6
- import "../chunk-N6CILY5A.js";
7
- import "../chunk-B7YTQVAF.js";
8
- import "../chunk-6PVWDTEM.js";
9
- import "../chunk-QKMT6OOP.js";
10
- import "../chunk-DHRW3MDM.js";
11
- import "../chunk-3H42U56X.js";
12
- import "../chunk-EQSMVZGS.js";
13
- import "../chunk-ODUACQLV.js";
14
- import "../chunk-HB3YIAFD.js";
15
- import "../chunk-5MML3K36.js";
16
- import "../chunk-LZPRLHUE.js";
17
- import "../chunk-EEFTUZHZ.js";
18
- import "../chunk-W2RXRWDB.js";
19
- import "../chunk-WVCF7KFV.js";
20
- import "../chunk-ZQZHDYHQ.js";
21
- import "../chunk-3M75HVIM.js";
22
- import "../chunk-T4RVCFWN.js";
4
+ } from "../chunk-DOQUAWL4.js";
5
+ import "../chunk-3JDVBHWO.js";
6
+ import "../chunk-ADSIYZGS.js";
7
+ import "../chunk-ZPFM2VHZ.js";
8
+ import "../chunk-SXYFATQN.js";
9
+ import "../chunk-2P3MKX5Q.js";
10
+ import "../chunk-RLSZWDTB.js";
11
+ import "../chunk-SWYV7QXX.js";
12
+ import "../chunk-GUFRQJAE.js";
13
+ import "../chunk-Q4KCUR2T.js";
14
+ import "../chunk-MSUTHS2V.js";
15
+ import "../chunk-4NAWM4OQ.js";
16
+ import "../chunk-WDN4HAN7.js";
17
+ import "../chunk-EN5MEPAS.js";
18
+ import "../chunk-QM3ZNOWJ.js";
19
+ import "../chunk-QG4NRKZD.js";
20
+ import "../chunk-ZYXQUU2P.js";
21
+ import "../chunk-SBL4AYSB.js";
22
+ import "../chunk-ESI3JYOQ.js";
23
23
  import "../chunk-TSIU7DME.js";
24
24
  import "../chunk-XVAQG2CV.js";
25
25
  import "../chunk-ZBPEFQ4G.js";
26
- import "../chunk-EERGAAGE.js";
26
+ import "../chunk-X6KXPRKI.js";
27
27
  import "../chunk-J27W6TXS.js";
28
- import "../chunk-DGXW2ZFY.js";
29
- import "../chunk-BRHU6J3C.js";
28
+ import "../chunk-VFZF7LVY.js";
29
+ import "../chunk-FL2CJ5T5.js";
30
30
  import "../chunk-WTJ3AY33.js";
31
- import "../chunk-264XDRU7.js";
32
- import "../chunk-XA4SWA2Z.js";
31
+ import "../chunk-MI7LKLD7.js";
32
+ import "../chunk-JEJJHRZA.js";
33
33
  import "../chunk-JCPANDNR.js";
34
- import "../chunk-MED6GNV3.js";
35
- import "../chunk-A2NA377T.js";
36
- import "../chunk-B3YSTZZC.js";
37
- import "../chunk-5DWDT6GM.js";
38
- import "../chunk-SX57ZIGM.js";
34
+ import "../chunk-U5O4BWKI.js";
35
+ import "../chunk-YC4CLTQE.js";
36
+ import "../chunk-QTLYSVYE.js";
37
+ import "../chunk-IAN7QDBR.js";
38
+ import "../chunk-Z56AUTER.js";
39
39
  import "../chunk-JFLVEFFP.js";
40
- import "../chunk-YOVUXONB.js";
40
+ import "../chunk-UE3MLDL2.js";
41
41
  import {
42
42
  EXIT_CODES
43
- } from "../chunk-2MPXMJ2O.js";
44
- import "../chunk-ADDYIMWN.js";
45
- import "../chunk-UMYEY6BA.js";
46
- import "../chunk-YSQ76LWG.js";
47
- import "../chunk-BLGETWYI.js";
48
- import "../chunk-AMZO4YJK.js";
43
+ } from "../chunk-F5JTW3HZ.js";
44
+ import "../chunk-C2K7Q7HO.js";
45
+ import "../chunk-77YZFVQD.js";
46
+ import "../chunk-7WKNPDN2.js";
47
+ import "../chunk-3QBOVV6A.js";
48
+ import "../chunk-IV42Z63R.js";
49
49
  import "../chunk-OI2H6M5I.js";
50
50
 
51
51
  // src/cli/hooks/init.ts
@@ -0,0 +1,13 @@
1
+ #!/usr/bin/env node
2
+ import {
3
+ loadAgentDefs
4
+ } from "./chunk-QTLYSVYE.js";
5
+ import "./chunk-IAN7QDBR.js";
6
+ import "./chunk-7WKNPDN2.js";
7
+ import "./chunk-3QBOVV6A.js";
8
+ import "./chunk-IV42Z63R.js";
9
+ import "./chunk-OI2H6M5I.js";
10
+ export {
11
+ loadAgentDefs
12
+ };
13
+ //# sourceMappingURL=load-agent-defs-TWDFYM5S.js.map
@@ -0,0 +1,17 @@
1
+ #!/usr/bin/env node
2
+ import {
3
+ recompilePropagatedProjectAgents,
4
+ recompileRegisteredProjectAgents
5
+ } from "./chunk-YC4CLTQE.js";
6
+ import "./chunk-QTLYSVYE.js";
7
+ import "./chunk-IAN7QDBR.js";
8
+ import "./chunk-C2K7Q7HO.js";
9
+ import "./chunk-7WKNPDN2.js";
10
+ import "./chunk-3QBOVV6A.js";
11
+ import "./chunk-IV42Z63R.js";
12
+ import "./chunk-OI2H6M5I.js";
13
+ export {
14
+ recompilePropagatedProjectAgents,
15
+ recompileRegisteredProjectAgents
16
+ };
17
+ //# sourceMappingURL=recompile-project-agents-YIGIVMCQ.js.map
@@ -4,9 +4,9 @@ import {
4
4
  loadMarketplaceMatrix,
5
5
  loadSkillsMatrixFromSource,
6
6
  mergeLocalSkillsIntoMatrix
7
- } from "./chunk-YSQ76LWG.js";
8
- import "./chunk-BLGETWYI.js";
9
- import "./chunk-AMZO4YJK.js";
7
+ } from "./chunk-7WKNPDN2.js";
8
+ import "./chunk-3QBOVV6A.js";
9
+ import "./chunk-IV42Z63R.js";
10
10
  import "./chunk-OI2H6M5I.js";
11
11
  export {
12
12
  convertStackToResolvedStack,
@@ -14,4 +14,4 @@ export {
14
14
  loadSkillsMatrixFromSource,
15
15
  mergeLocalSkillsIntoMatrix
16
16
  };
17
- //# sourceMappingURL=source-loader-TSF5VS6V.js.map
17
+ //# sourceMappingURL=source-loader-7T754EZC.js.map
@@ -7,10 +7,10 @@ import {
7
7
  hydrateWizardStore,
8
8
  showWarningsAsToast,
9
9
  useWizardStore
10
- } from "../chunk-YOVUXONB.js";
11
- import "../chunk-YSQ76LWG.js";
12
- import "../chunk-BLGETWYI.js";
13
- import "../chunk-AMZO4YJK.js";
10
+ } from "../chunk-UE3MLDL2.js";
11
+ import "../chunk-7WKNPDN2.js";
12
+ import "../chunk-3QBOVV6A.js";
13
+ import "../chunk-IV42Z63R.js";
14
14
  import "../chunk-OI2H6M5I.js";
15
15
  export {
16
16
  DOMAIN_AGENTS,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agents-inc",
3
- "version": "0.161.0",
3
+ "version": "0.161.1",
4
4
  "description": "CLI for managing Agents Inc. skills, stacks, and agents for Claude Code",
5
5
  "//generate": "The write path for all three generators, in dependency order: generate:types reads the skills marketplace and writes src/cli/types/generated/, then generate:schemas copies SKILL_SLUGS and CATEGORIES out of it into metadata.schema.json's enums, then generate:matrix vendors the same directory into packages/matrix. A marketplace change drifts all three, so every caller runs all three — .github/workflows/regenerate-catalog.yml spells the sequence out step by step and could call this instead. It replaces the write path only: the :check variants stay separate because CI deliberately runs different subsets of them in different jobs.",
6
6
  "//no-shared-vitest-config": "A three-project suite — unit, integration and commands, each with its own include and the retry that separates them — behind one root config that also carries vitest.setup.ts, disableConsoleIntercept for @oclif/test and ink-testing-library, and its own timeouts. @workspace/vitest-config is a single-project node config that turns globals off, which this suite needs on, so merging it in would contradict as much as it contributed. e2e/vitest.config.ts stands under the same decision. Read by scripts/check-shared-vitest-config.ts in packages/cli.",
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/cli/commands/init.tsx","../src/cli/lib/permission-checker.tsx"],"sourcesContent":["import React from \"react\";\n\nimport { Flags, type Interfaces } from \"@oclif/core\";\nimport { Box, Text, useApp } from \"ink\";\nimport { render } from \"../components/render.js\";\n\nimport { BaseCommand } from \"../base-command.js\";\nimport { type WizardResultV2 } from \"../components/wizard/wizard.js\";\nimport { runWizardSession } from \"../components/wizard/run-wizard-session.js\";\nimport { useTerminalDimensions } from \"../components/hooks/use-terminal-dimensions.js\";\nimport { type SourceLoadResult } from \"../lib/loading/index.js\";\nimport {\n loadSource,\n loadAgentDefs,\n copyLocalSkills,\n writeProjectConfig,\n compileAgentsAllScopes,\n type CompilationResult,\n type SkillCopyResult,\n discoverInstalledSkills,\n} from \"../lib/operations/index.js\";\nimport { fetchSeedConfig } from \"../lib/seed/fetch-seed.js\";\nimport {\n registerExternalSkills,\n writeExternalSkills,\n type ExternalSkillInstall,\n} from \"../lib/seed/external-skills.js\";\nimport { seedToWizardResult, type SeedMapping } from \"../lib/seed/seed-to-wizard.js\";\nimport { getInstallationInfo } from \"../lib/plugins/plugin-info.js\";\nimport { loadProjectConfig } from \"../lib/configuration/project-config.js\";\nimport { resolveBranding } from \"../lib/configuration/config.js\";\nimport {\n type InstallMode,\n detectInstallation,\n detectGlobalInstallation,\n detectProjectInstallation,\n deriveInstallMode,\n resolveInstallPaths,\n buildAgentScopeMap,\n isHomeDirectory,\n INSTALL_MODE_LABELS,\n INSTALL_MODE_DESCRIPTIONS,\n} from \"../lib/installation/index.js\";\nimport { checkPermissions } from \"../lib/permission-checker.js\";\nimport {\n ASCII_LOGO,\n CLAUDE_SRC_DIR,\n CLI_INVOKE_COMMAND,\n DEFAULT_BRANDING,\n EDITOR_URL,\n EDIT_PROJECT_SETUP_FLAG,\n EJECT_SOURCE,\n STANDARD_FILES,\n editorConfigUrl,\n} from \"../consts.js\";\nimport { clearTerminalScreen } from \"../utils/terminal.js\";\nimport { SelectList, type SelectListItem } from \"../components/common/select-list.js\";\nimport { promptValue } from \"../components/common/prompt-confirm.js\";\nimport { Spinner } from \"../components/common/spinner.js\";\nimport { getErrorMessage } from \"../utils/errors.js\";\nimport { EXIT_CODES } from \"../lib/exit-codes.js\";\nimport { openUrl } from \"../utils/open-url.js\";\nimport type { AgentName, MergedSkillsMatrix, SkillScope } from \"../types/index.js\";\nimport { type StartupMessage } from \"../utils/logger.js\";\nimport {\n INCOMPLETE_WORK_RECOVERY,\n STATUS_MESSAGES,\n agentsNotCompiled,\n carriedSkillsWritten,\n globalScopedAgentsHint,\n initSucceeded,\n sharedConfigExistingInstall,\n sharedConfigGlobalInstall,\n skippedUnknownAgents,\n skippedUnknownSkills,\n} from \"../utils/messages.js\";\nimport type { SeedPayload } from \"@workspace/matrix/seed\";\n\nconst DASHBOARD_OPTIONS = [\n { label: \"Edit\", value: \"edit\" },\n { label: \"Compile\", value: \"compile\" },\n { label: \"Doctor\", value: \"doctor\" },\n { label: \"List\", value: \"list\" },\n] as const satisfies readonly SelectListItem<string>[];\n\n/** The commands offered by the project dashboard (single source: DASHBOARD_OPTIONS). */\nexport type DashboardCommand = (typeof DASHBOARD_OPTIONS)[number][\"value\"];\n\n/**\n * The dashboard's title: {@link ASCII_LOGO} for an installation resting on the shipped branding,\n * and the configured name in its place for one that white-labels it.\n *\n * **The logo gives way rather than sitting above the name, because it spells the shipped name.**\n * `branding.name` replaces a heading everywhere else it is read — every configured leg of\n * `commands/branding-name-reaches-headings` asserts {@link DEFAULT_BRANDING.NAME} is ABSENT — so\n * painting `AGENTS INC` in block capitals above `Northwind` would leave the vendor's name at the\n * most prominent surface the product has, which is the one thing white-labelling is for.\n *\n * The default path is untouched by construction: {@link resolveBranding} answers\n * {@link DEFAULT_BRANDING.NAME} for a configuration with no `branding` key, so an unbranded\n * install takes the logo arm. A configuration naming the shipped name explicitly takes it too —\n * it asked for the shipped name and gets the shipped presentation of it.\n */\nconst DashboardTitle: React.FC<{ name: string }> = ({ name }) =>\n name === DEFAULT_BRANDING.NAME ? <Text>{ASCII_LOGO}</Text> : <Text bold>{name}</Text>;\n\ntype DashboardProps = {\n /** Everything the screen paints, exactly as {@link formatDashboardText} is handed it. */\n data: DashboardData;\n onSelect: (command: DashboardCommand) => void;\n onCancel: () => void;\n};\n\nexport const Dashboard: React.FC<DashboardProps> = ({ data, onSelect, onCancel }) => {\n const { exit } = useApp();\n const { rows: terminalHeight } = useTerminalDimensions();\n\n return (\n <Box flexDirection=\"column\" height={terminalHeight}>\n <Box marginBottom={1}>\n <DashboardTitle name={data.name} />\n </Box>\n <Box marginBottom={1}>\n <Text>{dashboardCountLines(data).join(\"\\n\")}</Text>\n </Box>\n <SelectList\n items={DASHBOARD_OPTIONS}\n onSelect={(command) => {\n onSelect(command);\n exit();\n }}\n onCancel={() => {\n onCancel();\n exit();\n }}\n />\n </Box>\n );\n};\n\n/**\n * What this installation is, as the lines both dashboards paint between the title and the menu.\n *\n * **Shared because the two paths had diverged, not for reuse.** `showDashboard` branches on\n * `process.stdin.isTTY`, and only the text branch drew these — so the screen a person sits in\n * front of was less informative than the output they get by piping it, and no assertion could see\n * it, because each path was only ever compared against itself. One producer is what makes the two\n * unable to drift apart again.\n */\nexport function dashboardCountLines(data: DashboardData): string[] {\n const lines = [\n ` Skills: ${data.skillCount} installed`,\n ` Agents: ${data.agentCount} compiled`,\n ` Mode: ${INSTALL_MODE_LABELS[data.mode]}`,\n ];\n if (data.source) {\n lines.push(` Marketplace: ${data.source}`);\n }\n return lines;\n}\n\n/** Formats the dashboard summary as plain text lines (for non-interactive/test output). */\nexport function formatDashboardText(data: DashboardData): string {\n return [\n data.name,\n \"\",\n ...dashboardCountLines(data),\n \"\",\n ` [Edit] [Compile] [Doctor] [List]`,\n ].join(\"\\n\");\n}\n\n/**\n * Shows the project dashboard and returns the selected command (or null if cancelled).\n * In non-interactive environments (no TTY), prints the summary text and returns null.\n */\nexport async function showDashboard(\n projectDir: string,\n log?: (message: string) => void,\n): Promise<DashboardCommand | null> {\n const data = await getDashboardData(projectDir);\n\n // Non-interactive: print text summary and exit (CI, piped, tests)\n if (!process.stdin.isTTY) {\n const output = log ?? console.log;\n output(formatDashboardText(data));\n return null;\n }\n\n // First-wins resolution via promptValue; clearOnResolve repaints a clean\n // terminal before unmount (dashboard occupies the full height).\n const selectedCommand = await promptValue<DashboardCommand | null>(\n (resolve) => (\n <Dashboard\n data={data}\n onSelect={(command) => resolve(command)}\n onCancel={() => resolve(null)}\n />\n ),\n { onExit: null, clearOnResolve: true },\n );\n\n clearTerminalScreen();\n\n return selectedCommand;\n}\n\n/**\n * Why the dashboard is on screen.\n *\n * `\"init\"` — the user ran `cc init` in an already-installed directory. That is a request\n * to set this project up, so choosing Edit continues the setup: it must materialise the\n * project even if the wizard changes nothing.\n *\n * `\"standalone\"` — the bare `cc` dashboard. Edit is just an editor there; a pass with no\n * changes is an inspection and must leave the filesystem untouched.\n */\nexport type DashboardOrigin = \"init\" | \"standalone\";\n\n/** The extra argv a dashboard selection needs to carry its origin into the command. */\nfunction dashboardCommandArgv(command: DashboardCommand, origin: DashboardOrigin): string[] {\n if (command !== \"edit\" || origin !== \"init\") return [];\n return [`--${EDIT_PROJECT_SETUP_FLAG}`];\n}\n\n/**\n * Shared dashboard entry: when the project is already initialized, shows the\n * dashboard and runs the chosen command. Returns true when the project was\n * initialized (dashboard shown), false otherwise. Never exits the process —\n * callers decide (the init hook exits SUCCESS at its own call site).\n */\nexport async function runDashboardFlow(\n projectDir: string,\n config: Interfaces.Config,\n origin: DashboardOrigin,\n log?: (message: string) => void,\n): Promise<boolean> {\n const installation = await detectInstallation(projectDir);\n if (!installation) return false;\n\n const selectedCommand = await showDashboard(projectDir, log);\n if (selectedCommand) {\n await config.runCommand(selectedCommand, dashboardCommandArgv(selectedCommand, origin));\n }\n return true;\n}\n\n/**\n * What `init` decided to install, and the little each producer knows that the shared spine does\n * not. Keeping these on the value rather than branching on a flag downstream is what stops the\n * two paths growing separate copies of the install sequence.\n */\n/**\n * The marketplace this run was pointed at, as oclif hands it over.\n *\n * `marketplace` is a required key holding `string | undefined` rather than\n * `marketplace?: string` because that is what oclif produces: a non-required flag still gets\n * its key written on the parse result, set to `undefined` when it was not passed. Under\n * `exactOptionalPropertyTypes` the two are different types, and `?` would be describing a\n * producer that never omits the key.\n */\ntype SourceFlags = { marketplace: string | undefined };\n\ntype Selection = {\n result: WizardResultV2;\n sourceResult: SourceLoadResult;\n /**\n * The marketplace this selection was actually loaded from, which the shared spine records in\n * the written config. Carried on the value because a shared id may name one the command line\n * did not, and the install has to record where its skills really came from either way.\n */\n sourceFlags: SourceFlags;\n /** Whether a person is at the terminal, so the permission notice may wait for them. */\n interactive: boolean;\n /** What to say if the selection turns out to be empty — only the producer knows why it is. */\n emptyMessage: string;\n};\n\n/**\n * Whether a decoded selection would write anything into the user's own ~/.claude. Skills and\n * sub-agents are asked separately because either can be globally scoped on its own: a shared\n * configuration can pin every skill to the project and still send a sub-agent home, and the\n * reverse.\n */\nfunction writesGlobalContent(result: WizardResultV2): boolean {\n return (\n result.skills.some((skill) => skill.scope === \"global\") ||\n result.agentConfigs.some((agent) => agent.scope === \"global\")\n );\n}\n\n/**\n * Which marketplace a shared configuration installs from.\n *\n * A payload names the one its skills were fetched from, because a skill id carries whose skill it\n * is and never where that repository lives — so without the ref the load walks on to the default\n * public catalogue and installs a different repository's skill under the same id.\n *\n * `--marketplace` still outranks it: naming one is an instruction about THIS install, while the\n * payload's ref is a record of where the sharer's came from. A payload that names none leaves the\n * flag undefined, which puts the load back on the rungs it has always walked.\n */\nfunction sharedConfigSourceFlags(flags: SourceFlags, payload: SeedPayload): SourceFlags {\n return { marketplace: flags.marketplace ?? payload.marketplace };\n}\n\nexport default class Init extends BaseCommand {\n /**\n * The name this run prints itself under, resolved once on {@link install}'s spine because the\n * closing line is printed several calls below it. Same shape and same reason as `uninstall`'s\n * field: a plain `string` holding the shipped default rather than an optional every reader\n * would have to answer for.\n */\n private brandingName: string = DEFAULT_BRANDING.NAME;\n\n static summary = `Initialize ${DEFAULT_BRANDING.NAME} in this project`;\n static description =\n \"Interactive wizard to set up skills and agents. Supports Plugin Mode (native install) and Eject Mode (copy to .claude/).\";\n\n static examples = [\n {\n description: \"Start the setup wizard\",\n command: \"<%= config.bin %> <%= command.id %>\",\n },\n {\n description: \"Initialize from a custom marketplace\",\n command: \"<%= config.bin %> <%= command.id %> --marketplace github:org/marketplace\",\n },\n ];\n\n static flags = {\n marketplace: Flags.string({\n char: \"m\",\n description: \"Skills marketplace path or URL\",\n required: false,\n }),\n from: Flags.string({\n description: \"Install a configuration shared from agentsinc.sh by its id, without the wizard\",\n helpValue: \"<id>\",\n }),\n ui: Flags.boolean({\n description:\n \"Open agentsinc.sh instead of the terminal — the id --from names, or the catalogue\",\n default: false,\n }),\n };\n\n /**\n * The command in two statements: do the work, then answer for it.\n *\n * {@link install} owns every path through the setup and returns however it likes; the exit\n * code is decided once, here, after the last of them. Deciding it inside would mean deciding\n * it at each of that method's endings, and an ending added later would inherit the exit-0\n * default silently — which is the defect this pair exists to close. `edit` is two statements\n * for the same reason.\n */\n async run(): Promise<void> {\n await this.install();\n this.exitIfWorkIncomplete();\n }\n\n /**\n * The editor, opened on whatever `--from` named — or on nothing when it named nothing.\n *\n * **One rule, both commands (owner ruling 2026-08-24): `--ui` opens the command's SUBJECT, and\n * `--from` is what supplies one.** `edit --ui` alone opens this installation because that is\n * `edit`'s subject; `init --ui` alone opens the catalogue because a fresh directory has none.\n * Given an id, either opens that id — which is what makes a shared configuration something a\n * recipient can look at rather than only apply blind.\n *\n * No publish happens here and none is needed. `edit --ui` mints an id because an installation\n * is not a configuration the store holds yet; an id already IS one, so this is\n * `editorConfigUrl` and nothing else — no network, no marketplace, no catalogue load.\n *\n * The link is PRINTED first and opened second. Over a pipe, in CI, and on a machine with no\n * desktop session there is no browser to be anybody's — a link nobody can copy is the whole\n * loss, so opening one is the convenience on top and a failure to open is a warning beside a\n * link that still works.\n */\n private async openEditor(id: string | undefined): Promise<void> {\n const url = id === undefined ? EDITOR_URL : editorConfigUrl(id);\n\n this.log(id === undefined ? `Build it at ${url}` : `Open it at ${url}`);\n if (id === undefined) {\n this.log(`Then install what it gives you with '${CLI_INVOKE_COMMAND} init --from <id>'.`);\n } else {\n this.log(`To install it here instead, run '${CLI_INVOKE_COMMAND} init --from ${id}'.`);\n }\n\n if (!process.stdin.isTTY) return;\n\n const opened = await openUrl(url);\n if (!opened.ok) this.warn(opened.error);\n }\n\n /**\n * One spine, two producers. The wizard and a shared id differ only in *where the selection\n * comes from* — everything after it (the empty guard, the install pipeline) is identical, so it\n * lives here once rather than being written twice and drifting.\n */\n private async install(): Promise<void> {\n const { flags } = await this.parse(Init);\n const projectDir = process.cwd();\n\n // Above `ensureConfigReadable`, and above every read below it, because this route touches no\n // installation at all. A config too broken to load must not stop someone reaching the other\n // front door, and an id somebody shared is not this directory's business either.\n if (flags.ui) return this.openEditor(flags.from);\n\n // Every route below reads the configs first — to show a dashboard, to refuse a shared id, or\n // to inline the global one. One that exists but cannot be read is recreated, not installed\n // over, and saying so here is what keeps the raw loader error off the screen.\n await this.ensureConfigReadable(projectDir);\n\n // Read once on the spine, because the closing line is printed several calls below it. The\n // degrade arm of `resolveBrandingName` cannot fire here: the line above has already refused\n // every config this would read.\n this.brandingName = await this.resolveBrandingName(projectDir);\n\n // Only a bare `init` is diverted to the dashboard. An id is an explicit instruction to install\n // *that* configuration, so it overrides an existing installation instead.\n if (!flags.from && (await this.showDashboardIfInitialized(projectDir))) return;\n\n const selection = flags.from\n ? await this.selectionFromSharedConfig(flags.from, flags, projectDir)\n : await this.selectionFromWizard(flags, projectDir);\n\n if (!selection) this.exit(EXIT_CODES.CANCELLED);\n\n // On the spine rather than in either producer: a broken constraint is a fact about the\n // selection, not about where it came from, and `edit` reports the same fact the same way\n // the moment the wizard hands it one. Both producers run the same validator over the same\n // matrix — the wizard over what was chosen, `--from` over what survived the decode — so\n // what is said here is this catalog's verdict either way.\n this.reportValidationErrors(selection.result.validation);\n\n // A sub-agent is installable on its own — it has front-matter, a prompt and a compiled file\n // without owning a single skill — so only a selection with neither is nothing to install.\n if (selection.result.skills.length === 0 && selection.result.selectedAgents.length === 0) {\n // The producer supplies the wording because only it knows why empty means what it means:\n // nothing chosen, versus a payload this catalog cannot install.\n this.error(selection.emptyMessage, { exit: EXIT_CODES.ERROR });\n }\n\n await this.handleInstallation(\n selection.result,\n selection.sourceResult,\n selection.sourceFlags,\n selection.interactive,\n );\n }\n\n /** The interactive producer: load the source, run the wizard, return what was chosen. */\n private async selectionFromWizard(\n flags: SourceFlags,\n projectDir: string,\n ): Promise<Selection | null> {\n // The blank global config is created by writeProjectConfig() once the\n // wizard succeeds, never before it renders: a cancelled init must leave no\n // artifact that the next run could mistake for an existing installation.\n const isGlobalRoot = isHomeDirectory(projectDir);\n\n const { sourceResult, startupMessages } = await this.loadWizardInputsUnderSpinner(flags);\n\n const result = await this.runWizard(startupMessages, isGlobalRoot);\n if (!result) return null;\n\n return {\n result,\n sourceResult,\n sourceFlags: flags,\n // A person is already at the terminal, so the permission notice can wait for them.\n interactive: true,\n emptyMessage: \"No skills selected\",\n };\n }\n\n /**\n * Everything the wizard needs, loaded behind a spinner that comes down whichever way the\n * await ends.\n *\n * The cleanup is a `finally` because a source that cannot be loaded refuses the run from\n * inside this await, and oclif would otherwise paint its error under an Ink tree still\n * repainting over it. Never a `catch`: the throw reaches oclif untouched, or both the\n * error rendering and the exit code change with it.\n */\n private async loadWizardInputsUnderSpinner(flags: SourceFlags): Promise<{\n sourceResult: SourceLoadResult;\n startupMessages: StartupMessage[];\n }> {\n const { unmount, clear: clearSpinner } = render(\n <Spinner label={STATUS_MESSAGES.LOADING_SKILLS} />,\n );\n try {\n return await this.loadSourceOrFail(flags);\n } finally {\n clearSpinner();\n unmount();\n }\n }\n\n /**\n * The `--from <id>` producer: fetch and map, no wizard. Nothing here may assume a TTY — running\n * headless is most of why the flag exists.\n *\n * It is also greenfield-only, which is what two of the three refusals are: a shared\n * configuration is installed whole, so anything it would have to install over has to be\n * uninstalled first. The third is about the LOCATION rather than what is already in it — a\n * global installation holds only global-scoped content, and this is the one producer that never\n * asked. All three fire before anything is written.\n */\n private async selectionFromSharedConfig(\n id: string,\n flags: SourceFlags,\n projectDir: string,\n ): Promise<Selection> {\n await this.refuseInstalledProject(projectDir);\n\n this.log(`Fetching configuration ${id}...`);\n const fetched = await fetchSeedConfig(id);\n if (!fetched.ok) {\n this.error(fetched.error, { exit: EXIT_CODES.ERROR });\n }\n\n const sourceFlags = sharedConfigSourceFlags(flags, fetched.payload);\n const { sourceResult } = await this.loadSourceOrFail(sourceFlags);\n // Before the decode, because a skill the payload CARRIES answers to no catalogue: unseated,\n // its id is skipped like any other unknown one and its content is never read.\n const carriedSkills = this.registerExternalSkillsOrFail(\n fetched.payload,\n sourceResult.matrix,\n projectDir,\n );\n const { result, skippedSkillIds, skippedAgentNames } = this.decodeSeedOrFail(\n fetched.payload,\n sourceResult.matrix,\n );\n\n // The location refusal is `BaseCommand`'s, because `edit --from` reaches the same\n // contradiction through the other door and an invariant enforced on one producer is enforced\n // nowhere. It runs before {@link refuseBlockingGlobalInstall} because it needs no filesystem\n // probe to answer: where the install root is, and what the payload said, is all of it.\n this.refuseProjectScopedContentAtHome(result, projectDir);\n await this.refuseBlockingGlobalInstall(result);\n\n // After the refusals and before the install: every refusal on this path fires with nothing\n // written, and the copy step that follows finds these skills already where they belong.\n await this.writeCarriedSkills(carriedSkills);\n\n // Named, not counted. \"3 skills were skipped\" cannot be acted on; the ids can, and this is the\n // one moment the user can tell whether what they shared is what they are getting. Worded once,\n // in `messages.ts`, because `edit --from` reports the same skips about the same wire.\n if (skippedSkillIds.length > 0) this.warn(skippedUnknownSkills(skippedSkillIds));\n if (skippedAgentNames.length > 0) this.warn(skippedUnknownAgents(skippedAgentNames));\n\n if (result.skills.length > 0) {\n this.log(\n `Installing ${result.skills.length} skill(s) across ${result.selectedAgents.length} sub-agent(s)\\n`,\n );\n }\n\n return {\n result,\n sourceResult,\n sourceFlags,\n interactive: false,\n emptyMessage: `Configuration '${id}' contains no skills this catalog can install.`,\n };\n }\n\n /**\n * Refuses to install a shared configuration into a directory that already has one.\n *\n * Project-scoped detection rather than `detectInstallation`, whose global fallback would refuse\n * every clean project on a machine with a global install — including for a payload that never\n * goes near it. Whether a global install is in the way is a question about the PAYLOAD, and\n * {@link refuseBlockingGlobalInstall} is where it is asked.\n *\n * This runs before the fetch: there is nothing to learn from the network about a directory that\n * is already spoken for.\n */\n private async refuseInstalledProject(projectDir: string): Promise<void> {\n const installation = await detectProjectInstallation(projectDir);\n if (!installation) return;\n\n this.error(sharedConfigExistingInstall(installation.configPath), { exit: EXIT_CODES.ERROR });\n }\n\n /**\n * The other half of the same rule. A payload carrying global-scoped skills or sub-agents writes\n * into the user's own ~/.claude, so an installation there is in its way even when this project\n * is spotless. A payload with nothing global cannot reach that far and is never refused for it.\n */\n private async refuseBlockingGlobalInstall(result: WizardResultV2): Promise<void> {\n if (!writesGlobalContent(result)) return;\n\n const globalInstallation = await detectGlobalInstallation();\n if (!globalInstallation) return;\n\n this.error(sharedConfigGlobalInstall(globalInstallation.configPath), {\n exit: EXIT_CODES.ERROR,\n });\n }\n\n /**\n * The decode refuses a payload the config model has nowhere to write (see `seedToWizardResult`).\n * That is a failure of this command, reported with this command's exit code rather than left to\n * surface as an unhandled throw.\n */\n private decodeSeedOrFail(payload: SeedPayload, matrix: MergedSkillsMatrix): SeedMapping {\n try {\n return seedToWizardResult(payload, matrix);\n } catch (error) {\n this.handleError(error);\n }\n }\n\n /**\n * Seats the catalogue entries the payload carries with it, or refuses the run.\n *\n * The refusal is `registerExternalSkills`' own — a carried skill asked for as a plugin, which\n * no marketplace serves — and is reported with this command's exit code for the same reason the\n * decode's is.\n */\n private registerExternalSkillsOrFail(\n payload: SeedPayload,\n matrix: MergedSkillsMatrix,\n projectDir: string,\n ): ExternalSkillInstall[] {\n try {\n return registerExternalSkills(payload, matrix, projectDir);\n } catch (error) {\n this.handleError(error);\n }\n }\n\n /** Writes the skills the payload brought with it, and says which they were. */\n private async writeCarriedSkills(carried: ExternalSkillInstall[]): Promise<void> {\n if (carried.length === 0) return;\n\n await writeExternalSkills(carried);\n // Named rather than counted, like the skips: these are the entries no catalogue can explain,\n // so this line is the only place the user learns what arrived with the configuration itself.\n this.log(carriedSkillsWritten(carried.map((skill) => skill.id)));\n }\n\n private async showDashboardIfInitialized(projectDir: string): Promise<boolean> {\n return runDashboardFlow(projectDir, this.config, \"init\", (msg) => this.log(msg));\n }\n\n private async loadSourceOrFail(\n flags: SourceFlags,\n ): Promise<{ sourceResult: SourceLoadResult; startupMessages: StartupMessage[] }> {\n try {\n const loaded = await loadSource({\n // The one load that may CHOOSE a marketplace rather than read the stored one.\n caller: \"init\",\n ...(flags.marketplace !== undefined && { sourceFlag: flags.marketplace }),\n projectDir: process.cwd(),\n captureStartupMessages: true,\n });\n return { sourceResult: loaded.sourceResult, startupMessages: loaded.startupMessages };\n } catch (error) {\n this.error(getErrorMessage(error), {\n exit: EXIT_CODES.ERROR,\n });\n }\n }\n\n /**\n * `init`'s wizard opens on an empty selection, and can open on nothing else: it is reached\n * only once {@link showDashboardIfInitialized} has found no installation, and that check\n * falls back to the home directory — so a global roster to hydrate from would have diverted\n * this run to the dashboard before the wizard was built. Hydrating a saved selection is\n * `edit`'s job, and `Edit.runEditWizard` is where it happens.\n */\n private async runWizard(\n startupMessages: StartupMessage[],\n isGlobalRoot: boolean,\n ): Promise<WizardResultV2 | null> {\n return runWizardSession({\n hydrate: { isEditingFromGlobalScope: isGlobalRoot },\n props: {\n version: this.config.version,\n logo: ASCII_LOGO,\n startupMessages,\n },\n onCancel: () => this.log(\"Setup cancelled\"),\n clearTerminal: () => this.clearTerminal(),\n });\n }\n\n private async handleInstallation(\n result: WizardResultV2,\n sourceResult: SourceLoadResult,\n flags: SourceFlags,\n /**\n * Whether the caller can hold the terminal. The permission notice is an Ink app with no exit\n * of its own, so `waitUntilExit()` only ever resolves because a person is there to end it —\n * which is fine after the wizard and a hang everywhere else. `--from` sets this false: it has\n * to complete over a pipe and in CI.\n */\n interactive = true,\n ): Promise<void> {\n const projectDir = process.cwd();\n const activeSkills = result.skills.filter((s) => !s.excluded);\n const installMode = deriveInstallMode(activeSkills);\n const ejectedSkills = activeSkills.filter((s) => s.origin === EJECT_SOURCE);\n const pluginSkills = activeSkills.filter((s) => s.origin !== EJECT_SOURCE);\n\n this.logInstallPlan(installMode, ejectedSkills, pluginSkills);\n\n // Resolve marketplace up front — BEFORE any filesystem mutation. If\n // resolution fails in mixed mode, the hard-error must fire before\n // `copyEjectSkillsStep` copies anything to `.claude/skills/`, otherwise\n // we leave an orphaned half-install with no config.ts to recognise it.\n const resolvedMarketplace =\n pluginSkills.length > 0\n ? await this.requireMarketplaceOrExit(\n sourceResult,\n \"install plugin skills\",\n (marketplace) => this.log(`Registering marketplace \"${marketplace}\"...`),\n )\n : null;\n\n const copyResult =\n installMode === \"eject\" || installMode === \"mixed\"\n ? await this.copyEjectSkillsStep(ejectedSkills, projectDir, sourceResult, installMode)\n : null;\n\n if (resolvedMarketplace !== null) {\n await this.installPluginSkillsReported(\n pluginSkills,\n resolvedMarketplace,\n projectDir,\n sourceResult.matrix,\n );\n }\n // The shared install reporter hard-errors on any failure, so reaching here with\n // a resolved marketplace means plugin mode fully succeeded.\n const pluginModeSucceeded = resolvedMarketplace !== null;\n\n try {\n const { configResult, compileResult, agentScopeMap } = await this.writeConfigAndCompile(\n result,\n sourceResult,\n flags,\n );\n this.reportSuccess(\n configResult,\n compileResult,\n agentScopeMap,\n installMode,\n pluginModeSucceeded,\n copyResult,\n );\n\n await this.showPermissionNotice(projectDir, interactive);\n } catch (error) {\n this.handleError(error);\n }\n }\n\n /**\n * The permission notice, where there is one to show. It is an Ink app with no exit of its own,\n * so `waitUntilExit()` only ever resolves because a person is there to end it — which is fine\n * after the wizard and a hang everywhere else. Without a terminal to hold, one frame is\n * rendered and let go: the notice is information, not a prompt, so there is nothing to answer\n * and nothing to wait for.\n */\n private async showPermissionNotice(projectDir: string, interactive: boolean): Promise<void> {\n const permissionWarning = await checkPermissions(projectDir);\n if (!permissionWarning) return;\n\n if (!interactive) {\n const { unmount } = render(permissionWarning);\n unmount();\n return;\n }\n\n const { waitUntilExit } = render(permissionWarning);\n await waitUntilExit();\n }\n\n private logInstallPlan(\n installMode: InstallMode,\n ejectedSkills: WizardResultV2[\"skills\"],\n pluginSkills: WizardResultV2[\"skills\"],\n ): void {\n this.log(\"\\n\");\n this.log(`Selected ${ejectedSkills.length + pluginSkills.length} skills`);\n this.log(\n `Install mode: ${\n installMode === \"mixed\"\n ? `${INSTALL_MODE_LABELS.mixed} (${ejectedSkills.length} eject, ${pluginSkills.length} plugin)`\n : INSTALL_MODE_DESCRIPTIONS[installMode]\n }`,\n );\n }\n\n private async copyEjectSkillsStep(\n localSkills: WizardResultV2[\"skills\"],\n projectDir: string,\n sourceResult: SourceLoadResult,\n installMode: InstallMode,\n ): Promise<SkillCopyResult> {\n this.log(\"Copying skills to local directory...\");\n const copyResult = await copyLocalSkills(localSkills, projectDir, sourceResult);\n\n if (installMode === \"mixed\") {\n if (copyResult.projectCopied.length > 0 && copyResult.globalCopied.length > 0) {\n this.log(\n `Copied ${copyResult.totalCopied} local skills (${copyResult.projectCopied.length} project, ${copyResult.globalCopied.length} global)`,\n );\n } else if (copyResult.globalCopied.length > 0) {\n this.log(`Copied ${copyResult.globalCopied.length} local skills to ~/.claude/skills/`);\n } else {\n this.log(`Copied ${copyResult.projectCopied.length} local skills to .claude/skills/`);\n }\n } else {\n this.log(`Copied ${copyResult.totalCopied} skills to .claude/skills/\\n`);\n }\n\n return copyResult;\n }\n\n private async writeConfigAndCompile(\n result: WizardResultV2,\n sourceResult: SourceLoadResult,\n flags: SourceFlags,\n ): Promise<{\n configResult: Awaited<ReturnType<typeof writeProjectConfig>>;\n compileResult: CompilationResult;\n agentScopeMap: Map<AgentName, SkillScope>;\n }> {\n this.log(\"Generating configuration...\");\n const configResult = await writeProjectConfig({\n wizardResult: result,\n sourceResult,\n projectDir: process.cwd(),\n ...(flags.marketplace !== undefined && { sourceFlag: flags.marketplace }),\n });\n\n if (configResult.wasMerged) {\n this.log(`Merged with existing config at ${configResult.existingConfigPath}`);\n }\n\n this.log(`Configuration saved (${configResult.config.agents.length} agents)\\n`);\n this.reportUnassignedSkills(configResult.config);\n\n this.log(STATUS_MESSAGES.COMPILING_AGENTS);\n const cwd = process.cwd();\n const agentDefs = await loadAgentDefs();\n const { allSkills } = await discoverInstalledSkills(cwd);\n const agentScopeMap = buildAgentScopeMap(configResult.config);\n const compileResult = await compileAgentsAllScopes({\n projectDir: cwd,\n sourcePath: agentDefs.sourcePath,\n skills: allSkills,\n agentScopeMap,\n });\n this.reportCompilation(compileResult);\n\n this.reportPropagatedRecompile(configResult.propagation);\n\n return { configResult, compileResult, agentScopeMap };\n }\n\n /**\n * What the compile pass did, including the half this command used to drop.\n *\n * It read `compiled` and nothing else, so a pass that lost a sub-agent printed a number that\n * looked perfectly right — `compiled` counts successes, so it is correct either way — and the\n * failures reached no surface at all: no count, no reason, no exit code. A user's FIRST\n * install could silently land a roster missing a sub-agent.\n *\n * The compile is the last thing `init` does, so a failure here cannot be answered by aborting:\n * the skills are on disk and `config.ts` and `config-types.ts` describe them. What is owed is\n * the account, which {@link BaseCommand.exitIfWorkIncomplete} prints and answers for.\n */\n private reportCompilation(compileResult: CompilationResult): void {\n const { compiled, failed, warnings } = compileResult;\n const summary = `Compiled ${compiled.length} agents`;\n\n if (failed.length === 0) {\n this.log(`${summary}\\n`);\n return;\n }\n\n this.log(`${summary} (${failed.length} failed)\\n`);\n for (const warning of warnings) {\n this.warn(warning);\n }\n // Recorded off `failed` rather than off the warnings just printed: `warnings` also carries\n // entries that are not failures — a scope with nothing to compile contributes one on every\n // project-context run — and the ending must not file those as work owed.\n this.recordIncompleteWork(agentsNotCompiled(failed), INCOMPLETE_WORK_RECOVERY.RECOMPILE);\n }\n\n private reportSuccess(\n configResult: Awaited<ReturnType<typeof writeProjectConfig>>,\n compileResult: CompilationResult,\n agentScopeMap: Map<AgentName, SkillScope>,\n installMode: InstallMode,\n pluginModeSucceeded: boolean,\n copyResult: SkillCopyResult | null,\n ): void {\n // A run with work owed ends on the failure account instead — `initialized successfully!`\n // over a roster missing a sub-agent is the claim being withdrawn, not a line beside it.\n // Where the install landed is still reported below: that is what the account is about.\n if (!this.hasIncompleteWork) this.log(`${initSucceeded(this.brandingName)}\\n`);\n\n const isEjectOutput =\n installMode === \"eject\" || (installMode === \"mixed\" && !pluginModeSucceeded);\n if (isEjectOutput && copyResult && copyResult.totalCopied > 0) {\n this.reportSkillsCopied(copyResult);\n }\n this.reportAgentsCompiled(compileResult.compiled, agentScopeMap);\n this.reportConfiguration(configResult.configPath, agentScopeMap);\n }\n\n /**\n * Names the config that actually holds this install's assignments, and where a\n * recompile of them has to be run from.\n *\n * Split by the same `agentScopeMap` the two reporters above split on, because the\n * same scope decides both. A project config's `stack` is filtered down to\n * project-scoped agents on the way out, so a wholly GLOBAL install leaves it\n * carrying no assignment at all — naming it sends the user to a file with nothing\n * in it — and `compile` in this cwd runs the PROJECT pass, which recompiles no\n * global agent. At the home root both scopes resolve to one file and one pass, so\n * there is nothing to split and the project wording stands.\n */\n private reportConfiguration(\n projectConfigPath: string,\n agentScopeMap: Map<AgentName, SkillScope>,\n ): void {\n const cwd = process.cwd();\n const paths = {\n global: resolveInstallPaths(cwd, \"global\").configPath,\n project: projectConfigPath,\n };\n const split = splitAgentScopes(cwd, agentScopeMap);\n\n this.log(\"Configuration:\");\n for (const configPath of configsHoldingAssignments(split, paths)) {\n this.log(` ${configPath}`);\n }\n this.log(\"\");\n\n this.log(\"To customize agent-skill assignments:\");\n for (const [index, step] of customizationSteps(split, paths.global).entries()) {\n this.log(` ${index + 1}. ${step}`);\n }\n this.log(\"\");\n }\n\n /**\n * Reports where the skills actually landed. `copyLocalSkills` splits by scope,\n * so a default install driven from a project directory writes every skill\n * under HOME — reporting the project path there names a directory that was\n * never written.\n *\n * This block is a filesystem listing, so the entries are the on-disk directory\n * names — skill ids, not display names. `copySkillsToLocalFlattened` names each\n * destination directory after `skill.id`, so a user can copy any line and `cd`\n * into it.\n */\n private reportSkillsCopied(copyResult: SkillCopyResult): void {\n const cwd = process.cwd();\n const groups = isHomeDirectory(cwd)\n ? [\n {\n dir: resolveInstallPaths(cwd, \"project\").skillsDir,\n copied: [...copyResult.globalCopied, ...copyResult.projectCopied],\n },\n ]\n : [\n { dir: resolveInstallPaths(cwd, \"global\").skillsDir, copied: copyResult.globalCopied },\n { dir: resolveInstallPaths(cwd, \"project\").skillsDir, copied: copyResult.projectCopied },\n ].filter((group) => group.copied.length > 0);\n\n for (const group of groups) {\n this.log(\"Skills copied to:\");\n this.log(` ${group.dir}`);\n for (const copied of group.copied) {\n this.log(` ${copied.skillId}/`);\n }\n this.log(\"\");\n }\n }\n\n /**\n * Reports where the agents actually landed, mirroring the scope split\n * `compileAgentsAllScopes` performs: one pass at the home root, otherwise a\n * global pass under HOME and a project pass under the project directory.\n */\n private reportAgentsCompiled(\n compiled: AgentName[],\n agentScopeMap: Map<AgentName, SkillScope>,\n ): void {\n const cwd = process.cwd();\n const groups = isHomeDirectory(cwd)\n ? [{ dir: resolveInstallPaths(cwd, \"project\").agentsDir, agents: compiled }]\n : [\n {\n dir: resolveInstallPaths(cwd, \"global\").agentsDir,\n agents: compiled.filter((name) => agentScopeMap.get(name) === \"global\"),\n },\n {\n dir: resolveInstallPaths(cwd, \"project\").agentsDir,\n agents: compiled.filter((name) => agentScopeMap.get(name) !== \"global\"),\n },\n ].filter((group) => group.agents.length > 0);\n\n for (const group of groups) {\n this.log(\"Agents compiled to:\");\n this.log(` ${group.dir}`);\n for (const agentName of group.agents) {\n this.log(` ${agentName}.md`);\n }\n this.log(\"\");\n }\n }\n}\n\n/** The two config files an install can write, as the closing block refers to them. */\ntype ConfigPaths = { global: string; project: string };\n\n/** How this install's sub-agents fall across the two scopes, seen from the directory it ran in. */\ntype AgentScopeSplit = { globalAgentCount: number; isGlobalOnly: boolean };\n\n/**\n * At the home root the two scopes resolve to ONE config file and ONE compile pass, so there\n * is nothing to split and the split reports none — which is what leaves the project wording\n * standing there unchanged. Same fork `reportAgentsCompiled` makes over the same question.\n */\nfunction splitAgentScopes(cwd: string, agentScopeMap: Map<AgentName, SkillScope>): AgentScopeSplit {\n if (isHomeDirectory(cwd)) return { globalAgentCount: 0, isGlobalOnly: false };\n\n const scopes = [...agentScopeMap.values()];\n const globalAgentCount = scopes.filter((scope) => scope === \"global\").length;\n return {\n globalAgentCount,\n isGlobalOnly: globalAgentCount > 0 && globalAgentCount === scopes.length,\n };\n}\n\n/**\n * The config file(s) this install's assignments actually landed in. A wholly global install\n * has none in the project file — the writer filters its `stack` down to project-scoped\n * agents — so naming it would send the user to a file with nothing in it.\n */\nfunction configsHoldingAssignments(split: AgentScopeSplit, paths: ConfigPaths): string[] {\n if (split.isGlobalOnly) return [paths.global];\n if (split.globalAgentCount > 0) return [paths.global, paths.project];\n return [paths.project];\n}\n\n/**\n * What changing an assignment takes, in the order it takes it. The compile step is the half\n * that has to be scope-aware: `compile` run in a project directory performs the PROJECT pass\n * only, so it recompiles no global agent — which `globalScopedAgentsHint` already says, in\n * the words `compile` itself says it in when it lands in the mirror image of this state.\n */\nfunction customizationSteps(split: AgentScopeSplit, globalConfigPath: string): string[] {\n if (split.isGlobalOnly) {\n return [`Edit ${globalConfigPath}`, globalScopedAgentsHint(split.globalAgentCount)];\n }\n\n return [\n `Edit ${CLAUDE_SRC_DIR}/${STANDARD_FILES.CONFIG_TS}`,\n `Run '${CLI_INVOKE_COMMAND} compile' to regenerate agents`,\n ...(split.globalAgentCount > 0 ? [globalScopedAgentsHint(split.globalAgentCount)] : []),\n ];\n}\n\nexport type DashboardData = {\n /**\n * The name the dashboard is titled with — `branding.name` where the configuration supplies one\n * and {@link DEFAULT_BRANDING.NAME} otherwise. Carried on the data rather than read by either\n * consumer so {@link formatDashboardText} stays a pure function of what it is handed, and so\n * the one place that reaches a configuration is the one that already loads it.\n *\n * **Both of {@link showDashboard}'s branches read it, and that is the invariant to keep.** This\n * field was resolved for the piped branch alone for as long as it was, while the `Dashboard`\n * component was handed only its callbacks and painted {@link ASCII_LOGO} — so the dashboard a\n * person actually sees was the one surface `branding.name` never reached, and every spec on the\n * subject drove through a pipe and could not see it.\n */\n name: string;\n skillCount: number;\n agentCount: number;\n mode: InstallMode;\n source?: string;\n};\n\n/**\n * Gathers dashboard data from the installation and project config.\n *\n * Both counts come from the same scope-aware installation so the summary cannot\n * mix a project-only figure with a global one — a default install driven from a\n * project directory puts every skill and agent under HOME.\n */\nexport async function getDashboardData(projectDir: string): Promise<DashboardData> {\n // ABORT is the posture on `resolveBranding`, and it is the one already in force: the\n // `loadProjectConfig` beside it raises for the same file, so a configuration that cannot be\n // evaluated fails this call whether branding is read or not. Nothing is degraded here that was\n // not already, and the dashboard is only reached once an installation has been detected.\n const [info, loaded, branding] = await Promise.all([\n getInstallationInfo(),\n loadProjectConfig(projectDir),\n resolveBranding(projectDir),\n ]);\n\n const activeSkills = loaded?.config.skills.filter((s) => !s.excluded);\n const skillCount = info?.skillCount ?? 0;\n const agentCount = info?.agentCount ?? 0;\n const mode = info?.mode ?? (activeSkills ? deriveInstallMode(activeSkills) : \"eject\");\n const source = loaded?.config.marketplace;\n\n return {\n name: branding.name,\n skillCount,\n agentCount,\n mode,\n ...(source !== undefined && { source }),\n };\n}\n","import React from \"react\";\nimport { z } from \"zod\";\n\nimport { Text, Box } from \"ink\";\nimport path from \"path\";\n\nimport { CLAUDE_DIR, CLI_COLORS, MAX_CONFIG_FILE_SIZE, STANDARD_FILES } from \"../consts\";\nimport { fileExists, readFileSafe } from \"../utils/fs\";\nimport { warn } from \"../utils/logger\";\nimport { settingsFileSchema } from \"./schemas\";\n\ntype SettingsFile = z.infer<typeof settingsFileSchema>;\ntype PermissionConfig = NonNullable<SettingsFile[\"permissions\"]>;\n\n/**\n * Reads one settings file's permissions block; undefined when absent, malformed, or empty.\n *\n * settings.json belongs to Claude Code, which adds keys on its own release schedule. This CLI\n * consumes `permissions` and owns nothing else in the file, so it stays silent about every other\n * field rather than warning about settings it has no standing to judge.\n */\nasync function readSettingsPermissions(filePath: string): Promise<PermissionConfig | undefined> {\n if (!(await fileExists(filePath))) return undefined;\n try {\n const content = await readFileSafe(filePath, MAX_CONFIG_FILE_SIZE);\n const raw: unknown = JSON.parse(content);\n const result = settingsFileSchema.safeParse(raw);\n const parsed: SettingsFile = result.success ? result.data : {};\n return parsed.permissions;\n } catch {\n warn(`Malformed settings file at '${filePath}' — skipping`);\n return undefined;\n }\n}\n\n/** Permissions from the first settings file that defines them — settings.local.json wins. */\nasync function loadPermissions(projectRoot: string): Promise<PermissionConfig | undefined> {\n const settingsPath = path.join(projectRoot, CLAUDE_DIR, STANDARD_FILES.SETTINGS_JSON);\n const localSettingsPath = path.join(projectRoot, CLAUDE_DIR, STANDARD_FILES.SETTINGS_LOCAL_JSON);\n\n for (const filePath of [localSettingsPath, settingsPath]) {\n const permissions = await readSettingsPermissions(filePath);\n if (permissions) return permissions;\n }\n return undefined;\n}\n\nexport async function checkPermissions(projectRoot: string): Promise<React.ReactElement | null> {\n const permissions = await loadPermissions(projectRoot);\n\n if (!permissions) {\n return (\n <Box flexDirection=\"column\" borderStyle=\"round\" borderColor={CLI_COLORS.WARNING} padding={1}>\n <Text bold color={CLI_COLORS.WARNING}>\n Permission Notice\n </Text>\n <Text>No permissions configured in .claude/settings.json</Text>\n <Text>Agents will prompt for approval on each tool use.</Text>\n <Text> </Text>\n <Text>For autonomous operation, add to .claude/settings.json:</Text>\n <Text> </Text>\n <Text color={CLI_COLORS.DIM}>{\"{\"}</Text>\n <Text color={CLI_COLORS.DIM}>{' \"permissions\": {'}</Text>\n <Text color={CLI_COLORS.DIM}>{' \"allow\": ['}</Text>\n <Text color={CLI_COLORS.DIM}>{' \"Read(*)\",'}</Text>\n <Text color={CLI_COLORS.DIM}>{' \"Bash(git *)\",'}</Text>\n <Text color={CLI_COLORS.DIM}>{' \"Bash(bun *)\"'}</Text>\n <Text color={CLI_COLORS.DIM}>{\" ]\"}</Text>\n <Text color={CLI_COLORS.DIM}>{\" }\"}</Text>\n <Text color={CLI_COLORS.DIM}>{\"}\"}</Text>\n </Box>\n );\n }\n\n const hasRestrictiveBash = permissions.deny?.some(\n (rule) => rule === \"Bash(*)\" || rule === \"Bash\",\n );\n const hasNoAllows = !permissions.allow || permissions.allow.length === 0;\n\n if (hasRestrictiveBash || hasNoAllows) {\n return (\n <Box flexDirection=\"column\" borderStyle=\"round\" borderColor={CLI_COLORS.WARNING} padding={1}>\n <Text bold color={CLI_COLORS.WARNING}>\n Permission Warnings\n </Text>\n {hasRestrictiveBash && (\n <Text>\n ⚠ Bash is denied in permissions. Some agents require Bash for git, testing, and build\n commands.\n </Text>\n )}\n {hasNoAllows && (\n <Text>⚠ No allow rules configured. Agents will prompt for each tool use.</Text>\n )}\n </Box>\n );\n }\n\n return null;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAkB;AAElB,SAAS,aAA8B;AACvC,SAAS,OAAAA,MAAK,QAAAC,OAAM,cAAc;;;ACHlC,OAAkB;AAClB,OAAkB;AAElB,SAAS,MAAM,WAAW;AAC1B,OAAO,UAAU;AAgDX,SACE,KADF;AA/BN,eAAe,wBAAwB,UAAyD;AAC9F,MAAI,CAAE,MAAM,WAAW,QAAQ,EAAI,QAAO;AAC1C,MAAI;AACF,UAAM,UAAU,MAAM,aAAa,UAAU,oBAAoB;AACjE,UAAM,MAAe,KAAK,MAAM,OAAO;AACvC,UAAM,SAAS,mBAAmB,UAAU,GAAG;AAC/C,UAAM,SAAuB,OAAO,UAAU,OAAO,OAAO,CAAC;AAC7D,WAAO,OAAO;AAAA,EAChB,QAAQ;AACN,SAAK,+BAA+B,QAAQ,mBAAc;AAC1D,WAAO;AAA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IACL,MAAM,SAAS;AAAA,IACf;AAAA,IACA;AAAA,IACA;AAAA,IACA,GAAI,WAAW,UAAa,EAAE,OAAO;AAAA,EACvC;AACF;","names":["Box","Text","jsx","jsxs","Text","Box"]}
@@ -1,13 +0,0 @@
1
- #!/usr/bin/env node
2
- import {
3
- loadAgentDefs
4
- } from "./chunk-B3YSTZZC.js";
5
- import "./chunk-5DWDT6GM.js";
6
- import "./chunk-YSQ76LWG.js";
7
- import "./chunk-BLGETWYI.js";
8
- import "./chunk-AMZO4YJK.js";
9
- import "./chunk-OI2H6M5I.js";
10
- export {
11
- loadAgentDefs
12
- };
13
- //# sourceMappingURL=load-agent-defs-LDSND43G.js.map
@@ -1,17 +0,0 @@
1
- #!/usr/bin/env node
2
- import {
3
- recompilePropagatedProjectAgents,
4
- recompileRegisteredProjectAgents
5
- } from "./chunk-A2NA377T.js";
6
- import "./chunk-B3YSTZZC.js";
7
- import "./chunk-5DWDT6GM.js";
8
- import "./chunk-ADDYIMWN.js";
9
- import "./chunk-YSQ76LWG.js";
10
- import "./chunk-BLGETWYI.js";
11
- import "./chunk-AMZO4YJK.js";
12
- import "./chunk-OI2H6M5I.js";
13
- export {
14
- recompilePropagatedProjectAgents,
15
- recompileRegisteredProjectAgents
16
- };
17
- //# sourceMappingURL=recompile-project-agents-GQLODH24.js.map