@namzu/sdk 28.0.0 → 30.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.
Files changed (134) hide show
  1. package/CHANGELOG.md +129 -0
  2. package/dist/agents/ReactiveAgent.d.ts.map +1 -1
  3. package/dist/agents/ReactiveAgent.js +0 -1
  4. package/dist/agents/ReactiveAgent.js.map +1 -1
  5. package/dist/agents/SupervisorAgent.d.ts.map +1 -1
  6. package/dist/agents/SupervisorAgent.js +2 -4
  7. package/dist/agents/SupervisorAgent.js.map +1 -1
  8. package/dist/config/runtime.d.ts +8 -8
  9. package/dist/contracts/a2a.d.ts +10 -10
  10. package/dist/contracts/schemas.d.ts +12 -12
  11. package/dist/manager/index.d.ts +2 -2
  12. package/dist/manager/index.d.ts.map +1 -1
  13. package/dist/manager/index.js +2 -2
  14. package/dist/manager/index.js.map +1 -1
  15. package/dist/plugin/loader.d.ts.map +1 -1
  16. package/dist/plugin/loader.js +10 -12
  17. package/dist/plugin/loader.js.map +1 -1
  18. package/dist/public-runtime.d.ts +21 -9
  19. package/dist/public-runtime.d.ts.map +1 -1
  20. package/dist/public-runtime.js +21 -9
  21. package/dist/public-runtime.js.map +1 -1
  22. package/dist/runtime/query/index.d.ts +0 -16
  23. package/dist/runtime/query/index.d.ts.map +1 -1
  24. package/dist/runtime/query/index.js +3 -10
  25. package/dist/runtime/query/index.js.map +1 -1
  26. package/dist/session/handoff/broadcast.d.ts +6 -2
  27. package/dist/session/handoff/broadcast.d.ts.map +1 -1
  28. package/dist/session/handoff/broadcast.js +1 -2
  29. package/dist/session/handoff/broadcast.js.map +1 -1
  30. package/dist/session/handoff/index.d.ts +1 -1
  31. package/dist/session/handoff/index.d.ts.map +1 -1
  32. package/dist/session/handoff/index.js +1 -1
  33. package/dist/session/handoff/index.js.map +1 -1
  34. package/dist/session/handoff/single.d.ts +7 -3
  35. package/dist/session/handoff/single.d.ts.map +1 -1
  36. package/dist/session/handoff/single.js +1 -7
  37. package/dist/session/handoff/single.js.map +1 -1
  38. package/dist/session/migration/id-prefix.d.ts +0 -11
  39. package/dist/session/migration/id-prefix.d.ts.map +1 -1
  40. package/dist/session/migration/id-prefix.js +0 -11
  41. package/dist/session/migration/id-prefix.js.map +1 -1
  42. package/dist/session/migration/index.d.ts +2 -2
  43. package/dist/session/migration/index.d.ts.map +1 -1
  44. package/dist/session/migration/index.js +2 -2
  45. package/dist/session/migration/index.js.map +1 -1
  46. package/dist/session/retention/archive.d.ts.map +1 -1
  47. package/dist/session/retention/archive.js +4 -16
  48. package/dist/session/retention/archive.js.map +1 -1
  49. package/dist/skills/loader.d.ts.map +1 -1
  50. package/dist/skills/loader.js +10 -12
  51. package/dist/skills/loader.js.map +1 -1
  52. package/dist/store/topic/memory.d.ts +4 -4
  53. package/dist/store/topic/memory.js +4 -4
  54. package/dist/tools/builtins/computer-use.d.ts +8 -8
  55. package/dist/types/agent/reactive.d.ts +0 -5
  56. package/dist/types/agent/reactive.d.ts.map +1 -1
  57. package/dist/types/agent/scheduler.d.ts +0 -10
  58. package/dist/types/agent/scheduler.d.ts.map +1 -1
  59. package/dist/types/agent/supervisor.d.ts +0 -10
  60. package/dist/types/agent/supervisor.d.ts.map +1 -1
  61. package/dist/types/authorization/index.d.ts +24 -285
  62. package/dist/types/authorization/index.d.ts.map +1 -1
  63. package/dist/types/authorization/index.js +0 -4
  64. package/dist/types/authorization/index.js.map +1 -1
  65. package/dist/types/common/index.d.ts +0 -8
  66. package/dist/types/common/index.d.ts.map +1 -1
  67. package/dist/types/common/index.js.map +1 -1
  68. package/dist/types/ids/index.d.ts +0 -15
  69. package/dist/types/ids/index.d.ts.map +1 -1
  70. package/dist/types/ids/index.js.map +1 -1
  71. package/dist/types/plugin/index.d.ts +6 -6
  72. package/dist/types/run/checkpoint-store.d.ts +0 -6
  73. package/dist/types/run/checkpoint-store.d.ts.map +1 -1
  74. package/dist/types/session/ids.d.ts +1 -3
  75. package/dist/types/session/ids.d.ts.map +1 -1
  76. package/dist/types/session/index.d.ts +1 -3
  77. package/dist/types/session/index.d.ts.map +1 -1
  78. package/dist/types/session/sub-session.d.ts +11 -22
  79. package/dist/types/session/sub-session.d.ts.map +1 -1
  80. package/dist/utils/id.d.ts +0 -8
  81. package/dist/utils/id.d.ts.map +1 -1
  82. package/dist/utils/id.js +0 -8
  83. package/dist/utils/id.js.map +1 -1
  84. package/dist/utils/log/create-logger.d.ts +3 -3
  85. package/dist/utils/log/create-logger.d.ts.map +1 -1
  86. package/dist/utils/log/create-logger.js +10 -8
  87. package/dist/utils/log/create-logger.js.map +1 -1
  88. package/dist/utils/log/process-sink.d.ts +7 -4
  89. package/dist/utils/log/process-sink.d.ts.map +1 -1
  90. package/dist/utils/log/process-sink.js +19 -13
  91. package/dist/utils/log/process-sink.js.map +1 -1
  92. package/dist/utils/log/types.d.ts +12 -7
  93. package/dist/utils/log/types.d.ts.map +1 -1
  94. package/dist/utils/log/types.js +6 -6
  95. package/dist/utils/log/types.js.map +1 -1
  96. package/dist/utils/logger.d.ts +15 -35
  97. package/dist/utils/logger.d.ts.map +1 -1
  98. package/dist/utils/logger.js +18 -136
  99. package/dist/utils/logger.js.map +1 -1
  100. package/package.json +1 -1
  101. package/src/agents/ReactiveAgent.ts +0 -1
  102. package/src/agents/SupervisorAgent.ts +2 -9
  103. package/src/manager/index.ts +0 -1
  104. package/src/plugin/loader.ts +10 -12
  105. package/src/public-runtime.ts +14 -7
  106. package/src/runtime/query/index.ts +4 -44
  107. package/src/session/handoff/broadcast.ts +7 -3
  108. package/src/session/handoff/index.ts +1 -1
  109. package/src/session/handoff/single.ts +8 -9
  110. package/src/session/migration/id-prefix.ts +0 -13
  111. package/src/session/migration/index.ts +0 -2
  112. package/src/session/retention/archive.ts +4 -17
  113. package/src/skills/loader.ts +10 -12
  114. package/src/store/topic/memory.ts +4 -4
  115. package/src/types/agent/reactive.ts +0 -5
  116. package/src/types/agent/scheduler.ts +0 -11
  117. package/src/types/agent/supervisor.ts +0 -11
  118. package/src/types/authorization/index.ts +0 -10
  119. package/src/types/common/index.ts +0 -9
  120. package/src/types/ids/index.ts +0 -15
  121. package/src/types/run/checkpoint-store.ts +0 -7
  122. package/src/types/session/ids.ts +0 -2
  123. package/src/types/session/index.ts +0 -2
  124. package/src/types/session/sub-session.ts +11 -23
  125. package/src/utils/id.ts +0 -9
  126. package/src/utils/log/create-logger.ts +10 -8
  127. package/src/utils/log/process-sink.ts +19 -13
  128. package/src/utils/log/types.ts +18 -13
  129. package/src/utils/logger.ts +18 -159
  130. package/dist/deprecated-aliases.d.ts +0 -80
  131. package/dist/deprecated-aliases.d.ts.map +0 -1
  132. package/dist/deprecated-aliases.js +0 -60
  133. package/dist/deprecated-aliases.js.map +0 -1
  134. package/src/deprecated-aliases.ts +0 -86
@@ -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