axm.sh 0.1.6 → 0.3.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.
- package/dist/src/app.d.ts.map +1 -1
- package/dist/src/app.js +12 -4
- package/dist/src/app.js.map +1 -1
- package/dist/src/formatter.d.ts +1 -1
- package/dist/src/formatter.d.ts.map +1 -1
- package/dist/src/formatter.js +1 -1
- package/dist/src/formatter.js.map +1 -1
- package/dist/src/json-output.d.ts +1 -1
- package/dist/src/json-output.d.ts.map +1 -1
- package/dist/src/root/commands/disable.js +1 -1
- package/dist/src/root/commands/disable.js.map +1 -1
- package/dist/src/root/commands/enable.js +1 -1
- package/dist/src/root/commands/enable.js.map +1 -1
- package/dist/src/root/commands/install/command-actions.d.ts +2 -2
- package/dist/src/root/commands/install/command-actions.d.ts.map +1 -1
- package/dist/src/root/commands/install/command-actions.js +1 -1
- package/dist/src/root/commands/install/command-actions.js.map +1 -1
- package/dist/src/root/commands/job-step-result.d.ts +1 -1
- package/dist/src/root/commands/job-step-result.d.ts.map +1 -1
- package/dist/src/root/commands/new.js +1 -1
- package/dist/src/root/commands/new.js.map +1 -1
- package/dist/src/root/commands/preview-sections.d.ts +1 -1
- package/dist/src/root/commands/preview-sections.d.ts.map +1 -1
- package/dist/src/root/commands/publish.js +1 -1
- package/dist/src/root/commands/publish.js.map +1 -1
- package/dist/src/root/commands/uninstall/command-actions.d.ts +1 -1
- package/dist/src/root/commands/uninstall/command-actions.d.ts.map +1 -1
- package/dist/src/root/commands/uninstall/command-actions.js +1 -1
- package/dist/src/root/commands/uninstall/command-actions.js.map +1 -1
- package/dist/src/root/commands/update.js +1 -1
- package/dist/src/root/commands/update.js.map +1 -1
- package/dist/src/root/init.js +1 -1
- package/dist/src/root/init.js.map +1 -1
- package/dist/src/root/install/workspace-install-handler.d.ts +3 -3
- package/dist/src/root/install/workspace-install-handler.d.ts.map +1 -1
- package/dist/src/root/install/workspace-install-handler.js +1 -1
- package/dist/src/root/install/workspace-install-handler.js.map +1 -1
- package/dist/src/root/install/workspace-install.d.ts +2 -1
- package/dist/src/root/install/workspace-install.d.ts.map +1 -1
- package/dist/src/root/install/workspace-install.js +1 -0
- package/dist/src/root/install/workspace-install.js.map +1 -1
- package/dist/src/root/lint/command.d.ts +3 -0
- package/dist/src/root/lint/command.d.ts.map +1 -0
- package/dist/src/root/lint/command.js +31 -0
- package/dist/src/root/lint/command.js.map +1 -0
- package/dist/src/root/lint/handler.d.ts +65 -0
- package/dist/src/root/lint/handler.d.ts.map +1 -0
- package/dist/src/root/lint/handler.js +530 -0
- package/dist/src/root/lint/handler.js.map +1 -0
- package/dist/src/root/mcp-servers/install/command-actions.d.ts +2 -2
- package/dist/src/root/mcp-servers/install/command-actions.d.ts.map +1 -1
- package/dist/src/root/mcp-servers/install/command-actions.js +1 -1
- package/dist/src/root/mcp-servers/install/command-actions.js.map +1 -1
- package/dist/src/root/mcp-servers/uninstall/command-actions.d.ts +1 -1
- package/dist/src/root/mcp-servers/uninstall/command-actions.d.ts.map +1 -1
- package/dist/src/root/mcp-servers/uninstall/command-actions.js +1 -1
- package/dist/src/root/mcp-servers/uninstall/command-actions.js.map +1 -1
- package/dist/src/root/outdated/command.d.ts +3 -0
- package/dist/src/root/outdated/command.d.ts.map +1 -0
- package/dist/src/root/outdated/command.js +20 -0
- package/dist/src/root/outdated/command.js.map +1 -0
- package/dist/src/root/outdated/handler.d.ts +17 -0
- package/dist/src/root/outdated/handler.d.ts.map +1 -0
- package/dist/src/root/outdated/handler.js +130 -0
- package/dist/src/root/outdated/handler.js.map +1 -0
- package/dist/src/root/packs/add.js +1 -1
- package/dist/src/root/packs/add.js.map +1 -1
- package/dist/src/root/packs/install/command-actions.d.ts +2 -2
- package/dist/src/root/packs/install/command-actions.d.ts.map +1 -1
- package/dist/src/root/packs/install/command-actions.js +121 -4
- package/dist/src/root/packs/install/command-actions.js.map +1 -1
- package/dist/src/root/packs/install/plan.d.ts +1 -1
- package/dist/src/root/packs/install/plan.d.ts.map +1 -1
- package/dist/src/root/packs/new.js +1 -1
- package/dist/src/root/packs/new.js.map +1 -1
- package/dist/src/root/packs/publish.d.ts.map +1 -1
- package/dist/src/root/packs/publish.js +1 -1
- package/dist/src/root/packs/publish.js.map +1 -1
- package/dist/src/root/packs/remove.js +1 -1
- package/dist/src/root/packs/remove.js.map +1 -1
- package/dist/src/root/packs/uninstall/command-actions.d.ts +1 -1
- package/dist/src/root/packs/uninstall/command-actions.d.ts.map +1 -1
- package/dist/src/root/packs/uninstall/command-actions.js +1 -1
- package/dist/src/root/packs/uninstall/command-actions.js.map +1 -1
- package/dist/src/root/packs/uninstall/plan.d.ts +1 -1
- package/dist/src/root/packs/uninstall/plan.d.ts.map +1 -1
- package/dist/src/root/packs/unpack/handler.js +1 -1
- package/dist/src/root/packs/unpack/handler.js.map +1 -1
- package/dist/src/root/packs/unpack/plan.d.ts +1 -1
- package/dist/src/root/packs/unpack/plan.d.ts.map +1 -1
- package/dist/src/root/skills/disable.js +1 -1
- package/dist/src/root/skills/disable.js.map +1 -1
- package/dist/src/root/skills/enable.js +1 -1
- package/dist/src/root/skills/enable.js.map +1 -1
- package/dist/src/root/skills/fork.js +1 -1
- package/dist/src/root/skills/fork.js.map +1 -1
- package/dist/src/root/skills/install/command-actions.d.ts +2 -2
- package/dist/src/root/skills/install/command-actions.d.ts.map +1 -1
- package/dist/src/root/skills/install/command-actions.js +1 -1
- package/dist/src/root/skills/install/command-actions.js.map +1 -1
- package/dist/src/root/skills/install/plan.d.ts +1 -1
- package/dist/src/root/skills/install/plan.d.ts.map +1 -1
- package/dist/src/root/skills/new.js +1 -1
- package/dist/src/root/skills/new.js.map +1 -1
- package/dist/src/root/skills/publish.js +1 -1
- package/dist/src/root/skills/publish.js.map +1 -1
- package/dist/src/root/skills/rename.js +1 -1
- package/dist/src/root/skills/rename.js.map +1 -1
- package/dist/src/root/skills/uninstall/command-actions.d.ts +1 -1
- package/dist/src/root/skills/uninstall/command-actions.d.ts.map +1 -1
- package/dist/src/root/skills/uninstall/command-actions.js +1 -1
- package/dist/src/root/skills/uninstall/command-actions.js.map +1 -1
- package/dist/src/root/skills/uninstall/plan.d.ts +1 -1
- package/dist/src/root/skills/uninstall/plan.d.ts.map +1 -1
- package/dist/src/root/skills/update/handler.js +1 -1
- package/dist/src/root/skills/update/handler.js.map +1 -1
- package/dist/src/root/skills/update/plan.d.ts +1 -1
- package/dist/src/root/skills/update/plan.d.ts.map +1 -1
- package/dist/src/root/subagents/disable/handler.js +1 -1
- package/dist/src/root/subagents/disable/handler.js.map +1 -1
- package/dist/src/root/subagents/enable/handler.js +1 -1
- package/dist/src/root/subagents/enable/handler.js.map +1 -1
- package/dist/src/root/subagents/install/command-actions.d.ts +1 -1
- package/dist/src/root/subagents/install/command-actions.d.ts.map +1 -1
- package/dist/src/root/subagents/install/command-actions.js +1 -1
- package/dist/src/root/subagents/install/command-actions.js.map +1 -1
- package/dist/src/root/subagents/install/plan.d.ts +1 -1
- package/dist/src/root/subagents/install/plan.d.ts.map +1 -1
- package/dist/src/root/subagents/new/handler.js +1 -1
- package/dist/src/root/subagents/new/handler.js.map +1 -1
- package/dist/src/root/subagents/publish/handler.js +1 -1
- package/dist/src/root/subagents/publish/handler.js.map +1 -1
- package/dist/src/root/subagents/rename/handler.js +1 -1
- package/dist/src/root/subagents/rename/handler.js.map +1 -1
- package/dist/src/root/subagents/uninstall/command-actions.d.ts +1 -1
- package/dist/src/root/subagents/uninstall/command-actions.d.ts.map +1 -1
- package/dist/src/root/subagents/uninstall/command-actions.js +1 -1
- package/dist/src/root/subagents/uninstall/command-actions.js.map +1 -1
- package/dist/src/root/subagents/update/handler.js +1 -1
- package/dist/src/root/subagents/update/handler.js.map +1 -1
- package/dist/src/root/subagents/update/plan.d.ts +1 -1
- package/dist/src/root/subagents/update/plan.d.ts.map +1 -1
- package/dist/src/root/uninstall/command.d.ts +3 -0
- package/dist/src/root/uninstall/command.d.ts.map +1 -0
- package/dist/src/root/uninstall/command.js +27 -0
- package/dist/src/root/uninstall/command.js.map +1 -0
- package/dist/src/root/uninstall/handler.d.ts +16 -0
- package/dist/src/root/uninstall/handler.d.ts.map +1 -0
- package/dist/src/root/uninstall/handler.js +49 -0
- package/dist/src/root/uninstall/handler.js.map +1 -0
- package/dist/src/root/uninstall/resolve-root-uninstall-intent.d.ts +15 -0
- package/dist/src/root/uninstall/resolve-root-uninstall-intent.d.ts.map +1 -0
- package/dist/src/root/uninstall/resolve-root-uninstall-intent.js +75 -0
- package/dist/src/root/uninstall/resolve-root-uninstall-intent.js.map +1 -0
- package/dist/src/root/{doctor → update}/command.d.ts +1 -1
- package/dist/src/root/update/command.d.ts.map +1 -0
- package/dist/src/root/update/command.js +32 -0
- package/dist/src/root/update/command.js.map +1 -0
- package/dist/src/root/update/handler.d.ts +17 -0
- package/dist/src/root/update/handler.d.ts.map +1 -0
- package/dist/src/root/update/handler.js +62 -0
- package/dist/src/root/update/handler.js.map +1 -0
- package/dist/src/root/update/resolve-root-update-intent.d.ts +16 -0
- package/dist/src/root/update/resolve-root-update-intent.d.ts.map +1 -0
- package/dist/src/root/update/resolve-root-update-intent.js +75 -0
- package/dist/src/root/update/resolve-root-update-intent.js.map +1 -0
- package/dist/src/root/update/workspace-update-handler.d.ts +16 -0
- package/dist/src/root/update/workspace-update-handler.d.ts.map +1 -0
- package/dist/src/root/update/workspace-update-handler.js +40 -0
- package/dist/src/root/update/workspace-update-handler.js.map +1 -0
- package/dist/src/root/update/workspace-update.d.ts +39 -0
- package/dist/src/root/update/workspace-update.d.ts.map +1 -0
- package/dist/src/root/update/workspace-update.js +161 -0
- package/dist/src/root/update/workspace-update.js.map +1 -0
- package/dist/src/runtime.d.ts +1 -1
- package/dist/src/test-helpers.d.ts +1 -0
- package/dist/src/test-helpers.d.ts.map +1 -1
- package/dist/src/test-helpers.js +42 -2
- package/dist/src/test-helpers.js.map +1 -1
- package/package.json +6 -6
- package/dist/src/root/doctor/command.d.ts.map +0 -1
- package/dist/src/root/doctor/command.js +0 -19
- package/dist/src/root/doctor/command.js.map +0 -1
- package/dist/src/root/doctor/handler.d.ts +0 -10
- package/dist/src/root/doctor/handler.d.ts.map +0 -1
- package/dist/src/root/doctor/handler.js +0 -27
- package/dist/src/root/doctor/handler.js.map +0 -1
- package/dist/src/root/doctor/render.d.ts +0 -8
- package/dist/src/root/doctor/render.d.ts.map +0 -1
- package/dist/src/root/doctor/render.js +0 -183
- package/dist/src/root/doctor/render.js.map +0 -1
- package/dist/src/root/sync.d.ts +0 -15
- package/dist/src/root/sync.d.ts.map +0 -1
- package/dist/src/root/sync.js +0 -82
- package/dist/src/root/sync.js.map +0 -1
|
@@ -1,183 +0,0 @@
|
|
|
1
|
-
const ACTION_COMMAND_COLUMN_WIDTH = 20;
|
|
2
|
-
const isVerboseRender = (verbosity) => verbosity === "verbose" || verbosity === "debug";
|
|
3
|
-
export const symbolForStatus = (status) => {
|
|
4
|
-
switch (status) {
|
|
5
|
-
case "pass":
|
|
6
|
-
return "✓";
|
|
7
|
-
case "warn":
|
|
8
|
-
return "⚠";
|
|
9
|
-
case "fail":
|
|
10
|
-
return "✗";
|
|
11
|
-
case "skip":
|
|
12
|
-
return "⊘";
|
|
13
|
-
}
|
|
14
|
-
};
|
|
15
|
-
export const symbolForSeverity = (severity) => {
|
|
16
|
-
switch (severity) {
|
|
17
|
-
case "error":
|
|
18
|
-
return "✗";
|
|
19
|
-
case "warn":
|
|
20
|
-
return "⚠";
|
|
21
|
-
case "info":
|
|
22
|
-
return "ℹ";
|
|
23
|
-
}
|
|
24
|
-
};
|
|
25
|
-
const plural = (n, singular, pluralForm) => n === 1 ? `${String(n)} ${singular}` : `${String(n)} ${pluralForm}`;
|
|
26
|
-
const padRight = (value, width) => {
|
|
27
|
-
if (value.length >= width) {
|
|
28
|
-
return value;
|
|
29
|
-
}
|
|
30
|
-
return value + " ".repeat(width - value.length);
|
|
31
|
-
};
|
|
32
|
-
export const computeCheckHeaderAction = (check) => {
|
|
33
|
-
const nonInfo = check.findings.filter((finding) => finding.severity !== "info");
|
|
34
|
-
if (nonInfo.length === 0) {
|
|
35
|
-
return undefined;
|
|
36
|
-
}
|
|
37
|
-
const first = nonInfo[0];
|
|
38
|
-
if (first === undefined) {
|
|
39
|
-
return undefined;
|
|
40
|
-
}
|
|
41
|
-
const firstCommand = first.action?.command;
|
|
42
|
-
if (firstCommand === undefined) {
|
|
43
|
-
return undefined;
|
|
44
|
-
}
|
|
45
|
-
for (const finding of nonInfo) {
|
|
46
|
-
if (finding.action?.command !== firstCommand) {
|
|
47
|
-
return undefined;
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
return first.action;
|
|
51
|
-
};
|
|
52
|
-
export const formatSummaryLine = (summary) => {
|
|
53
|
-
const parts = [
|
|
54
|
-
plural(summary.checks.passed, "passed", "passed"),
|
|
55
|
-
plural(summary.checks.failed, "failed", "failed"),
|
|
56
|
-
plural(summary.checks.skipped, "skipped", "skipped"),
|
|
57
|
-
plural(summary.checks.info, "advisory", "advisories"),
|
|
58
|
-
];
|
|
59
|
-
return parts.join(" · ");
|
|
60
|
-
};
|
|
61
|
-
const countsBadge = (check) => {
|
|
62
|
-
let errors = 0;
|
|
63
|
-
let warnings = 0;
|
|
64
|
-
for (const finding of check.findings) {
|
|
65
|
-
if (finding.severity === "error") {
|
|
66
|
-
errors += 1;
|
|
67
|
-
}
|
|
68
|
-
else if (finding.severity === "warn") {
|
|
69
|
-
warnings += 1;
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
const parts = [];
|
|
73
|
-
if (errors > 0) {
|
|
74
|
-
parts.push(plural(errors, "error", "errors"));
|
|
75
|
-
}
|
|
76
|
-
if (warnings > 0) {
|
|
77
|
-
parts.push(plural(warnings, "warning", "warnings"));
|
|
78
|
-
}
|
|
79
|
-
return parts.join(", ");
|
|
80
|
-
};
|
|
81
|
-
const formatActionCommandDisplay = (action) => {
|
|
82
|
-
const command = action.command ?? "";
|
|
83
|
-
return command.length > 0 ? command : action.label;
|
|
84
|
-
};
|
|
85
|
-
const formatActionLine = (action) => {
|
|
86
|
-
const commandDisplay = `→ ${formatActionCommandDisplay(action)}`;
|
|
87
|
-
return ` ${padRight(commandDisplay, ACTION_COMMAND_COLUMN_WIDTH)} ${action.description}`;
|
|
88
|
-
};
|
|
89
|
-
const appendFindingLines = (lines, finding, headerActionCommand) => {
|
|
90
|
-
lines.push(` ${symbolForSeverity(finding.severity)} ${finding.message}`);
|
|
91
|
-
if (finding.details !== undefined && finding.details.length > 0) {
|
|
92
|
-
for (const detail of finding.details.split("\n")) {
|
|
93
|
-
lines.push(` ${detail}`);
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
const action = finding.action;
|
|
97
|
-
if (action === undefined) {
|
|
98
|
-
return;
|
|
99
|
-
}
|
|
100
|
-
if (headerActionCommand !== undefined &&
|
|
101
|
-
action.command !== undefined &&
|
|
102
|
-
action.command === headerActionCommand) {
|
|
103
|
-
return;
|
|
104
|
-
}
|
|
105
|
-
lines.push(` → ${padRight(formatActionCommandDisplay(action), ACTION_COMMAND_COLUMN_WIDTH)} ${action.description}`);
|
|
106
|
-
};
|
|
107
|
-
const appendCheckHeader = (lines, check, verbosity, headerAction) => {
|
|
108
|
-
const symbol = symbolForStatus(check.status);
|
|
109
|
-
if (check.status === "skip") {
|
|
110
|
-
lines.push(`${symbol} ${check.title} (skipped)`);
|
|
111
|
-
if (check.skipReason !== undefined && check.skipReason.length > 0) {
|
|
112
|
-
lines.push(` ${check.skipReason}`);
|
|
113
|
-
}
|
|
114
|
-
return;
|
|
115
|
-
}
|
|
116
|
-
if (check.status === "pass") {
|
|
117
|
-
const infoFindings = check.findings.filter((finding) => finding.severity === "info");
|
|
118
|
-
if (infoFindings.length === 0 || !isVerboseRender(verbosity)) {
|
|
119
|
-
lines.push(`${symbol} ${check.title}`);
|
|
120
|
-
return;
|
|
121
|
-
}
|
|
122
|
-
lines.push(`${symbol} ${check.title} ${plural(infoFindings.length, "advisory", "advisories")}`);
|
|
123
|
-
return;
|
|
124
|
-
}
|
|
125
|
-
const badge = countsBadge(check);
|
|
126
|
-
lines.push(badge.length > 0 ? `${symbol} ${check.title} ${badge}` : `${symbol} ${check.title}`);
|
|
127
|
-
if (headerAction !== undefined) {
|
|
128
|
-
lines.push(formatActionLine(headerAction));
|
|
129
|
-
}
|
|
130
|
-
};
|
|
131
|
-
const shouldExpandFindings = (check, verbosity) => {
|
|
132
|
-
if (verbosity === "quiet") {
|
|
133
|
-
return false;
|
|
134
|
-
}
|
|
135
|
-
if (check.status === "skip") {
|
|
136
|
-
return false;
|
|
137
|
-
}
|
|
138
|
-
if (check.status === "pass") {
|
|
139
|
-
return isVerboseRender(verbosity) && check.findings.length > 0;
|
|
140
|
-
}
|
|
141
|
-
return true;
|
|
142
|
-
};
|
|
143
|
-
const shouldRenderCheck = (check, verbosity) => {
|
|
144
|
-
if (verbosity !== "quiet") {
|
|
145
|
-
return true;
|
|
146
|
-
}
|
|
147
|
-
return check.status !== "pass";
|
|
148
|
-
};
|
|
149
|
-
export const renderHumanReport = (report, verbosity) => {
|
|
150
|
-
const lines = [];
|
|
151
|
-
if (verbosity !== "quiet" || !report.healthy) {
|
|
152
|
-
lines.push(`Workspace Health — ${report.workspacePath} (${report.scope} scope)`);
|
|
153
|
-
lines.push("");
|
|
154
|
-
}
|
|
155
|
-
for (const check of report.checks) {
|
|
156
|
-
if (!shouldRenderCheck(check, verbosity)) {
|
|
157
|
-
continue;
|
|
158
|
-
}
|
|
159
|
-
const headerAction = computeCheckHeaderAction(check);
|
|
160
|
-
appendCheckHeader(lines, check, verbosity, headerAction);
|
|
161
|
-
if (shouldExpandFindings(check, verbosity)) {
|
|
162
|
-
const headerActionCommand = headerAction?.command;
|
|
163
|
-
for (const finding of check.findings) {
|
|
164
|
-
if (!isVerboseRender(verbosity) && finding.severity === "info") {
|
|
165
|
-
continue;
|
|
166
|
-
}
|
|
167
|
-
appendFindingLines(lines, finding, headerActionCommand);
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
if (verbosity !== "quiet" || !report.healthy) {
|
|
172
|
-
lines.push("");
|
|
173
|
-
lines.push(formatSummaryLine(report.summary));
|
|
174
|
-
}
|
|
175
|
-
if (!report.healthy) {
|
|
176
|
-
const hasSyncAction = report.checks.some((check) => check.findings.some((finding) => finding.action?.command === "axm sync"));
|
|
177
|
-
if (hasSyncAction) {
|
|
178
|
-
lines.push("Run `axm sync` to reconcile the workspace.");
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
|
-
return lines;
|
|
182
|
-
};
|
|
183
|
-
//# sourceMappingURL=render.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"render.js","sourceRoot":"","sources":["../../../../src/root/doctor/render.ts"],"names":[],"mappings":"AAWA,MAAM,2BAA2B,GAAG,EAAE,CAAC;AAEvC,MAAM,eAAe,GAAG,CAAC,SAAyB,EAAW,EAAE,CAC7D,SAAS,KAAK,SAAS,IAAI,SAAS,KAAK,OAAO,CAAC;AAEnD,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,MAAmB,EAAU,EAAE;IAC7D,QAAQ,MAAM,EAAE,CAAC;QACf,KAAK,MAAM;YACT,OAAO,GAAG,CAAC;QACb,KAAK,MAAM;YACT,OAAO,GAAG,CAAC;QACb,KAAK,MAAM;YACT,OAAO,GAAG,CAAC;QACb,KAAK,MAAM;YACT,OAAO,GAAG,CAAC;IACf,CAAC;AACH,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,QAAyB,EAAU,EAAE;IACrE,QAAQ,QAAQ,EAAE,CAAC;QACjB,KAAK,OAAO;YACV,OAAO,GAAG,CAAC;QACb,KAAK,MAAM;YACT,OAAO,GAAG,CAAC;QACb,KAAK,MAAM;YACT,OAAO,GAAG,CAAC;IACf,CAAC;AACH,CAAC,CAAC;AAEF,MAAM,MAAM,GAAG,CAAC,CAAS,EAAE,QAAgB,EAAE,UAAkB,EAAU,EAAE,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AO,KAAK,UAAU,CAAC,CACzE,CAAC;QACF,IAAI,aAAa,EAAE,CAAC;YAClB,KAAK,CAAC,IAAI,CAAC,4CAA4C,CAAC,CAAC;QAC3D,CAAC;IACH,CAAC;IAED,OAAO,KAAK,CAAC;AACf,CAAC,CAAC"}
|
package/dist/src/root/sync.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import * as FileSystem from "effect/FileSystem";
|
|
2
|
-
import * as Path from "effect/Path";
|
|
3
|
-
import * as Effect from "effect/Effect";
|
|
4
|
-
import { Command } from "effect/unstable/cli";
|
|
5
|
-
import { CodingAgentRepository } from "@agentxm/client-core/unstable/agents";
|
|
6
|
-
import { CliRenderer } from "@agentxm/client-core/unstable/cli-renderer";
|
|
7
|
-
import { SourceHostProviders } from "@agentxm/client-core/unstable/source-resolution";
|
|
8
|
-
import { Workspace } from "@agentxm/client-core/unstable/workspace";
|
|
9
|
-
export interface SyncHandlerArgs {
|
|
10
|
-
readonly yes: boolean;
|
|
11
|
-
readonly preview: boolean;
|
|
12
|
-
}
|
|
13
|
-
export declare const handleSync: (args: SyncHandlerArgs) => Effect.Effect<void, import("packages/core/src/unstable/app-error/app-error.ts").AppError | import("packages/core/src/unstable/cli-prompt/prompt-cancelled.ts").PromptCancelled, CliRenderer | import("@agentxm/client-core/unstable/cli-flags").Verbosity | "effect/unstable/cli/GlobalFlag/axm-non-interactive" | CodingAgentRepository | (import("effect/Scope").Scope | FileSystem.FileSystem | Path.Path | Workspace | SourceHostProviders | import("./commands/install/command-actions.ts").InstallCommandCommandWorkflowActions | import("./mcp-servers/install/command-actions.ts").InstallMcpServerCommandWorkflowActions | import("./packs/install/command-actions.ts").InstallPackCommandWorkflowActions | import("./skills/install/command-actions.ts").InstallSkillCommandWorkflowActions | import("./subagents/install/command-actions.ts").InstallSubagentCommandWorkflowActions)>;
|
|
14
|
-
export declare const syncCommand: Command.Command<"sync", Record<string, unknown>, {}, never, "effect/unstable/cli/GlobalFlag/axm-non-interactive" | "effect/unstable/cli/GlobalFlag/axm-json" | "effect/unstable/cli/GlobalFlag/axm-quiet" | "effect/unstable/cli/GlobalFlag/axm-verbose" | "effect/unstable/cli/GlobalFlag/axm-debug">;
|
|
15
|
-
//# sourceMappingURL=sync.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sync.d.ts","sourceRoot":"","sources":["../../../src/root/sync.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,UAAU,MAAM,mBAAmB,CAAC;AAChD,OAAO,KAAK,IAAI,MAAM,aAAa,CAAC;AACpC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,OAAO,EAAQ,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,qBAAqB,EAAE,MAAM,sCAAsC,CAAC;AAE7E,OAAO,EAAE,WAAW,EAAE,MAAM,4CAA4C,CAAC;AAEzE,OAAO,EAAE,mBAAmB,EAAE,MAAM,iDAAiD,CAAC;AACtF,OAAO,EAQL,SAAS,EACV,MAAM,yCAAyC,CAAC;AAOjD,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,GAAG,EAAE,OAAO,CAAC;IACtB,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;CAC3B;AAeD,eAAO,MAAM,UAAU,63BAqErB,CAAC;AAUH,eAAO,MAAM,WAAW,wSASvB,CAAC"}
|
package/dist/src/root/sync.js
DELETED
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
import * as FileSystem from "effect/FileSystem";
|
|
2
|
-
import * as Path from "effect/Path";
|
|
3
|
-
import * as Effect from "effect/Effect";
|
|
4
|
-
import * as Option from "effect/Option";
|
|
5
|
-
import { Command, Flag } from "effect/unstable/cli";
|
|
6
|
-
import { CodingAgentRepository } from "@agentxm/client-core/unstable/agents";
|
|
7
|
-
import { previewFlag, yesFlag } from "@agentxm/client-core/unstable/cli-flags";
|
|
8
|
-
import { CliRenderer } from "@agentxm/client-core/unstable/cli-renderer";
|
|
9
|
-
import { withArgvTracking } from "@agentxm/client-core/unstable/cli-runtime";
|
|
10
|
-
import { SourceHostProviders } from "@agentxm/client-core/unstable/source-resolution";
|
|
11
|
-
import { formatWorkspaceSyncBlockersHowToFix, getWorkspaceSyncReadiness, syncWorkspace, previewOrApplyPlan, Workspace, } from "@agentxm/client-core/unstable/workspace";
|
|
12
|
-
import { emitPlanResolutionResult } from "../json-output.js";
|
|
13
|
-
import { scopeFlag } from "../cli-flags.js";
|
|
14
|
-
import { withRuntime, withWorkspace } from "../runtime.js";
|
|
15
|
-
import { buildWorkspaceInstallPlan } from "./install/workspace-install.js";
|
|
16
|
-
const formatEntryCount = (entryCount) => entryCount === 1 ? "1 entry" : `${entryCount} entries`;
|
|
17
|
-
const flattenPlanSteps = (plan) => plan.jobs.flatMap((job) => job.steps);
|
|
18
|
-
const makeSyncPlan = (steps) => ({
|
|
19
|
-
_tag: "Plan",
|
|
20
|
-
name: "Sync workspace",
|
|
21
|
-
description: Option.some("Synchronize managed workspace state from settings.json"),
|
|
22
|
-
jobs: [{ concurrency: 1, steps }],
|
|
23
|
-
});
|
|
24
|
-
export const handleSync = Effect.fn("Sync.handle")(function* (args) {
|
|
25
|
-
const renderer = yield* CliRenderer;
|
|
26
|
-
const ws = yield* Workspace;
|
|
27
|
-
const fs = yield* FileSystem.FileSystem;
|
|
28
|
-
const path = yield* Path.Path;
|
|
29
|
-
const sources = yield* SourceHostProviders;
|
|
30
|
-
const agentRepo = yield* CodingAgentRepository;
|
|
31
|
-
const syncReadiness = yield* getWorkspaceSyncReadiness();
|
|
32
|
-
const syncStep = {
|
|
33
|
-
readiness: "ready",
|
|
34
|
-
label: "Managed extensions and axm-lock.yaml",
|
|
35
|
-
run: syncWorkspace().pipe(Effect.map((entryCount) => ({
|
|
36
|
-
result: "success",
|
|
37
|
-
message: `Synchronized managed workspace state (${formatEntryCount(entryCount)} in axm-lock.yaml)`,
|
|
38
|
-
})), Effect.provideService(Workspace, ws), Effect.provideService(FileSystem.FileSystem, fs), Effect.provideService(Path.Path, path), Effect.provideService(SourceHostProviders, sources), Effect.provideService(CodingAgentRepository, agentRepo), Effect.scoped),
|
|
39
|
-
};
|
|
40
|
-
const plan = syncReadiness.canSync
|
|
41
|
-
? yield* Effect.gen(function* () {
|
|
42
|
-
const installPlanResult = yield* buildWorkspaceInstallPlan({
|
|
43
|
-
type: Option.none(),
|
|
44
|
-
planName: "Install configured extensions",
|
|
45
|
-
planDescription: Option.some("Install configured workspace extensions"),
|
|
46
|
-
});
|
|
47
|
-
const installSteps = installPlanResult._tag === "WorkspaceInstallPlan"
|
|
48
|
-
? flattenPlanSteps(installPlanResult.plan)
|
|
49
|
-
: [];
|
|
50
|
-
return makeSyncPlan([...installSteps, syncStep]);
|
|
51
|
-
})
|
|
52
|
-
: makeSyncPlan(syncReadiness.blockers.map((blocker) => ({
|
|
53
|
-
readiness: "error",
|
|
54
|
-
label: `${blocker.subject.kind}:${blocker.subject.ref}`,
|
|
55
|
-
errorMessage: blocker.message,
|
|
56
|
-
})));
|
|
57
|
-
yield* renderer.info("axm sync");
|
|
58
|
-
const resolution = yield* previewOrApplyPlan(plan, {
|
|
59
|
-
yes: args.yes,
|
|
60
|
-
force: false,
|
|
61
|
-
preview: args.preview,
|
|
62
|
-
...(syncReadiness.canSync
|
|
63
|
-
? {}
|
|
64
|
-
: {
|
|
65
|
-
blockedByErrorsHowToFix: formatWorkspaceSyncBlockersHowToFix(syncReadiness.blockers),
|
|
66
|
-
}),
|
|
67
|
-
});
|
|
68
|
-
yield* emitPlanResolutionResult("sync", resolution);
|
|
69
|
-
if (resolution._tag === "ExecutedPlan") {
|
|
70
|
-
yield* renderer.success("Done");
|
|
71
|
-
}
|
|
72
|
-
});
|
|
73
|
-
const syncConfig = {
|
|
74
|
-
scope: scopeFlag.pipe(Flag.withDescription("Sync the project (default) or user-level workspace")),
|
|
75
|
-
yes: yesFlag.pipe(Flag.withDescription("Apply previewed sync changes without prompting")),
|
|
76
|
-
preview: previewFlag.pipe(Flag.withDescription("Show what would be synchronized without modifying the workspace")),
|
|
77
|
-
};
|
|
78
|
-
export const syncCommand = Command.make("sync", syncConfig, ({ scope, yes, preview }) => handleSync({ yes, preview }).pipe(withWorkspace(scope), withRuntime("sync"))).pipe(withArgvTracking(syncConfig), Command.withDescription("Synchronize managed workspace state from settings.json"), Command.withExamples([
|
|
79
|
-
{ command: "axm sync", description: "Synchronize managed workspace state from settings.json" },
|
|
80
|
-
{ command: "axm sync --preview", description: "Preview workspace synchronization" },
|
|
81
|
-
]));
|
|
82
|
-
//# sourceMappingURL=sync.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sync.js","sourceRoot":"","sources":["../../../src/root/sync.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,UAAU,MAAM,mBAAmB,CAAC;AAChD,OAAO,KAAK,IAAI,MAAM,aAAa,CAAC;AACpC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,qBAAqB,EAAE,MAAM,sCAAsC,CAAC;AAC7E,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,yCAAyC,CAAC;AAC/E,OAAO,EAAE,WAAW,EAAE,MAAM,4CAA4C,CAAC;AACzE,OAAO,EAAE,gBAAgB,EAAE,MAAM,2CAA2C,CAAC;AAC7E,OAAO,EAAE,mBAAmB,EAAE,MAAM,iDAAiD,CAAC;AACtF,OAAO,EACL,mCAAmC,EACnC,yBAAyB,EACzB,aAAa,EAIb,kBAAkB,EAClB,SAAS,GACV,MAAM,yCAAyC,CAAC;AAEjD,OAAO,EAAE,wBAAwB,EAAE,MAAM,mBAAmB,CAAC;AAC7D,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,M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