@avantf/dsh-mem 0.1.1 → 0.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.
Files changed (40) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +97 -87
  3. package/lib/client.js +2351 -1170
  4. package/lib/client.js.map +1 -1
  5. package/lib/index.js +1063 -639
  6. package/lib/interface-version.json +4 -0
  7. package/lib/types/client/index.d.ts.map +1 -1
  8. package/lib/types/client/index.js +21 -1
  9. package/lib/types/client/index.js.map +1 -1
  10. package/lib/types/data_home.d.ts +3 -0
  11. package/lib/types/data_home.d.ts.map +1 -0
  12. package/lib/types/data_home.js +26 -0
  13. package/lib/types/data_home.js.map +1 -0
  14. package/lib/types/envinit-bootstrap.d.ts +13 -3
  15. package/lib/types/envinit-bootstrap.js +14 -4
  16. package/lib/types/envinit.d.ts +11 -6
  17. package/lib/types/envinit.d.ts.map +1 -1
  18. package/lib/types/envinit.js +62 -155
  19. package/lib/types/envinit.js.map +1 -1
  20. package/lib/types/index.d.ts +33 -11
  21. package/lib/types/index.d.ts.map +1 -1
  22. package/lib/types/index.js +86 -39
  23. package/lib/types/index.js.map +1 -1
  24. package/lib/types/interface_gate.d.ts +51 -0
  25. package/lib/types/interface_gate.d.ts.map +1 -0
  26. package/lib/types/interface_gate.js +84 -0
  27. package/lib/types/interface_gate.js.map +1 -0
  28. package/lib/types/prompt.d.ts +74 -4
  29. package/lib/types/prompt.d.ts.map +1 -1
  30. package/lib/types/prompt.js +85 -2
  31. package/lib/types/prompt.js.map +1 -1
  32. package/lib/types/provision.d.ts +29 -24
  33. package/lib/types/provision.d.ts.map +1 -1
  34. package/lib/types/provision.js +3 -59
  35. package/lib/types/provision.js.map +1 -1
  36. package/lib/types/remote.d.ts +7 -3
  37. package/lib/types/remote.d.ts.map +1 -1
  38. package/lib/types/remote.js +14 -4
  39. package/lib/types/remote.js.map +1 -1
  40. package/package.json +17 -19
@@ -1,28 +1,31 @@
1
1
  /**
2
- * Environment initialisation for the memory plugin, through the family framework
3
- * `@avantf/dsh-envinit`.
2
+ * Environment initialisation for the memory plugin, through the family base
3
+ * `@avantf/dsh-plugin-base`.
4
4
  *
5
- * The shape is fixed by the framework's DESIGN §7.2 and is the same for every plugin:
5
+ * The shape is fixed by the base's DESIGN §7.2 and is the same for every plugin:
6
6
  *
7
- * bootstrap (inlined) → load the framework → register + declare → wait for the `blocking` set →
8
- * dispatch the `background` set → the plugin's own pre-mount check.
7
+ * bootstrap (inlined) → load the base → register + declare the remaining resources → dispatch the
8
+ * `background` set → the plugin's own pre-mount check.
9
9
  *
10
- * What this plugin needs, in three phases:
10
+ * What this plugin needs, in two phases:
11
11
  *
12
- * 1. **`mem:compat`** (`npm-package`, `startup: 'blocking'`) — the family compatibility gate
13
- * `@avantf/dsh-compat`. It has to be there BEFORE anything is registered, because a proven
14
- * incompatible host must refuse the mount with nothing half-registered. This replaces the
15
- * bespoke self-heal the plugin used to run itself (`@avantf/mem-provision`'s
16
- * `ensureCompatBase`), whose private root (`<dataHome>/dsh-compat/**`) the framework
17
- * deliberately does not read.
12
+ * 1. **The gate, straight from the base** — the family compatibility gate is part of
13
+ * `@avantf/dsh-plugin-base` and arrived WITH the module the bootstrap loaded. There is no
14
+ * `mem:compat` item, no npm download and no managed `<home>/compat/**` copy any more; the base's
15
+ * `compat` module provides the rules, probes, report and post-registration check, and
16
+ * `runtimeFromCompat(framework)` derives this plugin's spec from it. The gate has to be runnable
17
+ * BEFORE anything is registered, because a proven incompatible host must refuse the mount with
18
+ * nothing half-registered. This replaces the bespoke self-heal the plugin used to run itself
19
+ * (`@avantf/mem-provision`'s `ensureCompatBase`), whose private root (`<dataHome>/dsh-compat/**`)
20
+ * the base deliberately does not read.
18
21
  * 2. **`mem:pandoc`** (`binary-archive`, `startup: 'background'`) — the documented "expensive but
19
22
  * not startup-blocking" resource. It is declared AFTER the runtime exists, because its spec
20
23
  * comes from the resolved config (`tools.auto_install`, `tools.mirror`), and it is dispatched
21
24
  * without waiting: the caller continues its own initialisation and hooks the outcome through
22
25
  * `onSettled`.
23
26
  * 3. **`mem:model`** (`model-cache`, `startup: 'background'`) — the embedding model. It uses the
24
- * framework's `flat` layout, whose files land at `<root>/<repo>/<file>` — exactly the shape
25
- * `@huggingface/transformers` reads under its `cacheDir` — so the runtime loads the framework's
27
+ * base's `flat` layout, whose files land at `<root>/<repo>/<file>` — exactly the shape
28
+ * `@huggingface/transformers` reads under its `cacheDir` — so the runtime loads the base's
26
29
  * copy instead of fetching a second one. For the default repo the file list is the narrow set
27
30
  * the runtime actually opens (see {@link MODEL_FILES}); any other repo omits the list, because
28
31
  * a fixed six-file list made the item fail for a repo whose file set differs. The endpoint is
@@ -33,33 +36,31 @@
33
36
  *
34
37
  * Two hard rules:
35
38
  *
36
- * - **The framework is never statically imported.** Only `import type` and the inlined bootstrap
39
+ * - **The base is never statically imported.** Only `import type` and the inlined bootstrap
37
40
  * are static; the value comes from `loadFramework()`. A top-level value import would throw before
38
41
  * the bootstrap ran — exactly the broken-tree case the bootstrap exists for.
39
- * - **Nothing here refuses the mount.** "Cannot tell" is not "incompatible": a missing framework,
42
+ * - **Nothing here refuses the mount.** "Cannot tell" is not "incompatible": a missing base,
40
43
  * an unavailable gate or a failed resource is a WARNING, and the plugin mounts with its tools,
41
44
  * service, prompt and Remote face intact.
42
45
  *
43
46
  * @module @avantf/dsh-mem/envinit
44
47
  */
45
- import { readFile } from 'node:fs/promises';
46
- import { createRequire } from 'node:module';
47
48
  import { homedir } from 'node:os';
48
- import { dirname, join, resolve } from 'node:path';
49
- import { fileURLToPath, pathToFileURL } from 'node:url';
49
+ import { join, resolve } from 'node:path';
50
+ import { fileURLToPath } from 'node:url';
50
51
  import { envAutoDownload, expandHome } from '@avantf/mem-contract';
51
52
  import { PANDOC_ARTIFACT_ID, PANDOC_BINARY, PANDOC_PACKS, PANDOC_VERSION } from '@avantf/mem-provision';
52
53
  import { loadFramework, readDependencyRange } from './envinit-bootstrap.js';
53
- import { COMPAT_PACKAGE, compatRange, reasonOf, runtimeFromCompat, warn, } from './provision.js';
54
- /** The framework package, as declared in this plugin's `peerDependencies`. */
55
- const FRAMEWORK_PACKAGE = '@avantf/dsh-envinit';
54
+ import { baseIsUsable, interfaceVerdict } from './interface_gate.js';
55
+ import { COMPAT_PACKAGE, reasonOf, runtimeFromCompat, warn, } from './provision.js';
56
+ /** The family base package, as declared in this plugin's `peerDependencies`. */
57
+ const FRAMEWORK_PACKAGE = '@avantf/dsh-plugin-base';
56
58
  /** The plugin namespace every item is declared under (`<plugin>:<name>`, framework DESIGN §13.4). */
57
59
  const PLUGIN = 'mem';
58
60
  /**
59
61
  * The item ids. `resolve()` / `onSettled` are keyed by them, so the DSH plugin compares against these
60
62
  * names rather than re-spelling literals.
61
63
  */
62
- export const COMPAT_ITEM = 'mem:compat';
63
64
  export const PANDOC_ITEM = 'mem:pandoc';
64
65
  export const MODEL_ITEM = 'mem:model';
65
66
  /**
@@ -156,81 +157,6 @@ function provisionLogger(log) {
156
157
  error: (message) => { log?.error(message); },
157
158
  };
158
159
  }
159
- /**
160
- * The file URL to `import()` for a managed npm copy.
161
- *
162
- * The framework hands back the package DIRECTORY (`<version dir>/node_modules/<name>`), and a
163
- * directory is not importable, so the entry is read from the copy's own manifest the way Node would:
164
- * `exports["."]` first, then `main`.
165
- */
166
- async function entryUrlOf(packageDir) {
167
- let manifest;
168
- try {
169
- manifest = JSON.parse(await readFile(join(packageDir, 'package.json'), 'utf8'));
170
- }
171
- catch {
172
- return undefined;
173
- }
174
- const dot = manifest.exports?.['.'];
175
- const fromExports = typeof dot === 'string'
176
- ? dot
177
- : dot?.default;
178
- const entry = typeof fromExports === 'string'
179
- ? fromExports
180
- : typeof manifest.main === 'string' ? manifest.main : './index.js';
181
- return pathToFileURL(join(packageDir, entry)).href;
182
- }
183
- /**
184
- * The resolved directory of a peer in THIS plugin's tree.
185
- *
186
- * The framework must reuse the host's own copy for identity-sensitive peers, and it cannot find them
187
- * by itself: its resolver looks at `process.cwd()` and at its own module URL — neither is the
188
- * plugin's tree. So the caller hands the directory over explicitly (`NpmPackageSpec.peers[].dir`);
189
- * without it the item fails with `peer/unsatisfied`.
190
- */
191
- function peerDirOf(name) {
192
- const require = createRequire(import.meta.url);
193
- try {
194
- return dirname(require.resolve(`${name}/package.json`));
195
- }
196
- catch {
197
- // A package that does not export `./package.json`: walk up from its entry instead.
198
- try {
199
- let dir = dirname(require.resolve(name));
200
- for (let depth = 0; depth < 6; depth += 1) {
201
- if (dir.endsWith(`/${name}`))
202
- return dir;
203
- const parent = dirname(dir);
204
- if (parent === dir)
205
- break;
206
- dir = parent;
207
- }
208
- }
209
- catch {
210
- // Not resolvable from this tree; the framework reports `peer/unsatisfied`.
211
- }
212
- }
213
- return undefined;
214
- }
215
- /** The `mem:compat` item: the family compatibility gate, waited for before anything registers. */
216
- function compatItem(framework, range, zodDir) {
217
- return {
218
- id: COMPAT_ITEM,
219
- kind: framework.NPM_PACKAGE_KIND,
220
- spec: {
221
- name: COMPAT_PACKAGE,
222
- range,
223
- // The host's own `zod`, by directory: identity-sensitive, and the framework cannot find it
224
- // from its own tree (see `peerDirOf`).
225
- peers: [{ name: 'zod', ...(zodDir === undefined ? {} : { dir: zodDir }) }],
226
- },
227
- target: { root: 'runtime' },
228
- // Never refuse: an unavailable gate must not take the memory engine down.
229
- onMissing: { atStartup: 'degrade', atUse: 'degrade' },
230
- startup: 'blocking',
231
- schemaVersion: framework.ITEM_SCHEMA_VERSION,
232
- };
233
- }
234
160
  /**
235
161
  * The `mem:pandoc` item: the pinned pandoc release as a `binary-archive`.
236
162
  *
@@ -358,50 +284,49 @@ async function loadOnce(options) {
358
284
  warn(options.log, `${OWN_PREFIX} WARNING — ${FRAMEWORK_PACKAGE} could not be made available; the plugin falls back to its own provisioning and mounts anyway`);
359
285
  return undefined;
360
286
  }
361
- // Step 3–4: declare the blocking set and wait for it.
362
- const provisioner = framework.createProvisioner({
363
- home,
364
- envinitRange: range,
365
- logger: provisionLogger(options.log),
366
- policy: { autoDownload, deadlineMs },
367
- });
368
- provisioner.register(framework.npmPackageProvider());
369
- provisioner.declare({
370
- plugin: PLUGIN,
371
- items: [compatItem(framework, await compatRange(), peerDirOf('zod'))],
372
- });
373
- await provisioner.ensure({
374
- only: [COMPAT_ITEM],
375
- deadlineMs,
376
- onSettled: (entry) => {
377
- if (entry.action === 'failed') {
378
- warn(options.log, `${OWN_PREFIX} WARNING — ${COMPAT_ITEM} failed (${String(entry.code)}): ${entry.reason ?? ''}`);
379
- }
380
- },
381
- });
382
- const disposers = [provisioner];
383
- let compat;
384
- const state = provisioner.resolve(COMPAT_ITEM);
385
- if (state.state !== 'ready') {
386
- warn(options.log, `${OWN_PREFIX} WARNING — ${COMPAT_PACKAGE} is unavailable (${describeState(state)}); the compatibility gate is SKIPPED and the plugin will mount anyway`);
387
- }
388
- else {
389
- try {
390
- const module = options.compatModule ?? await importCompat(state.handle.dir);
391
- if (module === undefined) {
392
- warn(options.log, `${OWN_PREFIX} WARNING — ${COMPAT_PACKAGE} has no readable entry at ${state.handle.dir}; the compatibility gate is SKIPPED`);
393
- }
394
- else {
395
- compat = runtimeFromCompat(module);
396
- }
287
+ // The RUNTIME interface gate, on its own axis: the generation this artifact was baked for
288
+ // (`lib/interface-version.json`, written by `scripts/link-envinit.mjs` with the bootstrap) versus
289
+ // the one the loaded base reports. The DECISION is the base's (`checkInterface` together with its
290
+ // one reader of the bake record); this plugin only consumes it. Package versions move every release
291
+ // and stay the INSTALL-time gate (the peer range), so the generation number is the axis that means
292
+ // "the kit and gate helper set I was written against is the one I loaded".
293
+ //
294
+ // The verdict, and why it is a DEGRADATION now rather than the bare warning it used to be: the
295
+ // interface is the family's MAIN contract, so a base from another generation is not a base whose
296
+ // shared capabilities this build may use. `incompatible` therefore withholds them — the prompt
297
+ // layer falls back to this plugin's own default text, the compatibility gate is skipped and the
298
+ // resources take the legacy path — by taking the SAME route as "the base is unavailable", which the
299
+ // caller already handles. The mount itself (tools, service, prompt sections, Remote, UI) is never
300
+ // refused: the family invariant is that only a PROVEN host break refuses, and a generation mismatch
301
+ // is not one. `cannot-tell` (no gate on the loaded base, no bake record) is a warning and nothing
302
+ // else — "cannot tell" is never "incompatible".
303
+ {
304
+ const verdict = interfaceVerdict(framework);
305
+ if (!baseIsUsable(verdict)) {
306
+ warn(options.log, `${OWN_PREFIX} WARNING — interface: ${verdict.reason ?? 'the loaded base implements another interface generation'};`
307
+ + ' the base\'s shared capabilities are NOT used (own prompt defaults, gate skipped, legacy provisioning) and the plugin mounts anyway');
308
+ return undefined;
397
309
  }
398
- catch (error) {
399
- warn(options.log, `${OWN_PREFIX} WARNING — ${COMPAT_PACKAGE} could not be imported (${reasonOf(error)}); the compatibility gate is SKIPPED and the plugin will mount anyway`);
310
+ if (verdict.status === 'cannot-tell') {
311
+ warn(options.log, `${OWN_PREFIX} WARNING — interface: ${verdict.reason ?? 'the interface generation cannot be told'}; using the loaded base anyway ("cannot tell" is never "incompatible")`);
400
312
  }
401
313
  }
314
+ // The compatibility gate is part of the base package and arrived WITH it: there is no `mem:compat`
315
+ // item, no npm download and no managed `~/.avantf/env/compat/**` any more. `runtimeFromCompat`
316
+ // takes the loaded base module directly. A gate that cannot be built is a WARNING (the plugin
317
+ // mounts and writes its own default prompts), never a refusal.
318
+ const disposers = [];
319
+ let compat;
320
+ try {
321
+ compat = runtimeFromCompat(options.compatModule ?? framework);
322
+ }
323
+ catch (error) {
324
+ warn(options.log, `${OWN_PREFIX} WARNING — the ${COMPAT_PACKAGE} compatibility gate could not be initialised (${reasonOf(error)}); the compatibility gate is SKIPPED and the plugin will mount anyway`);
325
+ }
402
326
  let disposed = false;
403
327
  return {
404
328
  home,
329
+ kit: framework,
405
330
  compat,
406
331
  roots: { tools: join(home, 'tools'), models: join(home, 'models') },
407
332
  provisionResources(plan, onSettled) {
@@ -474,22 +399,4 @@ async function loadOnce(options) {
474
399
  },
475
400
  };
476
401
  }
477
- /** One line describing why a non-ready item is not ready, safe to put in a WARNING. */
478
- function describeState(state) {
479
- if (state.state === 'ready')
480
- return `ready (${state.handle.source})`;
481
- if (state.state === 'failed' || state.state === 'skipped') {
482
- return `${state.state}: ${state.code}${state.detail === undefined ? '' : ` (${state.detail})`}`;
483
- }
484
- if (state.state === 'pending')
485
- return 'pending (still being fetched)';
486
- return state.state;
487
- }
488
- /** Load the managed copy's entry by file URL; `undefined` when it has no readable entry. */
489
- async function importCompat(packageDir) {
490
- const url = await entryUrlOf(packageDir);
491
- if (url === undefined)
492
- return undefined;
493
- return (await import(url));
494
- }
495
402
  //# sourceMappingURL=envinit.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"envinit.js","sourceRoot":"","sources":["../../src/envinit.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2CG;AACH,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AAC3C,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAC3C,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAA;AACjC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AAClD,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AACvD,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AAClE,OAAO,EAAE,kBAAkB,EAAE,aAAa,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAA;AAEvG,OAAO,EAAE,aAAa,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAA;AAC3E,OAAO,EACL,cAAc,EACd,WAAW,EACX,QAAQ,EACR,iBAAiB,EACjB,IAAI,GAGL,MAAM,gBAAgB,CAAA;AAEvB,8EAA8E;AAC9E,MAAM,iBAAiB,GAAG,qBAAqB,CAAA;AAK/C,qGAAqG;AACrG,MAAM,MAAM,GAAG,KAAK,CAAA;AAEp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AC;KACF,CAAA;AACH,CAAC"}
@@ -16,8 +16,9 @@
16
16
  import type { Context } from '@deepseek-ai/cordis';
17
17
  import z from '@deepseek-ai/schemastery';
18
18
  import { TypertRemoteService } from '@deepseek-ai/dsh-typert-protocol';
19
- import { type AvantfRuntime } from '@avantf/mem';
20
- import { type RemoteEnvelope } from '@avantf/mem-contract';
19
+ import { type AvantfRuntime, type KnowledgeStore, type MemoryStore, type StoreResult } from '@avantf/mem';
20
+ import { type BrowseListing, type RecallResult, type RemoteEnvelope, type SourceClassification } from '@avantf/mem-contract';
21
+ import { type OpenOutcome } from './open.js';
21
22
  export declare const name = "avantf-mem";
22
23
  export { inject } from './inject.js';
23
24
  export { KNOWLEDGE_PROMPT_SECTION, MEMORY_PROMPT_SECTION } from './prompt.js';
@@ -36,39 +37,60 @@ type WireArgs = Record<string, unknown>;
36
37
  export declare class AvantfMemGateway extends TypertRemoteService {
37
38
  private readonly rt;
38
39
  constructor(ctx: Context, rt: AvantfRuntime);
40
+ /**
41
+ * Run one already-validated tool call and wrap the answer in the contract envelope.
42
+ *
43
+ * `T` is the payload the tool key is DECLARED to answer, spelled at each `@Remote` below; this used
44
+ * to be `unknown` everywhere, which made the host half the one seam in the type chain where nothing
45
+ * said what crosses the wire. The single `as T` is unavoidable and is the honest part: the dispatch
46
+ * table is keyed by `ToolSpec.key` (a `string`), so its result is `unknown` by construction. Naming
47
+ * the type is what turns "the client assumed a shape" into "the engine's own type is what the host
48
+ * claims to send".
49
+ */
39
50
  private call;
40
- remember(args: WireArgs): Promise<RemoteEnvelope<unknown>>;
41
- recall(args: WireArgs): Promise<RemoteEnvelope<unknown>>;
42
- admin(args: WireArgs): Promise<RemoteEnvelope<unknown>>;
51
+ /**
52
+ * Each payload is written as the ENGINE type that produces it (`StoreResult<…>`, or a contract
53
+ * interface), never as a hand-copied shape: if a store method's result changes, the declaration
54
+ * here stops compiling instead of quietly misdescribing the wire.
55
+ */
56
+ remember(args: WireArgs): Promise<RemoteEnvelope<StoreResult<MemoryStore, 'add'>>>;
57
+ recall(args: WireArgs): Promise<RemoteEnvelope<StoreResult<MemoryStore, 'search'>>>;
58
+ admin(args: WireArgs): Promise<RemoteEnvelope<StoreResult<MemoryStore, 'list'>>>;
59
+ /**
60
+ * The one method that keeps `unknown`, and deliberately: its payload is whichever of the seven
61
+ * corpus actions the caller asked for (a page, one document, an ingest report, a conflict report, a
62
+ * reindex plan …), so there is no single engine type to name. The engine's `KbDispatch` spells all
63
+ * seven out; the client names its expectation at each call site (`callRemote<…>(…)`).
64
+ */
43
65
  kb(args: WireArgs): Promise<RemoteEnvelope<unknown>>;
44
- query(args: WireArgs): Promise<RemoteEnvelope<unknown>>;
66
+ query(args: WireArgs): Promise<RemoteEnvelope<RecallResult>>;
45
67
  /**
46
68
  * UI-only: what IS this string? Answered against the ingestion boundary, so the UI can label the
47
69
  * input and pick the right `kb_manage` action (URL → fetch, file → ingest, directory → import,
48
70
  * text → ingest the string itself, missing → refuse and say why).
49
71
  */
50
- classifySource(args: WireArgs): Promise<RemoteEnvelope<unknown>>;
72
+ classifySource(args: WireArgs): Promise<RemoteEnvelope<SourceClassification>>;
51
73
  /** UI-only: one directory listing for the 选择 picker (same boundary as ingestion). */
52
- browseDir(args: WireArgs): Promise<RemoteEnvelope<unknown>>;
74
+ browseDir(args: WireArgs): Promise<RemoteEnvelope<BrowseListing>>;
53
75
  /**
54
76
  * UI-only: the 知识页 domain picker's options — the configured `knowledge.domains` allowlist
55
77
  * together with the domains the library already holds — plus whether the allowlist is active
56
78
  * (non-empty). The host is the only side that knows either half.
57
79
  */
58
- kbDomains(_args: WireArgs): Promise<RemoteEnvelope<unknown>>;
80
+ kbDomains(_args: WireArgs): Promise<RemoteEnvelope<StoreResult<KnowledgeStore, 'domainCatalog'>>>;
59
81
  /**
60
82
  * UI-only: add one 知识域 to the store config's `domains` allowlist AND to the live set, so the
61
83
  * 知识 tab's 「+」 works without a restart. No agent tool mirrors this on purpose — the model must
62
84
  * stay bounded by the configured list, while the user can widen it.
63
85
  */
64
- kbAddDomain(args: WireArgs): Promise<RemoteEnvelope<unknown>>;
86
+ kbAddDomain(args: WireArgs): Promise<RemoteEnvelope<StoreResult<KnowledgeStore, 'addDomain'>>>;
65
87
  /**
66
88
  * UI-only: hand one managed document file — or the directory that holds it — to the user's
67
89
  * editor. No agent tool mirrors this, so it carries its own envelope instead of going through
68
90
  * `dispatchToolKey`; the path is resolved from `doc_id` here, so nothing the client sends is
69
91
  * trusted.
70
92
  */
71
- openDoc(args: WireArgs): Promise<RemoteEnvelope<unknown>>;
93
+ openDoc(args: WireArgs): Promise<RemoteEnvelope<OpenOutcome>>;
72
94
  }
73
95
  export declare function apply(ctx: Context, config: Config): Promise<void>;
74
96
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAOlD,OAAO,CAAC,MAAM,0BAA0B,CAAA;AAExC,OAAO,EAAE,mBAAmB,EAAU,MAAM,kCAAkC,CAAA;AAE9E,OAAO,EAOL,KAAK,aAAa,EAEnB,MAAM,aAAa,CAAA;AACpB,OAAO,EAcL,KAAK,cAAc,EAIpB,MAAM,sBAAsB,CAAA;AAiB7B,eAAO,MAAM,IAAI,eAAe,CAAA;AAChC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AAGpC,OAAO,EAAE,wBAAwB,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAA;AAE7E,MAAM,WAAW,MAAM;IACrB,IAAI,CAAC,EAAE,QAAQ,GAAG,KAAK,CAAA;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB;AACD,eAAO,MAAM,MAAM,EAAE,CAAC,CAAC,MAAM,CAO3B,CAAA;AAkDF,KAAK,QAAQ,GAAG,MAAM,CAAC,MAAM,EAAE,OAA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