@alexandrealvaro/agentic 0.3.0-beta.1 → 0.3.0-beta.2
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/package.json +1 -1
- package/src/commands/init.js +2 -0
- package/src/lib/install.js +8 -1
package/package.json
CHANGED
package/src/commands/init.js
CHANGED
package/src/lib/install.js
CHANGED
|
@@ -11,6 +11,7 @@ import {
|
|
|
11
11
|
} from 'node:fs';
|
|
12
12
|
import { fileURLToPath } from 'node:url';
|
|
13
13
|
import { basename, dirname, join, relative } from 'node:path';
|
|
14
|
+
import { SCHEMA_VERSION } from './state.js';
|
|
14
15
|
|
|
15
16
|
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
16
17
|
const KIT_ROOT = join(__dirname, '..', '..');
|
|
@@ -268,6 +269,12 @@ export async function installSkills({
|
|
|
268
269
|
copyFileSync(src, target);
|
|
269
270
|
}
|
|
270
271
|
|
|
272
|
+
// Record the current source SHA on every outcome — including skip.
|
|
273
|
+
// A skip means "I have seen this kit version and chose to keep my
|
|
274
|
+
// edits"; the next run should treat the same kit version as already
|
|
275
|
+
// acknowledged (silent user-edited-keep). If we recorded the prior
|
|
276
|
+
// SHA on skip, every re-run with the kit unchanged would re-prompt
|
|
277
|
+
// the same conflict the user already declined.
|
|
271
278
|
actions.push({ type: actionType, path: relForReport, agent });
|
|
272
279
|
skillFiles.push({ path: relForReport, sourceSha: decision.sourceSha });
|
|
273
280
|
}
|
|
@@ -279,7 +286,7 @@ export async function installSkills({
|
|
|
279
286
|
}
|
|
280
287
|
|
|
281
288
|
nextStates[agent] = {
|
|
282
|
-
schemaVersion:
|
|
289
|
+
schemaVersion: SCHEMA_VERSION,
|
|
283
290
|
kitVersion: kitVersion ?? prev?.kitVersion ?? null,
|
|
284
291
|
agent,
|
|
285
292
|
skills: nextSkills,
|