agents-inc 0.157.0 → 0.159.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.
- package/CHANGELOG.md +41 -0
- package/dist/{chunk-3E52LCYC.js → chunk-2Q65K6E3.js} +70 -25
- package/dist/chunk-2Q65K6E3.js.map +1 -0
- package/dist/{chunk-YG5YPVTJ.js → chunk-42PQKBVU.js} +6 -6
- package/dist/{chunk-P6OKOH62.js → chunk-4APXK7ZY.js} +2 -2
- package/dist/{chunk-4CIAZOTD.js → chunk-4RYWFQK7.js} +3 -3
- package/dist/{chunk-O4K42CJB.js → chunk-4VMLCWLD.js} +3 -3
- package/dist/{chunk-QNAMXQKF.js → chunk-4VVKVOOP.js} +2 -2
- package/dist/{chunk-G6G2FT2G.js → chunk-5KB4I5J7.js} +2 -5
- package/dist/chunk-5KB4I5J7.js.map +1 -0
- package/dist/{chunk-LDBVIPTP.js → chunk-5YOSLSQJ.js} +4 -4
- package/dist/{chunk-QXPMQBEI.js → chunk-62XKTOUI.js} +3 -3
- package/dist/{chunk-IGOFZG3S.js → chunk-7Z4N4JWQ.js} +1 -241
- package/dist/{chunk-IGOFZG3S.js.map → chunk-7Z4N4JWQ.js.map} +1 -1
- package/dist/{chunk-KUZBMEWR.js → chunk-AU5FS3QK.js} +3 -3
- package/dist/{chunk-CEGHC7L5.js → chunk-BNHD2GIB.js} +5 -5
- package/dist/{chunk-PXGDA2SY.js → chunk-BQJVHD6Y.js} +4 -4
- package/dist/{chunk-XOZAKFTS.js → chunk-F35G42TF.js} +12 -12
- package/dist/{chunk-QO4XD5V5.js → chunk-FBRLHNUT.js} +3 -3
- package/dist/{chunk-4KHUHPX4.js → chunk-G7TYOPON.js} +3 -3
- package/dist/{chunk-WENBESZO.js → chunk-GPZQCLZJ.js} +6 -6
- package/dist/{chunk-MU2TQ5KK.js → chunk-IO2DPRDS.js} +2 -2
- package/dist/{chunk-TZRXWFF5.js → chunk-ITEJARWI.js} +3 -3
- package/dist/{chunk-4EPJWN7C.js → chunk-JV4P7BL4.js} +5 -5
- package/dist/{chunk-YKFCUVHG.js → chunk-LSSGS2QS.js} +3 -3
- package/dist/{chunk-RLU2IXD3.js → chunk-LVA6XJGR.js} +4 -4
- package/dist/{chunk-PVPNVK3W.js → chunk-MPLWPWL4.js} +2 -2
- package/dist/{chunk-24IGOJ7E.js → chunk-NS5COBTT.js} +4 -4
- package/dist/{chunk-VTIDLRNA.js → chunk-OJIQOVWB.js} +2 -2
- package/dist/{chunk-WCZNQECQ.js → chunk-PEHYVSJG.js} +2 -2
- package/dist/{chunk-DZD25NHW.js → chunk-SITF5EZM.js} +2 -2
- package/dist/{chunk-ZBYVDXZG.js → chunk-SKDTGHCD.js} +5 -5
- package/dist/{chunk-PGZSNNDA.js → chunk-THLQS2AW.js} +4 -4
- package/dist/{chunk-RVXI5VQU.js → chunk-V625APR6.js} +76 -267
- package/dist/chunk-V625APR6.js.map +1 -0
- package/dist/{chunk-ZAQ6WMJV.js → chunk-VCUXNKOY.js} +6 -6
- package/dist/{chunk-VI6U2PJG.js → chunk-WVBJRFFM.js} +4 -4
- package/dist/{chunk-KTXVQ7OM.js → chunk-WVKGO3Y5.js} +5 -5
- package/dist/{chunk-YXI3BTQQ.js → chunk-X5PLVOJS.js} +2 -2
- package/dist/{chunk-Z3H2K5PK.js → chunk-YAHTF4NO.js} +9 -9
- package/dist/{chunk-4DMFK67G.js → chunk-YKRPWZ3G.js} +2 -2
- package/dist/{chunk-DCIC35R7.js → chunk-YVQSDBTK.js} +34 -6
- package/dist/chunk-YVQSDBTK.js.map +1 -0
- package/dist/{chunk-V7PMQDDU.js → chunk-Z6G24ROK.js} +8 -8
- package/dist/{chunk-K2VTGT45.js → chunk-Z6KROWH4.js} +7 -7
- package/dist/commands/build/marketplace.js +7 -7
- package/dist/commands/build/plugins.js +7 -7
- package/dist/commands/compile.js +10 -10
- package/dist/commands/doctor.js +13 -13
- package/dist/commands/doctor.js.map +1 -1
- package/dist/commands/edit.js +58 -67
- package/dist/commands/edit.js.map +1 -1
- package/dist/commands/eject.js +10 -10
- package/dist/commands/init.js +40 -36
- package/dist/commands/list.js +8 -8
- package/dist/commands/new/marketplace.js +7 -7
- package/dist/commands/search.js +10 -10
- package/dist/commands/share.js +99 -15
- package/dist/commands/share.js.map +1 -1
- package/dist/commands/uninstall.js +11 -11
- package/dist/commands/update.js +6 -6
- package/dist/components/common/removal-plan-confirm.js +2 -2
- package/dist/components/common/select-list.js +2 -2
- package/dist/components/wizard/category-grid.js +4 -4
- package/dist/components/wizard/checkbox-grid.js +4 -4
- package/dist/components/wizard/domain-selection.js +9 -9
- package/dist/components/wizard/run-wizard-session.js +26 -26
- package/dist/components/wizard/scroll-affordance.js +2 -2
- package/dist/components/wizard/skill-agent-summary.js +5 -5
- package/dist/components/wizard/source-grid.js +5 -5
- package/dist/components/wizard/stack-selection.js +7 -7
- package/dist/components/wizard/step-agents.js +8 -8
- package/dist/components/wizard/step-build.js +7 -7
- package/dist/components/wizard/step-confirm.js +9 -9
- package/dist/components/wizard/step-sources.js +8 -8
- package/dist/components/wizard/step-stack.js +8 -8
- package/dist/components/wizard/summary-panel.js +8 -8
- package/dist/components/wizard/toast.js +2 -2
- package/dist/components/wizard/wizard-layout.js +12 -12
- package/dist/components/wizard/wizard-tabs.js +2 -2
- package/dist/components/wizard/wizard.js +25 -25
- package/dist/hooks/init.js +36 -36
- package/dist/load-agent-defs-2H42B2OO.js +13 -0
- package/dist/recompile-project-agents-QIAMBCM4.js +17 -0
- package/dist/{source-loader-BIAEDR5R.js → source-loader-CC6ZWKTI.js} +4 -4
- package/dist/stores/wizard-store.js +4 -4
- package/package.json +2 -4
- package/src/schemas/project-source-config.schema.json +0 -3
- package/dist/chunk-3E52LCYC.js.map +0 -1
- package/dist/chunk-DCIC35R7.js.map +0 -1
- package/dist/chunk-G6G2FT2G.js.map +0 -1
- package/dist/chunk-RVXI5VQU.js.map +0 -1
- package/dist/load-agent-defs-M6LRVISN.js +0 -13
- package/dist/recompile-project-agents-G7ZM25PC.js +0 -17
- /package/dist/{chunk-YG5YPVTJ.js.map → chunk-42PQKBVU.js.map} +0 -0
- /package/dist/{chunk-P6OKOH62.js.map → chunk-4APXK7ZY.js.map} +0 -0
- /package/dist/{chunk-4CIAZOTD.js.map → chunk-4RYWFQK7.js.map} +0 -0
- /package/dist/{chunk-O4K42CJB.js.map → chunk-4VMLCWLD.js.map} +0 -0
- /package/dist/{chunk-QNAMXQKF.js.map → chunk-4VVKVOOP.js.map} +0 -0
- /package/dist/{chunk-LDBVIPTP.js.map → chunk-5YOSLSQJ.js.map} +0 -0
- /package/dist/{chunk-QXPMQBEI.js.map → chunk-62XKTOUI.js.map} +0 -0
- /package/dist/{chunk-KUZBMEWR.js.map → chunk-AU5FS3QK.js.map} +0 -0
- /package/dist/{chunk-CEGHC7L5.js.map → chunk-BNHD2GIB.js.map} +0 -0
- /package/dist/{chunk-PXGDA2SY.js.map → chunk-BQJVHD6Y.js.map} +0 -0
- /package/dist/{chunk-XOZAKFTS.js.map → chunk-F35G42TF.js.map} +0 -0
- /package/dist/{chunk-QO4XD5V5.js.map → chunk-FBRLHNUT.js.map} +0 -0
- /package/dist/{chunk-4KHUHPX4.js.map → chunk-G7TYOPON.js.map} +0 -0
- /package/dist/{chunk-WENBESZO.js.map → chunk-GPZQCLZJ.js.map} +0 -0
- /package/dist/{chunk-MU2TQ5KK.js.map → chunk-IO2DPRDS.js.map} +0 -0
- /package/dist/{chunk-TZRXWFF5.js.map → chunk-ITEJARWI.js.map} +0 -0
- /package/dist/{chunk-4EPJWN7C.js.map → chunk-JV4P7BL4.js.map} +0 -0
- /package/dist/{chunk-YKFCUVHG.js.map → chunk-LSSGS2QS.js.map} +0 -0
- /package/dist/{chunk-RLU2IXD3.js.map → chunk-LVA6XJGR.js.map} +0 -0
- /package/dist/{chunk-PVPNVK3W.js.map → chunk-MPLWPWL4.js.map} +0 -0
- /package/dist/{chunk-24IGOJ7E.js.map → chunk-NS5COBTT.js.map} +0 -0
- /package/dist/{chunk-VTIDLRNA.js.map → chunk-OJIQOVWB.js.map} +0 -0
- /package/dist/{chunk-WCZNQECQ.js.map → chunk-PEHYVSJG.js.map} +0 -0
- /package/dist/{chunk-DZD25NHW.js.map → chunk-SITF5EZM.js.map} +0 -0
- /package/dist/{chunk-ZBYVDXZG.js.map → chunk-SKDTGHCD.js.map} +0 -0
- /package/dist/{chunk-PGZSNNDA.js.map → chunk-THLQS2AW.js.map} +0 -0
- /package/dist/{chunk-ZAQ6WMJV.js.map → chunk-VCUXNKOY.js.map} +0 -0
- /package/dist/{chunk-VI6U2PJG.js.map → chunk-WVBJRFFM.js.map} +0 -0
- /package/dist/{chunk-KTXVQ7OM.js.map → chunk-WVKGO3Y5.js.map} +0 -0
- /package/dist/{chunk-YXI3BTQQ.js.map → chunk-X5PLVOJS.js.map} +0 -0
- /package/dist/{chunk-Z3H2K5PK.js.map → chunk-YAHTF4NO.js.map} +0 -0
- /package/dist/{chunk-4DMFK67G.js.map → chunk-YKRPWZ3G.js.map} +0 -0
- /package/dist/{chunk-V7PMQDDU.js.map → chunk-Z6G24ROK.js.map} +0 -0
- /package/dist/{chunk-K2VTGT45.js.map → chunk-Z6KROWH4.js.map} +0 -0
- /package/dist/{load-agent-defs-M6LRVISN.js.map → load-agent-defs-2H42B2OO.js.map} +0 -0
- /package/dist/{recompile-project-agents-G7ZM25PC.js.map → recompile-project-agents-QIAMBCM4.js.map} +0 -0
- /package/dist/{source-loader-BIAEDR5R.js.map → source-loader-CC6ZWKTI.js.map} +0 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
loadAgentDefs
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-G7TYOPON.js";
|
|
5
5
|
import {
|
|
6
6
|
pruneStaleCompiledAgents,
|
|
7
7
|
recompileAgents
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-5YOSLSQJ.js";
|
|
9
9
|
import {
|
|
10
10
|
buildAgentScopeMap,
|
|
11
11
|
buildMarketplacePluginRef,
|
|
@@ -22,15 +22,15 @@ import {
|
|
|
22
22
|
resolveInstallPaths,
|
|
23
23
|
toClaudePluginScope,
|
|
24
24
|
verbose
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-V625APR6.js";
|
|
26
26
|
import {
|
|
27
27
|
typedEntries,
|
|
28
28
|
typedKeys
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-7Z4N4JWQ.js";
|
|
30
30
|
import {
|
|
31
31
|
LOCAL_SKILLS_PATH,
|
|
32
32
|
globalInstallRoot
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-5KB4I5J7.js";
|
|
34
34
|
|
|
35
35
|
// src/cli/lib/operations/project/remove-compiled-agents.ts
|
|
36
36
|
import path from "path";
|
|
@@ -252,4 +252,4 @@ export {
|
|
|
252
252
|
recompileRegisteredProjectAgents,
|
|
253
253
|
recompilePropagatedProjectAgents
|
|
254
254
|
};
|
|
255
|
-
//# sourceMappingURL=chunk-
|
|
255
|
+
//# sourceMappingURL=chunk-VCUXNKOY.js.map
|
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
import {
|
|
3
3
|
computeScopeDiff,
|
|
4
4
|
useWizardStore
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-LVA6XJGR.js";
|
|
6
6
|
import {
|
|
7
7
|
getSkillDisplayName
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-7Z4N4JWQ.js";
|
|
9
9
|
import {
|
|
10
10
|
CLI_COLORS,
|
|
11
11
|
EJECT_SOURCE,
|
|
12
12
|
UI_SYMBOLS
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-5KB4I5J7.js";
|
|
14
14
|
|
|
15
15
|
// src/cli/components/wizard/skill-agent-summary.tsx
|
|
16
16
|
import { Box, Text } from "ink";
|
|
@@ -106,4 +106,4 @@ var SkillAgentSummary = ({
|
|
|
106
106
|
export {
|
|
107
107
|
SkillAgentSummary
|
|
108
108
|
};
|
|
109
|
-
//# sourceMappingURL=chunk-
|
|
109
|
+
//# sourceMappingURL=chunk-WVBJRFFM.js.map
|
|
@@ -4,12 +4,12 @@ import {
|
|
|
4
4
|
pluginInstallFailureError,
|
|
5
5
|
unbackedPluginInstallError,
|
|
6
6
|
unbackedPluginSkillIds
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-4RYWFQK7.js";
|
|
8
8
|
import {
|
|
9
9
|
clearTerminalScreen,
|
|
10
10
|
formatTerminalTooSmallMessage,
|
|
11
11
|
isTerminalLargeEnough
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-4VVKVOOP.js";
|
|
13
13
|
import {
|
|
14
14
|
STATUS_MESSAGES,
|
|
15
15
|
claudePluginMarketplaceAdd,
|
|
@@ -34,12 +34,12 @@ import {
|
|
|
34
34
|
skillMetadataUnusableDetail,
|
|
35
35
|
verbose,
|
|
36
36
|
warn
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-V625APR6.js";
|
|
38
38
|
import {
|
|
39
39
|
CLI_COLORS,
|
|
40
40
|
DEFAULT_BRANDING,
|
|
41
41
|
MIN_TERMINAL_SIZE
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-5KB4I5J7.js";
|
|
43
43
|
|
|
44
44
|
// src/cli/lib/exit-codes.ts
|
|
45
45
|
var EXIT_CODES = {
|
|
@@ -477,4 +477,4 @@ export {
|
|
|
477
477
|
EXIT_CODES,
|
|
478
478
|
BaseCommand
|
|
479
479
|
};
|
|
480
|
-
//# sourceMappingURL=chunk-
|
|
480
|
+
//# sourceMappingURL=chunk-WVKGO3Y5.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
SCROLL_VIEWPORT
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-5KB4I5J7.js";
|
|
5
5
|
|
|
6
6
|
// src/cli/components/wizard/scroll-affordance.tsx
|
|
7
7
|
import { Box, Text } from "ink";
|
|
@@ -21,4 +21,4 @@ var ScrollAffordance = ({ hiddenAbove, hiddenBelow }) => {
|
|
|
21
21
|
export {
|
|
22
22
|
ScrollAffordance
|
|
23
23
|
};
|
|
24
|
-
//# sourceMappingURL=chunk-
|
|
24
|
+
//# sourceMappingURL=chunk-X5PLVOJS.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
compileAgents
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-VCUXNKOY.js";
|
|
5
5
|
import {
|
|
6
6
|
loadAgentDefs
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-G7TYOPON.js";
|
|
8
8
|
import {
|
|
9
9
|
ConfigLoadError,
|
|
10
10
|
GlobalPairWriteViolation,
|
|
@@ -43,13 +43,13 @@ import {
|
|
|
43
43
|
verbose,
|
|
44
44
|
withGateToken,
|
|
45
45
|
writeFile
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-V625APR6.js";
|
|
47
47
|
import {
|
|
48
48
|
byCategoryDeclarationOrder,
|
|
49
49
|
matrix,
|
|
50
50
|
typedEntries,
|
|
51
51
|
typedKeys
|
|
52
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-7Z4N4JWQ.js";
|
|
53
53
|
import {
|
|
54
54
|
CLAUDE_SRC_DIR,
|
|
55
55
|
CLI_INVOKE_COMMAND,
|
|
@@ -57,7 +57,7 @@ import {
|
|
|
57
57
|
GLOBAL_CONFIG_NAME,
|
|
58
58
|
LOCAL_PSEUDO_CATEGORY,
|
|
59
59
|
STANDARD_FILES
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-5KB4I5J7.js";
|
|
61
61
|
|
|
62
62
|
// src/cli/lib/operations/source/load-source.ts
|
|
63
63
|
async function loadSource(options) {
|
|
@@ -1007,7 +1007,7 @@ var NOTHING_RECOMPILED = {
|
|
|
1007
1007
|
};
|
|
1008
1008
|
async function recompilePropagated(projectDirs) {
|
|
1009
1009
|
if (projectDirs.length === 0) return NOTHING_RECOMPILED;
|
|
1010
|
-
const { recompilePropagatedProjectAgents: recompilePropagatedProjectAgents2 } = await import("./recompile-project-agents-
|
|
1010
|
+
const { recompilePropagatedProjectAgents: recompilePropagatedProjectAgents2 } = await import("./recompile-project-agents-QIAMBCM4.js");
|
|
1011
1011
|
return recompilePropagatedProjectAgents2(projectDirs);
|
|
1012
1012
|
}
|
|
1013
1013
|
|
|
@@ -1037,7 +1037,7 @@ async function applyConsequences(globalConfig, changes, deps, currentProjectDir)
|
|
|
1037
1037
|
function lazyGateDeps(projectDir) {
|
|
1038
1038
|
return {
|
|
1039
1039
|
loadMatrix: async () => {
|
|
1040
|
-
const { loadSkillsMatrixFromSource: loadSkillsMatrixFromSource2 } = await import("./source-loader-
|
|
1040
|
+
const { loadSkillsMatrixFromSource: loadSkillsMatrixFromSource2 } = await import("./source-loader-CC6ZWKTI.js");
|
|
1041
1041
|
const { matrix: matrix2 } = await loadSkillsMatrixFromSource2({
|
|
1042
1042
|
projectDir,
|
|
1043
1043
|
skipExtraSources: true,
|
|
@@ -1046,7 +1046,7 @@ function lazyGateDeps(projectDir) {
|
|
|
1046
1046
|
return matrix2;
|
|
1047
1047
|
},
|
|
1048
1048
|
loadAgents: async () => {
|
|
1049
|
-
const { loadAgentDefs: loadAgentDefs2 } = await import("./load-agent-defs-
|
|
1049
|
+
const { loadAgentDefs: loadAgentDefs2 } = await import("./load-agent-defs-2H42B2OO.js");
|
|
1050
1050
|
return (await loadAgentDefs2()).agents;
|
|
1051
1051
|
}
|
|
1052
1052
|
};
|
|
@@ -1349,4 +1349,4 @@ export {
|
|
|
1349
1349
|
writeProjectConfig,
|
|
1350
1350
|
compileAgentsAllScopes
|
|
1351
1351
|
};
|
|
1352
|
-
//# sourceMappingURL=chunk-
|
|
1352
|
+
//# sourceMappingURL=chunk-YAHTF4NO.js.map
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./chunk-OZXAJNLA.js";
|
|
5
5
|
import {
|
|
6
6
|
CLI_COLORS
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-5KB4I5J7.js";
|
|
8
8
|
|
|
9
9
|
// src/cli/components/common/removal-plan-confirm.tsx
|
|
10
10
|
import "react";
|
|
@@ -58,4 +58,4 @@ var RemovalPlanConfirm = ({
|
|
|
58
58
|
export {
|
|
59
59
|
RemovalPlanConfirm
|
|
60
60
|
};
|
|
61
|
-
//# sourceMappingURL=chunk-
|
|
61
|
+
//# sourceMappingURL=chunk-YKRPWZ3G.js.map
|
|
@@ -1,19 +1,21 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
orderDomains
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-LVA6XJGR.js";
|
|
5
5
|
import {
|
|
6
6
|
AGENT_NAMES,
|
|
7
|
+
execCommand,
|
|
8
|
+
getErrorMessage,
|
|
7
9
|
isScopePairCompatible,
|
|
8
10
|
seedAgentScope,
|
|
9
11
|
validateSelection
|
|
10
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-V625APR6.js";
|
|
11
13
|
import {
|
|
12
14
|
getCategoryDomain
|
|
13
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-7Z4N4JWQ.js";
|
|
14
16
|
import {
|
|
15
17
|
DEFAULT_PUBLIC_SOURCE_NAME
|
|
16
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-5KB4I5J7.js";
|
|
17
19
|
|
|
18
20
|
// src/cli/lib/seed/seed-to-wizard.ts
|
|
19
21
|
var KNOWN_AGENTS = new Set(AGENT_NAMES);
|
|
@@ -135,7 +137,33 @@ function seedToWizardResult(payload, matrix) {
|
|
|
135
137
|
};
|
|
136
138
|
}
|
|
137
139
|
|
|
140
|
+
// src/cli/utils/open-url.ts
|
|
141
|
+
function browserOpenerCommand(platform, url) {
|
|
142
|
+
if (platform === "darwin") return { command: "open", args: [url] };
|
|
143
|
+
if (platform === "win32") return { command: "cmd", args: ["/c", "start", "", url] };
|
|
144
|
+
return { command: "xdg-open", args: [url] };
|
|
145
|
+
}
|
|
146
|
+
function openerRefusedMessage(command, exitCode) {
|
|
147
|
+
return `Could not open your browser \u2014 '${command}' exited ${exitCode}.`;
|
|
148
|
+
}
|
|
149
|
+
function openerUnavailableMessage(command, reason) {
|
|
150
|
+
return `Could not open your browser \u2014 '${command}' could not be run: ${reason}`;
|
|
151
|
+
}
|
|
152
|
+
async function openUrl(url) {
|
|
153
|
+
const { command, args } = browserOpenerCommand(process.platform, url);
|
|
154
|
+
try {
|
|
155
|
+
const result = await execCommand(command, args);
|
|
156
|
+
if (result.exitCode !== 0) {
|
|
157
|
+
return { ok: false, error: openerRefusedMessage(command, result.exitCode) };
|
|
158
|
+
}
|
|
159
|
+
return { ok: true };
|
|
160
|
+
} catch (error) {
|
|
161
|
+
return { ok: false, error: openerUnavailableMessage(command, getErrorMessage(error)) };
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
|
|
138
165
|
export {
|
|
139
|
-
seedToWizardResult
|
|
166
|
+
seedToWizardResult,
|
|
167
|
+
openUrl
|
|
140
168
|
};
|
|
141
|
-
//# sourceMappingURL=chunk-
|
|
169
|
+
//# sourceMappingURL=chunk-YVQSDBTK.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/cli/lib/seed/seed-to-wizard.ts","../src/cli/utils/open-url.ts"],"sourcesContent":["import { seedAgentScope } from \"@workspace/matrix\";\n\nimport { AGENT_NAMES } from \"../../types/agents.js\";\nimport { DEFAULT_PUBLIC_SOURCE_NAME } from \"../../consts.js\";\nimport { isScopePairCompatible } from \"../configuration/config-generator.js\";\nimport { getCategoryDomain } from \"../matrix/matrix-provider.js\";\nimport { validateSelection } from \"../matrix/matrix-resolver.js\";\nimport { orderDomains } from \"../wizard/domain-order.js\";\n\nimport type { WizardResultV2 } from \"../../components/wizard/wizard.js\";\nimport type { AgentName } from \"../../types/agents.js\";\nimport type { AgentScopeConfig, SkillConfig } from \"../../types/config.js\";\nimport type {\n Category,\n Domain,\n DomainSelections,\n MergedSkillsMatrix,\n ResolvedSkill,\n} from \"../../types/matrix.js\";\nimport type { SkillAssignment, SkillId } from \"../../types/skills.js\";\nimport type { StackAgentConfig } from \"../../types/stacks.js\";\nimport type { SeedAgent, SeedLoadState, SeedPayload } from \"@workspace/matrix/seed\";\n\nexport type SeedMapping = {\n result: WizardResultV2;\n /** Ids this matrix does not know. Reported, never fatal — see the decode policy. */\n skippedSkillIds: string[];\n skippedAgentNames: string[];\n};\n\nconst KNOWN_AGENTS = new Set<string>(AGENT_NAMES);\n\n/** A skill's primary source, or the default marketplace. Mirrors the wizard's own resolution. */\nfunction sourceForSkill(skill: ResolvedSkill | undefined): string {\n return skill?.availableSources?.find((s) => s.primary)?.name ?? DEFAULT_PUBLIC_SOURCE_NAME;\n}\n\nfunction addToDomainSelections(\n selections: DomainSelections,\n domain: Domain,\n category: Category,\n skillId: SkillId,\n): void {\n const categorySelections = (selections[domain] ??= {});\n const skillList = (categorySelections[category] ??= []);\n if (!skillList.includes(skillId)) skillList.push(skillId);\n}\n\n/**\n * The stack mirror of {@link addToDomainSelections}: one sub-agent's own category lists, appended\n * in payload order. A `(skill, sub-agent)` pair can only occur once — `skills` is keyed by id — so\n * there is nothing to de-duplicate here.\n */\nfunction addToAgentStack(\n stack: Partial<Record<AgentName, StackAgentConfig>>,\n agent: AgentName,\n category: Category,\n assignment: SkillAssignment,\n): void {\n const agentStack = (stack[agent] ??= {});\n const assignments = (agentStack[category] ??= []);\n assignments.push(assignment);\n}\n\n/** A load state is per `(skill, sub-agent)`; `preloaded` is the stack's word for the same thing. */\nfunction toSkillAssignment(skillId: SkillId, load: SeedLoadState): SkillAssignment {\n return { id: skillId, preloaded: load === \"preloaded\" };\n}\n\n/** The payload's `agents` map, split by what this catalog can do with each entry. */\ntype SeedAgentMap = {\n /** Known agents the map has something to say about, keyed by name. */\n known: Map<AgentName, SeedAgent>;\n /** Names explicitly switched off — dropped, and their assignment rows ignored with them. */\n switchedOff: Set<string>;\n /** Names this catalog does not know. Reported, never fatal — same policy as unknown skill ids. */\n unknown: string[];\n};\n\nfunction readAgentMap(agents: SeedPayload[\"agents\"]): SeedAgentMap {\n const known = new Map<AgentName, SeedAgent>();\n const switchedOff = new Set<string>();\n const unknown: string[] = [];\n\n for (const [name, entry] of Object.entries(agents)) {\n if (!KNOWN_AGENTS.has(name)) unknown.push(name);\n else if (entry.on === false) switchedOff.add(name);\n else known.set(name as AgentName, entry);\n }\n\n return { known, switchedOff, unknown };\n}\n\n/**\n * A sub-agent's own row. Model and effort ride along on the same terms as its scope — an absent\n * key means \"keep whatever the agent's metadata says\".\n */\nfunction agentScopeConfig(name: AgentName, entry: SeedAgent | undefined): AgentScopeConfig {\n return {\n name,\n scope: seedAgentScope(entry),\n ...(entry?.model !== undefined && { model: entry.model }),\n ...(entry?.effort !== undefined && { effort: entry.effort }),\n };\n}\n\n/** A `(skill, sub-agent)` assignment the config model has nowhere to write. */\ntype UnwritableAssignment = { skillId: SkillId; agent: AgentName };\n\n/**\n * Names every unwritable pair, not just the first: a sharer who fixes one only to be refused for\n * the next learns nothing the first message could not have told them. Both halves of each pair are\n * named because neither alone says what to change — the skill can move to global scope, or the\n * sub-agent can be pinned to the project, and only the sharer knows which they meant.\n */\nfunction unwritableAssignmentsError(assignments: UnwritableAssignment[]): string {\n return [\n \"This configuration cannot be installed: a project-scoped skill never reaches a sub-agent \" +\n \"that rests at global scope, so these assignments have nowhere to be written:\",\n ...assignments.map(({ skillId, agent }) => ` ${skillId} -> ${agent}`),\n \"Re-share it with each sub-agent above pinned to the project, or each skill above at global scope.\",\n ].join(\"\\n\");\n}\n\n/**\n * Turns a shared configuration into the shape the install pipeline already consumes, so\n * `init --from` reuses `writeProjectConfig` -> skill install -> `compileAgentsAllScopes`\n * unchanged rather than growing a second path that can drift from the wizard's.\n *\n * Unknown ids are skipped, never fatal. Payloads carry catalog slugs precisely so they survive\n * catalog churn: a config shared before a skill was renamed should still install everything else,\n * and failing the whole decode would make every rename retroactively break every shared id.\n *\n * A sub-agent reaches the roster two ways: named by a surviving skill's assignment, or switched on\n * in the `agents` map. The map is the only place a configuration can say anything about an agent\n * no skill mentions, which is what makes a bare (skill-less) agent shareable at all; it also\n * carries that agent's model and effort onto its `AgentScopeConfig`.\n *\n * The `assignments` map is per `(skill, sub-agent)` and carries a load state, so it decides three\n * things the wizard cannot express separately: which sub-agents are selected, which skills land in\n * each one's stack entry, and which of those preload. That is why the result carries an\n * `assignedStack` — the install pipeline's ownership rules broadcast every scope-compatible skill\n * to every selected agent, which would hand a bare sub-agent someone else's skills.\n *\n * An unwritable `(skill, sub-agent)` pair is the one thing here that IS fatal, and it is fatal for\n * the opposite reason to the skips: an unknown id is content this catalog does not have, while an\n * unwritable pair is content it has and cannot place. Because `assignedStack` replaces the derived\n * stack wholesale, no scope filter runs on these rows downstream — they reach the writers, which\n * put them in neither half of the split config and say nothing. Refusing at the decode is what\n * keeps a payload from installing as a quieter configuration than the one that was shared.\n */\nexport function seedToWizardResult(payload: SeedPayload, matrix: MergedSkillsMatrix): SeedMapping {\n const domainSelections: DomainSelections = {};\n const assignedStack: Partial<Record<AgentName, StackAgentConfig>> = {};\n const skills: SkillConfig[] = [];\n const skippedSkillIds: string[] = [];\n const unwritable: UnwritableAssignment[] = [];\n const agentNames = new Set<AgentName>();\n const agentMap = readAgentMap(payload.agents);\n const skippedAgentNames = new Set<string>(agentMap.unknown);\n\n for (const [skillId, entry] of Object.entries(payload.skills)) {\n const skill = matrix.skills[skillId as SkillId];\n const domain = skill?.category ? getCategoryDomain(skill.category) : undefined;\n\n if (!skill?.category || !domain) {\n skippedSkillIds.push(skillId);\n continue;\n }\n\n // Past the guard the matrix knows this id, and its category is a real one: the `local`\n // pseudo-category has no domain, so it left with the skips.\n const id = skillId as SkillId;\n const category = skill.category as Category;\n\n addToDomainSelections(domainSelections, domain, category, id);\n\n skills.push({\n id,\n scope: entry.scope,\n // \"eject\" is an origin in its own right; anything else names the marketplace it came from.\n origin: entry.install === \"eject\" ? \"eject\" : sourceForSkill(skill),\n });\n\n // Only assignments on skills that survived — an agent should not be switched on by a skill\n // this catalog cannot install.\n for (const [agentName, load] of Object.entries(entry.assignments)) {\n if (agentMap.switchedOff.has(agentName)) continue;\n if (!KNOWN_AGENTS.has(agentName)) {\n skippedAgentNames.add(agentName);\n continue;\n }\n\n const agent = agentName as AgentName;\n // Rows the decode was going to ignore anyway have already left, so what reaches here is a\n // pair the payload really asked for — and the config model's one rule about pairs applies.\n if (!isScopePairCompatible(entry.scope, seedAgentScope(agentMap.known.get(agent)))) {\n unwritable.push({ skillId: id, agent });\n continue;\n }\n\n agentNames.add(agent);\n // The assignment is the curation: this sub-agent holds this skill, at this load state, and\n // no sub-agent the payload did not name holds it at all.\n addToAgentStack(assignedStack, agent, category, toSkillAssignment(id, load));\n }\n }\n\n if (unwritable.length > 0) throw new Error(unwritableAssignmentsError(unwritable));\n\n // Bare agents: switched on by the map alone, with no skill to carry them in.\n for (const [name, entry] of agentMap.known) {\n if (entry.on === true) agentNames.add(name);\n }\n\n const selectedAgents = [...agentNames];\n\n return {\n result: {\n skills,\n selectedAgents,\n agentConfigs: selectedAgents.map((name) => agentScopeConfig(name, agentMap.known.get(name))),\n assignedStack,\n selectedStackId: payload.stackId,\n // Spread-conditional rather than passed through, because absent and present-holding-undefined\n // are different files on disk: a config describing itself with no key is not one describing\n // itself with an empty sentence, and the writer emits whichever key it is handed.\n ...(payload.description !== undefined && { description: payload.description }),\n domainSelections,\n selectedDomains: orderDomains(Object.keys(domainSelections) as Domain[]),\n // Nothing was dropped from a *saved config* — the skipped ids came off the wire and are\n // reported to the user directly, so there is no config removal to explain.\n unresolvableSkillIds: [],\n cancelled: false,\n // Revalidated here rather than taken on trust from the app that built the payload. That app\n // validated against ITS catalog; this one skips ids it does not know and carries its own\n // relationship rules, so a configuration that was consistent where it was authored can\n // arrive with a requirement genuinely unmet. Running the same validator the wizard runs\n // makes that this catalog's verdict on what it can install — reported through the spine\n // `init` already has, beside the skips that explain it — rather than a fault in what was\n // shared.\n validation: validateSelection(skills.map((skill) => skill.id)),\n },\n skippedSkillIds,\n skippedAgentNames: [...skippedAgentNames],\n };\n}\n","import { execCommand } from \"./exec.js\";\nimport { getErrorMessage } from \"./errors.js\";\n\n/** The shell-out one platform answers \"open this with whatever handles it\" with. */\nexport type OpenerCommand = { command: string; args: string[] };\n\n/**\n * Never a throw. A machine with no browser, no desktop session or no opener at all is a\n * legitimate place to run this CLI, so failing to open a link is something to say rather than\n * something to fail on — the same posture the seed boundaries take, and for the same reason:\n * the link is already printed by the time this runs, so nothing is lost by it not working.\n */\nexport type OpenUrlResult = { ok: true } | { ok: false; error: string };\n\n/**\n * The command a platform opens a link with.\n *\n * There is no dependency for this. All three are one-line shell-outs to something the operating\n * system already ships, and a package for it would be a fourth thing to keep current for no\n * behaviour this does not have.\n *\n * Windows goes through `cmd` because `start` is a shell builtin rather than a program, and the\n * empty string after it is its TITLE argument: without one, `start` reads the first quoted\n * argument it is given as the window title and opens nothing.\n */\nexport function browserOpenerCommand(platform: NodeJS.Platform, url: string): OpenerCommand {\n if (platform === \"darwin\") return { command: \"open\", args: [url] };\n if (platform === \"win32\") return { command: \"cmd\", args: [\"/c\", \"start\", \"\", url] };\n return { command: \"xdg-open\", args: [url] };\n}\n\nfunction openerRefusedMessage(command: string, exitCode: number): string {\n return `Could not open your browser — '${command}' exited ${exitCode}.`;\n}\n\nfunction openerUnavailableMessage(command: string, reason: string): string {\n return `Could not open your browser — '${command}' could not be run: ${reason}`;\n}\n\n/**\n * Hands a link to whatever this platform opens links with.\n *\n * The URL travels as its own argument rather than inside a command line: `execCommand` spawns\n * without a shell, so the argument vector is the whole of the injection guard — there is no\n * string for a link to break out of.\n */\nexport async function openUrl(url: string): Promise<OpenUrlResult> {\n const { command, args } = browserOpenerCommand(process.platform, url);\n\n try {\n const result = await execCommand(command, args);\n if (result.exitCode !== 0) {\n return { ok: false, error: openerRefusedMessage(command, result.exitCode) };\n }\n return { ok: true };\n } catch (error) {\n return { ok: false, error: openerUnavailableMessage(command, getErrorMessage(error)) };\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AA8BA,IAAM,eAAe,IAAI,IAAY,WAAW;AAGhD,SAAS,eAAe,OAA0C;AAChE,SAAO,OAAO,kBAAkB,KAAK,CAAC,MAAM,EAAE,OAAO,GAAG,QAAQ;AAClE;AAEA,SAAS,sBACP,YACA,QACA,UACA,SACM;AACN,QAAM,qBAAsB,WAAW,MAAM,MAAM,CAAC;AACpD,QAAM,YAAa,mBAAmB,QAAQ,MAAM,CAAC;AACrD,MAAI,CAAC,UAAU,SAAS,OAAO,EAAG,WAAU,KAAK,OAAO;AAC1D;AAOA,SAAS,gBACP,OACA,OACA,UACA,YACM;AACN,QAAM,aAAc,MAAM,KAAK,MAAM,CAAC;AACtC,QAAM,cAAe,WAAW,QAAQ,MAAM,CAAC;AAC/C,cAAY,KAAK,UAAU;AAC7B;AAGA,SAAS,kBAAkB,SAAkB,MAAsC;AACjF,SAAO,EAAE,IAAI,SAAS,WAAW,SAAS,YAAY;AACxD;AAYA,SAAS,aAAa,QAA6C;AACjE,QAAM,QAAQ,oBAAI,IAA0B;AAC5C,QAAM,cAAc,oBAAI,IAAY;AACpC,QAAM,UAAoB,CAAC;AAE3B,aAAW,CAAC,MAAM,KAAK,KAAK,OAAO,QAAQ,MAAM,GAAG;AAClD,QAAI,CAAC,aAAa,IAAI,IAAI,EAAG,SAAQ,KAAK,IAAI;AAAA,aACrC,MAAM,OAAO,MAAO,aAAY,IAAI,IAAI;AAAA,QAC5C,OAAM,IAAI,MAAmB,KAAK;AAAA,EACzC;AAEA,SAAO,EAAE,OAAO,aAAa,QAAQ;AACvC;AAMA,SAAS,iBAAiB,MAAiB,OAAgD;AACzF,SAAO;AAAA,IACL;AAAA,IACA,OAAO,eAAe,KAAK;AAAA,IAC3B,GAAI,OAAO,UAAU,UAAa,EAAE,OAAO,MAAM,MAAM;AAAA,IACvD,GAAI,OAAO,WAAW,UAAa,EAAE,QAAQ,MAAM,OAAO;AAAA,EAC5D;AACF;AAWA,SAAS,2BAA2B,aAA6C;AAC/E,SAAO;AAAA,IACL;AAAA,IAEA,GAAG,YAAY,IAAI,CAAC,EAAE,SAAS,MAAM,MAAM,KAAK,OAAO,OAAO,KAAK,EAAE;AAAA,IACrE;AAAA,EACF,EAAE,KAAK,IAAI;AACb;AA6BO,SAAS,mBAAmB,SAAsB,QAAyC;AAChG,QAAM,mBAAqC,CAAC;AAC5C,QAAM,gBAA8D,CAAC;AACrE,QAAM,SAAwB,CAAC;AAC/B,QAAM,kBAA4B,CAAC;AACnC,QAAM,aAAqC,CAAC;AAC5C,QAAM,aAAa,oBAAI,IAAe;AACtC,QAAM,WAAW,aAAa,QAAQ,MAAM;AAC5C,QAAM,oBAAoB,IAAI,IAAY,SAAS,OAAO;AAE1D,aAAW,CAAC,SAAS,KAAK,KAAK,OAAO,QAAQ,QAAQ,MAAM,GAAG;AAC7D,UAAM,QAAQ,OAAO,OAAO,OAAkB;AAC9C,UAAM,SAAS,OAAO,WAAW,kBAAkB,MAAM,QAAQ,IAAI;AAErE,QAAI,CAAC,OAAO,YAAY,CAAC,QAAQ;AAC/B,sBAAgB,KAAK,OAAO;AAC5B;AAAA,IACF;AAIA,UAAM,KAAK;AACX,UAAM,WAAW,MAAM;AAEvB,0BAAsB,kBAAkB,QAAQ,UAAU,EAAE;AAE5D,WAAO,KAAK;AAAA,MACV;AAAA,MACA,OAAO,MAAM;AAAA;AAAA,MAEb,QAAQ,MAAM,YAAY,UAAU,UAAU,eAAe,KAAK;AAAA,IACpE,CAAC;AAID,eAAW,CAAC,WAAW,IAAI,KAAK,OAAO,QAAQ,MAAM,WAAW,GAAG;AACjE,UAAI,SAAS,YAAY,IAAI,SAAS,EAAG;AACzC,UAAI,CAAC,aAAa,IAAI,SAAS,GAAG;AAChC,0BAAkB,IAAI,SAAS;AAC/B;AAAA,MACF;AAEA,YAAM,QAAQ;AAGd,UAAI,CAAC,sBAAsB,MAAM,OAAO,eAAe,SAAS,MAAM,IAAI,KAAK,CAAC,CAAC,GAAG;AAClF,mBAAW,KAAK,EAAE,SAAS,IAAI,MAAM,CAAC;AACtC;AAAA,MACF;AAEA,iBAAW,IAAI,KAAK;AAGpB,sBAAgB,eAAe,OAAO,UAAU,kBAAkB,IAAI,IAAI,CAAC;AAAA,IAC7E;AAAA,EACF;AAEA,MAAI,WAAW,SAAS,EAAG,OAAM,IAAI,MAAM,2BAA2B,UAAU,CAAC;AAGjF,aAAW,CAAC,MAAM,KAAK,KAAK,SAAS,OAAO;AAC1C,QAAI,MAAM,OAAO,KAAM,YAAW,IAAI,IAAI;AAAA,EAC5C;AAEA,QAAM,iBAAiB,CAAC,GAAG,UAAU;AAErC,SAAO;AAAA,IACL,QAAQ;AAAA,MACN;AAAA,MACA;AAAA,MACA,cAAc,eAAe,IAAI,CAAC,SAAS,iBAAiB,MAAM,SAAS,MAAM,IAAI,IAAI,CAAC,CAAC;AAAA,MAC3F;AAAA,MACA,iBAAiB,QAAQ;AAAA;AAAA;AAAA;AAAA,MAIzB,GAAI,QAAQ,gBAAgB,UAAa,EAAE,aAAa,QAAQ,YAAY;AAAA,MAC5E;AAAA,MACA,iBAAiB,aAAa,OAAO,KAAK,gBAAgB,CAAa;AAAA;AAAA;AAAA,MAGvE,sBAAsB,CAAC;AAAA,MACvB,WAAW;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,MAQX,YAAY,kBAAkB,OAAO,IAAI,CAAC,UAAU,MAAM,EAAE,CAAC;AAAA,IAC/D;AAAA,IACA;AAAA,IACA,mBAAmB,CAAC,GAAG,iBAAiB;AAAA,EAC1C;AACF;;;AC7NO,SAAS,qBAAqB,UAA2B,KAA4B;AAC1F,MAAI,aAAa,SAAU,QAAO,EAAE,SAAS,QAAQ,MAAM,CAAC,GAAG,EAAE;AACjE,MAAI,aAAa,QAAS,QAAO,EAAE,SAAS,OAAO,MAAM,CAAC,MAAM,SAAS,IAAI,GAAG,EAAE;AAClF,SAAO,EAAE,SAAS,YAAY,MAAM,CAAC,GAAG,EAAE;AAC5C;AAEA,SAAS,qBAAqB,SAAiB,UAA0B;AACvE,SAAO,uCAAkC,OAAO,YAAY,QAAQ;AACtE;AAEA,SAAS,yBAAyB,SAAiB,QAAwB;AACzE,SAAO,uCAAkC,OAAO,uBAAuB,MAAM;AAC/E;AASA,eAAsB,QAAQ,KAAqC;AACjE,QAAM,EAAE,SAAS,KAAK,IAAI,qBAAqB,QAAQ,UAAU,GAAG;AAEpE,MAAI;AACF,UAAM,SAAS,MAAM,YAAY,SAAS,IAAI;AAC9C,QAAI,OAAO,aAAa,GAAG;AACzB,aAAO,EAAE,IAAI,OAAO,OAAO,qBAAqB,SAAS,OAAO,QAAQ,EAAE;AAAA,IAC5E;AACA,WAAO,EAAE,IAAI,KAAK;AAAA,EACpB,SAAS,OAAO;AACd,WAAO,EAAE,IAAI,OAAO,OAAO,yBAAyB,SAAS,gBAAgB,KAAK,CAAC,EAAE;AAAA,EACvF;AACF;","names":[]}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
SummaryPanel
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-42PQKBVU.js";
|
|
5
5
|
import {
|
|
6
6
|
Toast
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-SITF5EZM.js";
|
|
8
8
|
import {
|
|
9
9
|
WizardTabs,
|
|
10
10
|
wizardTabsFor
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-4APXK7ZY.js";
|
|
12
12
|
import {
|
|
13
13
|
getDomainDisplayName,
|
|
14
14
|
getStackName
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-FBRLHNUT.js";
|
|
16
16
|
import {
|
|
17
17
|
HOTKEY_INFO,
|
|
18
18
|
HOTKEY_SCOPE,
|
|
@@ -26,16 +26,16 @@ import {
|
|
|
26
26
|
getActiveStepFlow,
|
|
27
27
|
orderDomains,
|
|
28
28
|
useWizardStore
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-LVA6XJGR.js";
|
|
30
30
|
import {
|
|
31
31
|
formatTerminalTooSmallMessage,
|
|
32
32
|
isTerminalLargeEnough
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-4VVKVOOP.js";
|
|
34
34
|
import {
|
|
35
35
|
CLI_COLORS,
|
|
36
36
|
FALLBACK_DOMAIN,
|
|
37
37
|
LOGO_MIN_TERMINAL_ROWS
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-5KB4I5J7.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-
|
|
237
|
+
//# sourceMappingURL=chunk-Z6G24ROK.js.map
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
getDomainDisplayName
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-FBRLHNUT.js";
|
|
5
5
|
import {
|
|
6
6
|
useMeasuredHeight
|
|
7
7
|
} from "./chunk-TSIU7DME.js";
|
|
8
8
|
import {
|
|
9
9
|
useRowScroll
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-ITEJARWI.js";
|
|
11
11
|
import {
|
|
12
12
|
KEY_SPACE
|
|
13
13
|
} from "./chunk-WTJ3AY33.js";
|
|
@@ -17,19 +17,19 @@ import {
|
|
|
17
17
|
deriveScopeBadges,
|
|
18
18
|
formatScopeTag,
|
|
19
19
|
useWizardStore
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-LVA6XJGR.js";
|
|
21
21
|
import {
|
|
22
22
|
isAgentName,
|
|
23
23
|
toTitleCase
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-V625APR6.js";
|
|
25
25
|
import {
|
|
26
26
|
matrix,
|
|
27
27
|
typedKeys
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-7Z4N4JWQ.js";
|
|
29
29
|
import {
|
|
30
30
|
CLI_COLORS,
|
|
31
31
|
UI_SYMBOLS
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-5KB4I5J7.js";
|
|
33
33
|
|
|
34
34
|
// src/cli/components/wizard/step-agents.tsx
|
|
35
35
|
import { groupBy, unique } from "remeda";
|
|
@@ -227,4 +227,4 @@ var StepAgents = () => {
|
|
|
227
227
|
export {
|
|
228
228
|
StepAgents
|
|
229
229
|
};
|
|
230
|
-
//# sourceMappingURL=chunk-
|
|
230
|
+
//# sourceMappingURL=chunk-Z6KROWH4.js.map
|
|
@@ -5,13 +5,13 @@ import {
|
|
|
5
5
|
validateMarketplaceName,
|
|
6
6
|
validateSkillIdNamespace,
|
|
7
7
|
writeMarketplace
|
|
8
|
-
} from "../../chunk-
|
|
8
|
+
} from "../../chunk-4VMLCWLD.js";
|
|
9
9
|
import {
|
|
10
10
|
BaseCommand,
|
|
11
11
|
EXIT_CODES
|
|
12
|
-
} from "../../chunk-
|
|
13
|
-
import "../../chunk-
|
|
14
|
-
import "../../chunk-
|
|
12
|
+
} from "../../chunk-WVKGO3Y5.js";
|
|
13
|
+
import "../../chunk-4RYWFQK7.js";
|
|
14
|
+
import "../../chunk-4VVKVOOP.js";
|
|
15
15
|
import {
|
|
16
16
|
getErrorMessage,
|
|
17
17
|
loadMarketplaceMatrix,
|
|
@@ -23,8 +23,8 @@ import {
|
|
|
23
23
|
validateKebabCaseName,
|
|
24
24
|
warn,
|
|
25
25
|
writeFile
|
|
26
|
-
} from "../../chunk-
|
|
27
|
-
import "../../chunk-
|
|
26
|
+
} from "../../chunk-V625APR6.js";
|
|
27
|
+
import "../../chunk-7Z4N4JWQ.js";
|
|
28
28
|
import {
|
|
29
29
|
CATALOG_JSON,
|
|
30
30
|
CLI_INVOKE_COMMAND,
|
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
PLUGINS_DIST_PATH,
|
|
34
34
|
PLUGIN_MANIFEST_DIR,
|
|
35
35
|
STANDARD_FILES
|
|
36
|
-
} from "../../chunk-
|
|
36
|
+
} from "../../chunk-5KB4I5J7.js";
|
|
37
37
|
import "../../chunk-VZRO7RYT.js";
|
|
38
38
|
|
|
39
39
|
// src/cli/commands/build/marketplace.ts
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
import {
|
|
3
3
|
compileAllAgentPlugins,
|
|
4
4
|
printAgentCompilationSummary
|
|
5
|
-
} from "../../chunk-
|
|
5
|
+
} from "../../chunk-5YOSLSQJ.js";
|
|
6
6
|
import {
|
|
7
7
|
BaseCommand
|
|
8
|
-
} from "../../chunk-
|
|
9
|
-
import "../../chunk-
|
|
10
|
-
import "../../chunk-
|
|
8
|
+
} from "../../chunk-WVKGO3Y5.js";
|
|
9
|
+
import "../../chunk-4RYWFQK7.js";
|
|
10
|
+
import "../../chunk-4VVKVOOP.js";
|
|
11
11
|
import {
|
|
12
12
|
compileAllSkillPlugins,
|
|
13
13
|
compileSkillPlugin,
|
|
@@ -16,12 +16,12 @@ import {
|
|
|
16
16
|
readPluginManifest,
|
|
17
17
|
remove,
|
|
18
18
|
setVerbose
|
|
19
|
-
} from "../../chunk-
|
|
20
|
-
import "../../chunk-
|
|
19
|
+
} from "../../chunk-V625APR6.js";
|
|
20
|
+
import "../../chunk-7Z4N4JWQ.js";
|
|
21
21
|
import {
|
|
22
22
|
DIRS,
|
|
23
23
|
PLUGINS_DIST_PATH
|
|
24
|
-
} from "../../chunk-
|
|
24
|
+
} from "../../chunk-5KB4I5J7.js";
|
|
25
25
|
import "../../chunk-VZRO7RYT.js";
|
|
26
26
|
|
|
27
27
|
// src/cli/commands/build/plugins.ts
|
package/dist/commands/compile.js
CHANGED
|
@@ -2,21 +2,21 @@
|
|
|
2
2
|
import {
|
|
3
3
|
detectBothInstallations,
|
|
4
4
|
reconcileTypesFromDisk
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-YAHTF4NO.js";
|
|
6
6
|
import {
|
|
7
7
|
compileAgents,
|
|
8
8
|
discoverInstalledSkills
|
|
9
|
-
} from "../chunk-
|
|
9
|
+
} from "../chunk-VCUXNKOY.js";
|
|
10
10
|
import {
|
|
11
11
|
loadAgentDefs
|
|
12
|
-
} from "../chunk-
|
|
13
|
-
import "../chunk-
|
|
12
|
+
} from "../chunk-G7TYOPON.js";
|
|
13
|
+
import "../chunk-5YOSLSQJ.js";
|
|
14
14
|
import {
|
|
15
15
|
BaseCommand,
|
|
16
16
|
EXIT_CODES
|
|
17
|
-
} from "../chunk-
|
|
18
|
-
import "../chunk-
|
|
19
|
-
import "../chunk-
|
|
17
|
+
} from "../chunk-WVKGO3Y5.js";
|
|
18
|
+
import "../chunk-4RYWFQK7.js";
|
|
19
|
+
import "../chunk-4VVKVOOP.js";
|
|
20
20
|
import {
|
|
21
21
|
ConfigLoadError,
|
|
22
22
|
ERROR_MESSAGES,
|
|
@@ -40,11 +40,11 @@ import {
|
|
|
40
40
|
skillMetadataUnusableDetail,
|
|
41
41
|
skillMetadataUnusableError,
|
|
42
42
|
verbose
|
|
43
|
-
} from "../chunk-
|
|
44
|
-
import "../chunk-
|
|
43
|
+
} from "../chunk-V625APR6.js";
|
|
44
|
+
import "../chunk-7Z4N4JWQ.js";
|
|
45
45
|
import {
|
|
46
46
|
STANDARD_FILES
|
|
47
|
-
} from "../chunk-
|
|
47
|
+
} from "../chunk-5KB4I5J7.js";
|
|
48
48
|
import "../chunk-VZRO7RYT.js";
|
|
49
49
|
|
|
50
50
|
// src/cli/commands/compile.ts
|
package/dist/commands/doctor.js
CHANGED
|
@@ -2,20 +2,20 @@
|
|
|
2
2
|
import {
|
|
3
3
|
detectProject,
|
|
4
4
|
loadSource
|
|
5
|
-
} from "../chunk-
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
5
|
+
} from "../chunk-YAHTF4NO.js";
|
|
6
|
+
import "../chunk-VCUXNKOY.js";
|
|
7
|
+
import "../chunk-G7TYOPON.js";
|
|
8
8
|
import {
|
|
9
9
|
filterExcludedEntries,
|
|
10
10
|
listAgentMdFiles,
|
|
11
11
|
splitAgentsByProvenance
|
|
12
|
-
} from "../chunk-
|
|
12
|
+
} from "../chunk-5YOSLSQJ.js";
|
|
13
13
|
import {
|
|
14
14
|
BaseCommand,
|
|
15
15
|
EXIT_CODES
|
|
16
|
-
} from "../chunk-
|
|
17
|
-
import "../chunk-
|
|
18
|
-
import "../chunk-
|
|
16
|
+
} from "../chunk-WVKGO3Y5.js";
|
|
17
|
+
import "../chunk-4RYWFQK7.js";
|
|
18
|
+
import "../chunk-4VVKVOOP.js";
|
|
19
19
|
import {
|
|
20
20
|
ConfigDefaultExportError,
|
|
21
21
|
MarketplaceNameRefusedError,
|
|
@@ -67,10 +67,10 @@ import {
|
|
|
67
67
|
validateProjectConfig,
|
|
68
68
|
validateSkillFrontmatter,
|
|
69
69
|
validateSkillMetadata
|
|
70
|
-
} from "../chunk-
|
|
70
|
+
} from "../chunk-V625APR6.js";
|
|
71
71
|
import {
|
|
72
72
|
matrix
|
|
73
|
-
} from "../chunk-
|
|
73
|
+
} from "../chunk-7Z4N4JWQ.js";
|
|
74
74
|
import {
|
|
75
75
|
CLAUDE_SRC_DIR,
|
|
76
76
|
CLI_INVOKE_COMMAND,
|
|
@@ -86,7 +86,7 @@ import {
|
|
|
86
86
|
STACKS_FILE_PATH,
|
|
87
87
|
STANDARD_FILES,
|
|
88
88
|
UI_SYMBOLS
|
|
89
|
-
} from "../chunk-
|
|
89
|
+
} from "../chunk-5KB4I5J7.js";
|
|
90
90
|
import "../chunk-VZRO7RYT.js";
|
|
91
91
|
|
|
92
92
|
// src/cli/commands/doctor.ts
|
|
@@ -957,7 +957,7 @@ function reachedMarketplace(result) {
|
|
|
957
957
|
status: "pass",
|
|
958
958
|
message: `Connected to ${sourceLabel}: ${result.sourcePath}`,
|
|
959
959
|
details: [
|
|
960
|
-
`${skillCount}
|
|
960
|
+
`${plural(skillCount, "skill")} available`,
|
|
961
961
|
`${howItWasReached(source, result.isLocal)} \u2014 ${MARKETPLACE_CHOSEN_BY[sourceOrigin]}`
|
|
962
962
|
]
|
|
963
963
|
};
|
|
@@ -1082,9 +1082,9 @@ function formatStatus(status) {
|
|
|
1082
1082
|
case "fail":
|
|
1083
1083
|
return UI_SYMBOLS.CROSS;
|
|
1084
1084
|
case "warn":
|
|
1085
|
-
return
|
|
1085
|
+
return UI_SYMBOLS.DISCOURAGED;
|
|
1086
1086
|
case "skip":
|
|
1087
|
-
return
|
|
1087
|
+
return UI_SYMBOLS.SKIPPED;
|
|
1088
1088
|
default: {
|
|
1089
1089
|
const _exhaustive = status;
|
|
1090
1090
|
return _exhaustive;
|