semantic-atlas 0.2.0 → 0.4.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/.agents/skills/semantic-atlas/SKILL.md +3 -0
- package/.agents/skills/semantic-atlas/references/product-feedback.md +34 -0
- package/.agents/skills/semantic-atlas-insights/SKILL.md +55 -0
- package/README.md +229 -88
- package/README.zh-CN.md +204 -85
- package/dist/cli/argument-parser.js +9 -1
- package/dist/cli/bin.js +17 -2
- package/dist/cli/cli-application.d.ts +1 -0
- package/dist/cli/cli-application.d.ts.map +1 -1
- package/dist/cli/cli-application.js +64 -12
- package/dist/cli/insights-cli.d.ts +6 -0
- package/dist/cli/insights-cli.d.ts.map +1 -0
- package/dist/cli/insights-cli.js +236 -0
- package/dist/cli/main.d.ts.map +1 -1
- package/dist/cli/main.js +94 -2
- package/dist/cli/standalone-cli.d.ts.map +1 -1
- package/dist/cli/standalone-cli.js +44 -5
- package/dist/cli/types.d.ts +2 -0
- package/dist/cli/types.d.ts.map +1 -1
- package/dist/cli/web-cli.d.ts +9 -0
- package/dist/cli/web-cli.d.ts.map +1 -0
- package/dist/cli/web-cli.js +134 -0
- package/dist/contracts/cli.d.ts +63 -0
- package/dist/contracts/cli.d.ts.map +1 -1
- package/dist/contracts/cli.js +7 -0
- package/dist/contracts/insights.d.ts +2 -0
- package/dist/contracts/insights.d.ts.map +1 -0
- package/dist/contracts/insights.js +1 -0
- package/dist/contracts/public-contracts.d.ts +1 -0
- package/dist/contracts/public-contracts.d.ts.map +1 -1
- package/dist/contracts/public-contracts.js +1 -0
- package/dist/graph/graph-store.d.ts +2 -2
- package/dist/graph/graph-store.d.ts.map +1 -1
- package/dist/graph/graph-store.js +2 -2
- package/dist/insights/contracts.d.ts +266 -0
- package/dist/insights/contracts.d.ts.map +1 -0
- package/dist/insights/contracts.js +124 -0
- package/dist/insights/insights-store.d.ts +73 -0
- package/dist/insights/insights-store.d.ts.map +1 -0
- package/dist/insights/insights-store.js +246 -0
- package/dist/repository/repository-inspector.d.ts +1 -0
- package/dist/repository/repository-inspector.d.ts.map +1 -1
- package/dist/repository/repository-inspector.js +13 -0
- package/dist/setup/package-upgrader.d.ts +54 -0
- package/dist/setup/package-upgrader.d.ts.map +1 -0
- package/dist/setup/package-upgrader.js +169 -0
- package/dist/setup/skill-installer.d.ts +3 -2
- package/dist/setup/skill-installer.d.ts.map +1 -1
- package/dist/setup/skill-installer.js +67 -36
- package/dist/storage/atlas-database.d.ts +8 -1
- package/dist/storage/atlas-database.d.ts.map +1 -1
- package/dist/storage/atlas-database.js +68 -11
- package/dist/web/application/atlas-read-service.d.ts +27 -0
- package/dist/web/application/atlas-read-service.d.ts.map +1 -0
- package/dist/web/application/atlas-read-service.js +216 -0
- package/dist/web/application/primary-repository-catalog.d.ts +15 -0
- package/dist/web/application/primary-repository-catalog.d.ts.map +1 -0
- package/dist/web/application/primary-repository-catalog.js +202 -0
- package/dist/web/application/types.d.ts +41 -0
- package/dist/web/application/types.d.ts.map +1 -0
- package/dist/web/application/types.js +1 -0
- package/dist/web/server/api-router.d.ts +4 -0
- package/dist/web/server/api-router.d.ts.map +1 -0
- package/dist/web/server/api-router.js +151 -0
- package/dist/web/server/local-web-server.d.ts +12 -0
- package/dist/web/server/local-web-server.d.ts.map +1 -0
- package/dist/web/server/local-web-server.js +100 -0
- package/dist/web-client/assets/index-DneaErDj.css +1 -0
- package/dist/web-client/assets/index-cze_4vtt.js +2 -0
- package/dist/web-client/assets/index-cze_4vtt.js.map +1 -0
- package/dist/web-client/index.html +61 -0
- package/dist/world/world-graph-query.d.ts +5 -1
- package/dist/world/world-graph-query.d.ts.map +1 -1
- package/dist/world/world-graph-query.js +4 -2
- package/dist/world/world-snapshot-store.d.ts +2 -1
- package/dist/world/world-snapshot-store.d.ts.map +1 -1
- package/dist/world/world-snapshot-store.js +2 -2
- package/docs/architecture/web-viewer.md +225 -0
- package/docs/contracts/cli-v1.md +40 -4
- package/docs/contracts/http-api-v1.md +155 -0
- package/docs/contracts/insights-v1.md +84 -0
- package/docs/index.md +7 -0
- package/docs/log.md +103 -0
- package/docs/product-contract.md +45 -10
- package/package.json +7 -4
- package/schemas/cli-envelope-v1.schema.json +85 -1
- package/schemas/insights-envelope-v1.schema.json +428 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"insights-store.d.ts","sourceRoot":"","sources":["../../src/insights/insights-store.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,246 @@
|
|
|
1
|
+
import { randomUUID } from "node:crypto";
|
|
2
|
+
import { createRequire } from "node:module";
|
|
3
|
+
import { resolveInsightsDatabasePath } from "../storage/atlas-database.js";
|
|
4
|
+
const require = createRequire(import.meta.url);
|
|
5
|
+
const INSIGHTS_SCHEMA_VERSION = 1;
|
|
6
|
+
export class InsightsStore {
|
|
7
|
+
databasePath;
|
|
8
|
+
connection;
|
|
9
|
+
#closed = false;
|
|
10
|
+
constructor(databasePath = resolveInsightsDatabasePath()) {
|
|
11
|
+
this.databasePath = databasePath;
|
|
12
|
+
const { DatabaseSync } = require("node:sqlite");
|
|
13
|
+
this.connection = new DatabaseSync(databasePath);
|
|
14
|
+
try {
|
|
15
|
+
this.connection.exec("PRAGMA foreign_keys = ON; PRAGMA journal_mode = WAL; PRAGMA busy_timeout = 5000;");
|
|
16
|
+
this.initializeSchema();
|
|
17
|
+
}
|
|
18
|
+
catch (error) {
|
|
19
|
+
this.connection.close();
|
|
20
|
+
throw error;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
close() {
|
|
24
|
+
if (this.#closed)
|
|
25
|
+
return;
|
|
26
|
+
this.connection.close();
|
|
27
|
+
this.#closed = true;
|
|
28
|
+
}
|
|
29
|
+
[Symbol.dispose]() {
|
|
30
|
+
this.close();
|
|
31
|
+
}
|
|
32
|
+
recordCommand(input) {
|
|
33
|
+
const observation = {
|
|
34
|
+
...input,
|
|
35
|
+
id: randomUUID(),
|
|
36
|
+
occurredAt: new Date().toISOString(),
|
|
37
|
+
warningCodes: [...input.warningCodes],
|
|
38
|
+
durationMs: Math.max(0, Math.round(input.durationMs)),
|
|
39
|
+
};
|
|
40
|
+
this.connection.prepare(`
|
|
41
|
+
INSERT INTO insight_command_events (
|
|
42
|
+
id, repository_id, command, outcome, exit_code, warning_codes, duration_ms, snapshot_id, occurred_at
|
|
43
|
+
) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
|
|
44
|
+
`).run(observation.id, observation.repositoryId, observation.command, observation.outcome, observation.exitCode, JSON.stringify(observation.warningCodes), observation.durationMs, observation.snapshotId, observation.occurredAt);
|
|
45
|
+
return observation;
|
|
46
|
+
}
|
|
47
|
+
recordFeedback(input) {
|
|
48
|
+
const now = new Date().toISOString();
|
|
49
|
+
const report = {
|
|
50
|
+
...input,
|
|
51
|
+
id: randomUUID(),
|
|
52
|
+
contextEventIds: this.recentCommandEventIds(input.repositoryId),
|
|
53
|
+
repositoryId: input.repositoryId,
|
|
54
|
+
snapshotId: input.snapshotId,
|
|
55
|
+
status: "new",
|
|
56
|
+
note: null,
|
|
57
|
+
createdAt: now,
|
|
58
|
+
updatedAt: now,
|
|
59
|
+
};
|
|
60
|
+
this.connection.prepare(`
|
|
61
|
+
INSERT INTO insight_feedback_reports (
|
|
62
|
+
id, repository_id, snapshot_id, kind, category, impact, observed, expected, suggestion,
|
|
63
|
+
source_confirmed, context_event_ids, status, note, created_at, updated_at
|
|
64
|
+
) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
|
|
65
|
+
`).run(report.id, report.repositoryId, report.snapshotId, report.kind, report.category, report.impact, report.observed, report.expected, report.suggestion ?? null, Number(report.sourceConfirmed), JSON.stringify(report.contextEventIds), report.status, report.note, report.createdAt, report.updatedAt);
|
|
66
|
+
return report;
|
|
67
|
+
}
|
|
68
|
+
listFeedback(range, status) {
|
|
69
|
+
const rows = this.connection.prepare(`
|
|
70
|
+
SELECT *
|
|
71
|
+
FROM insight_feedback_reports
|
|
72
|
+
WHERE created_at >= ? AND created_at < ?
|
|
73
|
+
${status === undefined ? "" : "AND status = ?"}
|
|
74
|
+
ORDER BY created_at DESC, id DESC
|
|
75
|
+
`).all(range.from, range.to, ...(status === undefined ? [] : [status]));
|
|
76
|
+
return rows.map(presentFeedback);
|
|
77
|
+
}
|
|
78
|
+
updateFeedback(input) {
|
|
79
|
+
const updatedAt = new Date().toISOString();
|
|
80
|
+
const result = this.connection.prepare(`
|
|
81
|
+
UPDATE insight_feedback_reports
|
|
82
|
+
SET status = ?, note = ?, updated_at = ?
|
|
83
|
+
WHERE id = ?
|
|
84
|
+
`).run(input.status, input.note ?? null, updatedAt, input.id);
|
|
85
|
+
if (result.changes !== 1)
|
|
86
|
+
throw new Error(`Feedback report ${input.id} was not found`);
|
|
87
|
+
const row = this.connection.prepare(`
|
|
88
|
+
SELECT * FROM insight_feedback_reports WHERE id = ?
|
|
89
|
+
`).get(input.id);
|
|
90
|
+
return presentFeedback(row);
|
|
91
|
+
}
|
|
92
|
+
summary(range) {
|
|
93
|
+
const commandRows = this.connection.prepare(`
|
|
94
|
+
SELECT command, outcome, warning_codes
|
|
95
|
+
FROM insight_command_events
|
|
96
|
+
WHERE occurred_at >= ? AND occurred_at < ?
|
|
97
|
+
`).all(range.from, range.to);
|
|
98
|
+
const feedbackRows = this.connection.prepare(`
|
|
99
|
+
SELECT category
|
|
100
|
+
FROM insight_feedback_reports
|
|
101
|
+
WHERE created_at >= ? AND created_at < ?
|
|
102
|
+
`).all(range.from, range.to);
|
|
103
|
+
const outcomes = { ok: 0, partial: 0, error: 0 };
|
|
104
|
+
const commands = new Map();
|
|
105
|
+
const warnings = new Map();
|
|
106
|
+
for (const row of commandRows) {
|
|
107
|
+
outcomes[row.outcome] += 1;
|
|
108
|
+
commands.set(row.command, (commands.get(row.command) ?? 0) + 1);
|
|
109
|
+
for (const code of parseStringArray(row.warning_codes)) {
|
|
110
|
+
warnings.set(code, (warnings.get(code) ?? 0) + 1);
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
const categories = new Map();
|
|
114
|
+
for (const row of feedbackRows) {
|
|
115
|
+
categories.set(row.category, (categories.get(row.category) ?? 0) + 1);
|
|
116
|
+
}
|
|
117
|
+
return {
|
|
118
|
+
commands: {
|
|
119
|
+
total: commandRows.length,
|
|
120
|
+
outcomes,
|
|
121
|
+
byCommand: [...commands.entries()]
|
|
122
|
+
.map(([command, count]) => ({ command, count }))
|
|
123
|
+
.sort((left, right) => left.command.localeCompare(right.command)),
|
|
124
|
+
warningCodes: [...warnings.entries()]
|
|
125
|
+
.map(([code, count]) => ({ code, count }))
|
|
126
|
+
.sort((left, right) => left.code.localeCompare(right.code)),
|
|
127
|
+
},
|
|
128
|
+
feedback: {
|
|
129
|
+
total: feedbackRows.length,
|
|
130
|
+
byCategory: [...categories.entries()]
|
|
131
|
+
.map(([category, count]) => ({ category, count }))
|
|
132
|
+
.sort((left, right) => left.category.localeCompare(right.category)),
|
|
133
|
+
},
|
|
134
|
+
};
|
|
135
|
+
}
|
|
136
|
+
recentCommandEventIds(repositoryId) {
|
|
137
|
+
const rows = this.connection.prepare(`
|
|
138
|
+
SELECT id
|
|
139
|
+
FROM insight_command_events
|
|
140
|
+
WHERE repository_id = ?
|
|
141
|
+
ORDER BY occurred_at DESC, id DESC
|
|
142
|
+
LIMIT 5
|
|
143
|
+
`).all(repositoryId);
|
|
144
|
+
return rows.map((row) => row.id);
|
|
145
|
+
}
|
|
146
|
+
initializeSchema() {
|
|
147
|
+
const row = this.connection.prepare(`
|
|
148
|
+
SELECT name FROM sqlite_schema WHERE type = 'table' AND name = 'insights_schema'
|
|
149
|
+
`).get();
|
|
150
|
+
if (row !== undefined) {
|
|
151
|
+
const version = this.connection.prepare(`
|
|
152
|
+
SELECT version FROM insights_schema WHERE singleton = 1
|
|
153
|
+
`).get();
|
|
154
|
+
if (version.version !== INSIGHTS_SCHEMA_VERSION) {
|
|
155
|
+
throw new Error(`Insights database schema ${version.version} is not supported`);
|
|
156
|
+
}
|
|
157
|
+
return;
|
|
158
|
+
}
|
|
159
|
+
this.connection.exec("BEGIN IMMEDIATE");
|
|
160
|
+
try {
|
|
161
|
+
this.connection.exec(INSIGHTS_SCHEMA);
|
|
162
|
+
this.connection.prepare(`
|
|
163
|
+
INSERT INTO insights_schema (singleton, version, created_at) VALUES (1, ?, ?)
|
|
164
|
+
`).run(INSIGHTS_SCHEMA_VERSION, new Date().toISOString());
|
|
165
|
+
this.connection.exec("COMMIT");
|
|
166
|
+
}
|
|
167
|
+
catch (error) {
|
|
168
|
+
this.connection.exec("ROLLBACK");
|
|
169
|
+
throw error;
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
function presentFeedback(row) {
|
|
174
|
+
return {
|
|
175
|
+
id: row.id,
|
|
176
|
+
repositoryId: row.repository_id,
|
|
177
|
+
snapshotId: row.snapshot_id,
|
|
178
|
+
kind: row.kind,
|
|
179
|
+
category: row.category,
|
|
180
|
+
impact: row.impact,
|
|
181
|
+
observed: row.observed,
|
|
182
|
+
expected: row.expected,
|
|
183
|
+
...(row.suggestion === null ? {} : { suggestion: row.suggestion }),
|
|
184
|
+
sourceConfirmed: row.source_confirmed === 1,
|
|
185
|
+
contextEventIds: parseStringArray(row.context_event_ids),
|
|
186
|
+
status: row.status,
|
|
187
|
+
note: row.note,
|
|
188
|
+
createdAt: row.created_at,
|
|
189
|
+
updatedAt: row.updated_at,
|
|
190
|
+
};
|
|
191
|
+
}
|
|
192
|
+
function parseStringArray(value) {
|
|
193
|
+
const parsed = JSON.parse(value);
|
|
194
|
+
if (!Array.isArray(parsed) || parsed.some((item) => typeof item !== "string")) {
|
|
195
|
+
throw new Error("Insights database contains an invalid string collection");
|
|
196
|
+
}
|
|
197
|
+
return [...parsed];
|
|
198
|
+
}
|
|
199
|
+
const INSIGHTS_SCHEMA = `
|
|
200
|
+
CREATE TABLE insights_schema (
|
|
201
|
+
singleton INTEGER PRIMARY KEY CHECK (singleton = 1),
|
|
202
|
+
version INTEGER NOT NULL CHECK (version = 1),
|
|
203
|
+
created_at TEXT NOT NULL
|
|
204
|
+
) STRICT;
|
|
205
|
+
|
|
206
|
+
CREATE TABLE insight_command_events (
|
|
207
|
+
id TEXT PRIMARY KEY,
|
|
208
|
+
repository_id TEXT NOT NULL,
|
|
209
|
+
command TEXT NOT NULL,
|
|
210
|
+
outcome TEXT NOT NULL CHECK (outcome IN ('ok', 'partial', 'error')),
|
|
211
|
+
exit_code INTEGER NOT NULL,
|
|
212
|
+
warning_codes TEXT NOT NULL,
|
|
213
|
+
duration_ms INTEGER NOT NULL CHECK (duration_ms >= 0),
|
|
214
|
+
snapshot_id TEXT,
|
|
215
|
+
occurred_at TEXT NOT NULL
|
|
216
|
+
) STRICT;
|
|
217
|
+
|
|
218
|
+
CREATE INDEX insight_command_events_time_index
|
|
219
|
+
ON insight_command_events (occurred_at, command);
|
|
220
|
+
CREATE INDEX insight_command_events_repository_time_index
|
|
221
|
+
ON insight_command_events (repository_id, occurred_at DESC);
|
|
222
|
+
|
|
223
|
+
CREATE TABLE insight_feedback_reports (
|
|
224
|
+
id TEXT PRIMARY KEY,
|
|
225
|
+
repository_id TEXT NOT NULL,
|
|
226
|
+
snapshot_id TEXT,
|
|
227
|
+
kind TEXT NOT NULL CHECK (kind IN ('problem', 'suggestion')),
|
|
228
|
+
category TEXT NOT NULL CHECK (category IN (
|
|
229
|
+
'misleading-result', 'missing-knowledge', 'workflow-friction',
|
|
230
|
+
'performance', 'cli-error', 'skill-instruction'
|
|
231
|
+
)),
|
|
232
|
+
impact TEXT NOT NULL CHECK (impact IN ('blocked', 'slowed', 'minor')),
|
|
233
|
+
observed TEXT NOT NULL,
|
|
234
|
+
expected TEXT NOT NULL,
|
|
235
|
+
suggestion TEXT,
|
|
236
|
+
source_confirmed INTEGER NOT NULL CHECK (source_confirmed IN (0, 1)),
|
|
237
|
+
context_event_ids TEXT NOT NULL,
|
|
238
|
+
status TEXT NOT NULL CHECK (status IN ('new', 'triaged', 'resolved', 'dismissed')),
|
|
239
|
+
note TEXT,
|
|
240
|
+
created_at TEXT NOT NULL,
|
|
241
|
+
updated_at TEXT NOT NULL
|
|
242
|
+
) STRICT;
|
|
243
|
+
|
|
244
|
+
CREATE INDEX insight_feedback_reports_time_index
|
|
245
|
+
ON insight_feedback_reports (created_at DESC, status, category);
|
|
246
|
+
`;
|
|
@@ -4,4 +4,5 @@ export declare function isTargetSource(path: string): boolean;
|
|
|
4
4
|
export declare function inspectGitRepository(startPath: string): Promise<GitRepository>;
|
|
5
5
|
export declare function discoverTargetSources(repository: GitRepository): Promise<string[]>;
|
|
6
6
|
export declare function readCurrentHead(repository: GitRepository): Promise<string>;
|
|
7
|
+
export declare function readCurrentBranch(repository: GitRepository): Promise<string | null>;
|
|
7
8
|
//# sourceMappingURL=repository-inspector.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"repository-inspector.d.ts","sourceRoot":"","sources":["../../src/repository/repository-inspector.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AA4ChD,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAMvD;AAED,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAOpD;AAED,wBAAsB,oBAAoB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC,CAuBpF;AAED,wBAAsB,qBAAqB,CAAC,UAAU,EAAE,aAAa,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,CAcxF;AAED,wBAAsB,eAAe,CAAC,UAAU,EAAE,aAAa,GAAG,OAAO,CAAC,MAAM,CAAC,CAEhF"}
|
|
1
|
+
{"version":3,"file":"repository-inspector.d.ts","sourceRoot":"","sources":["../../src/repository/repository-inspector.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AA4ChD,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAMvD;AAED,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAOpD;AAED,wBAAsB,oBAAoB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC,CAuBpF;AAED,wBAAsB,qBAAqB,CAAC,UAAU,EAAE,aAAa,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,CAcxF;AAED,wBAAsB,eAAe,CAAC,UAAU,EAAE,aAAa,GAAG,OAAO,CAAC,MAAM,CAAC,CAEhF;AAED,wBAAsB,iBAAiB,CAAC,UAAU,EAAE,aAAa,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAWzF"}
|
|
@@ -82,3 +82,16 @@ export async function discoverTargetSources(repository) {
|
|
|
82
82
|
export async function readCurrentHead(repository) {
|
|
83
83
|
return runGitText(repository.worktreeRoot, ["rev-parse", "--verify", "HEAD"]);
|
|
84
84
|
}
|
|
85
|
+
export async function readCurrentBranch(repository) {
|
|
86
|
+
try {
|
|
87
|
+
return await runGitText(repository.worktreeRoot, [
|
|
88
|
+
"symbolic-ref",
|
|
89
|
+
"--quiet",
|
|
90
|
+
"--short",
|
|
91
|
+
"HEAD",
|
|
92
|
+
]);
|
|
93
|
+
}
|
|
94
|
+
catch {
|
|
95
|
+
return null;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
export type PackageUpgradeStep = "check" | "install" | "locate" | "verify" | "setup";
|
|
2
|
+
export interface PackageCommandResult {
|
|
3
|
+
readonly exitCode: number | null;
|
|
4
|
+
readonly stdout: string;
|
|
5
|
+
readonly stderr: string;
|
|
6
|
+
readonly error?: Error;
|
|
7
|
+
}
|
|
8
|
+
export interface PackageCommandRunner {
|
|
9
|
+
run(executable: string, arguments_: readonly string[], environment?: NodeJS.ProcessEnv): Promise<PackageCommandResult>;
|
|
10
|
+
}
|
|
11
|
+
export interface NpmCommandRuntime {
|
|
12
|
+
readonly platform: NodeJS.Platform;
|
|
13
|
+
readonly commandShell?: string;
|
|
14
|
+
readonly npmExecutable?: string;
|
|
15
|
+
}
|
|
16
|
+
export interface NpmCommandInvocation {
|
|
17
|
+
readonly executable: string;
|
|
18
|
+
readonly arguments: readonly string[];
|
|
19
|
+
}
|
|
20
|
+
export interface SemanticAtlasPackageUpgraderOptions {
|
|
21
|
+
readonly currentVersion: string;
|
|
22
|
+
readonly npmExecutable?: string;
|
|
23
|
+
readonly nodeExecutable?: string;
|
|
24
|
+
readonly userHome?: string;
|
|
25
|
+
readonly installCurrentSkill?: () => Promise<unknown>;
|
|
26
|
+
}
|
|
27
|
+
export interface PackageUpgradeResult {
|
|
28
|
+
readonly outcome: "current" | "upgraded";
|
|
29
|
+
readonly previousVersion: string;
|
|
30
|
+
readonly targetVersion: string;
|
|
31
|
+
readonly skillDirectory: string;
|
|
32
|
+
}
|
|
33
|
+
export declare class PackageUpgradeError extends Error {
|
|
34
|
+
readonly step: PackageUpgradeStep;
|
|
35
|
+
readonly name = "PackageUpgradeError";
|
|
36
|
+
constructor(step: PackageUpgradeStep, message: string, options?: ErrorOptions);
|
|
37
|
+
}
|
|
38
|
+
export declare class SemanticAtlasPackageUpgrader {
|
|
39
|
+
#private;
|
|
40
|
+
private readonly runner;
|
|
41
|
+
constructor(options: SemanticAtlasPackageUpgraderOptions, runner?: PackageCommandRunner);
|
|
42
|
+
upgrade(): Promise<PackageUpgradeResult>;
|
|
43
|
+
private latestVersion;
|
|
44
|
+
private install;
|
|
45
|
+
private installedCliPath;
|
|
46
|
+
private verifyInstalledVersion;
|
|
47
|
+
private synchronizeCurrentSkill;
|
|
48
|
+
private synchronizeInstalledSkill;
|
|
49
|
+
private result;
|
|
50
|
+
private runChecked;
|
|
51
|
+
private runNpmChecked;
|
|
52
|
+
}
|
|
53
|
+
export declare function resolveNpmCommandInvocation(arguments_: readonly string[], runtime: NpmCommandRuntime): NpmCommandInvocation;
|
|
54
|
+
//# sourceMappingURL=package-upgrader.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"package-upgrader.d.ts","sourceRoot":"","sources":["../../src/setup/package-upgrader.ts"],"names":[],"mappings":"AAUA,MAAM,MAAM,kBAAkB,GAAG,OAAO,GAAG,SAAS,GAAG,QAAQ,GAAG,QAAQ,GAAG,OAAO,CAAC;AAErF,MAAM,WAAW,oBAAoB;IACnC,QAAQ,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,KAAK,CAAC,EAAE,KAAK,CAAC;CACxB;AAED,MAAM,WAAW,oBAAoB;IACnC,GAAG,CACD,UAAU,EAAE,MAAM,EAClB,UAAU,EAAE,SAAS,MAAM,EAAE,EAC7B,WAAW,CAAC,EAAE,MAAM,CAAC,UAAU,GAC9B,OAAO,CAAC,oBAAoB,CAAC,CAAC;CAClC;AAED,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC,QAAQ,CAAC;IACnC,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAC;IAC/B,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,CAAC;CACjC;AAED,MAAM,WAAW,oBAAoB;IACnC,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,SAAS,EAAE,SAAS,MAAM,EAAE,CAAC;CACvC;AAED,MAAM,WAAW,mCAAmC;IAClD,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;IAChC,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,CAAC;IAChC,QAAQ,CAAC,cAAc,CAAC,EAAE,MAAM,CAAC;IACjC,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,mBAAmB,CAAC,EAAE,MAAM,OAAO,CAAC,OAAO,CAAC,CAAC;CACvD;AAED,MAAM,WAAW,oBAAoB;IACnC,QAAQ,CAAC,OAAO,EAAE,SAAS,GAAG,UAAU,CAAC;IACzC,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAC;IACjC,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAC/B,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;CACjC;AAED,qBAAa,mBAAoB,SAAQ,KAAK;IAI1C,QAAQ,CAAC,IAAI,EAAE,kBAAkB;IAHnC,SAAkB,IAAI,yBAAyB;gBAGpC,IAAI,EAAE,kBAAkB,EACjC,OAAO,EAAE,MAAM,EACf,OAAO,CAAC,EAAE,YAAY;CAIzB;AAED,qBAAa,4BAA4B;;IASrC,OAAO,CAAC,QAAQ,CAAC,MAAM;gBADvB,OAAO,EAAE,mCAAmC,EAC3B,MAAM,GAAE,oBAAsD;IAe3E,OAAO,IAAI,OAAO,CAAC,oBAAoB,CAAC;YAchC,aAAa;YAwBb,OAAO;YAOP,gBAAgB;YAYhB,sBAAsB;YAetB,uBAAuB;YAYvB,yBAAyB;IAQvC,OAAO,CAAC,MAAM;YAYA,UAAU;YAiBV,aAAa;CAO5B;AAED,wBAAgB,2BAA2B,CACzC,UAAU,EAAE,SAAS,MAAM,EAAE,EAC7B,OAAO,EAAE,iBAAiB,GACzB,oBAAoB,CAWtB"}
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
import { spawn } from "node:child_process";
|
|
2
|
+
import { homedir } from "node:os";
|
|
3
|
+
import { join } from "node:path";
|
|
4
|
+
import { SkillInstaller } from "./skill-installer.js";
|
|
5
|
+
const packageName = "semantic-atlas";
|
|
6
|
+
const maximumCapturedOutputLength = 64 * 1_024;
|
|
7
|
+
const packageVersionPattern = /^\d+\.\d+\.\d+(?:-[0-9A-Za-z.-]+)?(?:\+[0-9A-Za-z.-]+)?$/u;
|
|
8
|
+
export class PackageUpgradeError extends Error {
|
|
9
|
+
step;
|
|
10
|
+
name = "PackageUpgradeError";
|
|
11
|
+
constructor(step, message, options) {
|
|
12
|
+
super(message, options);
|
|
13
|
+
this.step = step;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
export class SemanticAtlasPackageUpgrader {
|
|
17
|
+
runner;
|
|
18
|
+
#currentVersion;
|
|
19
|
+
#nodeExecutable;
|
|
20
|
+
#userHome;
|
|
21
|
+
#installCurrentSkill;
|
|
22
|
+
#npmRuntime;
|
|
23
|
+
constructor(options, runner = new SpawnPackageCommandRunner()) {
|
|
24
|
+
this.runner = runner;
|
|
25
|
+
this.#currentVersion = options.currentVersion;
|
|
26
|
+
this.#nodeExecutable = options.nodeExecutable ?? process.execPath;
|
|
27
|
+
this.#userHome = options.userHome ?? homedir();
|
|
28
|
+
this.#npmRuntime = {
|
|
29
|
+
platform: process.platform,
|
|
30
|
+
...(process.env.ComSpec === undefined ? {} : { commandShell: process.env.ComSpec }),
|
|
31
|
+
...(options.npmExecutable === undefined ? {} : { npmExecutable: options.npmExecutable }),
|
|
32
|
+
};
|
|
33
|
+
this.#installCurrentSkill = options.installCurrentSkill ?? (() => (new SkillInstaller({ version: this.#currentVersion, userHome: this.#userHome }).install()));
|
|
34
|
+
}
|
|
35
|
+
async upgrade() {
|
|
36
|
+
const targetVersion = await this.latestVersion();
|
|
37
|
+
if (targetVersion === this.#currentVersion) {
|
|
38
|
+
await this.synchronizeCurrentSkill();
|
|
39
|
+
return this.result("current", targetVersion);
|
|
40
|
+
}
|
|
41
|
+
await this.install(targetVersion);
|
|
42
|
+
const installedCli = await this.installedCliPath();
|
|
43
|
+
await this.verifyInstalledVersion(installedCli, targetVersion);
|
|
44
|
+
await this.synchronizeInstalledSkill(installedCli);
|
|
45
|
+
return this.result("upgraded", targetVersion);
|
|
46
|
+
}
|
|
47
|
+
async latestVersion() {
|
|
48
|
+
const result = await this.runNpmChecked("check", ["view", packageName, "dist-tags.latest", "--json"]);
|
|
49
|
+
let parsed;
|
|
50
|
+
try {
|
|
51
|
+
parsed = JSON.parse(result.stdout);
|
|
52
|
+
}
|
|
53
|
+
catch (error) {
|
|
54
|
+
throw new PackageUpgradeError("check", "npm did not return the latest Semantic Atlas release as JSON", { cause: error });
|
|
55
|
+
}
|
|
56
|
+
if (typeof parsed !== "string" || !packageVersionPattern.test(parsed)) {
|
|
57
|
+
throw new PackageUpgradeError("check", "npm did not return a valid package version for Semantic Atlas");
|
|
58
|
+
}
|
|
59
|
+
return parsed;
|
|
60
|
+
}
|
|
61
|
+
async install(targetVersion) {
|
|
62
|
+
await this.runNpmChecked("install", ["install", "--global", `${packageName}@${targetVersion}`]);
|
|
63
|
+
}
|
|
64
|
+
async installedCliPath() {
|
|
65
|
+
const result = await this.runNpmChecked("locate", ["root", "--global"]);
|
|
66
|
+
const globalRoot = result.stdout.trim();
|
|
67
|
+
if (globalRoot.length === 0) {
|
|
68
|
+
throw new PackageUpgradeError("locate", "npm did not return its global package root");
|
|
69
|
+
}
|
|
70
|
+
return join(globalRoot, packageName, "dist", "cli", "bin.js");
|
|
71
|
+
}
|
|
72
|
+
async verifyInstalledVersion(installedCli, targetVersion) {
|
|
73
|
+
const result = await this.runChecked("verify", this.#nodeExecutable, [installedCli, "--version"]);
|
|
74
|
+
const installedVersion = result.stdout.trim();
|
|
75
|
+
if (installedVersion !== targetVersion) {
|
|
76
|
+
throw new PackageUpgradeError("verify", `npm installed Semantic Atlas ${installedVersion || "with no readable version"}; expected ${targetVersion}`);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
async synchronizeCurrentSkill() {
|
|
80
|
+
try {
|
|
81
|
+
await this.#installCurrentSkill();
|
|
82
|
+
}
|
|
83
|
+
catch (error) {
|
|
84
|
+
throw new PackageUpgradeError("setup", `The current Semantic Atlas Skill could not be synchronized: ${errorMessage(error)}`, error instanceof Error ? { cause: error } : undefined);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
async synchronizeInstalledSkill(installedCli) {
|
|
88
|
+
await this.runChecked("setup", this.#nodeExecutable, [installedCli, "setup"]);
|
|
89
|
+
}
|
|
90
|
+
result(outcome, targetVersion) {
|
|
91
|
+
return {
|
|
92
|
+
outcome,
|
|
93
|
+
previousVersion: this.#currentVersion,
|
|
94
|
+
targetVersion,
|
|
95
|
+
skillDirectory: join(this.#userHome, ".agents", "skills", packageName),
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
async runChecked(step, executable, arguments_) {
|
|
99
|
+
const result = await this.runner.run(executable, arguments_, process.env);
|
|
100
|
+
if (result.error === undefined && result.exitCode === 0) {
|
|
101
|
+
return result;
|
|
102
|
+
}
|
|
103
|
+
const diagnostic = commandDiagnostic(result);
|
|
104
|
+
throw new PackageUpgradeError(step, `Semantic Atlas ${step} failed${diagnostic.length === 0 ? "" : `: ${diagnostic}`}`, result.error === undefined ? undefined : { cause: result.error });
|
|
105
|
+
}
|
|
106
|
+
async runNpmChecked(step, arguments_) {
|
|
107
|
+
const invocation = resolveNpmCommandInvocation(arguments_, this.#npmRuntime);
|
|
108
|
+
return this.runChecked(step, invocation.executable, invocation.arguments);
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
export function resolveNpmCommandInvocation(arguments_, runtime) {
|
|
112
|
+
if (runtime.npmExecutable !== undefined || runtime.platform !== "win32") {
|
|
113
|
+
return {
|
|
114
|
+
executable: runtime.npmExecutable ?? "npm",
|
|
115
|
+
arguments: arguments_,
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
return {
|
|
119
|
+
executable: runtime.commandShell ?? "cmd.exe",
|
|
120
|
+
arguments: ["/d", "/s", "/c", "npm.cmd", ...arguments_],
|
|
121
|
+
};
|
|
122
|
+
}
|
|
123
|
+
class SpawnPackageCommandRunner {
|
|
124
|
+
async run(executable, arguments_, environment) {
|
|
125
|
+
return new Promise((resolve) => {
|
|
126
|
+
const child = spawn(executable, arguments_, {
|
|
127
|
+
env: environment,
|
|
128
|
+
stdio: ["ignore", "pipe", "pipe"],
|
|
129
|
+
});
|
|
130
|
+
let stdout = "";
|
|
131
|
+
let stderr = "";
|
|
132
|
+
let settled = false;
|
|
133
|
+
child.stdout.setEncoding("utf8");
|
|
134
|
+
child.stderr.setEncoding("utf8");
|
|
135
|
+
child.stdout.on("data", (chunk) => {
|
|
136
|
+
stdout = appendCapturedOutput(stdout, chunk);
|
|
137
|
+
});
|
|
138
|
+
child.stderr.on("data", (chunk) => {
|
|
139
|
+
stderr = appendCapturedOutput(stderr, chunk);
|
|
140
|
+
});
|
|
141
|
+
child.once("error", (error) => {
|
|
142
|
+
if (settled)
|
|
143
|
+
return;
|
|
144
|
+
settled = true;
|
|
145
|
+
resolve({ exitCode: null, stdout, stderr, error });
|
|
146
|
+
});
|
|
147
|
+
child.once("close", (exitCode) => {
|
|
148
|
+
if (settled)
|
|
149
|
+
return;
|
|
150
|
+
settled = true;
|
|
151
|
+
resolve({ exitCode, stdout, stderr });
|
|
152
|
+
});
|
|
153
|
+
});
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
function appendCapturedOutput(current, chunk) {
|
|
157
|
+
const combined = current + chunk;
|
|
158
|
+
return combined.length <= maximumCapturedOutputLength
|
|
159
|
+
? combined
|
|
160
|
+
: combined.slice(-maximumCapturedOutputLength);
|
|
161
|
+
}
|
|
162
|
+
function commandDiagnostic(result) {
|
|
163
|
+
const diagnostic = [result.error?.message, result.stderr, result.stdout]
|
|
164
|
+
.find((value) => value !== undefined && value.trim().length > 0);
|
|
165
|
+
return diagnostic?.trim().slice(-2_000) ?? "";
|
|
166
|
+
}
|
|
167
|
+
function errorMessage(error) {
|
|
168
|
+
return error instanceof Error ? error.message : String(error);
|
|
169
|
+
}
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
export interface SkillInstallerOptions {
|
|
2
2
|
readonly sourceDirectory?: string;
|
|
3
|
+
readonly insightsSourceDirectory?: string;
|
|
3
4
|
readonly userHome?: string;
|
|
4
5
|
readonly version: string;
|
|
5
6
|
}
|
|
6
7
|
export interface SkillInstallationResult {
|
|
7
8
|
readonly outcome: "installed" | "updated" | "current";
|
|
8
9
|
readonly targetDirectory: string;
|
|
10
|
+
readonly insightsTargetDirectory: string;
|
|
9
11
|
readonly removedLegacyDirectories: readonly string[];
|
|
10
12
|
}
|
|
11
13
|
export declare class SkillInstaller {
|
|
@@ -13,7 +15,6 @@ export declare class SkillInstaller {
|
|
|
13
15
|
constructor(options: SkillInstallerOptions);
|
|
14
16
|
install(): Promise<SkillInstallationResult>;
|
|
15
17
|
private existingLegacyDirectories;
|
|
16
|
-
private installAtomically;
|
|
17
18
|
}
|
|
18
|
-
export declare function resolveBundledSkillDirectory(): string;
|
|
19
|
+
export declare function resolveBundledSkillDirectory(name?: string): string;
|
|
19
20
|
//# sourceMappingURL=skill-installer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"skill-installer.d.ts","sourceRoot":"","sources":["../../src/setup/skill-installer.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"skill-installer.d.ts","sourceRoot":"","sources":["../../src/setup/skill-installer.ts"],"names":[],"mappings":"AAwBA,MAAM,WAAW,qBAAqB;IACpC,QAAQ,CAAC,eAAe,CAAC,EAAE,MAAM,CAAC;IAClC,QAAQ,CAAC,uBAAuB,CAAC,EAAE,MAAM,CAAC;IAC1C,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;CAC1B;AAED,MAAM,WAAW,uBAAuB;IACtC,QAAQ,CAAC,OAAO,EAAE,WAAW,GAAG,SAAS,GAAG,SAAS,CAAC;IACtD,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAC;IACjC,QAAQ,CAAC,uBAAuB,EAAE,MAAM,CAAC;IACzC,QAAQ,CAAC,wBAAwB,EAAE,SAAS,MAAM,EAAE,CAAC;CACtD;AAED,qBAAa,cAAc;;gBAQb,OAAO,EAAE,qBAAqB;IAWpC,OAAO,IAAI,OAAO,CAAC,uBAAuB,CAAC;YAuDnC,yBAAyB;CAUxC;AAED,wBAAgB,4BAA4B,CAAC,IAAI,SAAY,GAAG,MAAM,CAGrE"}
|