@band-ai/sdk 0.1.6 → 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.
- package/README.md +372 -0
- package/dist/{ClaudeSDKAdapter-CRq4R-WB.d.cts → ClaudeSDKAdapter-BY4zEbCl.d.cts} +14 -10
- package/dist/{ClaudeSDKAdapter-BHOkjN3X.d.ts → ClaudeSDKAdapter-Cna5P1dR.d.ts} +14 -10
- package/dist/{acp-server-B1Da7L6u.d.ts → acp-server-CiUqN3G3.d.ts} +2 -2
- package/dist/{acp-server-BdRz9_UN.d.cts → acp-server-Dlj7D563.d.cts} +2 -2
- package/dist/adapters.cjs +734 -279
- package/dist/adapters.d.cts +21 -19
- package/dist/adapters.d.ts +21 -19
- package/dist/adapters.js +65 -44
- package/dist/backends-D-dBdDm-.d.ts +27 -0
- package/dist/backends-ZLxmQrTZ.d.cts +27 -0
- package/dist/{chunk-MSL6CWHY.js → chunk-4IAXZBXX.js} +77 -37
- package/dist/{chunk-SG4WLD2H.js → chunk-EAI2M3WM.js} +38 -94
- package/dist/{chunk-YR3BOQNW.js → chunk-JY75VSQK.js} +7 -7
- package/dist/{chunk-INA6YZTZ.js → chunk-LBWKISBS.js} +51 -31
- package/dist/{chunk-I5EZG52P.js → chunk-N2QTUMGO.js} +532 -327
- package/dist/{chunk-RHVH2GZR.js → chunk-NMZLX7TP.js} +110 -56
- package/dist/{chunk-EDPKUUJL.js → chunk-NT7TBFX2.js} +9 -1
- package/dist/{chunk-GVEQ3RAH.js → chunk-RV76SKFT.js} +169 -54
- package/dist/{chunk-W5NDZSYE.js → chunk-TLBCKDQO.js} +23 -23
- package/dist/chunk-US226AS4.js +130 -0
- package/dist/{chunk-IZPV6QS6.js → chunk-WL2HNJZ6.js} +38 -11
- package/dist/chunk-WLCM2OXG.js +181 -0
- package/dist/config.cjs +40 -13
- package/dist/config.d.cts +7 -1
- package/dist/config.d.ts +7 -1
- package/dist/config.js +2 -2
- package/dist/converters.cjs +491 -35
- package/dist/converters.d.cts +5 -5
- package/dist/converters.d.ts +5 -5
- package/dist/converters.js +4 -3
- package/dist/core.cjs +53 -10
- package/dist/core.d.cts +10 -9
- package/dist/core.d.ts +10 -9
- package/dist/core.js +8 -4
- package/dist/disconnectReason-IuADl6TH.d.cts +34 -0
- package/dist/disconnectReason-IuADl6TH.d.ts +34 -0
- package/dist/{dtos-DUpbIu8k.d.ts → dtos-B8KU_q4d.d.cts} +26 -6
- package/dist/{dtos-DUpbIu8k.d.cts → dtos-B8KU_q4d.d.ts} +26 -6
- package/dist/index.cjs +1510 -735
- package/dist/index.d.cts +18 -16
- package/dist/index.d.ts +18 -16
- package/dist/index.js +21 -13
- package/dist/linear.cjs +1044 -112
- package/dist/linear.d.cts +146 -16
- package/dist/linear.d.ts +146 -16
- package/dist/linear.js +1031 -110
- package/dist/mcp-claude.cjs +338 -66
- package/dist/mcp-claude.d.cts +3 -3
- package/dist/mcp-claude.d.ts +3 -3
- package/dist/mcp-claude.js +215 -16
- package/dist/mcp.cjs +414 -105
- package/dist/mcp.d.cts +29 -16
- package/dist/mcp.d.ts +29 -16
- package/dist/mcp.js +14 -14
- package/dist/{opencode-BBcDchcN.d.cts → opencode-2YdscIc1.d.cts} +5 -5
- package/dist/{opencode-DthQQUsZ.d.ts → opencode-Bld62x5t.d.ts} +5 -5
- package/dist/{pagination-CcDkVFxK.d.ts → pagination-BgEx-HeL.d.ts} +2 -2
- package/dist/{pagination-BPiys10t.d.cts → pagination-DqdkQArT.d.cts} +2 -2
- package/dist/{protocols-DrhzOH6K.d.ts → protocols-Bwwcql0h.d.ts} +1 -1
- package/dist/{protocols-CInhtFpA.d.cts → protocols-Bz1rxcUg.d.cts} +1 -1
- package/dist/rest.cjs +41 -97
- package/dist/rest.d.cts +7 -7
- package/dist/rest.d.ts +7 -7
- package/dist/rest.js +2 -2
- package/dist/runtime.cjs +998 -620
- package/dist/runtime.d.cts +22 -29
- package/dist/runtime.d.ts +22 -29
- package/dist/runtime.js +19 -67
- package/dist/{schemas-BpEBkq5V.d.cts → schemas-BotL3ZLH.d.cts} +51 -56
- package/dist/{schemas-vos1AaBc.d.ts → schemas-DBsC4J1g.d.ts} +51 -56
- package/dist/{sdk-CwTAxhwI.d.cts → sdk-BTciSLRQ.d.cts} +35 -5
- package/dist/{sdk-CcnQ5OUC.d.ts → sdk-qKJtMma_.d.ts} +35 -5
- package/dist/{simpleAdapter-9OE_p6QW.d.ts → simpleAdapter--wznuoOw.d.ts} +1 -1
- package/dist/{simpleAdapter-DqhvjsGr.d.cts → simpleAdapter-BpT4XbZC.d.cts} +1 -1
- package/dist/testing.d.cts +3 -3
- package/dist/testing.d.ts +3 -3
- package/dist/{types-7jVzOeOP.d.ts → types-BTN_ZETM.d.ts} +2 -2
- package/dist/{types-CxII3XkA.d.ts → types-BgYFd_Yw.d.cts} +5 -5
- package/dist/{types-CSHFipIc.d.cts → types-BivGO7I9.d.ts} +5 -5
- package/dist/{types-CovcHpYf.d.cts → types-D958TC71.d.cts} +2 -2
- package/package.json +25 -23
- package/dist/backends-CzDbiQar.d.ts +0 -20
- package/dist/backends-SVMT-7l4.d.cts +0 -20
- package/dist/chunk-SFVKOEQH.js +0 -103
package/dist/core.cjs
CHANGED
|
@@ -20,14 +20,15 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
20
20
|
// src/core/index.ts
|
|
21
21
|
var core_exports = {};
|
|
22
22
|
__export(core_exports, {
|
|
23
|
+
BandSdkError: () => BandSdkError,
|
|
23
24
|
ConsoleLogger: () => ConsoleLogger,
|
|
24
25
|
NoopLogger: () => NoopLogger,
|
|
25
26
|
RuntimeStateError: () => RuntimeStateError,
|
|
26
27
|
SimpleAdapter: () => SimpleAdapter,
|
|
27
|
-
ThenvoiSdkError: () => ThenvoiSdkError,
|
|
28
28
|
TransportError: () => TransportError,
|
|
29
29
|
UnsupportedFeatureError: () => UnsupportedFeatureError,
|
|
30
|
-
ValidationError: () => ValidationError
|
|
30
|
+
ValidationError: () => ValidationError,
|
|
31
|
+
WebSocketDisconnectError: () => WebSocketDisconnectError
|
|
31
32
|
});
|
|
32
33
|
module.exports = __toCommonJS(core_exports);
|
|
33
34
|
|
|
@@ -68,37 +69,78 @@ var SimpleAdapter = class {
|
|
|
68
69
|
};
|
|
69
70
|
|
|
70
71
|
// src/core/errors.ts
|
|
71
|
-
var
|
|
72
|
+
var BandSdkError = class extends Error {
|
|
72
73
|
constructor(message, cause) {
|
|
73
74
|
super(message, cause !== void 0 ? { cause } : void 0);
|
|
74
|
-
this.name = "
|
|
75
|
+
this.name = "BandSdkError";
|
|
75
76
|
}
|
|
76
77
|
};
|
|
77
|
-
var UnsupportedFeatureError = class extends
|
|
78
|
+
var UnsupportedFeatureError = class extends BandSdkError {
|
|
78
79
|
constructor(message) {
|
|
79
80
|
super(message);
|
|
80
81
|
this.name = "UnsupportedFeatureError";
|
|
81
82
|
}
|
|
82
83
|
};
|
|
83
|
-
var ValidationError = class extends
|
|
84
|
+
var ValidationError = class extends BandSdkError {
|
|
84
85
|
constructor(message, cause) {
|
|
85
86
|
super(message, cause);
|
|
86
87
|
this.name = "ValidationError";
|
|
87
88
|
}
|
|
88
89
|
};
|
|
89
|
-
var TransportError = class extends
|
|
90
|
+
var TransportError = class extends BandSdkError {
|
|
90
91
|
constructor(message, cause) {
|
|
91
92
|
super(message, cause);
|
|
92
93
|
this.name = "TransportError";
|
|
93
94
|
}
|
|
94
95
|
};
|
|
95
|
-
var RuntimeStateError = class extends
|
|
96
|
+
var RuntimeStateError = class extends BandSdkError {
|
|
96
97
|
constructor(message) {
|
|
97
98
|
super(message);
|
|
98
99
|
this.name = "RuntimeStateError";
|
|
99
100
|
}
|
|
100
101
|
};
|
|
101
102
|
|
|
103
|
+
// src/platform/streaming/disconnectReason.ts
|
|
104
|
+
var import_zod = require("zod");
|
|
105
|
+
var UPGRADE_CODES = [
|
|
106
|
+
"invalid_on_conflict",
|
|
107
|
+
"connection_conflict",
|
|
108
|
+
"too_many_requests",
|
|
109
|
+
"tracking_failed"
|
|
110
|
+
];
|
|
111
|
+
var upgradeErrorSchema = import_zod.z.object({
|
|
112
|
+
status: import_zod.z.number(),
|
|
113
|
+
body: import_zod.z.preprocess(
|
|
114
|
+
(body) => {
|
|
115
|
+
if (typeof body !== "string") {
|
|
116
|
+
return body;
|
|
117
|
+
}
|
|
118
|
+
try {
|
|
119
|
+
return JSON.parse(body);
|
|
120
|
+
} catch {
|
|
121
|
+
return null;
|
|
122
|
+
}
|
|
123
|
+
},
|
|
124
|
+
import_zod.z.object({
|
|
125
|
+
error: import_zod.z.object({
|
|
126
|
+
code: import_zod.z.enum(UPGRADE_CODES),
|
|
127
|
+
message: import_zod.z.string().optional(),
|
|
128
|
+
retry_after: import_zod.z.number().nullable().optional(),
|
|
129
|
+
request_id: import_zod.z.string().nullable().optional()
|
|
130
|
+
})
|
|
131
|
+
})
|
|
132
|
+
),
|
|
133
|
+
headers: import_zod.z.record(import_zod.z.unknown()).optional()
|
|
134
|
+
});
|
|
135
|
+
var WebSocketDisconnectError = class extends Error {
|
|
136
|
+
reason;
|
|
137
|
+
constructor(reason) {
|
|
138
|
+
super(reason.message);
|
|
139
|
+
this.name = "WebSocketDisconnectError";
|
|
140
|
+
this.reason = reason;
|
|
141
|
+
}
|
|
142
|
+
};
|
|
143
|
+
|
|
102
144
|
// src/core/logger.ts
|
|
103
145
|
var noop = () => void 0;
|
|
104
146
|
var REDACTED_VALUE = "[REDACTED]";
|
|
@@ -174,12 +216,13 @@ function sanitizeValue(value, seen = /* @__PURE__ */ new WeakSet()) {
|
|
|
174
216
|
}
|
|
175
217
|
// Annotate the CommonJS export names for ESM import in node:
|
|
176
218
|
0 && (module.exports = {
|
|
219
|
+
BandSdkError,
|
|
177
220
|
ConsoleLogger,
|
|
178
221
|
NoopLogger,
|
|
179
222
|
RuntimeStateError,
|
|
180
223
|
SimpleAdapter,
|
|
181
|
-
ThenvoiSdkError,
|
|
182
224
|
TransportError,
|
|
183
225
|
UnsupportedFeatureError,
|
|
184
|
-
ValidationError
|
|
226
|
+
ValidationError,
|
|
227
|
+
WebSocketDisconnectError
|
|
185
228
|
});
|
package/dist/core.d.cts
CHANGED
|
@@ -1,22 +1,23 @@
|
|
|
1
|
-
export { S as SimpleAdapter } from './simpleAdapter-
|
|
2
|
-
export { A as AdapterToolsProtocol, a as AgentToolsProtocol, C as ContactTools, F as FrameworkAdapter, b as FrameworkAdapterInput, H as HistoryConverter, M as MemoryTools, c as MessagingTools, P as ParticipantTools, d as PeerLookupTools, e as Preprocessor, R as RoomParticipantTools, T as ToolExecutor, f as ToolSchemaProvider } from './protocols-
|
|
1
|
+
export { S as SimpleAdapter } from './simpleAdapter-BpT4XbZC.cjs';
|
|
2
|
+
export { A as AdapterToolsProtocol, a as AgentToolsProtocol, C as ContactTools, F as FrameworkAdapter, b as FrameworkAdapterInput, H as HistoryConverter, M as MemoryTools, c as MessagingTools, P as ParticipantTools, d as PeerLookupTools, e as Preprocessor, R as RoomParticipantTools, T as ToolExecutor, f as ToolSchemaProvider } from './protocols-Bz1rxcUg.cjs';
|
|
3
|
+
export { W as WebSocketConflictPolicy, a as WebSocketDisconnectError, b as WebSocketDisconnectReason } from './disconnectReason-IuADl6TH.cjs';
|
|
3
4
|
export { C as ConsoleLogger, L as Logger, N as NoopLogger } from './logger-CABQOnlR.cjs';
|
|
4
|
-
import './dtos-
|
|
5
|
+
import './dtos-B8KU_q4d.cjs';
|
|
5
6
|
|
|
6
|
-
declare class
|
|
7
|
+
declare class BandSdkError extends Error {
|
|
7
8
|
constructor(message: string, cause?: unknown);
|
|
8
9
|
}
|
|
9
|
-
declare class UnsupportedFeatureError extends
|
|
10
|
+
declare class UnsupportedFeatureError extends BandSdkError {
|
|
10
11
|
constructor(message: string);
|
|
11
12
|
}
|
|
12
|
-
declare class ValidationError extends
|
|
13
|
+
declare class ValidationError extends BandSdkError {
|
|
13
14
|
constructor(message: string, cause?: unknown);
|
|
14
15
|
}
|
|
15
|
-
declare class TransportError extends
|
|
16
|
+
declare class TransportError extends BandSdkError {
|
|
16
17
|
constructor(message: string, cause?: unknown);
|
|
17
18
|
}
|
|
18
|
-
declare class RuntimeStateError extends
|
|
19
|
+
declare class RuntimeStateError extends BandSdkError {
|
|
19
20
|
constructor(message: string);
|
|
20
21
|
}
|
|
21
22
|
|
|
22
|
-
export {
|
|
23
|
+
export { BandSdkError, RuntimeStateError, TransportError, UnsupportedFeatureError, ValidationError };
|
package/dist/core.d.ts
CHANGED
|
@@ -1,22 +1,23 @@
|
|
|
1
|
-
export { S as SimpleAdapter } from './simpleAdapter
|
|
2
|
-
export { A as AdapterToolsProtocol, a as AgentToolsProtocol, C as ContactTools, F as FrameworkAdapter, b as FrameworkAdapterInput, H as HistoryConverter, M as MemoryTools, c as MessagingTools, P as ParticipantTools, d as PeerLookupTools, e as Preprocessor, R as RoomParticipantTools, T as ToolExecutor, f as ToolSchemaProvider } from './protocols-
|
|
1
|
+
export { S as SimpleAdapter } from './simpleAdapter--wznuoOw.js';
|
|
2
|
+
export { A as AdapterToolsProtocol, a as AgentToolsProtocol, C as ContactTools, F as FrameworkAdapter, b as FrameworkAdapterInput, H as HistoryConverter, M as MemoryTools, c as MessagingTools, P as ParticipantTools, d as PeerLookupTools, e as Preprocessor, R as RoomParticipantTools, T as ToolExecutor, f as ToolSchemaProvider } from './protocols-Bwwcql0h.js';
|
|
3
|
+
export { W as WebSocketConflictPolicy, a as WebSocketDisconnectError, b as WebSocketDisconnectReason } from './disconnectReason-IuADl6TH.js';
|
|
3
4
|
export { C as ConsoleLogger, L as Logger, N as NoopLogger } from './logger-CABQOnlR.js';
|
|
4
|
-
import './dtos-
|
|
5
|
+
import './dtos-B8KU_q4d.js';
|
|
5
6
|
|
|
6
|
-
declare class
|
|
7
|
+
declare class BandSdkError extends Error {
|
|
7
8
|
constructor(message: string, cause?: unknown);
|
|
8
9
|
}
|
|
9
|
-
declare class UnsupportedFeatureError extends
|
|
10
|
+
declare class UnsupportedFeatureError extends BandSdkError {
|
|
10
11
|
constructor(message: string);
|
|
11
12
|
}
|
|
12
|
-
declare class ValidationError extends
|
|
13
|
+
declare class ValidationError extends BandSdkError {
|
|
13
14
|
constructor(message: string, cause?: unknown);
|
|
14
15
|
}
|
|
15
|
-
declare class TransportError extends
|
|
16
|
+
declare class TransportError extends BandSdkError {
|
|
16
17
|
constructor(message: string, cause?: unknown);
|
|
17
18
|
}
|
|
18
|
-
declare class RuntimeStateError extends
|
|
19
|
+
declare class RuntimeStateError extends BandSdkError {
|
|
19
20
|
constructor(message: string);
|
|
20
21
|
}
|
|
21
22
|
|
|
22
|
-
export {
|
|
23
|
+
export { BandSdkError, RuntimeStateError, TransportError, UnsupportedFeatureError, ValidationError };
|
package/dist/core.js
CHANGED
|
@@ -1,24 +1,28 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SimpleAdapter
|
|
3
3
|
} from "./chunk-AVVDPXP4.js";
|
|
4
|
+
import {
|
|
5
|
+
WebSocketDisconnectError
|
|
6
|
+
} from "./chunk-US226AS4.js";
|
|
4
7
|
import {
|
|
5
8
|
ConsoleLogger,
|
|
6
9
|
NoopLogger
|
|
7
10
|
} from "./chunk-OD2G5LFQ.js";
|
|
8
11
|
import {
|
|
12
|
+
BandSdkError,
|
|
9
13
|
RuntimeStateError,
|
|
10
|
-
ThenvoiSdkError,
|
|
11
14
|
TransportError,
|
|
12
15
|
UnsupportedFeatureError,
|
|
13
16
|
ValidationError
|
|
14
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-JY75VSQK.js";
|
|
15
18
|
export {
|
|
19
|
+
BandSdkError,
|
|
16
20
|
ConsoleLogger,
|
|
17
21
|
NoopLogger,
|
|
18
22
|
RuntimeStateError,
|
|
19
23
|
SimpleAdapter,
|
|
20
|
-
ThenvoiSdkError,
|
|
21
24
|
TransportError,
|
|
22
25
|
UnsupportedFeatureError,
|
|
23
|
-
ValidationError
|
|
26
|
+
ValidationError,
|
|
27
|
+
WebSocketDisconnectError
|
|
24
28
|
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
type WebSocketConflictPolicy = "supersede" | "reject";
|
|
2
|
+
interface AgentControlSupersedeDisconnectReason {
|
|
3
|
+
source: "agent_control";
|
|
4
|
+
code: string;
|
|
5
|
+
message: string;
|
|
6
|
+
retryable: false;
|
|
7
|
+
retryAfter: number | null;
|
|
8
|
+
targetSocketId: string | null;
|
|
9
|
+
correlationId: string | null;
|
|
10
|
+
}
|
|
11
|
+
interface WebSocketUpgradeDisconnectReason {
|
|
12
|
+
source: "upgrade";
|
|
13
|
+
status: 400 | 409 | 429 | 503;
|
|
14
|
+
code: "invalid_on_conflict" | "connection_conflict" | "too_many_requests" | "tracking_failed";
|
|
15
|
+
message: string;
|
|
16
|
+
retryable: boolean;
|
|
17
|
+
retryAfter: number | null;
|
|
18
|
+
requestId: string | null;
|
|
19
|
+
}
|
|
20
|
+
interface GenericWebSocketCloseReason {
|
|
21
|
+
source: "websocket_close";
|
|
22
|
+
code: "websocket.closed";
|
|
23
|
+
message: string;
|
|
24
|
+
retryable: boolean;
|
|
25
|
+
closeCode: number | null;
|
|
26
|
+
closeReason: string | null;
|
|
27
|
+
}
|
|
28
|
+
type WebSocketDisconnectReason = AgentControlSupersedeDisconnectReason | WebSocketUpgradeDisconnectReason | GenericWebSocketCloseReason;
|
|
29
|
+
declare class WebSocketDisconnectError extends Error {
|
|
30
|
+
readonly reason: WebSocketDisconnectReason;
|
|
31
|
+
constructor(reason: WebSocketDisconnectReason);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export { type WebSocketConflictPolicy as W, WebSocketDisconnectError as a, type WebSocketDisconnectReason as b };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
type WebSocketConflictPolicy = "supersede" | "reject";
|
|
2
|
+
interface AgentControlSupersedeDisconnectReason {
|
|
3
|
+
source: "agent_control";
|
|
4
|
+
code: string;
|
|
5
|
+
message: string;
|
|
6
|
+
retryable: false;
|
|
7
|
+
retryAfter: number | null;
|
|
8
|
+
targetSocketId: string | null;
|
|
9
|
+
correlationId: string | null;
|
|
10
|
+
}
|
|
11
|
+
interface WebSocketUpgradeDisconnectReason {
|
|
12
|
+
source: "upgrade";
|
|
13
|
+
status: 400 | 409 | 429 | 503;
|
|
14
|
+
code: "invalid_on_conflict" | "connection_conflict" | "too_many_requests" | "tracking_failed";
|
|
15
|
+
message: string;
|
|
16
|
+
retryable: boolean;
|
|
17
|
+
retryAfter: number | null;
|
|
18
|
+
requestId: string | null;
|
|
19
|
+
}
|
|
20
|
+
interface GenericWebSocketCloseReason {
|
|
21
|
+
source: "websocket_close";
|
|
22
|
+
code: "websocket.closed";
|
|
23
|
+
message: string;
|
|
24
|
+
retryable: boolean;
|
|
25
|
+
closeCode: number | null;
|
|
26
|
+
closeReason: string | null;
|
|
27
|
+
}
|
|
28
|
+
type WebSocketDisconnectReason = AgentControlSupersedeDisconnectReason | WebSocketUpgradeDisconnectReason | GenericWebSocketCloseReason;
|
|
29
|
+
declare class WebSocketDisconnectError extends Error {
|
|
30
|
+
readonly reason: WebSocketDisconnectReason;
|
|
31
|
+
constructor(reason: WebSocketDisconnectReason);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export { type WebSocketConflictPolicy as W, WebSocketDisconnectError as a, type WebSocketDisconnectReason as b };
|
|
@@ -1,3 +1,28 @@
|
|
|
1
|
+
/** Canonical memory enums; DTOs, tool schemas, and validation derive from these constants. */
|
|
2
|
+
/** Which memory types are valid for each memory tier. */
|
|
3
|
+
declare const MEMORY_SYSTEM_TYPES: {
|
|
4
|
+
readonly sensory: readonly ["iconic", "echoic", "haptic"];
|
|
5
|
+
readonly working: readonly ["episodic", "semantic", "procedural"];
|
|
6
|
+
readonly long_term: readonly ["episodic", "semantic", "procedural"];
|
|
7
|
+
};
|
|
8
|
+
type MemorySystem = keyof typeof MEMORY_SYSTEM_TYPES;
|
|
9
|
+
type MemoryType = (typeof MEMORY_SYSTEM_TYPES)[MemorySystem][number];
|
|
10
|
+
/** Logical subject category (user/agent/tool/guideline); not scope `subject` or `subject_id`. */
|
|
11
|
+
declare const MEMORY_SEGMENTS: readonly ["user", "agent", "tool", "guideline"];
|
|
12
|
+
/** Visibility scope for `band_store_memory`. */
|
|
13
|
+
declare const MEMORY_STORE_SCOPES: readonly ["subject", "organization"];
|
|
14
|
+
/** Scope filter for `band_list_memories`. */
|
|
15
|
+
declare const MEMORY_LIST_SCOPES: readonly ["subject", "organization", "all"];
|
|
16
|
+
/** Lifecycle state; list filter and set by supersede/archive tools. */
|
|
17
|
+
declare const MEMORY_STATUSES: readonly ["active", "superseded", "archived", "all"];
|
|
18
|
+
/** Logical subject category (user/agent/tool/guideline); not scope `subject` or `subject_id`. */
|
|
19
|
+
type MemorySegment = (typeof MEMORY_SEGMENTS)[number];
|
|
20
|
+
type MemoryStoreScope = (typeof MEMORY_STORE_SCOPES)[number];
|
|
21
|
+
type MemoryScope = (typeof MEMORY_LIST_SCOPES)[number];
|
|
22
|
+
type MemoryStatus = (typeof MEMORY_STATUSES)[number];
|
|
23
|
+
/** Alias for {@link MemoryStoreScope} on store/write DTOs. */
|
|
24
|
+
type MemoryVisibility = MemoryStoreScope;
|
|
25
|
+
|
|
1
26
|
interface MetadataMap {
|
|
2
27
|
[key: string]: unknown;
|
|
3
28
|
}
|
|
@@ -98,12 +123,7 @@ type RespondContactRequestArgs = {
|
|
|
98
123
|
target: "requestId";
|
|
99
124
|
requestId: string;
|
|
100
125
|
};
|
|
101
|
-
|
|
102
|
-
type MemoryVisibility = Exclude<MemoryScope, "all">;
|
|
103
|
-
type MemorySystem = "sensory" | "working" | "long_term";
|
|
104
|
-
type MemoryType = "iconic" | "echoic" | "haptic" | "episodic" | "semantic" | "procedural";
|
|
105
|
-
type MemorySegment = "user" | "agent" | "tool" | "guideline";
|
|
106
|
-
type MemoryStatus = "active" | "superseded" | "archived" | "all";
|
|
126
|
+
|
|
107
127
|
interface WireListMemoriesArgs {
|
|
108
128
|
subject_id?: string;
|
|
109
129
|
scope?: MemoryScope;
|
|
@@ -1,3 +1,28 @@
|
|
|
1
|
+
/** Canonical memory enums; DTOs, tool schemas, and validation derive from these constants. */
|
|
2
|
+
/** Which memory types are valid for each memory tier. */
|
|
3
|
+
declare const MEMORY_SYSTEM_TYPES: {
|
|
4
|
+
readonly sensory: readonly ["iconic", "echoic", "haptic"];
|
|
5
|
+
readonly working: readonly ["episodic", "semantic", "procedural"];
|
|
6
|
+
readonly long_term: readonly ["episodic", "semantic", "procedural"];
|
|
7
|
+
};
|
|
8
|
+
type MemorySystem = keyof typeof MEMORY_SYSTEM_TYPES;
|
|
9
|
+
type MemoryType = (typeof MEMORY_SYSTEM_TYPES)[MemorySystem][number];
|
|
10
|
+
/** Logical subject category (user/agent/tool/guideline); not scope `subject` or `subject_id`. */
|
|
11
|
+
declare const MEMORY_SEGMENTS: readonly ["user", "agent", "tool", "guideline"];
|
|
12
|
+
/** Visibility scope for `band_store_memory`. */
|
|
13
|
+
declare const MEMORY_STORE_SCOPES: readonly ["subject", "organization"];
|
|
14
|
+
/** Scope filter for `band_list_memories`. */
|
|
15
|
+
declare const MEMORY_LIST_SCOPES: readonly ["subject", "organization", "all"];
|
|
16
|
+
/** Lifecycle state; list filter and set by supersede/archive tools. */
|
|
17
|
+
declare const MEMORY_STATUSES: readonly ["active", "superseded", "archived", "all"];
|
|
18
|
+
/** Logical subject category (user/agent/tool/guideline); not scope `subject` or `subject_id`. */
|
|
19
|
+
type MemorySegment = (typeof MEMORY_SEGMENTS)[number];
|
|
20
|
+
type MemoryStoreScope = (typeof MEMORY_STORE_SCOPES)[number];
|
|
21
|
+
type MemoryScope = (typeof MEMORY_LIST_SCOPES)[number];
|
|
22
|
+
type MemoryStatus = (typeof MEMORY_STATUSES)[number];
|
|
23
|
+
/** Alias for {@link MemoryStoreScope} on store/write DTOs. */
|
|
24
|
+
type MemoryVisibility = MemoryStoreScope;
|
|
25
|
+
|
|
1
26
|
interface MetadataMap {
|
|
2
27
|
[key: string]: unknown;
|
|
3
28
|
}
|
|
@@ -98,12 +123,7 @@ type RespondContactRequestArgs = {
|
|
|
98
123
|
target: "requestId";
|
|
99
124
|
requestId: string;
|
|
100
125
|
};
|
|
101
|
-
|
|
102
|
-
type MemoryVisibility = Exclude<MemoryScope, "all">;
|
|
103
|
-
type MemorySystem = "sensory" | "working" | "long_term";
|
|
104
|
-
type MemoryType = "iconic" | "echoic" | "haptic" | "episodic" | "semantic" | "procedural";
|
|
105
|
-
type MemorySegment = "user" | "agent" | "tool" | "guideline";
|
|
106
|
-
type MemoryStatus = "active" | "superseded" | "archived" | "all";
|
|
126
|
+
|
|
107
127
|
interface WireListMemoriesArgs {
|
|
108
128
|
subject_id?: string;
|
|
109
129
|
scope?: MemoryScope;
|