skilld 1.5.4 → 1.6.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/README.md +3 -3
- package/dist/_chunks/agent.mjs +10 -78
- package/dist/_chunks/agent.mjs.map +1 -1
- package/dist/_chunks/assemble.mjs +0 -17
- package/dist/_chunks/assemble.mjs.map +1 -1
- package/dist/_chunks/author.mjs +0 -18
- package/dist/_chunks/author.mjs.map +1 -1
- package/dist/_chunks/cache.mjs +0 -72
- package/dist/_chunks/cache.mjs.map +1 -1
- package/dist/_chunks/cache2.mjs +84 -17
- package/dist/_chunks/cache2.mjs.map +1 -1
- package/dist/_chunks/cli-helpers.mjs +2 -49
- package/dist/_chunks/cli-helpers.mjs.map +1 -1
- package/dist/_chunks/cli-helpers2.mjs +0 -11
- package/dist/_chunks/config.mjs +0 -27
- package/dist/_chunks/config.mjs.map +1 -1
- package/dist/_chunks/core.mjs +9 -0
- package/dist/_chunks/detect.mjs +29 -226
- package/dist/_chunks/detect.mjs.map +1 -1
- package/dist/_chunks/embedding-cache.mjs +0 -5
- package/dist/_chunks/embedding-cache2.mjs +1 -2
- package/dist/_chunks/formatting.mjs +0 -6
- package/dist/_chunks/formatting.mjs.map +1 -1
- package/dist/_chunks/index.d.mts +0 -10
- package/dist/_chunks/index.d.mts.map +1 -1
- package/dist/_chunks/index2.d.mts +3 -6
- package/dist/_chunks/index2.d.mts.map +1 -1
- package/dist/_chunks/index3.d.mts +2 -31
- package/dist/_chunks/index3.d.mts.map +1 -1
- package/dist/_chunks/install.mjs +0 -15
- package/dist/_chunks/install.mjs.map +1 -1
- package/dist/_chunks/libs/@sinclair/typebox.mjs +0 -444
- package/dist/_chunks/libs/@sinclair/typebox.mjs.map +1 -1
- package/dist/_chunks/list.mjs +0 -16
- package/dist/_chunks/list.mjs.map +1 -1
- package/dist/_chunks/lockfile.mjs +1 -10
- package/dist/_chunks/lockfile.mjs.map +1 -1
- package/dist/_chunks/markdown.mjs +0 -9
- package/dist/_chunks/markdown.mjs.map +1 -1
- package/dist/_chunks/package-json.mjs +0 -25
- package/dist/_chunks/package-json.mjs.map +1 -1
- package/dist/_chunks/pool2.mjs +0 -2
- package/dist/_chunks/pool2.mjs.map +1 -1
- package/dist/_chunks/prepare.mjs +8 -7
- package/dist/_chunks/prepare.mjs.map +1 -1
- package/dist/_chunks/prepare2.mjs +0 -18
- package/dist/_chunks/prepare2.mjs.map +1 -1
- package/dist/_chunks/prompts.mjs +1 -102
- package/dist/_chunks/prompts.mjs.map +1 -1
- package/dist/_chunks/retriv.mjs +23 -24
- package/dist/_chunks/retriv.mjs.map +1 -1
- package/dist/_chunks/rolldown-runtime.mjs +0 -2
- package/dist/_chunks/sanitize.mjs +0 -78
- package/dist/_chunks/sanitize.mjs.map +1 -1
- package/dist/_chunks/search-interactive.mjs +0 -17
- package/dist/_chunks/search-interactive.mjs.map +1 -1
- package/dist/_chunks/search.mjs +0 -19
- package/dist/_chunks/search2.mjs +3 -12
- package/dist/_chunks/search2.mjs.map +1 -1
- package/dist/_chunks/setup.mjs +0 -13
- package/dist/_chunks/setup.mjs.map +1 -1
- package/dist/_chunks/shared.mjs +0 -10
- package/dist/_chunks/shared.mjs.map +1 -1
- package/dist/_chunks/skills.mjs +2 -2
- package/dist/_chunks/skills.mjs.map +1 -1
- package/dist/_chunks/sources.mjs +3 -453
- package/dist/_chunks/sources.mjs.map +1 -1
- package/dist/_chunks/sync-shared.mjs +0 -16
- package/dist/_chunks/sync-shared2.mjs +0 -42
- package/dist/_chunks/sync-shared2.mjs.map +1 -1
- package/dist/_chunks/sync.mjs +1 -21
- package/dist/_chunks/sync.mjs.map +1 -1
- package/dist/_chunks/sync2.mjs +0 -20
- package/dist/_chunks/types.d.mts +0 -2
- package/dist/_chunks/types.d.mts.map +1 -1
- package/dist/_chunks/uninstall.mjs +0 -25
- package/dist/_chunks/uninstall.mjs.map +1 -1
- package/dist/_chunks/validate.mjs +0 -7
- package/dist/_chunks/validate.mjs.map +1 -1
- package/dist/_chunks/wizard.mjs +15 -12
- package/dist/_chunks/wizard.mjs.map +1 -1
- package/dist/_chunks/yaml.mjs +0 -21
- package/dist/_chunks/yaml.mjs.map +1 -1
- package/dist/agent/index.d.mts +0 -24
- package/dist/agent/index.d.mts.map +1 -1
- package/dist/agent/index.mjs +0 -8
- package/dist/cache/index.mjs +0 -2
- package/dist/cli-entry.mjs +0 -6
- package/dist/cli-entry.mjs.map +1 -1
- package/dist/cli.mjs +37 -44
- package/dist/cli.mjs.map +1 -1
- package/dist/index.mjs +0 -6
- package/dist/prepare.mjs +0 -12
- package/dist/prepare.mjs.map +1 -1
- package/dist/retriv/index.mjs +0 -2
- package/dist/retriv/worker.d.mts +0 -3
- package/dist/retriv/worker.d.mts.map +1 -1
- package/dist/retriv/worker.mjs +0 -2
- package/dist/retriv/worker.mjs.map +1 -1
- package/dist/sources/index.mjs +0 -4
- package/package.json +17 -17
package/dist/prepare.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prepare.mjs","names":[],"sources":["../src/prepare.ts"],"sourcesContent":["#!/usr/bin/env node\n/**\n * Ultra-fast prepare entry point for package.json \"prepare\" hook.\n *\n * Avoids loading the full CLI (citty, clack, agent registry, etc.) which adds ~200ms.\n * Fast path: read lockfile, verify skill dirs exist, exit. Typically <20ms.\n * Falls back to full CLI for shipped skill discovery and symlink restoration.\n */\n\nimport { execFileSync } from 'node:child_process'\nimport { existsSync, readFileSync } from 'node:fs'\nimport { homedir } from 'node:os'\nimport { join, resolve } from 'node:path'\nimport { readLock } from './core/lockfile.ts'\nimport { getShippedSkills, linkShippedSkill, restorePkgSymlink } from './core/prepare.ts'\n\n// Inlined from core/shared.ts to avoid pulling in semver/std-env via shared chunk\nconst SHARED_SKILLS_DIR = '.skills'\n\n// ── Lightweight agent resolution (avoids importing full agent registry) ──\n\nconst AGENT_DIRS = [\n '.claude/skills',\n '.cursor/skills',\n '.agents/skills',\n '.windsurf/skills',\n '.cline/skills',\n '.github/skills',\n '.gemini/skills',\n '.goose/skills',\n '.roo/skills',\n '.opencode/skills',\n '.agent/skills',\n]\n\nconst AGENT_DIR_MAP: Record<string, string> = {\n 'claude-code': '.claude/skills',\n 'cursor': '.cursor/skills',\n 'codex': '.agents/skills',\n 'windsurf': '.windsurf/skills',\n 'cline': '.cline/skills',\n 'github-copilot': '.github/skills',\n 'gemini-cli': '.gemini/skills',\n 'goose': '.goose/skills',\n 'roo': '.roo/skills',\n 'opencode': '.opencode/skills',\n 'amp': '.agents/skills',\n 'antigravity': '.agent/skills',\n}\n\nfunction findSkillsDir(cwd: string): string | null {\n const shared = join(cwd, SHARED_SKILLS_DIR)\n if (existsSync(shared))\n return shared\n\n for (const dir of AGENT_DIRS) {\n const full = join(cwd, dir)\n if (existsSync(join(full, 'skilld-lock.yaml')))\n return full\n }\n\n const configPath = join(homedir(), '.skilld', 'config.yaml')\n if (existsSync(configPath)) {\n const content = readFileSync(configPath, 'utf-8')\n const match = content.match(/^agent:\\s*(.+)/m)\n if (match) {\n const dir = AGENT_DIR_MAP[match[1]!.trim()]\n if (dir)\n return join(cwd, dir)\n }\n }\n\n return null\n}\n\n// ── Main ──\n\nconst cwd = process.cwd()\n\nif (process.env.CI || process.env.SKILLD_NO_AGENT)\n process.exit(0)\n\nconst skillsDir = findSkillsDir(cwd)\nif (!skillsDir)\n process.exit(0)\n\nconst lock = readLock(skillsDir)\nif (!lock || Object.keys(lock.skills).length === 0)\n process.exit(0)\n\nlet allIntact = true\n\nfor (const [name, info] of Object.entries(lock.skills)) {\n const skillDir = join(skillsDir, name)\n if (existsSync(skillDir)) {\n if (info.source !== 'shipped')\n restorePkgSymlink(skillsDir, name, info, cwd)\n continue\n }\n\n allIntact = false\n\n if (info.source === 'shipped') {\n const pkgName = info.packageName || name\n const shipped = getShippedSkills(pkgName, cwd, info.version)\n const match = shipped.find(s => s.skillName === name)\n if (match)\n linkShippedSkill(skillsDir, name, match.skillDir)\n }\n}\n\nif (allIntact)\n process.exit(0)\n\n// Something was broken; fall back to full CLI for shipped discovery + outdated reporting\nconst cliPath = resolve(import.meta.dirname, 'cli.mjs')\nif (existsSync(cliPath)) {\n try {\n execFileSync(process.execPath, [cliPath, 'prepare'], { stdio: 'inherit', cwd })\n }\n catch {}\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"prepare.mjs","names":[],"sources":["../src/prepare.ts"],"sourcesContent":["#!/usr/bin/env node\n/**\n * Ultra-fast prepare entry point for package.json \"prepare\" hook.\n *\n * Avoids loading the full CLI (citty, clack, agent registry, etc.) which adds ~200ms.\n * Fast path: read lockfile, verify skill dirs exist, exit. Typically <20ms.\n * Falls back to full CLI for shipped skill discovery and symlink restoration.\n */\n\nimport { execFileSync } from 'node:child_process'\nimport { existsSync, readFileSync } from 'node:fs'\nimport { homedir } from 'node:os'\nimport { join, resolve } from 'node:path'\nimport { readLock } from './core/lockfile.ts'\nimport { getShippedSkills, linkShippedSkill, restorePkgSymlink } from './core/prepare.ts'\n\n// Inlined from core/shared.ts to avoid pulling in semver/std-env via shared chunk\nconst SHARED_SKILLS_DIR = '.skills'\n\n// ── Lightweight agent resolution (avoids importing full agent registry) ──\n\nconst AGENT_DIRS = [\n '.claude/skills',\n '.cursor/skills',\n '.agents/skills',\n '.windsurf/skills',\n '.cline/skills',\n '.github/skills',\n '.gemini/skills',\n '.goose/skills',\n '.roo/skills',\n '.opencode/skills',\n '.agent/skills',\n]\n\nconst AGENT_DIR_MAP: Record<string, string> = {\n 'claude-code': '.claude/skills',\n 'cursor': '.cursor/skills',\n 'codex': '.agents/skills',\n 'windsurf': '.windsurf/skills',\n 'cline': '.cline/skills',\n 'github-copilot': '.github/skills',\n 'gemini-cli': '.gemini/skills',\n 'goose': '.goose/skills',\n 'roo': '.roo/skills',\n 'opencode': '.opencode/skills',\n 'amp': '.agents/skills',\n 'antigravity': '.agent/skills',\n}\n\nfunction findSkillsDir(cwd: string): string | null {\n const shared = join(cwd, SHARED_SKILLS_DIR)\n if (existsSync(shared))\n return shared\n\n for (const dir of AGENT_DIRS) {\n const full = join(cwd, dir)\n if (existsSync(join(full, 'skilld-lock.yaml')))\n return full\n }\n\n const configPath = join(homedir(), '.skilld', 'config.yaml')\n if (existsSync(configPath)) {\n const content = readFileSync(configPath, 'utf-8')\n const match = content.match(/^agent:\\s*(.+)/m)\n if (match) {\n const dir = AGENT_DIR_MAP[match[1]!.trim()]\n if (dir)\n return join(cwd, dir)\n }\n }\n\n return null\n}\n\n// ── Main ──\n\nconst cwd = process.cwd()\n\nif (process.env.CI || process.env.SKILLD_NO_AGENT)\n process.exit(0)\n\nconst skillsDir = findSkillsDir(cwd)\nif (!skillsDir)\n process.exit(0)\n\nconst lock = readLock(skillsDir)\nif (!lock || Object.keys(lock.skills).length === 0)\n process.exit(0)\n\nlet allIntact = true\n\nfor (const [name, info] of Object.entries(lock.skills)) {\n const skillDir = join(skillsDir, name)\n if (existsSync(skillDir)) {\n if (info.source !== 'shipped')\n restorePkgSymlink(skillsDir, name, info, cwd)\n continue\n }\n\n allIntact = false\n\n if (info.source === 'shipped') {\n const pkgName = info.packageName || name\n const shipped = getShippedSkills(pkgName, cwd, info.version)\n const match = shipped.find(s => s.skillName === name)\n if (match)\n linkShippedSkill(skillsDir, name, match.skillDir)\n }\n}\n\nif (allIntact)\n process.exit(0)\n\n// Something was broken; fall back to full CLI for shipped discovery + outdated reporting\nconst cliPath = resolve(import.meta.dirname, 'cli.mjs')\nif (existsSync(cliPath)) {\n try {\n execFileSync(process.execPath, [cliPath, 'prepare'], { stdio: 'inherit', cwd })\n }\n catch {}\n}\n"],"mappings":";;;;;;;;;;;;;CAiBA;CAIA;CACE;CACA;CACA;CACA;CACA;CACA;MACA,gBAAA;CACA,eAAA;CACA,UAAA;CACA,SAAA;CACA,YAAA;CACD,SAAA;CAED,kBAAM;CACJ,cAAA;CACA,SAAA;CACA,OAAA;CACA,YAAY;CACZ,OAAA;CACA,eAAA;CACA;SACA,cAAS,KAAA;CACT,MAAA,SAAO,KAAA,KAAA,kBAAA;AACP,KAAA,WAAY,OAAA,CAAA,QAAA;AACZ,MAAA,MAAO,OAAA,YAAA;EACP,MAAA,OAAA,KAAe,KAAA,IAAA;AAChB,MAAA,WAAA,KAAA,MAAA,mBAAA,CAAA,CAAA,QAAA;;CAGC,MAAM,aAAS,KAAK,SAAK,EAAA,WAAkB,cAAA;AAC3C,KAAI,WAAW,WACb,EAAA;EAEF,MAAK,QAAM,aAAO,YAAY,QAAA,CAAA,MAAA,kBAAA;AAC5B,MAAA,OAAM;GACN,MAAI,MAAA,cAAsB,MAAA,GAAA,MAAA;;;;QAOpB;;MAEJ,MAAM,QAAM,KAAA;AACZ,IAAA,QACE,IAAA,MAAO,QAAU,IAAI,gBAAA,SAAA,KAAA,EAAA;;;AAI3B,MAAA,OAAO,SAAA,UAAA;;AAKT,IAAA,YAAY;AAEZ,KAAI,MAAA,CAAQ,MAAI,SAAM,OAAY,QAAA,KAAA,OAChC,EAAA;AAEF,KAAA,WAAM,KAAY,WAAc,KAAI,CAAA,EAAA;AACpC,MAAK,KAAA,WACH,UAAe,mBAAA,WAAA,MAAA,MAAA,IAAA;AAEjB;;AAIA,aAAI;AAEJ,KAAK,KAAA,WAAa,WAAS;EAEzB,MAAI,QADa,iBAAgB,KACT,eAAE,MAAA,KAAA,KAAA,QAAA,CAAA,MAAA,MAAA,EAAA,cAAA,KAAA;AACxB,MAAI,MAAK,kBAAW,WAClB,MAAA,MAAkB,SAAW;;;AAIjC,IAAA,UAAY,SAAA,KAAA,EAAA;AAEZ,MAAI,UAAK,QAAW,OAAA,KAAW,SAAA,UAAA;IAG7B,WAAM,QADU,CAAA,KAAA;AAEhB,cACE,QAAA,UAAiB,CAAA,SAAW,UAAM,EAAM;;;EAI9C,CAAA;QAIM;AAGF"}
|
package/dist/retriv/index.mjs
CHANGED
|
@@ -1,4 +1,2 @@
|
|
|
1
|
-
import "../_chunks/yaml.mjs";
|
|
2
|
-
import "../_chunks/markdown.mjs";
|
|
3
1
|
import { a as getDb, c as removeFromIndex, d as searchSnippets, i as createIndexDirect, l as search, n as closePool, o as listIndexIds, r as createIndex, s as openPool, t as SearchDepsUnavailableError, u as searchPooled } from "../_chunks/retriv.mjs";
|
|
4
2
|
export { SearchDepsUnavailableError, closePool, createIndex, createIndexDirect, getDb, listIndexIds, openPool, removeFromIndex, search, searchPooled, searchSnippets };
|
package/dist/retriv/worker.d.mts
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import { n as Document } from "../_chunks/types.mjs";
|
|
2
|
-
|
|
3
|
-
//#region src/retriv/worker.d.ts
|
|
4
2
|
interface WorkerIndexMessage {
|
|
5
3
|
type: 'index';
|
|
6
4
|
id: number;
|
|
@@ -30,6 +28,5 @@ interface WorkerErrorResponse {
|
|
|
30
28
|
message: string;
|
|
31
29
|
}
|
|
32
30
|
type WorkerResponse = WorkerProgressResponse | WorkerDoneResponse | WorkerErrorResponse;
|
|
33
|
-
//#endregion
|
|
34
31
|
export { WorkerDoneResponse, WorkerErrorResponse, WorkerIndexMessage, WorkerMessage, WorkerProgressResponse, WorkerResponse, WorkerShutdownMessage };
|
|
35
32
|
//# sourceMappingURL=worker.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"worker.d.mts","names":[],"sources":["../../src/retriv/worker.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"worker.d.mts","names":[],"sources":["../../src/retriv/worker.ts"],"mappings":";UAGiB,kBAAA;EACf,IAAA;EACA,EAAA;EACA,SAAA,EAAW,QAAA;EACX,MAAA;EAHA;EAKA,SAAA;AAAA;AAAA,UAGe,qBAAA;EACf,IAAA;AAAA;AAAA,KAGU,aAAA,GAAgB,kBAAA,GAAqB,qBAAA;AAAA,UAEhC,sBAAA;EACf,IAAA;EACA,EAAA;EACA,KAAA;EACA,OAAA;EACA,KAAA;AAAA;AAAA,UAGe,kBAAA;EACf,IAAA;EACA,EAAA;AAAA;AAAA,UAGe,mBAAA;EACf,IAAA;EACA,EAAA;EACA,OAAA;AAAA;AAAA,KAGU,cAAA,GAAiB,sBAAA,GAAyB,kBAAA,GAAqB,mBAAA"}
|
package/dist/retriv/worker.mjs
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { parentPort } from "node:worker_threads";
|
|
2
|
-
//#region src/retriv/worker.ts
|
|
3
2
|
if (parentPort) parentPort.on("message", async (msg) => {
|
|
4
3
|
if (msg.type === "shutdown") process.exit(0);
|
|
5
4
|
if (msg.type === "index") {
|
|
@@ -35,7 +34,6 @@ if (parentPort) parentPort.on("message", async (msg) => {
|
|
|
35
34
|
}
|
|
36
35
|
}
|
|
37
36
|
});
|
|
38
|
-
//#endregion
|
|
39
37
|
export {};
|
|
40
38
|
|
|
41
39
|
//# sourceMappingURL=worker.mjs.map
|
|
@@ -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}\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 { getDb } = await import('./index.ts')\n const db = await getDb(config)\n if (msg.removeIds?.length)\n await db.remove?.(msg.removeIds)\n await db.index(documents, { onProgress: config.onProgress })\n await db.close?.()\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 } satisfies WorkerErrorResponse)\n }\n }\n })\n}\n"],"mappings":"
|
|
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}\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 { getDb } = await import('./index.ts')\n const db = await getDb(config)\n if (msg.removeIds?.length)\n await db.remove?.(msg.removeIds)\n await db.index(documents, { onProgress: config.onProgress })\n await db.close?.()\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 } satisfies WorkerErrorResponse)\n }\n }\n })\n}\n"],"mappings":";AAuCA,IAAI,WACF,YAAW,GAAG,WAAW,OAAO,QAAuB;AACrD,KAAI,IAAI,SAAS,WACf,SAAQ,KAAK,EAAE;AAGjB,KAAI,IAAI,SAAS,SAAS;EACxB,MAAM,EAAE,IAAI,WAAW,WAAW;AAElC,MAAI;GACF,MAAM,SAAsB;IAC1B;IACA,aAAa,EAAE,OAAO,SAAS,YAAY;AACzC,gBAAY,YAAY;MAAE,MAAM;MAAY;MAAI;MAAO;MAAS;MAAO,CAAkC;;IAE5G;GAED,MAAM,EAAE,UAAU,MAAM,OAAO;GAC/B,MAAM,KAAK,MAAM,MAAM,OAAO;AAC9B,OAAI,IAAI,WAAW,OACjB,OAAM,GAAG,SAAS,IAAI,UAAU;AAClC,SAAM,GAAG,MAAM,WAAW,EAAE,YAAY,OAAO,YAAY,CAAC;AAC5D,SAAM,GAAG,SAAS;AAElB,cAAY,YAAY;IAAE,MAAM;IAAQ;IAAI,CAA8B;WAErE,KAAK;AACV,cAAY,YAAY;IACtB,MAAM;IACN;IACA,SAAS,eAAe,QAAQ,IAAI,UAAU,OAAO,IAAA;IACtD,CAA+B;;;EAGpC"}
|
package/dist/sources/index.mjs
CHANGED
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
import "../_chunks/config.mjs";
|
|
2
|
-
import "../_chunks/package-json.mjs";
|
|
3
|
-
import "../_chunks/yaml.mjs";
|
|
4
|
-
import "../_chunks/markdown.mjs";
|
|
5
1
|
import { c as getBlogPreset, d as getFilePatterns, g as getRepoKeyForPackage, h as getRepoEntry, l as getCrawlUrl, m as getRelatedPackages, p as getPrereleaseChangelogRef, u as getDocOverride } from "../_chunks/shared.mjs";
|
|
6
2
|
import { $ as isGitHubRepoUrl, A as parseGitSkillInput, B as isGhAvailable, C as downloadLlmsDocs, D as normalizeLlmsLinks, E as fetchLlmsUrl, F as formatDiscussionAsMarkdown, G as fetchReleaseNotes, H as toCrawlPattern, I as generateDiscussionIndex, J as parseSemver, K as generateReleaseIndex, L as fetchGitHubIssues, M as resolveEntryFiles, N as generateDocsIndex, O as parseMarkdownLinks, P as fetchGitHubDiscussions, Q as fetchText, R as formatIssueAsMarkdown, S as validateGitDocsWithLlms, T as fetchLlmsTxt, U as fetchBlogReleases, V as fetchCrawledDocs, W as compareSemver, X as extractBranchHint, Y as $fetch, Z as fetchGitHubRaw, _ as fetchReadme, a as getInstalledSkillVersion, b as isShallowGitDocs, c as readLocalPackageInfo, d as resolvePackageDocs, et as normalizeRepoUrl, f as resolvePackageDocsWithAttempts, g as fetchGitHubRepoMeta, h as fetchGitDocs, i as fetchPkgDist, j as parseSkillFrontmatterName, k as fetchGitSkills, l as resolveInstalledVersion, m as MIN_GIT_DOCS, n as fetchNpmPackage, nt as parsePackageSpec, o as parseVersionSpecifier, p as searchNpmPackages, q as isPrerelease, r as fetchNpmRegistryMeta, rt as verifyUrl, s as readLocalDependencies, t as fetchLatestVersion, tt as parseGitHubUrl, u as resolveLocalPackageDocs, v as fetchReadmeContent, w as extractSections, x as resolveGitHubRepo, y as filterFrameworkDocs, z as generateIssueIndex } from "../_chunks/sources.mjs";
|
|
7
3
|
export { $fetch, MIN_GIT_DOCS, compareSemver, downloadLlmsDocs, extractBranchHint, extractSections, fetchBlogReleases, fetchCrawledDocs, fetchGitDocs, fetchGitHubDiscussions, fetchGitHubIssues, fetchGitHubRaw, fetchGitHubRepoMeta, fetchGitSkills, fetchLatestVersion, fetchLlmsTxt, fetchLlmsUrl, fetchNpmPackage, fetchNpmRegistryMeta, fetchPkgDist, fetchReadme, fetchReadmeContent, fetchReleaseNotes, fetchText, filterFrameworkDocs, formatDiscussionAsMarkdown, formatIssueAsMarkdown, generateDiscussionIndex, generateDocsIndex, generateIssueIndex, generateReleaseIndex, getBlogPreset, getCrawlUrl, getDocOverride, getFilePatterns, getInstalledSkillVersion, getPrereleaseChangelogRef, getRelatedPackages, getRepoEntry, getRepoKeyForPackage, isGhAvailable, isGitHubRepoUrl, isPrerelease, isShallowGitDocs, normalizeLlmsLinks, normalizeRepoUrl, parseGitHubUrl, parseGitSkillInput, parseMarkdownLinks, parsePackageSpec, parseSemver, parseSkillFrontmatterName, parseVersionSpecifier, readLocalDependencies, readLocalPackageInfo, resolveEntryFiles, resolveGitHubRepo, resolveInstalledVersion, resolveLocalPackageDocs, resolvePackageDocs, resolvePackageDocsWithAttempts, searchNpmPackages, toCrawlPattern, validateGitDocsWithLlms, verifyUrl };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "skilld",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.6.2",
|
|
5
5
|
"description": "Generate AI agent skills from npm package documentation",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Harlan Wilton",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"license": "MIT",
|
|
18
18
|
"repository": {
|
|
19
19
|
"type": "git",
|
|
20
|
-
"url": "https://github.com/
|
|
20
|
+
"url": "https://github.com/skilld-dev/skilld"
|
|
21
21
|
},
|
|
22
22
|
"keywords": [
|
|
23
23
|
"ai",
|
|
@@ -49,15 +49,15 @@
|
|
|
49
49
|
"node": ">=22.6.0"
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@clack/prompts": "^1.
|
|
53
|
-
"@huggingface/transformers": "^
|
|
54
|
-
"@mariozechner/pi-ai": "^0.
|
|
52
|
+
"@clack/prompts": "^1.2.0",
|
|
53
|
+
"@huggingface/transformers": "^4.0.1",
|
|
54
|
+
"@mariozechner/pi-ai": "^0.65.2",
|
|
55
55
|
"@mdream/crawl": "^1.0.3",
|
|
56
|
-
"citty": "^0.2.
|
|
56
|
+
"citty": "^0.2.2",
|
|
57
57
|
"consola": "^3.4.2",
|
|
58
|
-
"giget": "^3.
|
|
58
|
+
"giget": "^3.2.0",
|
|
59
59
|
"jsonc-parser": "^3.3.1",
|
|
60
|
-
"log-update": "^
|
|
60
|
+
"log-update": "^8.0.0",
|
|
61
61
|
"mdast-util-from-markdown": "^2.0.3",
|
|
62
62
|
"mdast-util-frontmatter": "^2.0.1",
|
|
63
63
|
"mdast-util-to-string": "^4.0.0",
|
|
@@ -65,28 +65,28 @@
|
|
|
65
65
|
"micromark-extension-frontmatter": "^2.0.0",
|
|
66
66
|
"mlly": "^1.8.2",
|
|
67
67
|
"ofetch": "^1.5.1",
|
|
68
|
-
"oxc-parser": "^0.
|
|
68
|
+
"oxc-parser": "^0.124.0",
|
|
69
69
|
"p-limit": "^7.3.0",
|
|
70
70
|
"pathe": "^2.0.3",
|
|
71
|
-
"retriv": "^0.13.
|
|
71
|
+
"retriv": "^0.13.2",
|
|
72
72
|
"semver": "^7.7.4",
|
|
73
|
-
"sqlite-vec": "^0.1.
|
|
73
|
+
"sqlite-vec": "^0.1.9",
|
|
74
74
|
"std-env": "^4.0.0",
|
|
75
|
-
"tinyglobby": "^0.2.
|
|
75
|
+
"tinyglobby": "^0.2.16",
|
|
76
76
|
"typescript": "6.0.2",
|
|
77
77
|
"unagent": "^0.0.8",
|
|
78
78
|
"unist-util-visit": "^5.1.0"
|
|
79
79
|
},
|
|
80
80
|
"devDependencies": {
|
|
81
|
-
"@antfu/eslint-config": "^
|
|
82
|
-
"@types/node": "^25.5.
|
|
81
|
+
"@antfu/eslint-config": "^8.1.0",
|
|
82
|
+
"@types/node": "^25.5.2",
|
|
83
83
|
"@types/semver": "^7.7.1",
|
|
84
|
-
"@vitest/coverage-v8": "^4.1.
|
|
84
|
+
"@vitest/coverage-v8": "^4.1.3",
|
|
85
85
|
"bumpp": "^11.0.1",
|
|
86
86
|
"evalite": "^0.19.0",
|
|
87
|
-
"obuild": "^0.4.
|
|
87
|
+
"obuild": "^0.4.33",
|
|
88
88
|
"tsx": "^4.21.0",
|
|
89
|
-
"vitest": "^4.1.
|
|
89
|
+
"vitest": "^4.1.3"
|
|
90
90
|
},
|
|
91
91
|
"scripts": {
|
|
92
92
|
"build": "obuild",
|