@band-ai/sdk 0.3.3 → 0.4.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 +54 -1
- package/dist/{ClaudeSDKAdapter-CXud2DBE.d.ts → CopilotACPAdapter-BCpbHFB0.d.ts} +240 -19
- package/dist/{ClaudeSDKAdapter-Cx6zhSaG.d.cts → CopilotACPAdapter-D4VWg8lJ.d.cts} +240 -19
- package/dist/{opencode-2YdscIc1.d.cts → acp-client-D-I_5lK-.d.cts} +23 -4
- package/dist/{opencode-Bld62x5t.d.ts → acp-client-DUXyczlF.d.ts} +23 -4
- package/dist/acp-server-BlcYMxKt.d.ts +17 -0
- package/dist/acp-server-CJhclo6P.d.cts +17 -0
- package/dist/adapters.cjs +2217 -973
- package/dist/adapters.d.cts +21 -132
- package/dist/adapters.d.ts +21 -132
- package/dist/adapters.js +26 -1914
- package/dist/{backends-D-dBdDm-.d.ts → backends-CgsPQa9B.d.ts} +2 -2
- package/dist/{backends-ZLxmQrTZ.d.cts → backends-Dh2WXcHQ.d.cts} +2 -2
- package/dist/{chunk-JY75VSQK.js → chunk-4OVNFDD7.js} +14 -1
- package/dist/chunk-6BE2EG5P.js +128 -0
- package/dist/{chunk-U6AFCLYZ.js → chunk-6TGXV5TE.js} +1824 -514
- package/dist/{chunk-OH6VVVKT.js → chunk-CBCHTTUY.js} +10 -0
- package/dist/{chunk-K5KAEYPF.js → chunk-HNWZZXAE.js} +288 -120
- package/dist/chunk-I34SXMTJ.js +6 -0
- package/dist/{chunk-XWHWJP4I.js → chunk-JDW5WSGF.js} +2 -2
- package/dist/{chunk-KXJ74J73.js → chunk-JIZE4EC6.js} +4 -10
- package/dist/chunk-OGOXY43L.js +119 -0
- package/dist/{chunk-W5IAI6Z4.js → chunk-OVXVZUPO.js} +5 -5
- package/dist/{chunk-YJ42AZO4.js → chunk-RJNJUISR.js} +5 -2
- package/dist/{chunk-MQY74R7D.js → chunk-SHZBLLDQ.js} +21 -9
- package/dist/{chunk-JADCAMZY.js → chunk-TGDDFBYS.js} +45 -0
- package/dist/{chunk-US226AS4.js → chunk-UENIC5FJ.js} +14 -11
- package/dist/{chunk-WA7CHXUS.js → chunk-UL3Y5C4J.js} +2 -2
- package/dist/{chunk-WL2HNJZ6.js → chunk-VOMJRQOM.js} +3 -3
- package/dist/{chunk-MQBBWYRP.js → chunk-YF7K4UB3.js} +3352 -572
- package/dist/{chunk-OD2G5LFQ.js → chunk-ZYOXI4JL.js} +41 -2
- package/dist/config.cjs +2 -12
- package/dist/config.js +2 -2
- package/dist/converters.cjs +36 -11
- package/dist/converters.d.cts +7 -5
- package/dist/converters.d.ts +7 -5
- package/dist/converters.js +11 -13
- package/dist/core.cjs +239 -5
- package/dist/core.d.cts +71 -6
- package/dist/core.d.ts +71 -6
- package/dist/core.js +31 -6
- package/dist/{customTools-BzF0IISO.d.cts → customTools-Bfecd0mJ.d.cts} +1 -1
- package/dist/{customTools-BzF0IISO.d.ts → customTools-Bfecd0mJ.d.ts} +1 -1
- package/dist/{disconnectReason-IuADl6TH.d.ts → disconnectReason-Cctmg1SN.d.cts} +1 -1
- package/dist/{disconnectReason-IuADl6TH.d.cts → disconnectReason-Cctmg1SN.d.ts} +1 -1
- package/dist/{dtos-B8KU_q4d.d.ts → dtos-CjQsN1_h.d.cts} +5 -12
- package/dist/{dtos-B8KU_q4d.d.cts → dtos-CjQsN1_h.d.ts} +5 -12
- package/dist/index.cjs +5237 -1474
- package/dist/index.d.cts +61 -22
- package/dist/index.d.ts +61 -22
- package/dist/index.js +151 -43
- package/dist/linear.cjs +45 -7
- package/dist/linear.d.cts +4 -3
- package/dist/linear.d.ts +4 -3
- package/dist/linear.js +10 -10
- package/dist/mcp-claude.cjs +11 -6
- package/dist/mcp-claude.d.cts +4 -3
- package/dist/mcp-claude.d.ts +4 -3
- package/dist/mcp-claude.js +4 -5
- package/dist/mcp.cjs +13 -7
- package/dist/mcp.d.cts +6 -5
- package/dist/mcp.d.ts +6 -5
- package/dist/mcp.js +5 -6
- package/dist/{pagination-DqdkQArT.d.cts → pagination-BZDhB_nO.d.cts} +2 -2
- package/dist/{pagination-BgEx-HeL.d.ts → pagination-CPz0J_vQ.d.ts} +2 -2
- package/dist/{protocols-Bz1rxcUg.d.cts → protocols-CabgO52c.d.cts} +38 -3
- package/dist/{protocols-Bwwcql0h.d.ts → protocols-Dpci6uae.d.ts} +38 -3
- package/dist/rest.cjs +43 -1
- package/dist/rest.d.cts +6 -5
- package/dist/rest.d.ts +6 -5
- package/dist/rest.js +6 -5
- package/dist/runtime.cjs +2113 -597
- package/dist/runtime.d.cts +44 -25
- package/dist/runtime.d.ts +44 -25
- package/dist/runtime.js +11 -11
- package/dist/{schemas-BgJhlqqO.d.cts → schemas-BKnh4fKR.d.cts} +209 -24
- package/dist/{schemas-C4mK1WSs.d.ts → schemas-CDa3V_I5.d.ts} +209 -24
- package/dist/{sdk-BTciSLRQ.d.cts → sdk-CXNqzoY1.d.cts} +1 -1
- package/dist/{sdk-qKJtMma_.d.ts → sdk-Cin80BTC.d.ts} +1 -1
- package/dist/{simpleAdapter-BpT4XbZC.d.cts → simpleAdapter-D75rcz9n.d.cts} +3 -1
- package/dist/{simpleAdapter--wznuoOw.d.ts → simpleAdapter-eLvsAQNo.d.ts} +3 -1
- package/dist/testing.cjs +25 -7
- package/dist/testing.d.cts +5 -3
- package/dist/testing.d.ts +5 -3
- package/dist/testing.js +9 -6
- package/dist/{types-BivGO7I9.d.ts → types-42-HWeX8.d.cts} +10 -4
- package/dist/types-CKU1N0SK.d.ts +137 -0
- package/dist/{types-BgYFd_Yw.d.cts → types-CjxZekMH.d.ts} +10 -4
- package/dist/types-DtcOLALn.d.cts +137 -0
- package/package.json +25 -26
- package/dist/acp-server-CiUqN3G3.d.ts +0 -24
- package/dist/acp-server-Dlj7D563.d.cts +0 -24
- package/dist/chunk-AVVDPXP4.js +0 -39
- package/dist/chunk-F63TPOI3.js +0 -29
- package/dist/chunk-V5TSWS7P.js +0 -62
- package/dist/types-BNNtOXu3.d.cts +0 -446
- package/dist/types-DFUtpxah.d.ts +0 -446
package/dist/core.d.cts
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
|
-
export { S as SimpleAdapter } from './simpleAdapter-
|
|
2
|
-
|
|
3
|
-
export {
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
export { S as SimpleAdapter } from './simpleAdapter-D75rcz9n.cjs';
|
|
2
|
+
import { AgentFailure } from '@band-ai/band-sdk-core';
|
|
3
|
+
export { AgentFailure } from '@band-ai/band-sdk-core';
|
|
4
|
+
import { e as MessagingTools } from './protocols-CabgO52c.cjs';
|
|
5
|
+
export { A as AdapterToolsProtocol, b as AgentToolsProtocol, C as ContactTools, c as FAILURE_EVENT_TYPE, d as FAILURE_METADATA_KEY, F as FrameworkAdapter, a as FrameworkAdapterInput, H as HistoryConverter, M as MemoryTools, f as ParticipantTools, g as PeerLookupTools, h as Preprocessor, R as RoomParticipantTools, T as ToolExecutor, i as ToolSchemaProvider, t as toFailureEvent } from './protocols-CabgO52c.cjs';
|
|
6
|
+
export { W as WebSocketConflictPolicy, a as WebSocketDisconnectError, b as WebSocketDisconnectReason } from './disconnectReason-Cctmg1SN.cjs';
|
|
7
|
+
import { L as Logger } from './logger-CABQOnlR.cjs';
|
|
8
|
+
export { C as ConsoleLogger, N as NoopLogger } from './logger-CABQOnlR.cjs';
|
|
9
|
+
import { h as MentionInput, T as ToolOperationResult } from './dtos-CjQsN1_h.cjs';
|
|
6
10
|
|
|
7
11
|
declare class BandSdkError extends Error {
|
|
8
12
|
constructor(message: string, cause?: unknown);
|
|
@@ -19,5 +23,66 @@ declare class TransportError extends BandSdkError {
|
|
|
19
23
|
declare class RuntimeStateError extends BandSdkError {
|
|
20
24
|
constructor(message: string);
|
|
21
25
|
}
|
|
26
|
+
/**
|
|
27
|
+
* A failure confined to the turn that raised it. `Execution` keeps the room's
|
|
28
|
+
* loop — and every other room — running for these, where any other error
|
|
29
|
+
* stops the whole runtime.
|
|
30
|
+
*
|
|
31
|
+
* The turn still fails: `PlatformRuntime` has already marked the message
|
|
32
|
+
* failed by the time one of these reaches the queue. What it must not do is
|
|
33
|
+
* take the agent down with it, which is the right response to a broken
|
|
34
|
+
* adapter and the wrong one to a single reply that could not be posted.
|
|
35
|
+
*/
|
|
36
|
+
declare class RecoverableTurnError extends BandSdkError {
|
|
37
|
+
constructor(message: string, cause?: unknown);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Marks a rejection as coming from delivering an already-decided reply, not
|
|
42
|
+
* from the provider itself.
|
|
43
|
+
*
|
|
44
|
+
* `RecoverableTurnError`, because failing to post one reply is a failure of
|
|
45
|
+
* that turn and nothing more: the runtime marks the message failed and keeps
|
|
46
|
+
* every room serving. Reporting it as an `AgentFailure` would blame the
|
|
47
|
+
* provider for a Band-side fault; taking the runtime down would answer a
|
|
48
|
+
* transient post failure with an outage.
|
|
49
|
+
*/
|
|
50
|
+
declare class DeliveryFailedError extends RecoverableTurnError {
|
|
51
|
+
readonly cause: unknown;
|
|
52
|
+
constructor(cause: unknown);
|
|
53
|
+
}
|
|
54
|
+
declare function deliverReply(tools: MessagingTools, content: string, mentions?: MentionInput): Promise<ToolOperationResult>;
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* A provider failure that has already been reported to the room.
|
|
58
|
+
*
|
|
59
|
+
* Thrown, not returned, so the turn still *fails*: `PlatformRuntime` marks a
|
|
60
|
+
* message failed only when `onEvent` throws, and the platform re-syncs failed
|
|
61
|
+
* messages rather than processed ones. Returning here would flip a failed turn
|
|
62
|
+
* to `processed` and drop its retry along with it.
|
|
63
|
+
*
|
|
64
|
+
* `RecoverableTurnError` is what changes: the turn fails, the room and every
|
|
65
|
+
* other room keep running. Reporting a provider error must not take the agent
|
|
66
|
+
* down, which is what an ordinary throw from here used to do.
|
|
67
|
+
*/
|
|
68
|
+
declare class ProviderTurnFailedError extends RecoverableTurnError {
|
|
69
|
+
readonly failure: AgentFailure;
|
|
70
|
+
constructor(failure: AgentFailure);
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Reports a terminal provider failure, then fails the turn that hit it.
|
|
74
|
+
*/
|
|
75
|
+
declare function reportTurnFailure(tools: MessagingTools, failure: AgentFailure, logger?: Logger, logContext?: Record<string, unknown>): Promise<never>;
|
|
76
|
+
/**
|
|
77
|
+
* Builds an `AgentFailure` whose `detail` cannot make the constructor throw.
|
|
78
|
+
*
|
|
79
|
+
* `detail` carries raw provider payloads — an HTTP body, an RPC error object —
|
|
80
|
+
* and the constructor rejects anything it cannot serialize: a `Buffer`, a
|
|
81
|
+
* function-valued property, a cycle. It is built on failure paths, often as an
|
|
82
|
+
* argument outside the enclosing guard, where a throw would replace the very
|
|
83
|
+
* failure being reported. An unusable detail is dropped instead; the provider,
|
|
84
|
+
* message and code are typed as strings, so only `detail` can be exotic.
|
|
85
|
+
*/
|
|
86
|
+
declare function agentFailure(provider: string, message: string, code?: string, detail?: unknown): AgentFailure;
|
|
22
87
|
|
|
23
|
-
export { BandSdkError, RuntimeStateError, TransportError, UnsupportedFeatureError, ValidationError };
|
|
88
|
+
export { BandSdkError, DeliveryFailedError, Logger, MessagingTools, ProviderTurnFailedError, RecoverableTurnError, RuntimeStateError, TransportError, UnsupportedFeatureError, ValidationError, agentFailure, deliverReply, reportTurnFailure };
|
package/dist/core.d.ts
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
|
-
export { S as SimpleAdapter } from './simpleAdapter
|
|
2
|
-
|
|
3
|
-
export {
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
export { S as SimpleAdapter } from './simpleAdapter-eLvsAQNo.js';
|
|
2
|
+
import { AgentFailure } from '@band-ai/band-sdk-core';
|
|
3
|
+
export { AgentFailure } from '@band-ai/band-sdk-core';
|
|
4
|
+
import { e as MessagingTools } from './protocols-Dpci6uae.js';
|
|
5
|
+
export { A as AdapterToolsProtocol, b as AgentToolsProtocol, C as ContactTools, c as FAILURE_EVENT_TYPE, d as FAILURE_METADATA_KEY, F as FrameworkAdapter, a as FrameworkAdapterInput, H as HistoryConverter, M as MemoryTools, f as ParticipantTools, g as PeerLookupTools, h as Preprocessor, R as RoomParticipantTools, T as ToolExecutor, i as ToolSchemaProvider, t as toFailureEvent } from './protocols-Dpci6uae.js';
|
|
6
|
+
export { W as WebSocketConflictPolicy, a as WebSocketDisconnectError, b as WebSocketDisconnectReason } from './disconnectReason-Cctmg1SN.js';
|
|
7
|
+
import { L as Logger } from './logger-CABQOnlR.js';
|
|
8
|
+
export { C as ConsoleLogger, N as NoopLogger } from './logger-CABQOnlR.js';
|
|
9
|
+
import { h as MentionInput, T as ToolOperationResult } from './dtos-CjQsN1_h.js';
|
|
6
10
|
|
|
7
11
|
declare class BandSdkError extends Error {
|
|
8
12
|
constructor(message: string, cause?: unknown);
|
|
@@ -19,5 +23,66 @@ declare class TransportError extends BandSdkError {
|
|
|
19
23
|
declare class RuntimeStateError extends BandSdkError {
|
|
20
24
|
constructor(message: string);
|
|
21
25
|
}
|
|
26
|
+
/**
|
|
27
|
+
* A failure confined to the turn that raised it. `Execution` keeps the room's
|
|
28
|
+
* loop — and every other room — running for these, where any other error
|
|
29
|
+
* stops the whole runtime.
|
|
30
|
+
*
|
|
31
|
+
* The turn still fails: `PlatformRuntime` has already marked the message
|
|
32
|
+
* failed by the time one of these reaches the queue. What it must not do is
|
|
33
|
+
* take the agent down with it, which is the right response to a broken
|
|
34
|
+
* adapter and the wrong one to a single reply that could not be posted.
|
|
35
|
+
*/
|
|
36
|
+
declare class RecoverableTurnError extends BandSdkError {
|
|
37
|
+
constructor(message: string, cause?: unknown);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Marks a rejection as coming from delivering an already-decided reply, not
|
|
42
|
+
* from the provider itself.
|
|
43
|
+
*
|
|
44
|
+
* `RecoverableTurnError`, because failing to post one reply is a failure of
|
|
45
|
+
* that turn and nothing more: the runtime marks the message failed and keeps
|
|
46
|
+
* every room serving. Reporting it as an `AgentFailure` would blame the
|
|
47
|
+
* provider for a Band-side fault; taking the runtime down would answer a
|
|
48
|
+
* transient post failure with an outage.
|
|
49
|
+
*/
|
|
50
|
+
declare class DeliveryFailedError extends RecoverableTurnError {
|
|
51
|
+
readonly cause: unknown;
|
|
52
|
+
constructor(cause: unknown);
|
|
53
|
+
}
|
|
54
|
+
declare function deliverReply(tools: MessagingTools, content: string, mentions?: MentionInput): Promise<ToolOperationResult>;
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* A provider failure that has already been reported to the room.
|
|
58
|
+
*
|
|
59
|
+
* Thrown, not returned, so the turn still *fails*: `PlatformRuntime` marks a
|
|
60
|
+
* message failed only when `onEvent` throws, and the platform re-syncs failed
|
|
61
|
+
* messages rather than processed ones. Returning here would flip a failed turn
|
|
62
|
+
* to `processed` and drop its retry along with it.
|
|
63
|
+
*
|
|
64
|
+
* `RecoverableTurnError` is what changes: the turn fails, the room and every
|
|
65
|
+
* other room keep running. Reporting a provider error must not take the agent
|
|
66
|
+
* down, which is what an ordinary throw from here used to do.
|
|
67
|
+
*/
|
|
68
|
+
declare class ProviderTurnFailedError extends RecoverableTurnError {
|
|
69
|
+
readonly failure: AgentFailure;
|
|
70
|
+
constructor(failure: AgentFailure);
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Reports a terminal provider failure, then fails the turn that hit it.
|
|
74
|
+
*/
|
|
75
|
+
declare function reportTurnFailure(tools: MessagingTools, failure: AgentFailure, logger?: Logger, logContext?: Record<string, unknown>): Promise<never>;
|
|
76
|
+
/**
|
|
77
|
+
* Builds an `AgentFailure` whose `detail` cannot make the constructor throw.
|
|
78
|
+
*
|
|
79
|
+
* `detail` carries raw provider payloads — an HTTP body, an RPC error object —
|
|
80
|
+
* and the constructor rejects anything it cannot serialize: a `Buffer`, a
|
|
81
|
+
* function-valued property, a cycle. It is built on failure paths, often as an
|
|
82
|
+
* argument outside the enclosing guard, where a throw would replace the very
|
|
83
|
+
* failure being reported. An unusable detail is dropped instead; the provider,
|
|
84
|
+
* message and code are typed as strings, so only `detail` can be exotic.
|
|
85
|
+
*/
|
|
86
|
+
declare function agentFailure(provider: string, message: string, code?: string, detail?: unknown): AgentFailure;
|
|
22
87
|
|
|
23
|
-
export { BandSdkError, RuntimeStateError, TransportError, UnsupportedFeatureError, ValidationError };
|
|
88
|
+
export { BandSdkError, DeliveryFailedError, Logger, MessagingTools, ProviderTurnFailedError, RecoverableTurnError, RuntimeStateError, TransportError, UnsupportedFeatureError, ValidationError, agentFailure, deliverReply, reportTurnFailure };
|
package/dist/core.js
CHANGED
|
@@ -1,28 +1,53 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./chunk-
|
|
2
|
+
AgentFailure
|
|
3
|
+
} from "./chunk-I34SXMTJ.js";
|
|
4
|
+
import {
|
|
5
|
+
DeliveryFailedError,
|
|
6
|
+
ProviderTurnFailedError,
|
|
7
|
+
SimpleAdapter,
|
|
8
|
+
agentFailure,
|
|
9
|
+
deliverReply,
|
|
10
|
+
reportTurnFailure
|
|
11
|
+
} from "./chunk-OGOXY43L.js";
|
|
4
12
|
import {
|
|
5
13
|
WebSocketDisconnectError
|
|
6
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-UENIC5FJ.js";
|
|
15
|
+
import "./chunk-6BE2EG5P.js";
|
|
16
|
+
import {
|
|
17
|
+
FAILURE_EVENT_TYPE,
|
|
18
|
+
FAILURE_METADATA_KEY,
|
|
19
|
+
toFailureEvent
|
|
20
|
+
} from "./chunk-TGDDFBYS.js";
|
|
7
21
|
import {
|
|
8
22
|
ConsoleLogger,
|
|
9
23
|
NoopLogger
|
|
10
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-ZYOXI4JL.js";
|
|
11
25
|
import {
|
|
12
26
|
BandSdkError,
|
|
27
|
+
RecoverableTurnError,
|
|
13
28
|
RuntimeStateError,
|
|
14
29
|
TransportError,
|
|
15
30
|
UnsupportedFeatureError,
|
|
16
31
|
ValidationError
|
|
17
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-4OVNFDD7.js";
|
|
18
33
|
export {
|
|
34
|
+
AgentFailure,
|
|
19
35
|
BandSdkError,
|
|
20
36
|
ConsoleLogger,
|
|
37
|
+
DeliveryFailedError,
|
|
38
|
+
FAILURE_EVENT_TYPE,
|
|
39
|
+
FAILURE_METADATA_KEY,
|
|
21
40
|
NoopLogger,
|
|
41
|
+
ProviderTurnFailedError,
|
|
42
|
+
RecoverableTurnError,
|
|
22
43
|
RuntimeStateError,
|
|
23
44
|
SimpleAdapter,
|
|
24
45
|
TransportError,
|
|
25
46
|
UnsupportedFeatureError,
|
|
26
47
|
ValidationError,
|
|
27
|
-
WebSocketDisconnectError
|
|
48
|
+
WebSocketDisconnectError,
|
|
49
|
+
agentFailure,
|
|
50
|
+
deliverReply,
|
|
51
|
+
reportTurnFailure,
|
|
52
|
+
toFailureEvent
|
|
28
53
|
};
|
|
@@ -1,18 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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];
|
|
1
|
+
import { MemorySystem, MemoryType } from '@band-ai/band-sdk-core';
|
|
2
|
+
|
|
10
3
|
/** Logical subject category (user/agent/tool/guideline); not scope `subject` or `subject_id`. */
|
|
11
4
|
declare const MEMORY_SEGMENTS: readonly ["user", "agent", "tool", "guideline"];
|
|
12
5
|
/** Visibility scope for `band_store_memory`. */
|
|
13
|
-
declare const MEMORY_STORE_SCOPES: readonly ["subject", "organization"];
|
|
6
|
+
declare const MEMORY_STORE_SCOPES: readonly ["agent", "subject", "organization"];
|
|
14
7
|
/** Scope filter for `band_list_memories`. */
|
|
15
|
-
declare const MEMORY_LIST_SCOPES: readonly ["subject", "organization", "all"];
|
|
8
|
+
declare const MEMORY_LIST_SCOPES: readonly ["agent", "subject", "organization", "all"];
|
|
16
9
|
/** Lifecycle state; list filter and set by supersede/archive tools. */
|
|
17
10
|
declare const MEMORY_STATUSES: readonly ["active", "superseded", "archived", "all"];
|
|
18
11
|
/** Logical subject category (user/agent/tool/guideline); not scope `subject` or `subject_id`. */
|
|
@@ -180,4 +173,4 @@ interface ToolModelSchema {
|
|
|
180
173
|
[key: string]: unknown;
|
|
181
174
|
}
|
|
182
175
|
|
|
183
|
-
export type { AddContactArgs as A, ContactRecord as C, ListContactsArgs as L, MetadataMap as M,
|
|
176
|
+
export type { AddContactArgs as A, ContactRecord as C, ListContactsArgs as L, MetadataMap as M, PeerRecord as P, RemoveContactArgs as R, StoreMemoryArgs as S, ToolOperationResult as T, MentionReference as a, ListContactRequestsArgs as b, ContactRequestsResult as c, RespondContactRequestArgs as d, ListMemoriesArgs as e, MemoryRecord as f, ParticipantRecord as g, MentionInput as h, PaginatedList as i, ToolSchemaRecord as j, ContactRequestAction as k, PaginationMetadataLike as l, ToolModelMessage as m, ToolModelSchema as n };
|
|
@@ -1,18 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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];
|
|
1
|
+
import { MemorySystem, MemoryType } from '@band-ai/band-sdk-core';
|
|
2
|
+
|
|
10
3
|
/** Logical subject category (user/agent/tool/guideline); not scope `subject` or `subject_id`. */
|
|
11
4
|
declare const MEMORY_SEGMENTS: readonly ["user", "agent", "tool", "guideline"];
|
|
12
5
|
/** Visibility scope for `band_store_memory`. */
|
|
13
|
-
declare const MEMORY_STORE_SCOPES: readonly ["subject", "organization"];
|
|
6
|
+
declare const MEMORY_STORE_SCOPES: readonly ["agent", "subject", "organization"];
|
|
14
7
|
/** Scope filter for `band_list_memories`. */
|
|
15
|
-
declare const MEMORY_LIST_SCOPES: readonly ["subject", "organization", "all"];
|
|
8
|
+
declare const MEMORY_LIST_SCOPES: readonly ["agent", "subject", "organization", "all"];
|
|
16
9
|
/** Lifecycle state; list filter and set by supersede/archive tools. */
|
|
17
10
|
declare const MEMORY_STATUSES: readonly ["active", "superseded", "archived", "all"];
|
|
18
11
|
/** Logical subject category (user/agent/tool/guideline); not scope `subject` or `subject_id`. */
|
|
@@ -180,4 +173,4 @@ interface ToolModelSchema {
|
|
|
180
173
|
[key: string]: unknown;
|
|
181
174
|
}
|
|
182
175
|
|
|
183
|
-
export type { AddContactArgs as A, ContactRecord as C, ListContactsArgs as L, MetadataMap as M,
|
|
176
|
+
export type { AddContactArgs as A, ContactRecord as C, ListContactsArgs as L, MetadataMap as M, PeerRecord as P, RemoveContactArgs as R, StoreMemoryArgs as S, ToolOperationResult as T, MentionReference as a, ListContactRequestsArgs as b, ContactRequestsResult as c, RespondContactRequestArgs as d, ListMemoriesArgs as e, MemoryRecord as f, ParticipantRecord as g, MentionInput as h, PaginatedList as i, ToolSchemaRecord as j, ContactRequestAction as k, PaginationMetadataLike as l, ToolModelMessage as m, ToolModelSchema as n };
|