@agentskit/doc-bridge 1.0.1 → 1.0.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agentskit/doc-bridge",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "Human↔agent documentation bridge — deterministic handoffs, doc-site links, memory→docs, optional AgentsKit RAG/chat.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -36,6 +36,7 @@
36
36
  "src"
37
37
  ],
38
38
  "scripts": {
39
+ "prebuild": "node scripts/sync-version.mjs",
39
40
  "build": "tsup",
40
41
  "test": "vitest run",
41
42
  "test:watch": "vitest",
@@ -48,7 +49,8 @@
48
49
  "coverage:badge": "node scripts/update-coverage-badge.mjs",
49
50
  "changeset": "changeset",
50
51
  "version-packages": "changeset version",
51
- "release": "pnpm build && pnpm test && changeset publish",
52
+ "release": "npm run build && npm test && changeset publish",
53
+ "version": "node scripts/sync-version.mjs && git add package.json src/version.ts",
52
54
  "prepublishOnly": "npm run build && npm test",
53
55
  "prepare": "node scripts/prepare.mjs",
54
56
  "prepack": "npm run build"
@@ -63,7 +63,7 @@ Core (no API key):
63
63
  ak-docs demo [--fixture example|monorepo] [--text] [--in-project]
64
64
  ak-docs doctor [--text] [--badge] [--write-badge]
65
65
  ak-docs index [--watch]
66
- ak-docs query <package|ownership|intent|change> <id> [--agent] [--text]
66
+ ak-docs query [package|ownership|intent|change] <id> [--agent] [--text]
67
67
  ak-docs search <term> [--agent] [--text]
68
68
  ak-docs list <packages|intents|changes|knowledge> [--text]
69
69
  ak-docs ask [question] local consult (no LLM)
@@ -901,14 +901,15 @@ export const runCli = (argv: readonly string[]): number | undefined | Promise<nu
901
901
  }
902
902
 
903
903
  if (command === 'query') {
904
- const kind = positional[1] as QueryKind | undefined
905
- const id = positional[2]
906
- if (!kind || !QUERY_KINDS.has(kind) || kind === 'search') {
907
- process.stderr.write('Usage: ak-docs query <package|ownership|intent|change> <id> [--agent]\n')
904
+ const maybeKind = positional[1] as QueryKind | undefined
905
+ if (maybeKind === 'search') {
906
+ process.stderr.write('Usage: ak-docs query [package|ownership|intent|change] <id> [--agent]\n')
908
907
  return 1
909
908
  }
909
+ const kind = maybeKind && QUERY_KINDS.has(maybeKind) ? maybeKind : 'package'
910
+ const id = kind === maybeKind ? positional[2] : positional[1]
910
911
  if (!id) {
911
- process.stderr.write(`Missing id for query kind "${kind}".\n`)
912
+ process.stderr.write('Usage: ak-docs query [package|ownership|intent|change] <id> [--agent]\n')
912
913
  return 1
913
914
  }
914
915
  try {
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const PACKAGE_VERSION = '1.0.0'
1
+ export const PACKAGE_VERSION = '1.0.2'