@namzu/sdk 28.0.0 → 29.0.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/CHANGELOG.md +93 -0
- package/dist/agents/ReactiveAgent.d.ts.map +1 -1
- package/dist/agents/ReactiveAgent.js +0 -1
- package/dist/agents/ReactiveAgent.js.map +1 -1
- package/dist/agents/SupervisorAgent.d.ts.map +1 -1
- package/dist/agents/SupervisorAgent.js +2 -4
- package/dist/agents/SupervisorAgent.js.map +1 -1
- package/dist/config/runtime.d.ts +8 -8
- package/dist/contracts/a2a.d.ts +10 -10
- package/dist/contracts/schemas.d.ts +12 -12
- package/dist/manager/index.d.ts +2 -2
- package/dist/manager/index.d.ts.map +1 -1
- package/dist/manager/index.js +2 -2
- package/dist/manager/index.js.map +1 -1
- package/dist/public-runtime.d.ts +7 -8
- package/dist/public-runtime.d.ts.map +1 -1
- package/dist/public-runtime.js +7 -8
- package/dist/public-runtime.js.map +1 -1
- package/dist/runtime/query/index.d.ts +0 -16
- package/dist/runtime/query/index.d.ts.map +1 -1
- package/dist/runtime/query/index.js +3 -10
- package/dist/runtime/query/index.js.map +1 -1
- package/dist/session/handoff/broadcast.d.ts +6 -2
- package/dist/session/handoff/broadcast.d.ts.map +1 -1
- package/dist/session/handoff/broadcast.js +1 -2
- package/dist/session/handoff/broadcast.js.map +1 -1
- package/dist/session/handoff/index.d.ts +1 -1
- package/dist/session/handoff/index.d.ts.map +1 -1
- package/dist/session/handoff/index.js +1 -1
- package/dist/session/handoff/index.js.map +1 -1
- package/dist/session/handoff/single.d.ts +7 -3
- package/dist/session/handoff/single.d.ts.map +1 -1
- package/dist/session/handoff/single.js +1 -7
- package/dist/session/handoff/single.js.map +1 -1
- package/dist/session/migration/id-prefix.d.ts +0 -11
- package/dist/session/migration/id-prefix.d.ts.map +1 -1
- package/dist/session/migration/id-prefix.js +0 -11
- package/dist/session/migration/id-prefix.js.map +1 -1
- package/dist/session/migration/index.d.ts +2 -2
- package/dist/session/migration/index.d.ts.map +1 -1
- package/dist/session/migration/index.js +2 -2
- package/dist/session/migration/index.js.map +1 -1
- package/dist/session/retention/archive.d.ts.map +1 -1
- package/dist/session/retention/archive.js +4 -16
- package/dist/session/retention/archive.js.map +1 -1
- package/dist/store/topic/memory.d.ts +4 -4
- package/dist/store/topic/memory.js +4 -4
- package/dist/tools/builtins/computer-use.d.ts +8 -8
- package/dist/types/agent/reactive.d.ts +0 -5
- package/dist/types/agent/reactive.d.ts.map +1 -1
- package/dist/types/agent/scheduler.d.ts +0 -10
- package/dist/types/agent/scheduler.d.ts.map +1 -1
- package/dist/types/agent/supervisor.d.ts +0 -10
- package/dist/types/agent/supervisor.d.ts.map +1 -1
- package/dist/types/authorization/index.d.ts +24 -285
- package/dist/types/authorization/index.d.ts.map +1 -1
- package/dist/types/authorization/index.js +0 -4
- package/dist/types/authorization/index.js.map +1 -1
- package/dist/types/common/index.d.ts +0 -8
- package/dist/types/common/index.d.ts.map +1 -1
- package/dist/types/common/index.js.map +1 -1
- package/dist/types/ids/index.d.ts +0 -15
- package/dist/types/ids/index.d.ts.map +1 -1
- package/dist/types/ids/index.js.map +1 -1
- package/dist/types/plugin/index.d.ts +6 -6
- package/dist/types/run/checkpoint-store.d.ts +0 -6
- package/dist/types/run/checkpoint-store.d.ts.map +1 -1
- package/dist/types/session/ids.d.ts +1 -3
- package/dist/types/session/ids.d.ts.map +1 -1
- package/dist/types/session/index.d.ts +1 -3
- package/dist/types/session/index.d.ts.map +1 -1
- package/dist/types/session/sub-session.d.ts +11 -22
- package/dist/types/session/sub-session.d.ts.map +1 -1
- package/dist/utils/id.d.ts +0 -8
- package/dist/utils/id.d.ts.map +1 -1
- package/dist/utils/id.js +0 -8
- package/dist/utils/id.js.map +1 -1
- package/package.json +1 -1
- package/src/agents/ReactiveAgent.ts +0 -1
- package/src/agents/SupervisorAgent.ts +2 -9
- package/src/manager/index.ts +0 -1
- package/src/public-runtime.ts +0 -6
- package/src/runtime/query/index.ts +4 -44
- package/src/session/handoff/broadcast.ts +7 -3
- package/src/session/handoff/index.ts +1 -1
- package/src/session/handoff/single.ts +8 -9
- package/src/session/migration/id-prefix.ts +0 -13
- package/src/session/migration/index.ts +0 -2
- package/src/session/retention/archive.ts +4 -17
- package/src/store/topic/memory.ts +4 -4
- package/src/types/agent/reactive.ts +0 -5
- package/src/types/agent/scheduler.ts +0 -11
- package/src/types/agent/supervisor.ts +0 -11
- package/src/types/authorization/index.ts +0 -10
- package/src/types/common/index.ts +0 -9
- package/src/types/ids/index.ts +0 -15
- package/src/types/run/checkpoint-store.ts +0 -7
- package/src/types/session/ids.ts +0 -2
- package/src/types/session/index.ts +0 -2
- package/src/types/session/sub-session.ts +11 -23
- package/src/utils/id.ts +0 -9
- package/dist/deprecated-aliases.d.ts +0 -80
- package/dist/deprecated-aliases.d.ts.map +0 -1
- package/dist/deprecated-aliases.js +0 -60
- package/dist/deprecated-aliases.js.map +0 -1
- package/src/deprecated-aliases.ts +0 -86
|
@@ -26,35 +26,23 @@ import type { SubSessionId, SummaryId, WorkspaceId } from './ids.js'
|
|
|
26
26
|
export type SubSessionDelegationStatus = 'pending' | 'active' | 'idle' | 'failed' | 'archived'
|
|
27
27
|
|
|
28
28
|
/**
|
|
29
|
-
* @deprecated Use {@link SubSessionDelegationStatus}.
|
|
30
|
-
*
|
|
29
|
+
* @deprecated Use {@link SubSessionDelegationStatus}. This is now an alias of
|
|
30
|
+
* it and carries no members of its own; the name goes in a later major.
|
|
31
31
|
*
|
|
32
32
|
* The merge half of this union was declared and never driven. Grepping
|
|
33
33
|
* `packages/sdk` and `packages/cli` for each of `awaiting_merge`,
|
|
34
34
|
* `pending_merge`, `merging`, `merged`, `merge_conflict` and
|
|
35
|
-
* `merge_rejected` AS A SUB-SESSION STATUS
|
|
36
|
-
*
|
|
37
|
-
*
|
|
38
|
-
*
|
|
39
|
-
*
|
|
35
|
+
* `merge_rejected` AS A SUB-SESSION STATUS found no writer at all — the many
|
|
36
|
+
* hits on `awaiting_merge` are `SessionStatus`, which is the shadowing this
|
|
37
|
+
* type's replacement exists to end. Two of them (`merged`, `merge_rejected`)
|
|
38
|
+
* had a READER: they sat in `ARCHIVABLE_STATUSES`, a set that could never
|
|
39
|
+
* match on them.
|
|
40
40
|
*
|
|
41
|
-
* The union
|
|
42
|
-
*
|
|
41
|
+
* The union stayed wide for one release so a host that had persisted one of
|
|
42
|
+
* those values still typechecked while it migrated. 28.0.0 carried that
|
|
43
|
+
* window to the registry and NZ-RUNREC-14 closed it.
|
|
43
44
|
*/
|
|
44
|
-
export type SubSessionStatus =
|
|
45
|
-
| SubSessionDelegationStatus
|
|
46
|
-
/** @deprecated no producer since ratification */
|
|
47
|
-
| 'awaiting_merge'
|
|
48
|
-
/** @deprecated no producer since ratification */
|
|
49
|
-
| 'pending_merge'
|
|
50
|
-
/** @deprecated no producer since ratification */
|
|
51
|
-
| 'merging'
|
|
52
|
-
/** @deprecated no producer since ratification */
|
|
53
|
-
| 'merged'
|
|
54
|
-
/** @deprecated no producer since ratification */
|
|
55
|
-
| 'merge_conflict'
|
|
56
|
-
/** @deprecated no producer since ratification */
|
|
57
|
-
| 'merge_rejected'
|
|
45
|
+
export type SubSessionStatus = SubSessionDelegationStatus
|
|
58
46
|
|
|
59
47
|
/**
|
|
60
48
|
* Discriminator for how a sub-session was created. Pattern doc §4.4
|
package/src/utils/id.ts
CHANGED
|
@@ -89,15 +89,6 @@ export function generateTopicId(): TopicId {
|
|
|
89
89
|
return generateId('top_')
|
|
90
90
|
}
|
|
91
91
|
|
|
92
|
-
/**
|
|
93
|
-
* @deprecated Use {@link generateTopicId}. Removal is NZ-TOPIC-05.
|
|
94
|
-
*
|
|
95
|
-
* Mints `top_` from NZ-TOPIC-04 on — an alias that kept minting `thd_`
|
|
96
|
-
* would hand two different id spaces to one program depending on which
|
|
97
|
-
* name the caller happened to import.
|
|
98
|
-
*/
|
|
99
|
-
export const generateThreadId = generateTopicId
|
|
100
|
-
|
|
101
92
|
export function generateRunId(): RunId {
|
|
102
93
|
return generateId('run_')
|
|
103
94
|
}
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Old spellings of renamed exports, kept alive for one deprecation window.
|
|
3
|
-
*
|
|
4
|
-
* SemVer's guidance, and this repo's rule, is that a removal is preceded by
|
|
5
|
-
* at least one minor release carrying the deprecation — so a consumer has a
|
|
6
|
-
* version where their code still compiles and warns. These are that version.
|
|
7
|
-
* Nothing in this tree imports from here; every in-tree call site moved to
|
|
8
|
-
* the new name in the same commit that added it, because an alias that the
|
|
9
|
-
* kernel itself still uses is not a deprecation, it is a second name.
|
|
10
|
-
*
|
|
11
|
-
* **Why each pair is written as a `const` plus a `type` rather than
|
|
12
|
-
* `export { New as Old }`.** The re-export form cannot carry a JSDoc tag on
|
|
13
|
-
* the alias: the tag lands on the original declaration or nowhere, so
|
|
14
|
-
* `Registry` would ship with no `@deprecated` marker at all. Nothing would
|
|
15
|
-
* fail — a consumer's editor simply would not strike it through, and the
|
|
16
|
-
* public-surface gate's `deprecated` view would not list it, which is the
|
|
17
|
-
* one place a reviewer looks to confirm a window is actually open. Declaring
|
|
18
|
-
* the pair explicitly puts the tag on a declaration of our own, and the two
|
|
19
|
-
* declarations merge across the value and type namespaces so a name used as
|
|
20
|
-
* both — every class here — keeps working in both positions.
|
|
21
|
-
*
|
|
22
|
-
* So: do not "simplify" these to `export { X as Y }`. It compiles, it passes
|
|
23
|
-
* the tests, and it silently empties the deprecated view.
|
|
24
|
-
*/
|
|
25
|
-
import { AuthorizationGate } from './authorization/gate.js';
|
|
26
|
-
import { collectChatCompletion } from './provider/collect-chat-completion.js';
|
|
27
|
-
import { BaseRegistry } from './registry/BaseRegistry.js';
|
|
28
|
-
import { PromptCache, type PromptCacheConfig } from './runtime/query/prompt-cache.js';
|
|
29
|
-
import { LocalTaskScheduler } from './scheduler/local.js';
|
|
30
|
-
/**
|
|
31
|
-
* @deprecated Renamed to {@link collectChatCompletion}. Removed in the next
|
|
32
|
-
* major. The old name said nothing about what it collects; it drains a
|
|
33
|
-
* `StreamChunk` iterable into a `ChatCompletionResponse`.
|
|
34
|
-
*/
|
|
35
|
-
export declare const collect: typeof collectChatCompletion;
|
|
36
|
-
/**
|
|
37
|
-
* @deprecated Renamed to {@link BaseRegistry}. Removed in the next major.
|
|
38
|
-
* The bare name read as the general-purpose registry while sitting beside
|
|
39
|
-
* seven domain-qualified siblings in the same barrel; it is the base class.
|
|
40
|
-
*/
|
|
41
|
-
export declare const Registry: typeof BaseRegistry;
|
|
42
|
-
/**
|
|
43
|
-
* @deprecated Renamed to {@link BaseRegistry}. Removed in the next major.
|
|
44
|
-
*/
|
|
45
|
-
export type Registry<TDefinition> = BaseRegistry<TDefinition>;
|
|
46
|
-
/**
|
|
47
|
-
* @deprecated Renamed to {@link PromptCache}. Removed in the next major. The
|
|
48
|
-
* cluster named one input two ways a single call apart —
|
|
49
|
-
* `new ContextCache(ContextCacheConfig)` then `.getSystemPrompt(PromptCacheInput)`.
|
|
50
|
-
*/
|
|
51
|
-
export declare const ContextCache: typeof PromptCache;
|
|
52
|
-
/**
|
|
53
|
-
* @deprecated Renamed to {@link PromptCache}. Removed in the next major.
|
|
54
|
-
*/
|
|
55
|
-
export type ContextCache = PromptCache;
|
|
56
|
-
/**
|
|
57
|
-
* @deprecated Renamed to {@link PromptCacheConfig}. Removed in the next major.
|
|
58
|
-
*/
|
|
59
|
-
export type ContextCacheConfig = PromptCacheConfig;
|
|
60
|
-
/**
|
|
61
|
-
* @deprecated Renamed to {@link LocalTaskScheduler}. Removed in the next
|
|
62
|
-
* major. It schedules in-process agent tasks; it is not a facade over
|
|
63
|
-
* anything external, which is what "gateway" told a reader to expect.
|
|
64
|
-
*/
|
|
65
|
-
export declare const LocalTaskGateway: typeof LocalTaskScheduler;
|
|
66
|
-
/**
|
|
67
|
-
* @deprecated Renamed to {@link LocalTaskScheduler}. Removed in the next major.
|
|
68
|
-
*/
|
|
69
|
-
export type LocalTaskGateway = LocalTaskScheduler;
|
|
70
|
-
/**
|
|
71
|
-
* @deprecated Renamed to {@link AuthorizationGate}. Removed in the next
|
|
72
|
-
* major. It decides whether a tool call is permitted before the call runs;
|
|
73
|
-
* it does not verify anything after the fact.
|
|
74
|
-
*/
|
|
75
|
-
export declare const VerificationGate: typeof AuthorizationGate;
|
|
76
|
-
/**
|
|
77
|
-
* @deprecated Renamed to {@link AuthorizationGate}. Removed in the next major.
|
|
78
|
-
*/
|
|
79
|
-
export type VerificationGate = AuthorizationGate;
|
|
80
|
-
//# sourceMappingURL=deprecated-aliases.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"deprecated-aliases.d.ts","sourceRoot":"","sources":["../src/deprecated-aliases.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAA;AAC3D,OAAO,EAAE,qBAAqB,EAAE,MAAM,uCAAuC,CAAA;AAC7E,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAA;AACzD,OAAO,EAAE,WAAW,EAAE,KAAK,iBAAiB,EAAE,MAAM,iCAAiC,CAAA;AACrF,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AAEzD;;;;GAIG;AACH,eAAO,MAAM,OAAO,8BAAwB,CAAA;AAE5C;;;;GAIG;AACH,eAAO,MAAM,QAAQ,qBAAe,CAAA;AACpC;;GAEG;AACH,MAAM,MAAM,QAAQ,CAAC,WAAW,IAAI,YAAY,CAAC,WAAW,CAAC,CAAA;AAE7D;;;;GAIG;AACH,eAAO,MAAM,YAAY,oBAAc,CAAA;AACvC;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG,WAAW,CAAA;AAEtC;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG,iBAAiB,CAAA;AAElD;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,2BAAqB,CAAA;AAClD;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG,kBAAkB,CAAA;AAEjD;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,0BAAoB,CAAA;AACjD;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG,iBAAiB,CAAA"}
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Old spellings of renamed exports, kept alive for one deprecation window.
|
|
3
|
-
*
|
|
4
|
-
* SemVer's guidance, and this repo's rule, is that a removal is preceded by
|
|
5
|
-
* at least one minor release carrying the deprecation — so a consumer has a
|
|
6
|
-
* version where their code still compiles and warns. These are that version.
|
|
7
|
-
* Nothing in this tree imports from here; every in-tree call site moved to
|
|
8
|
-
* the new name in the same commit that added it, because an alias that the
|
|
9
|
-
* kernel itself still uses is not a deprecation, it is a second name.
|
|
10
|
-
*
|
|
11
|
-
* **Why each pair is written as a `const` plus a `type` rather than
|
|
12
|
-
* `export { New as Old }`.** The re-export form cannot carry a JSDoc tag on
|
|
13
|
-
* the alias: the tag lands on the original declaration or nowhere, so
|
|
14
|
-
* `Registry` would ship with no `@deprecated` marker at all. Nothing would
|
|
15
|
-
* fail — a consumer's editor simply would not strike it through, and the
|
|
16
|
-
* public-surface gate's `deprecated` view would not list it, which is the
|
|
17
|
-
* one place a reviewer looks to confirm a window is actually open. Declaring
|
|
18
|
-
* the pair explicitly puts the tag on a declaration of our own, and the two
|
|
19
|
-
* declarations merge across the value and type namespaces so a name used as
|
|
20
|
-
* both — every class here — keeps working in both positions.
|
|
21
|
-
*
|
|
22
|
-
* So: do not "simplify" these to `export { X as Y }`. It compiles, it passes
|
|
23
|
-
* the tests, and it silently empties the deprecated view.
|
|
24
|
-
*/
|
|
25
|
-
import { AuthorizationGate } from './authorization/gate.js';
|
|
26
|
-
import { collectChatCompletion } from './provider/collect-chat-completion.js';
|
|
27
|
-
import { BaseRegistry } from './registry/BaseRegistry.js';
|
|
28
|
-
import { PromptCache } from './runtime/query/prompt-cache.js';
|
|
29
|
-
import { LocalTaskScheduler } from './scheduler/local.js';
|
|
30
|
-
/**
|
|
31
|
-
* @deprecated Renamed to {@link collectChatCompletion}. Removed in the next
|
|
32
|
-
* major. The old name said nothing about what it collects; it drains a
|
|
33
|
-
* `StreamChunk` iterable into a `ChatCompletionResponse`.
|
|
34
|
-
*/
|
|
35
|
-
export const collect = collectChatCompletion;
|
|
36
|
-
/**
|
|
37
|
-
* @deprecated Renamed to {@link BaseRegistry}. Removed in the next major.
|
|
38
|
-
* The bare name read as the general-purpose registry while sitting beside
|
|
39
|
-
* seven domain-qualified siblings in the same barrel; it is the base class.
|
|
40
|
-
*/
|
|
41
|
-
export const Registry = BaseRegistry;
|
|
42
|
-
/**
|
|
43
|
-
* @deprecated Renamed to {@link PromptCache}. Removed in the next major. The
|
|
44
|
-
* cluster named one input two ways a single call apart —
|
|
45
|
-
* `new ContextCache(ContextCacheConfig)` then `.getSystemPrompt(PromptCacheInput)`.
|
|
46
|
-
*/
|
|
47
|
-
export const ContextCache = PromptCache;
|
|
48
|
-
/**
|
|
49
|
-
* @deprecated Renamed to {@link LocalTaskScheduler}. Removed in the next
|
|
50
|
-
* major. It schedules in-process agent tasks; it is not a facade over
|
|
51
|
-
* anything external, which is what "gateway" told a reader to expect.
|
|
52
|
-
*/
|
|
53
|
-
export const LocalTaskGateway = LocalTaskScheduler;
|
|
54
|
-
/**
|
|
55
|
-
* @deprecated Renamed to {@link AuthorizationGate}. Removed in the next
|
|
56
|
-
* major. It decides whether a tool call is permitted before the call runs;
|
|
57
|
-
* it does not verify anything after the fact.
|
|
58
|
-
*/
|
|
59
|
-
export const VerificationGate = AuthorizationGate;
|
|
60
|
-
//# sourceMappingURL=deprecated-aliases.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"deprecated-aliases.js","sourceRoot":"","sources":["../src/deprecated-aliases.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAA;AAC3D,OAAO,EAAE,qBAAqB,EAAE,MAAM,uCAAuC,CAAA;AAC7E,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAA;AACzD,OAAO,EAAE,WAAW,EAA0B,MAAM,iCAAiC,CAAA;AACrF,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AAEzD;;;;GAIG;AACH,MAAM,CAAC,MAAM,OAAO,GAAG,qBAAqB,CAAA;AAE5C;;;;GAIG;AACH,MAAM,CAAC,MAAM,QAAQ,GAAG,YAAY,CAAA;AAMpC;;;;GAIG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,WAAW,CAAA;AAWvC;;;;GAIG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,kBAAkB,CAAA;AAMlD;;;;GAIG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,iBAAiB,CAAA"}
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Old spellings of renamed exports, kept alive for one deprecation window.
|
|
3
|
-
*
|
|
4
|
-
* SemVer's guidance, and this repo's rule, is that a removal is preceded by
|
|
5
|
-
* at least one minor release carrying the deprecation — so a consumer has a
|
|
6
|
-
* version where their code still compiles and warns. These are that version.
|
|
7
|
-
* Nothing in this tree imports from here; every in-tree call site moved to
|
|
8
|
-
* the new name in the same commit that added it, because an alias that the
|
|
9
|
-
* kernel itself still uses is not a deprecation, it is a second name.
|
|
10
|
-
*
|
|
11
|
-
* **Why each pair is written as a `const` plus a `type` rather than
|
|
12
|
-
* `export { New as Old }`.** The re-export form cannot carry a JSDoc tag on
|
|
13
|
-
* the alias: the tag lands on the original declaration or nowhere, so
|
|
14
|
-
* `Registry` would ship with no `@deprecated` marker at all. Nothing would
|
|
15
|
-
* fail — a consumer's editor simply would not strike it through, and the
|
|
16
|
-
* public-surface gate's `deprecated` view would not list it, which is the
|
|
17
|
-
* one place a reviewer looks to confirm a window is actually open. Declaring
|
|
18
|
-
* the pair explicitly puts the tag on a declaration of our own, and the two
|
|
19
|
-
* declarations merge across the value and type namespaces so a name used as
|
|
20
|
-
* both — every class here — keeps working in both positions.
|
|
21
|
-
*
|
|
22
|
-
* So: do not "simplify" these to `export { X as Y }`. It compiles, it passes
|
|
23
|
-
* the tests, and it silently empties the deprecated view.
|
|
24
|
-
*/
|
|
25
|
-
|
|
26
|
-
import { AuthorizationGate } from './authorization/gate.js'
|
|
27
|
-
import { collectChatCompletion } from './provider/collect-chat-completion.js'
|
|
28
|
-
import { BaseRegistry } from './registry/BaseRegistry.js'
|
|
29
|
-
import { PromptCache, type PromptCacheConfig } from './runtime/query/prompt-cache.js'
|
|
30
|
-
import { LocalTaskScheduler } from './scheduler/local.js'
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* @deprecated Renamed to {@link collectChatCompletion}. Removed in the next
|
|
34
|
-
* major. The old name said nothing about what it collects; it drains a
|
|
35
|
-
* `StreamChunk` iterable into a `ChatCompletionResponse`.
|
|
36
|
-
*/
|
|
37
|
-
export const collect = collectChatCompletion
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* @deprecated Renamed to {@link BaseRegistry}. Removed in the next major.
|
|
41
|
-
* The bare name read as the general-purpose registry while sitting beside
|
|
42
|
-
* seven domain-qualified siblings in the same barrel; it is the base class.
|
|
43
|
-
*/
|
|
44
|
-
export const Registry = BaseRegistry
|
|
45
|
-
/**
|
|
46
|
-
* @deprecated Renamed to {@link BaseRegistry}. Removed in the next major.
|
|
47
|
-
*/
|
|
48
|
-
export type Registry<TDefinition> = BaseRegistry<TDefinition>
|
|
49
|
-
|
|
50
|
-
/**
|
|
51
|
-
* @deprecated Renamed to {@link PromptCache}. Removed in the next major. The
|
|
52
|
-
* cluster named one input two ways a single call apart —
|
|
53
|
-
* `new ContextCache(ContextCacheConfig)` then `.getSystemPrompt(PromptCacheInput)`.
|
|
54
|
-
*/
|
|
55
|
-
export const ContextCache = PromptCache
|
|
56
|
-
/**
|
|
57
|
-
* @deprecated Renamed to {@link PromptCache}. Removed in the next major.
|
|
58
|
-
*/
|
|
59
|
-
export type ContextCache = PromptCache
|
|
60
|
-
|
|
61
|
-
/**
|
|
62
|
-
* @deprecated Renamed to {@link PromptCacheConfig}. Removed in the next major.
|
|
63
|
-
*/
|
|
64
|
-
export type ContextCacheConfig = PromptCacheConfig
|
|
65
|
-
|
|
66
|
-
/**
|
|
67
|
-
* @deprecated Renamed to {@link LocalTaskScheduler}. Removed in the next
|
|
68
|
-
* major. It schedules in-process agent tasks; it is not a facade over
|
|
69
|
-
* anything external, which is what "gateway" told a reader to expect.
|
|
70
|
-
*/
|
|
71
|
-
export const LocalTaskGateway = LocalTaskScheduler
|
|
72
|
-
/**
|
|
73
|
-
* @deprecated Renamed to {@link LocalTaskScheduler}. Removed in the next major.
|
|
74
|
-
*/
|
|
75
|
-
export type LocalTaskGateway = LocalTaskScheduler
|
|
76
|
-
|
|
77
|
-
/**
|
|
78
|
-
* @deprecated Renamed to {@link AuthorizationGate}. Removed in the next
|
|
79
|
-
* major. It decides whether a tool call is permitted before the call runs;
|
|
80
|
-
* it does not verify anything after the fact.
|
|
81
|
-
*/
|
|
82
|
-
export const VerificationGate = AuthorizationGate
|
|
83
|
-
/**
|
|
84
|
-
* @deprecated Renamed to {@link AuthorizationGate}. Removed in the next major.
|
|
85
|
-
*/
|
|
86
|
-
export type VerificationGate = AuthorizationGate
|