skilld 2.0.0 → 2.2.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/README.md +94 -0
- package/dist/_chunks/add.mjs +10 -9
- package/dist/_chunks/add.mjs.map +1 -1
- package/dist/_chunks/agent-prompt.mjs +4 -4
- package/dist/_chunks/agent-prompt.mjs.map +1 -1
- package/dist/_chunks/agent.mjs +282 -109
- package/dist/_chunks/agent.mjs.map +1 -1
- package/dist/_chunks/args.mjs +2 -2
- package/dist/_chunks/args.mjs.map +1 -1
- package/dist/_chunks/assemble.mjs +4 -4
- package/dist/_chunks/assemble.mjs.map +1 -1
- package/dist/_chunks/author.mjs +12 -11
- package/dist/_chunks/author.mjs.map +1 -1
- package/dist/_chunks/cache.mjs +21 -138
- package/dist/_chunks/cache.mjs.map +1 -1
- package/dist/_chunks/cache2.mjs +3 -3
- package/dist/_chunks/cache2.mjs.map +1 -1
- package/dist/_chunks/client.mjs +4 -3
- package/dist/_chunks/client.mjs.map +1 -1
- package/dist/_chunks/core.mjs +1 -1
- package/dist/_chunks/detect.mjs +1 -1
- package/dist/_chunks/detect.mjs.map +1 -1
- package/dist/_chunks/detect2.mjs +1 -1
- package/dist/_chunks/eject.mjs +7 -7
- package/dist/_chunks/eject.mjs.map +1 -1
- package/dist/_chunks/embedding-cache.mjs +1 -1
- package/dist/_chunks/embedding-cache2.mjs +14 -13
- package/dist/_chunks/embedding-cache2.mjs.map +1 -1
- package/dist/_chunks/env.mjs +1 -1
- package/dist/_chunks/env.mjs.map +1 -1
- package/dist/_chunks/index-identity.mjs +365 -0
- package/dist/_chunks/index-identity.mjs.map +1 -0
- package/dist/_chunks/index-identity2.mjs +2 -0
- package/dist/_chunks/install-many.mjs +20 -18
- package/dist/_chunks/install-many.mjs.map +1 -1
- package/dist/_chunks/install.mjs +34 -29
- package/dist/_chunks/install.mjs.map +1 -1
- package/dist/_chunks/intro.mjs +6 -6
- package/dist/_chunks/intro.mjs.map +1 -1
- package/dist/_chunks/list.mjs +5 -4
- package/dist/_chunks/list.mjs.map +1 -1
- package/dist/_chunks/lockfile.mjs +8 -6
- package/dist/_chunks/lockfile.mjs.map +1 -1
- package/dist/_chunks/login.mjs +7 -6
- package/dist/_chunks/login.mjs.map +1 -1
- package/dist/_chunks/logout.mjs +2 -2
- package/dist/_chunks/logout.mjs.map +1 -1
- package/dist/_chunks/map.mjs +1 -1
- package/dist/_chunks/map.mjs.map +1 -1
- package/dist/_chunks/markdown.mjs +2 -2
- package/dist/_chunks/markdown.mjs.map +1 -1
- package/dist/_chunks/menu.mjs +1 -1
- package/dist/_chunks/menu.mjs.map +1 -1
- package/dist/_chunks/model-picker.mjs +1 -1
- package/dist/_chunks/model-picker.mjs.map +1 -1
- package/dist/_chunks/monorepo.mjs +5 -4
- package/dist/_chunks/monorepo.mjs.map +1 -1
- package/dist/_chunks/package-json.mjs +7 -5
- package/dist/_chunks/package-json.mjs.map +1 -1
- package/dist/_chunks/paths.mjs +1 -1
- package/dist/_chunks/paths.mjs.map +1 -1
- package/dist/_chunks/pipeline.mjs +34 -26
- package/dist/_chunks/pipeline.mjs.map +1 -1
- package/dist/_chunks/pool.mjs +1 -1
- package/dist/_chunks/pool2.mjs +2 -2
- package/dist/_chunks/pool2.mjs.map +1 -1
- package/dist/_chunks/portable.mjs +8 -7
- package/dist/_chunks/portable.mjs.map +1 -1
- package/dist/_chunks/prepare-hook.mjs +1 -1
- package/dist/_chunks/prepare-hook2.mjs +3 -3
- package/dist/_chunks/prepare-hook2.mjs.map +1 -1
- package/dist/_chunks/prepare.mjs +17 -11
- package/dist/_chunks/prepare.mjs.map +1 -1
- package/dist/_chunks/prepare2.mjs +12 -10
- package/dist/_chunks/prepare2.mjs.map +1 -1
- package/dist/_chunks/prompts.mjs +8 -6
- package/dist/_chunks/prompts.mjs.map +1 -1
- package/dist/_chunks/pull.mjs +9 -8
- package/dist/_chunks/pull.mjs.map +1 -1
- package/dist/_chunks/regex.mjs +1 -1
- package/dist/_chunks/retriv.mjs +2 -2
- package/dist/_chunks/retriv2.mjs +22 -4
- package/dist/_chunks/retriv2.mjs.map +1 -1
- package/dist/_chunks/sanitize.mjs +1 -1
- package/dist/_chunks/sanitize.mjs.map +1 -1
- package/dist/_chunks/search-helpers.mjs +5 -5
- package/dist/_chunks/search-helpers.mjs.map +1 -1
- package/dist/_chunks/search-interactive.mjs +4 -4
- package/dist/_chunks/search-interactive.mjs.map +1 -1
- package/dist/_chunks/search.mjs +6 -6
- package/dist/_chunks/search.mjs.map +1 -1
- package/dist/_chunks/semver.mjs +111 -77
- package/dist/_chunks/semver.mjs.map +1 -1
- package/dist/_chunks/skill-installer.mjs +1 -1
- package/dist/_chunks/skill-installer2.mjs +26 -17
- package/dist/_chunks/skill-installer2.mjs.map +1 -1
- package/dist/_chunks/skills.mjs +7 -7
- package/dist/_chunks/skills.mjs.map +1 -1
- package/dist/_chunks/store.mjs +2 -2
- package/dist/_chunks/store.mjs.map +1 -1
- package/dist/_chunks/sync.mjs +26 -19
- package/dist/_chunks/sync.mjs.map +1 -1
- package/dist/_chunks/sync2.mjs +1 -1
- package/dist/_chunks/telemetry.mjs +3 -3
- package/dist/_chunks/telemetry.mjs.map +1 -1
- package/dist/_chunks/uninstall.mjs +32 -28
- package/dist/_chunks/uninstall.mjs.map +1 -1
- package/dist/_chunks/update.mjs +14 -13
- package/dist/_chunks/update.mjs.map +1 -1
- package/dist/_chunks/upload.mjs +13 -10
- package/dist/_chunks/upload.mjs.map +1 -1
- package/dist/_chunks/validate.mjs +1 -1
- package/dist/_chunks/validate.mjs.map +1 -1
- package/dist/_chunks/version.mjs +1 -1
- package/dist/_chunks/version.mjs.map +1 -1
- package/dist/_chunks/whoami.mjs +1 -1
- package/dist/_chunks/whoami.mjs.map +1 -1
- package/dist/_chunks/wizard.mjs +1 -1
- package/dist/_chunks/wizard2.mjs +8 -8
- package/dist/_chunks/wizard2.mjs.map +1 -1
- package/dist/_chunks/yaml.mjs +1 -1
- package/dist/_chunks/yaml.mjs.map +1 -1
- package/dist/cli-entry.d.mts +1 -1
- package/dist/cli.d.mts +1 -1
- package/dist/cli.mjs +111 -35
- package/dist/cli.mjs.map +1 -1
- package/dist/prepare.d.mts +1 -1
- package/dist/prepare.mjs +6 -4
- package/dist/prepare.mjs.map +1 -1
- package/dist/retriv/worker.d.mts.map +1 -1
- package/dist/retriv/worker.mjs +11 -5
- package/dist/retriv/worker.mjs.map +1 -1
- package/package.json +24 -24
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"worker.mjs","names":[],"sources":["../../src/retriv/worker.ts"],"sourcesContent":["import type { IndexConfig, Document as RetrivDocument } from './types.ts'\nimport { parentPort } from 'node:worker_threads'\n\nexport interface WorkerIndexMessage {\n type: 'index'\n id: number\n documents: RetrivDocument[]\n dbPath: string\n /** Exact IDs (including chunk IDs) to remove before indexing */\n removeIds?: string[]\n}\n\nexport interface WorkerShutdownMessage {\n type: 'shutdown'\n}\n\nexport type WorkerMessage = WorkerIndexMessage | WorkerShutdownMessage\n\nexport interface WorkerProgressResponse {\n type: 'progress'\n id: number\n phase: string\n current: number\n total: number\n}\n\nexport interface WorkerDoneResponse {\n type: 'done'\n id: number\n}\n\nexport interface WorkerErrorResponse {\n type: 'error'\n id: number\n message: string\n name?: string\n}\n\nexport type WorkerResponse = WorkerProgressResponse | WorkerDoneResponse | WorkerErrorResponse\n\nif (parentPort) {\n parentPort.on('message', async (msg: WorkerMessage) => {\n if (msg.type === 'shutdown') {\n process.exit(0)\n }\n\n if (msg.type === 'index') {\n const { id, documents, dbPath } = msg\n\n try {\n const config: IndexConfig = {\n dbPath,\n onProgress: ({ phase, current, total }) => {\n parentPort!.postMessage({ type: 'progress', id, phase, current, total } satisfies WorkerProgressResponse)\n },\n }\n\n const {
|
|
1
|
+
{"version":3,"file":"worker.mjs","names":[],"sources":["../../src/retriv/worker.ts"],"sourcesContent":["import type { IndexConfig, Document as RetrivDocument } from './types.ts'\nimport { parentPort } from 'node:worker_threads'\n\nexport interface WorkerIndexMessage {\n type: 'index'\n id: number\n documents: RetrivDocument[]\n dbPath: string\n /** Exact IDs (including chunk IDs) to remove before indexing */\n removeIds?: string[]\n}\n\nexport interface WorkerShutdownMessage {\n type: 'shutdown'\n}\n\nexport type WorkerMessage = WorkerIndexMessage | WorkerShutdownMessage\n\nexport interface WorkerProgressResponse {\n type: 'progress'\n id: number\n phase: string\n current: number\n total: number\n}\n\nexport interface WorkerDoneResponse {\n type: 'done'\n id: number\n}\n\nexport interface WorkerErrorResponse {\n type: 'error'\n id: number\n message: string\n name?: string\n}\n\nexport type WorkerResponse = WorkerProgressResponse | WorkerDoneResponse | WorkerErrorResponse\n\nif (parentPort) {\n parentPort.on('message', async (msg: WorkerMessage) => {\n if (msg.type === 'shutdown') {\n process.exit(0)\n }\n\n if (msg.type === 'index') {\n const { id, documents, dbPath } = msg\n\n try {\n const config: IndexConfig = {\n dbPath,\n onProgress: ({ phase, current, total }) => {\n parentPort!.postMessage({ type: 'progress', id, phase, current, total } satisfies WorkerProgressResponse)\n },\n }\n\n const { getIndexDb } = await import('./index.ts')\n const { resolveEmbeddingIdentity, writeIndexEmbeddingIdentity } = await import('./index-identity.ts')\n const identity = resolveEmbeddingIdentity()\n const db = await getIndexDb(config, identity)\n try {\n if (msg.removeIds?.length)\n await db.remove?.(msg.removeIds)\n await db.index(documents, { onProgress: config.onProgress })\n }\n finally {\n await db.close?.()\n }\n writeIndexEmbeddingIdentity(dbPath, identity)\n\n parentPort!.postMessage({ type: 'done', id } satisfies WorkerDoneResponse)\n }\n catch (err) {\n parentPort!.postMessage({\n type: 'error',\n id,\n message: err instanceof Error ? err.message : String(err),\n name: err instanceof Error ? err.name : undefined,\n } satisfies WorkerErrorResponse)\n }\n }\n })\n}\n"],"mappings":";AAwCA,IAAI,YACF,WAAW,GAAG,WAAW,OAAO,QAAuB;CACrD,IAAI,IAAI,SAAS,YACf,QAAQ,KAAK,CAAC;CAGhB,IAAI,IAAI,SAAS,SAAS;EACxB,MAAM,EAAE,IAAI,WAAW,WAAW;EAElC,IAAI;GACF,MAAM,SAAsB;IAC1B;IACA,aAAa,EAAE,OAAO,SAAS,YAAY;KACzC,WAAY,YAAY;MAAE,MAAM;MAAY;MAAI;MAAO;MAAS;KAAM,CAAkC;IAC1G;GACF;GAEA,MAAM,EAAE,eAAe,MAAM,OAAO;GACpC,MAAM,EAAE,0BAA0B,gCAAgC,MAAM,OAAO;GAC/E,MAAM,WAAW,yBAAyB;GAC1C,MAAM,KAAK,MAAM,WAAW,QAAQ,QAAQ;GAC5C,IAAI;IACF,IAAI,IAAI,WAAW,QACjB,MAAM,GAAG,SAAS,IAAI,SAAS;IACjC,MAAM,GAAG,MAAM,WAAW,EAAE,YAAY,OAAO,WAAW,CAAC;GAC7D,UACQ;IACN,MAAM,GAAG,QAAQ;GACnB;GACA,4BAA4B,QAAQ,QAAQ;GAE5C,WAAY,YAAY;IAAE,MAAM;IAAQ;GAAG,CAA8B;EAC3E,SACO,KAAK;GACV,WAAY,YAAY;IACtB,MAAM;IACN;IACA,SAAS,eAAe,QAAQ,IAAI,UAAU,OAAO,GAAG;IACxD,MAAM,eAAe,QAAQ,IAAI,OAAO,KAAA;GAC1C,CAA+B;EACjC;CACF;AACF,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "skilld",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.2.0",
|
|
5
5
|
"description": "Generate AI agent skills from npm package documentation",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Harlan Wilton",
|
|
@@ -41,43 +41,43 @@
|
|
|
41
41
|
"node": ">=22.6.0"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@clack/prompts": "^1.
|
|
45
|
-
"@earendil-works/pi-ai": "^0.
|
|
44
|
+
"@clack/prompts": "^1.7.0",
|
|
45
|
+
"@earendil-works/pi-ai": "^0.84.1",
|
|
46
46
|
"@huggingface/transformers": "^4.2.0",
|
|
47
|
-
"@mdream/crawl": "^1.1
|
|
47
|
+
"@mdream/crawl": "^1.6.1",
|
|
48
48
|
"citty": "^0.2.2",
|
|
49
49
|
"consola": "^3.4.2",
|
|
50
|
-
"giget": "^3.
|
|
50
|
+
"giget": "^3.3.1",
|
|
51
51
|
"hookable": "^6.1.1",
|
|
52
52
|
"jsonc-parser": "^3.3.1",
|
|
53
53
|
"log-update": "^8.0.0",
|
|
54
|
-
"mdream": "^1.1
|
|
54
|
+
"mdream": "^1.6.1",
|
|
55
55
|
"ofetch": "^1.5.1",
|
|
56
|
-
"oxc-parser": "^0.
|
|
57
|
-
"p-limit": "^7.3.
|
|
56
|
+
"oxc-parser": "^0.144.0",
|
|
57
|
+
"p-limit": "^7.3.1",
|
|
58
58
|
"pathe": "^2.0.3",
|
|
59
|
-
"retriv": "^0.
|
|
60
|
-
"semver": "^7.8.0",
|
|
59
|
+
"retriv": "^0.15.0",
|
|
61
60
|
"sqlite-vec": "^0.1.9",
|
|
62
|
-
"std-env": "^4.
|
|
63
|
-
"typebox": "^1.
|
|
64
|
-
"typescript": "6.0.
|
|
61
|
+
"std-env": "^4.2.0",
|
|
62
|
+
"typebox": "^1.3.12",
|
|
63
|
+
"typescript": "npm:@typescript/typescript6@^6.0.2",
|
|
65
64
|
"unagent": "^0.0.8",
|
|
66
|
-
"
|
|
65
|
+
"verkit": "^0.3.2",
|
|
66
|
+
"skilld-protocol": "2.2.0"
|
|
67
67
|
},
|
|
68
68
|
"optionalDependencies": {
|
|
69
|
-
"@napi-rs/keyring": "^1.
|
|
69
|
+
"@napi-rs/keyring": "^1.3.0"
|
|
70
70
|
},
|
|
71
71
|
"devDependencies": {
|
|
72
|
-
"@antfu/eslint-config": "^9.
|
|
73
|
-
"@types/node": "^
|
|
74
|
-
"@
|
|
75
|
-
"@vitest/coverage-v8": "^4.1.
|
|
76
|
-
"bumpp": "^
|
|
77
|
-
"eslint": "^
|
|
78
|
-
"obuild": "^0.4.
|
|
79
|
-
"tsx": "^4.
|
|
80
|
-
"vitest": "^4.1.
|
|
72
|
+
"@antfu/eslint-config": "^9.3.0",
|
|
73
|
+
"@types/node": "^26.2.0",
|
|
74
|
+
"@typescript/native": "npm:typescript@7.0.2",
|
|
75
|
+
"@vitest/coverage-v8": "^4.1.10",
|
|
76
|
+
"bumpp": "^12.2.0",
|
|
77
|
+
"eslint": "^10.8.1",
|
|
78
|
+
"obuild": "^0.4.38",
|
|
79
|
+
"tsx": "^4.23.12",
|
|
80
|
+
"vitest": "^4.1.10"
|
|
81
81
|
},
|
|
82
82
|
"scripts": {
|
|
83
83
|
"build": "obuild",
|