skills-manifest 0.3.1 → 0.3.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/dist/cli/add.d.mts +2 -2
- package/dist/cli/index.mjs +1 -1
- package/dist/cli/init.d.mts +2 -2
- package/dist/cli/install.d.mts +2 -2
- package/dist/cli/remove.d.mts +2 -2
- package/dist/cli/sync.d.mts +2 -2
- package/package.json +2 -2
- package/patches/skills-cli.mjs +9 -14
package/dist/cli/add.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as citty0 from "citty";
|
|
2
2
|
|
|
3
3
|
//#region src/cli/add.d.ts
|
|
4
|
-
declare const add:
|
|
4
|
+
declare const add: citty0.CommandDef<{
|
|
5
5
|
readonly repo: {
|
|
6
6
|
readonly type: "positional";
|
|
7
7
|
readonly description: "Repository (e.g. owner/repo or full URL)";
|
package/dist/cli/index.mjs
CHANGED
package/dist/cli/init.d.mts
CHANGED
package/dist/cli/install.d.mts
CHANGED
package/dist/cli/remove.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as citty4 from "citty";
|
|
2
2
|
|
|
3
3
|
//#region src/cli/remove.d.ts
|
|
4
|
-
declare const remove:
|
|
4
|
+
declare const remove: citty4.CommandDef<{
|
|
5
5
|
readonly repo: {
|
|
6
6
|
readonly type: "positional";
|
|
7
7
|
readonly description: "Repository (e.g. owner/repo or full URL)";
|
package/dist/cli/sync.d.mts
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "skills-manifest",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.3.
|
|
4
|
+
"version": "0.3.2",
|
|
5
5
|
"description": "A lightweight manifest manager for skills, enabling project-level skill synchronization and collaborative configuration.",
|
|
6
6
|
"author": "Hairyf <wwu710632@gmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"vitest": "^4.0.15",
|
|
59
59
|
"vitest-package-exports": "^0.1.1",
|
|
60
60
|
"yaml": "^2.8.2",
|
|
61
|
-
"skills-manifest": "0.3.
|
|
61
|
+
"skills-manifest": "0.3.2"
|
|
62
62
|
},
|
|
63
63
|
"simple-git-hooks": {
|
|
64
64
|
"pre-commit": "pnpm i --frozen-lockfile --ignore-scripts --offline && npx lint-staged"
|
package/patches/skills-cli.mjs
CHANGED
|
@@ -1,27 +1,22 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
+
import { enableCompileCache } from 'node:module';
|
|
2
3
|
import { spawnSync } from 'node:child_process';
|
|
3
4
|
import { createRequire } from 'node:module';
|
|
4
|
-
import { fileURLToPath } from 'node:url';
|
|
5
5
|
import { join, dirname } from 'node:path';
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
if (enableCompileCache)
|
|
8
|
+
try { enableCompileCache(); } catch {}
|
|
9
9
|
|
|
10
10
|
const argv = process.argv.slice(2);
|
|
11
11
|
const skipManifest = argv.includes('--skip-manifest');
|
|
12
12
|
const forwardArgs = argv.filter(arg => arg !== '--skip-manifest');
|
|
13
13
|
const [cmd] = forwardArgs;
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
const
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
const binPath = require.resolve('skills-manifest/bin/skills-manifest', { paths: [process.cwd()] });
|
|
21
|
-
spawnSync(process.execPath, [binPath, 'sync', ...forwardArgs], { stdio: 'inherit' });
|
|
22
|
-
} catch {
|
|
23
|
-
console.warn('skills-manifest: failed to sync from skills. Sync add/remove with manifest will not run.')
|
|
24
|
-
}
|
|
15
|
+
if (!skipManifest && ['add', 'remove'].includes(cmd)) {
|
|
16
|
+
const require = createRequire(import.meta.url);
|
|
17
|
+
const manifestPkg = require.resolve('skills-manifest/package.json', { paths: [process.cwd()] });
|
|
18
|
+
const binPath = join(dirname(manifestPkg), 'bin/index.mjs');
|
|
19
|
+
spawnSync(process.execPath, [binPath, 'sync', ...forwardArgs], { stdio: 'inherit' });
|
|
25
20
|
}
|
|
26
21
|
|
|
27
|
-
|
|
22
|
+
await import('../dist/cli.mjs');
|