agents-inc 0.165.0 → 0.166.0

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 (144) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/dist/{chunk-B5UUHBAM.js → chunk-25MPBIK3.js} +3 -3
  3. package/dist/{chunk-VPJUCVU7.js → chunk-2VUYFTUB.js} +6 -6
  4. package/dist/{chunk-BGU25XAY.js → chunk-4NDBUJHK.js} +8 -8
  5. package/dist/{chunk-5M3PQNXI.js → chunk-6L75SQZU.js} +2 -2
  6. package/dist/{chunk-YNOOZFIB.js → chunk-6LF4CQBY.js} +2 -2
  7. package/dist/{chunk-UBSSIIWD.js → chunk-7JNJ52CD.js} +4 -4
  8. package/dist/{chunk-IM45LLQX.js → chunk-A4KDXNOT.js} +47 -137
  9. package/dist/chunk-A4KDXNOT.js.map +1 -0
  10. package/dist/{chunk-6SW6SB7H.js → chunk-DAIEQJIF.js} +3 -3
  11. package/dist/{chunk-AQXKAPCD.js → chunk-ENGYJCTF.js} +1 -3
  12. package/dist/{chunk-AQXKAPCD.js.map → chunk-ENGYJCTF.js.map} +1 -1
  13. package/dist/{chunk-6AIZPSEI.js → chunk-G4JK7WVO.js} +15 -16
  14. package/dist/chunk-G4JK7WVO.js.map +1 -0
  15. package/dist/{chunk-WTANOSXK.js → chunk-G6UREQ4V.js} +9 -9
  16. package/dist/chunk-G6UREQ4V.js.map +1 -0
  17. package/dist/{chunk-V5CWACR5.js → chunk-GE3WKJ6Q.js} +4 -4
  18. package/dist/{chunk-V5CWACR5.js.map → chunk-GE3WKJ6Q.js.map} +1 -1
  19. package/dist/{chunk-JV4TKXEN.js → chunk-HHIYT3PI.js} +4 -4
  20. package/dist/{chunk-WIFIAQZU.js → chunk-HWEKHVLE.js} +6 -6
  21. package/dist/{chunk-5P26XBZO.js → chunk-JQRJQ4SS.js} +3 -3
  22. package/dist/{chunk-Y5SNGMB7.js → chunk-LFWLEDUG.js} +6 -6
  23. package/dist/{chunk-TRTVOVHR.js → chunk-MAWNVT2C.js} +4 -4
  24. package/dist/{chunk-57KU6SPH.js → chunk-MPTNC32T.js} +3 -3
  25. package/dist/{chunk-MBUGQI2M.js → chunk-NBXXFIIW.js} +3 -3
  26. package/dist/{chunk-42TNV2TK.js → chunk-PMJWD27C.js} +3 -3
  27. package/dist/{chunk-X2KUI7V3.js → chunk-PNB3524H.js} +5 -5
  28. package/dist/{chunk-IVNKU4DM.js → chunk-PXWG7KFO.js} +2 -2
  29. package/dist/chunk-PXWG7KFO.js.map +1 -0
  30. package/dist/{chunk-LXXGZAD3.js → chunk-QHDPLLK6.js} +3 -3
  31. package/dist/{chunk-TV5Y53R2.js → chunk-RAHSOJQ2.js} +2 -2
  32. package/dist/{chunk-CTUJO23Z.js → chunk-RZDXDMT6.js} +2 -2
  33. package/dist/{chunk-PSX7CT6V.js → chunk-SAYZWCH6.js} +2 -2
  34. package/dist/{chunk-MWDY76MT.js → chunk-SCOQ34YM.js} +2 -2
  35. package/dist/{chunk-4C7GL4F7.js → chunk-SXVHSOTH.js} +4 -4
  36. package/dist/{chunk-E6CHHXGY.js → chunk-T6UWJAB3.js} +2 -2
  37. package/dist/{chunk-F2ZWFWTP.js → chunk-TODCQFRB.js} +2 -2
  38. package/dist/{chunk-CEBDGZID.js → chunk-TTY6DPJN.js} +3 -3
  39. package/dist/{chunk-CBMAO6OP.js → chunk-TZ2YJJKK.js} +5 -5
  40. package/dist/{chunk-WSGX4IWC.js → chunk-V3I7VQ7N.js} +4 -4
  41. package/dist/{chunk-GKPW33FP.js → chunk-V5WXIM2F.js} +2 -2
  42. package/dist/{chunk-6CY6PW5X.js → chunk-VAPTVR3J.js} +3 -3
  43. package/dist/{chunk-CK5RM3DJ.js → chunk-WVUDLKIO.js} +2 -2
  44. package/dist/{chunk-HR4YDSJK.js → chunk-WWIFNPJG.js} +12 -12
  45. package/dist/{chunk-P3KJCYSR.js → chunk-XZEVWPX6.js} +7 -7
  46. package/dist/{chunk-AAWZED5M.js → chunk-Y3VIRVVE.js} +10 -58
  47. package/dist/chunk-Y3VIRVVE.js.map +1 -0
  48. package/dist/{chunk-XATIKM3P.js → chunk-Y47EV74W.js} +7 -7
  49. package/dist/{chunk-UR3RRTPO.js → chunk-ZR4YPKXQ.js} +4 -4
  50. package/dist/{chunk-UCORXS4D.js → chunk-ZXKBERQU.js} +2 -2
  51. package/dist/commands/build/marketplace.js +6 -6
  52. package/dist/commands/build/plugins.js +8 -8
  53. package/dist/commands/compile.js +14 -15
  54. package/dist/commands/compile.js.map +1 -1
  55. package/dist/commands/doctor.js +59 -156
  56. package/dist/commands/doctor.js.map +1 -1
  57. package/dist/commands/edit.js +40 -41
  58. package/dist/commands/edit.js.map +1 -1
  59. package/dist/commands/eject.js +12 -13
  60. package/dist/commands/eject.js.map +1 -1
  61. package/dist/commands/init.js +39 -39
  62. package/dist/commands/list.js +9 -9
  63. package/dist/commands/new/marketplace.js +6 -6
  64. package/dist/commands/search.js +11 -11
  65. package/dist/commands/share.js +11 -12
  66. package/dist/commands/share.js.map +1 -1
  67. package/dist/commands/uninstall.js +39 -69
  68. package/dist/commands/uninstall.js.map +1 -1
  69. package/dist/commands/update.js +8 -9
  70. package/dist/commands/update.js.map +1 -1
  71. package/dist/components/common/removal-plan-confirm.js +2 -2
  72. package/dist/components/common/select-list.js +2 -2
  73. package/dist/components/wizard/category-grid.js +4 -4
  74. package/dist/components/wizard/checkbox-grid.js +4 -4
  75. package/dist/components/wizard/domain-selection.js +9 -9
  76. package/dist/components/wizard/run-wizard-session.js +26 -26
  77. package/dist/components/wizard/scroll-affordance.js +2 -2
  78. package/dist/components/wizard/skill-agent-summary.js +5 -5
  79. package/dist/components/wizard/source-grid.js +5 -5
  80. package/dist/components/wizard/stack-selection.js +7 -7
  81. package/dist/components/wizard/step-agents.js +8 -8
  82. package/dist/components/wizard/step-build.js +7 -7
  83. package/dist/components/wizard/step-confirm.js +9 -9
  84. package/dist/components/wizard/step-sources.js +8 -8
  85. package/dist/components/wizard/step-stack.js +8 -8
  86. package/dist/components/wizard/summary-panel.js +8 -8
  87. package/dist/components/wizard/toast.js +2 -2
  88. package/dist/components/wizard/wizard-layout.js +12 -12
  89. package/dist/components/wizard/wizard-tabs.js +2 -2
  90. package/dist/components/wizard/wizard.js +25 -25
  91. package/dist/hooks/init.js +50 -40
  92. package/dist/hooks/init.js.map +1 -1
  93. package/dist/load-agent-defs-3C27ENC7.js +14 -0
  94. package/dist/recompile-project-agents-DGNBCU3N.js +18 -0
  95. package/dist/{source-loader-RWZAYJ7E.js → source-loader-7KZ3MD5O.js} +4 -4
  96. package/dist/stores/wizard-store.js +4 -4
  97. package/package.json +1 -1
  98. package/src/schemas/project-config.schema.json +1 -1
  99. package/src/schemas/project-source-config.schema.json +1 -1
  100. package/dist/chunk-6AIZPSEI.js.map +0 -1
  101. package/dist/chunk-AAWZED5M.js.map +0 -1
  102. package/dist/chunk-IM45LLQX.js.map +0 -1
  103. package/dist/chunk-IVNKU4DM.js.map +0 -1
  104. package/dist/chunk-WTANOSXK.js.map +0 -1
  105. package/dist/load-agent-defs-JHLE6MAE.js +0 -14
  106. package/dist/recompile-project-agents-ZPP5NOLZ.js +0 -18
  107. /package/dist/{chunk-B5UUHBAM.js.map → chunk-25MPBIK3.js.map} +0 -0
  108. /package/dist/{chunk-VPJUCVU7.js.map → chunk-2VUYFTUB.js.map} +0 -0
  109. /package/dist/{chunk-BGU25XAY.js.map → chunk-4NDBUJHK.js.map} +0 -0
  110. /package/dist/{chunk-5M3PQNXI.js.map → chunk-6L75SQZU.js.map} +0 -0
  111. /package/dist/{chunk-YNOOZFIB.js.map → chunk-6LF4CQBY.js.map} +0 -0
  112. /package/dist/{chunk-UBSSIIWD.js.map → chunk-7JNJ52CD.js.map} +0 -0
  113. /package/dist/{chunk-6SW6SB7H.js.map → chunk-DAIEQJIF.js.map} +0 -0
  114. /package/dist/{chunk-JV4TKXEN.js.map → chunk-HHIYT3PI.js.map} +0 -0
  115. /package/dist/{chunk-WIFIAQZU.js.map → chunk-HWEKHVLE.js.map} +0 -0
  116. /package/dist/{chunk-5P26XBZO.js.map → chunk-JQRJQ4SS.js.map} +0 -0
  117. /package/dist/{chunk-Y5SNGMB7.js.map → chunk-LFWLEDUG.js.map} +0 -0
  118. /package/dist/{chunk-TRTVOVHR.js.map → chunk-MAWNVT2C.js.map} +0 -0
  119. /package/dist/{chunk-57KU6SPH.js.map → chunk-MPTNC32T.js.map} +0 -0
  120. /package/dist/{chunk-MBUGQI2M.js.map → chunk-NBXXFIIW.js.map} +0 -0
  121. /package/dist/{chunk-42TNV2TK.js.map → chunk-PMJWD27C.js.map} +0 -0
  122. /package/dist/{chunk-X2KUI7V3.js.map → chunk-PNB3524H.js.map} +0 -0
  123. /package/dist/{chunk-LXXGZAD3.js.map → chunk-QHDPLLK6.js.map} +0 -0
  124. /package/dist/{chunk-TV5Y53R2.js.map → chunk-RAHSOJQ2.js.map} +0 -0
  125. /package/dist/{chunk-CTUJO23Z.js.map → chunk-RZDXDMT6.js.map} +0 -0
  126. /package/dist/{chunk-PSX7CT6V.js.map → chunk-SAYZWCH6.js.map} +0 -0
  127. /package/dist/{chunk-MWDY76MT.js.map → chunk-SCOQ34YM.js.map} +0 -0
  128. /package/dist/{chunk-4C7GL4F7.js.map → chunk-SXVHSOTH.js.map} +0 -0
  129. /package/dist/{chunk-E6CHHXGY.js.map → chunk-T6UWJAB3.js.map} +0 -0
  130. /package/dist/{chunk-F2ZWFWTP.js.map → chunk-TODCQFRB.js.map} +0 -0
  131. /package/dist/{chunk-CEBDGZID.js.map → chunk-TTY6DPJN.js.map} +0 -0
  132. /package/dist/{chunk-CBMAO6OP.js.map → chunk-TZ2YJJKK.js.map} +0 -0
  133. /package/dist/{chunk-WSGX4IWC.js.map → chunk-V3I7VQ7N.js.map} +0 -0
  134. /package/dist/{chunk-GKPW33FP.js.map → chunk-V5WXIM2F.js.map} +0 -0
  135. /package/dist/{chunk-6CY6PW5X.js.map → chunk-VAPTVR3J.js.map} +0 -0
  136. /package/dist/{chunk-CK5RM3DJ.js.map → chunk-WVUDLKIO.js.map} +0 -0
  137. /package/dist/{chunk-HR4YDSJK.js.map → chunk-WWIFNPJG.js.map} +0 -0
  138. /package/dist/{chunk-P3KJCYSR.js.map → chunk-XZEVWPX6.js.map} +0 -0
  139. /package/dist/{chunk-XATIKM3P.js.map → chunk-Y47EV74W.js.map} +0 -0
  140. /package/dist/{chunk-UR3RRTPO.js.map → chunk-ZR4YPKXQ.js.map} +0 -0
  141. /package/dist/{chunk-UCORXS4D.js.map → chunk-ZXKBERQU.js.map} +0 -0
  142. /package/dist/{load-agent-defs-JHLE6MAE.js.map → load-agent-defs-3C27ENC7.js.map} +0 -0
  143. /package/dist/{recompile-project-agents-ZPP5NOLZ.js.map → recompile-project-agents-DGNBCU3N.js.map} +0 -0
  144. /package/dist/{source-loader-RWZAYJ7E.js.map → source-loader-7KZ3MD5O.js.map} +0 -0
package/CHANGELOG.md CHANGED
@@ -7,6 +7,21 @@ Each release has detailed notes in its own file under [`changelogs/`](./changelo
7
7
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
8
8
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
9
9
 
10
+ ## [0.166.0] - 2026-10-04
11
+
12
+ **From a project, `share`, `edit --ui` and every `--from` treat the global install as one every project reads, every write refuses a broken `config.ts` by name, and the audit that followed the journey fixes is applied**
13
+
14
+ - CLI-902: the 14 non-Codex failures from the 2026-10-01 manual journey run are fixed as ruled. From a project, `share` and `edit --ui` carry the global sub-agents' skills, and `share` refuses ejected skills because a share carries plugins only. Dropping a project copy writes nothing global, and `config.ts` rewrites keep `branding`. `edit` prints the trust line, and the editor's preview matches the install.
15
+ - **Every `--from` lists what goes into the project and what into the global install, then asks.** With no terminal, `init --from` prints the lists and carries on. From a project, `--from` never removes or changes anything global, and names what it kept. The plan discloses a dropped project copy. A kept skill joins the configuration's row, or yields a one-skill slot and stays installed, and every refusal comes before the question.
16
+ - **`init --marketplace` takes the bare-init route; `init --ui --marketplace` refuses.** A custom marketplace needs a valid `marketplace.json`, and `eject`, `local` and `external` are reserved at build and at load, recorded names included.
17
+ - **A broken `config.ts` is refused by every write, naming the file and the folder to recreate it from.** `uninstall` still works on one and clears both source folders, and `doctor` labels the config it read.
18
+ - **Commands that need a terminal refuse cleanly without one.** Raw mode is held before the first paint, Ctrl+C on the dashboard exits as cancelled, and the bare dashboard no longer prints help.
19
+ - **The Claude trust check follows git roots and `CLAUDE_CONFIG_DIR`, and `update` says truthfully that it refreshed listings, not plugins.** Skipped registered projects get bare `Skipped <path>: <reason>.` lines, and counts are singular for one.
20
+ - **`bun run dev` builds the local skill index and applies the local migrations.** The editor's Playwright suite runs on its own port. The modulepreload polyfill is off, and the first-paint budget is 352 KiB.
21
+ - CLI-868: `check-finding-citations` resolves a dated plan under `todo/plans/` as a plan, not a missing finding, and a `compile` unit test no longer depends on TMPDIR's length.
22
+
23
+ See [changelogs/0.166.0.md](./changelogs/0.166.0.md) for full details.
24
+
10
25
  ## [0.165.0] - 2026-10-01
11
26
 
12
27
  **A new installation's source folder is `.agents-inc/<provider>/`, a configuration can be installed onto OpenAI Codex, and `edit --from` applies a sub-agent's model and effort**
@@ -1,10 +1,10 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  truncateText
4
- } from "./chunk-IM45LLQX.js";
4
+ } from "./chunk-A4KDXNOT.js";
5
5
  import {
6
6
  seedPayloadSchema
7
- } from "./chunk-AQXKAPCD.js";
7
+ } from "./chunk-ENGYJCTF.js";
8
8
 
9
9
  // ../../node_modules/hono/dist/utils/cookie.js
10
10
  var validCookieNameRegEx = /^[\w!#$%&'*.^`|~+-]+$/;
@@ -408,4 +408,4 @@ export {
408
408
  SEED_USER_AGENT,
409
409
  fetchSeedConfig
410
410
  };
411
- //# sourceMappingURL=chunk-B5UUHBAM.js.map
411
+ //# sourceMappingURL=chunk-25MPBIK3.js.map
@@ -1,26 +1,26 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  ScrollAffordance
4
- } from "./chunk-PSX7CT6V.js";
4
+ } from "./chunk-SAYZWCH6.js";
5
5
  import {
6
6
  getStackName
7
- } from "./chunk-LXXGZAD3.js";
7
+ } from "./chunk-QHDPLLK6.js";
8
8
  import {
9
9
  useMeasuredHeight
10
10
  } from "./chunk-TSIU7DME.js";
11
11
  import {
12
12
  SkillAgentSummary
13
- } from "./chunk-TRTVOVHR.js";
13
+ } from "./chunk-MAWNVT2C.js";
14
14
  import {
15
15
  useWizardStore
16
- } from "./chunk-UBSSIIWD.js";
16
+ } from "./chunk-7JNJ52CD.js";
17
17
  import {
18
18
  ALL_SKILLS_EJECTED_LABEL,
19
19
  CLI_COLORS,
20
20
  DEFAULT_PUBLIC_SOURCE_NAME,
21
21
  EJECT_SOURCE,
22
22
  formatSourceDisplayName
23
- } from "./chunk-AQXKAPCD.js";
23
+ } from "./chunk-ENGYJCTF.js";
24
24
 
25
25
  // src/cli/components/wizard/summary-panel.tsx
26
26
  import { Box, Text } from "ink";
@@ -122,4 +122,4 @@ var SummaryPanel = () => {
122
122
  export {
123
123
  SummaryPanel
124
124
  };
125
- //# sourceMappingURL=chunk-VPJUCVU7.js.map
125
+ //# sourceMappingURL=chunk-2VUYFTUB.js.map
@@ -1,18 +1,18 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  SummaryPanel
4
- } from "./chunk-VPJUCVU7.js";
4
+ } from "./chunk-2VUYFTUB.js";
5
5
  import {
6
6
  Toast
7
- } from "./chunk-E6CHHXGY.js";
7
+ } from "./chunk-T6UWJAB3.js";
8
8
  import {
9
9
  WizardTabs,
10
10
  wizardTabsFor
11
- } from "./chunk-5M3PQNXI.js";
11
+ } from "./chunk-6L75SQZU.js";
12
12
  import {
13
13
  getDomainDisplayName,
14
14
  getStackName
15
- } from "./chunk-LXXGZAD3.js";
15
+ } from "./chunk-QHDPLLK6.js";
16
16
  import {
17
17
  HOTKEY_INFO,
18
18
  HOTKEY_SCOPE,
@@ -25,17 +25,17 @@ import {
25
25
  import {
26
26
  getActiveStepFlow,
27
27
  useWizardStore
28
- } from "./chunk-UBSSIIWD.js";
28
+ } from "./chunk-7JNJ52CD.js";
29
29
  import {
30
30
  formatTerminalTooSmallMessage,
31
31
  isTerminalLargeEnough
32
- } from "./chunk-CTUJO23Z.js";
32
+ } from "./chunk-RZDXDMT6.js";
33
33
  import {
34
34
  CLI_COLORS,
35
35
  FALLBACK_DOMAIN,
36
36
  LOGO_MIN_TERMINAL_ROWS,
37
37
  orderDomains
38
- } from "./chunk-AQXKAPCD.js";
38
+ } from "./chunk-ENGYJCTF.js";
39
39
 
40
40
  // src/cli/components/wizard/wizard-layout.tsx
41
41
  import { Box, Text } from "ink";
@@ -234,4 +234,4 @@ export {
234
234
  useTerminalDimensions,
235
235
  WizardLayout
236
236
  };
237
- //# sourceMappingURL=chunk-BGU25XAY.js.map
237
+ //# sourceMappingURL=chunk-4NDBUJHK.js.map
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  CLI_COLORS
4
- } from "./chunk-AQXKAPCD.js";
4
+ } from "./chunk-ENGYJCTF.js";
5
5
 
6
6
  // src/cli/components/wizard/wizard-tabs.tsx
7
7
  import { Box, Text } from "ink";
@@ -165,4 +165,4 @@ export {
165
165
  wizardTabsFor,
166
166
  WizardTabs
167
167
  };
168
- //# sourceMappingURL=chunk-5M3PQNXI.js.map
168
+ //# sourceMappingURL=chunk-6L75SQZU.js.map
@@ -5,7 +5,7 @@ import {
5
5
  import {
6
6
  CLI_COLORS,
7
7
  UI_SYMBOLS
8
- } from "./chunk-AQXKAPCD.js";
8
+ } from "./chunk-ENGYJCTF.js";
9
9
 
10
10
  // src/cli/components/common/select-list.tsx
11
11
  import { useCallback } from "react";
@@ -48,4 +48,4 @@ function SelectList({
48
48
  export {
49
49
  SelectList
50
50
  };
51
- //# sourceMappingURL=chunk-YNOOZFIB.js.map
51
+ //# sourceMappingURL=chunk-6LF4CQBY.js.map
@@ -9,7 +9,7 @@ import {
9
9
  getUnmetRequiredBy,
10
10
  isLocalOnlySkill,
11
11
  warn
12
- } from "./chunk-IM45LLQX.js";
12
+ } from "./chunk-A4KDXNOT.js";
13
13
  import {
14
14
  getCategoryDomain,
15
15
  getSkillById,
@@ -18,7 +18,7 @@ import {
18
18
  typedFromEntries,
19
19
  typedKeys,
20
20
  typedValues
21
- } from "./chunk-GKPW33FP.js";
21
+ } from "./chunk-V5WXIM2F.js";
22
22
  import {
23
23
  CLI_INVOKE_COMMAND,
24
24
  DEFAULT_PUBLIC_SOURCE_NAME,
@@ -31,7 +31,7 @@ import {
31
31
  isGlobalTombstone,
32
32
  isProjectOwned,
33
33
  orderDomains
34
- } from "./chunk-AQXKAPCD.js";
34
+ } from "./chunk-ENGYJCTF.js";
35
35
 
36
36
  // src/cli/stores/wizard-store.ts
37
37
  import { create } from "zustand";
@@ -1176,4 +1176,4 @@ export {
1176
1176
  showWarningsAsToast,
1177
1177
  hydrateWizardStore
1178
1178
  };
1179
- //# sourceMappingURL=chunk-UBSSIIWD.js.map
1179
+ //# sourceMappingURL=chunk-7JNJ52CD.js.map
@@ -9,7 +9,7 @@ import {
9
9
  typedFromEntries,
10
10
  typedKeys,
11
11
  typedValues
12
- } from "./chunk-GKPW33FP.js";
12
+ } from "./chunk-V5WXIM2F.js";
13
13
  import {
14
14
  AGENT_NAMES,
15
15
  AUTHOR_HANDLE_PATTERN,
@@ -30,7 +30,6 @@ import {
30
30
  GLOBAL_CONFIG_NAME,
31
31
  HASH_PREFIX_LENGTH,
32
32
  KEBAB_CASE_PATTERN,
33
- LEGACY_SOURCE_DIR,
34
33
  LOCAL_PSEUDO_CATEGORY,
35
34
  LOCAL_SKILLS_PATH,
36
35
  MARKETPLACE_JSON,
@@ -83,7 +82,7 @@ import {
83
82
  seedAgentScope,
84
83
  sourceDirName,
85
84
  validateSelection
86
- } from "./chunk-AQXKAPCD.js";
85
+ } from "./chunk-ENGYJCTF.js";
87
86
  import {
88
87
  defaultCategories,
89
88
  defaultRules,
@@ -532,27 +531,20 @@ async function renderFromTemplate(engine, template, data, version) {
532
531
  }
533
532
 
534
533
  // src/cli/lib/installation/install-layout.ts
535
- function plannedSourceFolderMove(root, provider) {
536
- const legacy = legacyFolderFor(root, provider);
537
- if (legacy === null) return null;
538
- return {
539
- from: { dir: legacy, relName: LEGACY_SOURCE_DIR },
540
- to: { dir: sourceDir(root, provider), relName: sourceDirName(provider) },
541
- parent: { dir: path.join(root, SOURCE_ROOT_DIR), relName: SOURCE_ROOT_DIR }
542
- };
543
- }
544
- function unusedSourceFolderName(root, provider) {
545
- const move = plannedSourceFolderMove(root, provider);
546
- if (move === null) return null;
547
- return sourceFolderInUse(root, provider).legacy ? move.to.relName : move.from.relName;
548
- }
549
534
  function sourceDir(root, provider) {
550
535
  return path.join(root, SOURCE_ROOT_DIR, provider);
551
536
  }
552
- function sourceRootOf(root, provider) {
553
- if (sourceFolderInUse(root, provider).legacy) return null;
537
+ function sourceRootOf(root) {
554
538
  return { dir: path.join(root, SOURCE_ROOT_DIR), relName: SOURCE_ROOT_DIR };
555
539
  }
540
+ var RETIRED_SOURCE_FOLDER = ".claude-src";
541
+ function retiredSourceFolderIn(roots) {
542
+ if (!roots.some(holdsTheRetiredSourceFolder)) return null;
543
+ return sourceDirName("claude");
544
+ }
545
+ function holdsTheRetiredSourceFolder(root) {
546
+ return directoryExists(path.join(root, RETIRED_SOURCE_FOLDER));
547
+ }
556
548
  var PROVIDER_OF_A_NEW_INSTALLATION = "claude";
557
549
  var providerChosenForThisRun;
558
550
  function chooseProviderForThisRun(provider) {
@@ -570,24 +562,13 @@ function providerOnDisk(root) {
570
562
  return started ?? PROVIDER_OF_A_NEW_INSTALLATION;
571
563
  }
572
564
  function holdsAnInstallation(root, provider) {
573
- return holdsAConfig(sourceFolderInUse(root, provider).dir);
565
+ return holdsAConfig(sourceDir(root, provider));
574
566
  }
575
567
  function holdsASourceFolder(root, provider) {
576
- return sourceFolderOnDisk(root, provider) !== null;
577
- }
578
- function resolveSourceDir(root, provider) {
579
- return describeSourceFolder(
580
- sourceFolderOnDisk(root, provider) ?? sourceDir(root, provider),
581
- root,
582
- provider
583
- );
568
+ return holdsAnything(sourceDir(root, provider));
584
569
  }
585
570
  function sourceFolderInUse(root, provider) {
586
- return describeSourceFolder(
587
- sourceFolderOnDisk(root, provider) ?? newInstallationDir(root, provider),
588
- root,
589
- provider
590
- );
571
+ return { dir: sourceDir(root, provider), relName: sourceDirName(provider) };
591
572
  }
592
573
  function relativeConfigPath(root, provider) {
593
574
  return `${sourceFolderInUse(root, provider).relName}/${STANDARD_FILES.CONFIG_TS}`;
@@ -596,35 +577,6 @@ function sourceFolderName(root, provider) {
596
577
  if (root === void 0) return sourceDirName(provider);
597
578
  return sourceFolderInUse(root, provider).relName;
598
579
  }
599
- function sourceFolderOnDisk(root, provider) {
600
- const preferred = sourceDir(root, provider);
601
- const legacy = legacyFolderFor(root, provider);
602
- if (holdsAConfig(preferred)) return preferred;
603
- if (legacy !== null && holdsAConfig(legacy)) return legacy;
604
- if (holdsAnything(preferred)) return preferred;
605
- if (legacy !== null && directoryExists(legacy)) return legacy;
606
- return null;
607
- }
608
- function newInstallationDir(root, provider) {
609
- return sourceDir(root, provider);
610
- }
611
- function legacyFolderFor(root, provider) {
612
- return provider === "claude" ? path.join(root, LEGACY_SOURCE_DIR) : null;
613
- }
614
- function describeSourceFolder(dir, root, provider) {
615
- const legacy = dir === legacyFolderFor(root, provider);
616
- return {
617
- dir,
618
- relName: legacy ? LEGACY_SOURCE_DIR : sourceDirName(provider),
619
- legacy,
620
- both: bothFoldersPresent(root, provider)
621
- };
622
- }
623
- function bothFoldersPresent(root, provider) {
624
- const legacyFolder = legacyFolderFor(root, provider);
625
- if (legacyFolder === null) return false;
626
- return directoryExists(sourceDir(root, provider)) && directoryExists(legacyFolder);
627
- }
628
580
  function installBaseDir(projectDir, scope) {
629
581
  return scope === "global" ? os2.homedir() : projectDir;
630
582
  }
@@ -860,10 +812,7 @@ async function glob(pattern, cwd, { dot = false } = {}) {
860
812
  var PAIR_HALVES = [STANDARD_FILES.CONFIG_TS, STANDARD_FILES.CONFIG_TYPES_TS];
861
813
  function globalPairFolders() {
862
814
  const home = os3.homedir();
863
- return [
864
- path2.join(home, LEGACY_SOURCE_DIR),
865
- ...PROVIDERS.map((provider) => sourceDir(home, provider))
866
- ];
815
+ return PROVIDERS.map((provider) => sourceDir(home, provider));
867
816
  }
868
817
  function everyGlobalPairPath() {
869
818
  return globalPairFolders().flatMap(
@@ -1377,25 +1326,11 @@ function scopeLabel(kind) {
1377
1326
  function sentenceCase(text) {
1378
1327
  return `${text.slice(0, 1).toUpperCase()}${text.slice(1)}`;
1379
1328
  }
1380
- function bothSourceFoldersPresent(from, to, readFrom) {
1381
- return `both ${from}/ and ${to}/ are on disk \u2014 ${readFrom}/ is the one being read`;
1382
- }
1383
- function rivalSourceFoldersRefuseWrites(kinds, from, to, readFrom) {
1384
- const subject = sentenceCase(kinds.map(scopeNoun).join(" and "));
1385
- const verb = kinds.length === 1 ? "holds" : "hold";
1386
- const other = readFrom === from ? to : from;
1387
- return `${subject} ${verb} both ${from}/ and ${to}/ \u2014 ${readFrom}/ is the one being read, so anything under ${other}/ is invisible to this CLI. No command merges them: move what you want to keep from ${other}/ into ${readFrom}/ yourself, then delete ${other}/. '${CLI_INVOKE_COMMAND} doctor' still reports on either.`;
1388
- }
1389
- var WRITE_REFUSED_RIVAL_SOURCE_FOLDERS = "Refusing to write while two source folders are on disk.";
1390
- var REGISTRY_IS_NOT_AN_INVENTORY = "Registered projects still on the old folder \u2014 this list is the registry, not an inventory of this machine:";
1391
- function layoutIsLegacy(label, from, to) {
1392
- return `${label} is on ${from}/, which this CLI goes on reading and writing \u2014 move its contents into ${to}/ by hand to be on the current layout`;
1393
- }
1394
1329
  function layoutIsCurrent(label, to) {
1395
1330
  return `${label} is on ${to}/`;
1396
1331
  }
1397
- function compiledAgentNamesTheOtherFolder(agentFile, unusedFolder) {
1398
- return `${agentFile} names a source folder this installation does not use (${unusedFolder}/) \u2014 recompile it with '${CLI_INVOKE_COMMAND} compile'`;
1332
+ function retiredSourceFolderUnsupported(replacement) {
1333
+ return `${RETIRED_SOURCE_FOLDER}/ is no longer supported (agents-inc now serves Claude and Codex). Move it to ${replacement}/.`;
1399
1334
  }
1400
1335
 
1401
1336
  // src/cli/types/generated/source-types.ts
@@ -2770,13 +2705,8 @@ function describesItsOwnFault(error) {
2770
2705
  }
2771
2706
  var unreadableSourceRepoConfig = (reason, cause) => new Error(configUnreadableError(reason), { cause });
2772
2707
  async function loadSourceRepoConfig(basePath) {
2773
- for (const folder of SOURCE_REPO_CONFIG_FOLDERS) {
2774
- const declared = await readDeclaredConfig(path5.join(basePath, folder));
2775
- if (declared) return declared;
2776
- }
2777
- return null;
2708
+ return readDeclaredConfig(path5.join(basePath, SOURCE_ROOT_DIR));
2778
2709
  }
2779
- var SOURCE_REPO_CONFIG_FOLDERS = [SOURCE_ROOT_DIR, LEGACY_SOURCE_DIR];
2780
2710
  async function readDeclaredConfig(dir) {
2781
2711
  const configPath = path5.join(dir, STANDARD_FILES.CONFIG_TS);
2782
2712
  if (!await fileExists(configPath)) {
@@ -6379,9 +6309,6 @@ function buildAgentScopeMap(config) {
6379
6309
 
6380
6310
  // src/cli/lib/installation/source-scopes.ts
6381
6311
  import os11 from "os";
6382
- function folderBeingRead(scope, move) {
6383
- return scope.legacy ? move.from.relName : move.to.relName;
6384
- }
6385
6312
  async function sourceScopesInPlay(cwd) {
6386
6313
  const scopes = await Promise.all(
6387
6314
  scopeRootsInPlay(cwd).map(
@@ -6396,18 +6323,9 @@ function scopeRootsInPlay(cwd) {
6396
6323
  return [global, { kind: "project", root: cwd }];
6397
6324
  }
6398
6325
  async function describeScope(kind, root, provider) {
6399
- const resolved = resolveSourceDir(root, provider);
6400
- const present = resolved.legacy || await directoryExists2(resolved.dir);
6401
- if (!present) return null;
6402
- return {
6403
- kind,
6404
- root,
6405
- provider,
6406
- legacy: resolved.legacy,
6407
- both: resolved.both,
6408
- relName: resolved.relName,
6409
- move: plannedSourceFolderMove(root, provider)
6410
- };
6326
+ const folder = sourceFolderInUse(root, provider);
6327
+ if (!await directoryExists2(folder.dir)) return null;
6328
+ return { kind, root, provider, relName: folder.relName };
6411
6329
  }
6412
6330
 
6413
6331
  // src/cli/lib/installation/detect-installations.ts
@@ -10589,6 +10507,30 @@ export {
10589
10507
  drainBuffer,
10590
10508
  disableBuffering,
10591
10509
  warn,
10510
+ renderAgentRoleToml,
10511
+ agentsLeftOutOfCodexMessage,
10512
+ unexpressibleOnCodexMessage,
10513
+ buildAgentTemplateContext,
10514
+ pluginRefFor,
10515
+ renderAgent,
10516
+ renderAgentBody,
10517
+ sourceRootOf,
10518
+ retiredSourceFolderIn,
10519
+ chooseProviderForThisRun,
10520
+ providerInUse,
10521
+ sourceFolderInUse,
10522
+ relativeConfigPath,
10523
+ sourceFolderName,
10524
+ installBaseDir,
10525
+ codexGlobalConfigFile,
10526
+ claudeStateFile,
10527
+ agentsDir,
10528
+ skillsDir,
10529
+ permissionFiles,
10530
+ skillsPathPrefix,
10531
+ agentCodec,
10532
+ hostCompilesAgent,
10533
+ advisesOnPermissions,
10592
10534
  validateKebabCaseName,
10593
10535
  ERROR_MESSAGES,
10594
10536
  SUCCESS_MESSAGES,
@@ -10656,39 +10598,8 @@ export {
10656
10598
  compiledAgentsRemoval,
10657
10599
  scopeNoun,
10658
10600
  scopeLabel,
10659
- bothSourceFoldersPresent,
10660
- rivalSourceFoldersRefuseWrites,
10661
- WRITE_REFUSED_RIVAL_SOURCE_FOLDERS,
10662
- REGISTRY_IS_NOT_AN_INVENTORY,
10663
- layoutIsLegacy,
10664
10601
  layoutIsCurrent,
10665
- compiledAgentNamesTheOtherFolder,
10666
- renderAgentRoleToml,
10667
- agentsLeftOutOfCodexMessage,
10668
- unexpressibleOnCodexMessage,
10669
- buildAgentTemplateContext,
10670
- pluginRefFor,
10671
- renderAgent,
10672
- renderAgentBody,
10673
- plannedSourceFolderMove,
10674
- unusedSourceFolderName,
10675
- sourceRootOf,
10676
- chooseProviderForThisRun,
10677
- providerInUse,
10678
- resolveSourceDir,
10679
- sourceFolderInUse,
10680
- relativeConfigPath,
10681
- sourceFolderName,
10682
- installBaseDir,
10683
- codexGlobalConfigFile,
10684
- claudeStateFile,
10685
- agentsDir,
10686
- skillsDir,
10687
- permissionFiles,
10688
- skillsPathPrefix,
10689
- agentCodec,
10690
- hostCompilesAgent,
10691
- advisesOnPermissions,
10602
+ retiredSourceFolderUnsupported,
10692
10603
  GlobalPairWriteViolation,
10693
10604
  withGateToken,
10694
10605
  assertGateToken,
@@ -10845,11 +10756,10 @@ export {
10845
10756
  buildAndMergeConfig,
10846
10757
  buildCompileAgents,
10847
10758
  buildAgentScopeMap,
10848
- folderBeingRead,
10849
10759
  sourceScopesInPlay,
10850
10760
  detectInstallations,
10851
10761
  ejectCopyFailureError,
10852
10762
  detectMigrations,
10853
10763
  executeMigration
10854
10764
  };
10855
- //# sourceMappingURL=chunk-IM45LLQX.js.map
10765
+ //# sourceMappingURL=chunk-A4KDXNOT.js.map