@iseoane/agent-depot 0.6.9 → 0.6.10
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 +35 -0
- package/README.md +24 -2
- package/dist/src/app-flow.js +3 -3
- package/dist/src/app-recipe-removal.js +3 -1
- package/dist/src/atomic-file.js +24 -1
- package/dist/src/cli.js +47 -13
- package/dist/src/path-safety.js +4 -1
- package/dist/src/profile-export.js +1 -1
- package/dist/src/profile-import.js +94 -18
- package/dist/src/project-installation.js +2 -1
- package/dist/src/project-manifest.js +7 -0
- package/dist/src/project-target.js +58 -0
- package/dist/src/skill-discovery.js +86 -6
- package/dist/src/skill-install.js +20 -8
- package/dist/src/tui/app-actions.js +18 -7
- package/dist/src/tui/app.js +19 -4
- package/dist/src/tui/batch.js +2 -1
- package/dist/src/tui/bulk-actions.js +21 -8
- package/dist/src/tui/catalog-installs.js +3 -2
- package/dist/src/tui/catalog-panel.js +3 -2
- package/dist/src/tui/catalog-state.js +47 -21
- package/dist/src/tui/catalog-tree.js +47 -10
- package/dist/src/tui/catalog-view.js +11 -5
- package/dist/src/tui/installations-view.js +19 -6
- package/dist/src/tui/manage-panel.js +1 -1
- package/dist/src/tui/profile-view.js +68 -31
- package/dist/src/tui/sources-recipes.js +44 -8
- package/dist/src/tui/sources-view.js +12 -5
- package/dist/src/tui/updates.js +1 -0
- package/dist/src/tui/view-retention.js +17 -0
- package/dist/src/update-flow.js +3 -1
- package/package.json +1 -1
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export function createViewRetention() {
|
|
2
|
+
return { generation: 0 };
|
|
3
|
+
}
|
|
4
|
+
/**
|
|
5
|
+
* Drops everything kept. Call after any change to Sources, recipes, approvals or installed
|
|
6
|
+
* state, so a loaded-before-the-change result that finishes later is not kept either.
|
|
7
|
+
*/
|
|
8
|
+
export function invalidateRetention(retention) {
|
|
9
|
+
if (!retention)
|
|
10
|
+
return;
|
|
11
|
+
retention.generation += 1;
|
|
12
|
+
retention.installations = undefined;
|
|
13
|
+
retention.catalogKey = undefined;
|
|
14
|
+
retention.catalogSkills = undefined;
|
|
15
|
+
retention.catalogApps = undefined;
|
|
16
|
+
retention.installed = undefined;
|
|
17
|
+
}
|
package/dist/src/update-flow.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { homedir } from "node:os";
|
|
2
2
|
import path from "node:path";
|
|
3
3
|
import { defaultProjectManifestPath, ProjectManifestStore, } from "./project-manifest.js";
|
|
4
|
+
import { describeProjectTarget } from "./project-target.js";
|
|
4
5
|
import { defaultProjectSkillTreeAccess } from "./skill-install.js";
|
|
5
6
|
import { applyUpdateBatch, previewSkillUpdate, relativeProjectPath, } from "./skill-update.js";
|
|
6
7
|
import { resolveProjectSource } from "./sources.js";
|
|
@@ -39,7 +40,8 @@ export async function loadUpdates(input) {
|
|
|
39
40
|
...(manifestStore === undefined ? {} : { projectManifestStore: manifestStore }),
|
|
40
41
|
...(input.installationFileSystem === undefined ? {} : { installationFileSystem: input.installationFileSystem }),
|
|
41
42
|
};
|
|
42
|
-
|
|
43
|
+
const projectTarget = manifestStore === undefined ? [] : await describeProjectTarget(projectRoot, manifestStore.path);
|
|
44
|
+
return { assessment, installed, context, projectTarget };
|
|
43
45
|
}
|
|
44
46
|
async function requireUserGlobalInstallations(operations) {
|
|
45
47
|
if (!operations.listUserGlobalInstallations) {
|