skills-package-manager 0.5.0 → 0.6.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/index.js +6 -1
- package/package.json +1 -1
- package/skills.schema.json +11 -0
package/dist/index.js
CHANGED
|
@@ -14,7 +14,7 @@ import { fileURLToPath } from "node:url";
|
|
|
14
14
|
import { x } from "tar";
|
|
15
15
|
import * as __rspack_external__clack_prompts_3cae1695 from "@clack/prompts";
|
|
16
16
|
var package_namespaceObject = {
|
|
17
|
-
rE: "0.
|
|
17
|
+
rE: "0.6.1"
|
|
18
18
|
};
|
|
19
19
|
const UNIVERSAL_AGENT_NAMES = [
|
|
20
20
|
'Amp',
|
|
@@ -437,6 +437,9 @@ const skillsManifestSchema = z.object({
|
|
|
437
437
|
installDir: z.string().default('.agents/skills').describe('Directory where skills will be installed'),
|
|
438
438
|
linkTargets: z.array(z.string()).default([]).describe('Directories where skill symlinks will be created'),
|
|
439
439
|
selfSkill: z.boolean().optional().describe('Whether this project is itself a skill'),
|
|
440
|
+
pnpmPlugin: z.object({
|
|
441
|
+
removePnpmfileChecksum: z.boolean().optional().describe('Temporarily remove pnpmfileChecksum from pnpm lockfiles in pnpm-plugin-skills afterAllResolved')
|
|
442
|
+
}).optional().describe('pnpm-plugin-skills specific compatibility settings'),
|
|
440
443
|
skills: z.record(z.string(), z.string()).default({}).describe('Map of skill names to their specifiers')
|
|
441
444
|
}).strict();
|
|
442
445
|
async function readSkillsManifest(rootDir) {
|
|
@@ -1002,6 +1005,7 @@ async function writeSkillsManifest(rootDir, manifest) {
|
|
|
1002
1005
|
skills: manifest.skills
|
|
1003
1006
|
};
|
|
1004
1007
|
if (void 0 !== manifest.selfSkill) nextManifest.selfSkill = manifest.selfSkill;
|
|
1008
|
+
if (void 0 !== manifest.pnpmPlugin) nextManifest.pnpmPlugin = manifest.pnpmPlugin;
|
|
1005
1009
|
try {
|
|
1006
1010
|
await writeFile(filePath, `${JSON.stringify(nextManifest, null, 2)}\n`, 'utf8');
|
|
1007
1011
|
} catch (error) {
|
|
@@ -1245,6 +1249,7 @@ function normalizeSkillsManifest(manifest) {
|
|
|
1245
1249
|
installDir: manifest.installDir ?? '.agents/skills',
|
|
1246
1250
|
linkTargets: manifest.linkTargets ?? [],
|
|
1247
1251
|
selfSkill: manifest.selfSkill ?? false,
|
|
1252
|
+
pnpmPlugin: manifest.pnpmPlugin,
|
|
1248
1253
|
skills: manifest.skills ?? {}
|
|
1249
1254
|
};
|
|
1250
1255
|
}
|
package/package.json
CHANGED
package/skills.schema.json
CHANGED
|
@@ -23,6 +23,17 @@
|
|
|
23
23
|
"description": "Whether this project is itself a skill",
|
|
24
24
|
"type": "boolean"
|
|
25
25
|
},
|
|
26
|
+
"pnpmPlugin": {
|
|
27
|
+
"description": "pnpm-plugin-skills specific compatibility settings",
|
|
28
|
+
"type": "object",
|
|
29
|
+
"properties": {
|
|
30
|
+
"removePnpmfileChecksum": {
|
|
31
|
+
"description": "Temporarily remove pnpmfileChecksum from pnpm lockfiles in pnpm-plugin-skills afterAllResolved",
|
|
32
|
+
"type": "boolean"
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"additionalProperties": false
|
|
36
|
+
},
|
|
26
37
|
"skills": {
|
|
27
38
|
"default": {},
|
|
28
39
|
"description": "Map of skill names to their specifiers",
|