@axiom-lattice/protocols 4.1.4 → 4.2.1
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/.turbo/turbo-build.log +10 -10
- package/CHANGELOG.md +22 -0
- package/dist/index.d.mts +273 -25
- package/dist/index.d.ts +273 -25
- package/dist/index.js +20 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +17 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/A2AApiKeyStoreProtocol.ts +18 -0
- package/src/A2AProtocol.ts +3 -11
- package/src/McpLatticeProtocol.ts +7 -1
- package/src/McpServerConfigStoreProtocol.ts +2 -1
- package/src/OpenProtocol.ts +125 -0
- package/src/PluginProtocol.ts +19 -0
- package/src/ProjectRoomMessageStoreProtocol.ts +12 -1
- package/src/ProjectRoomReadStateProtocol.ts +20 -0
- package/src/ProjectRoomRealtimeProtocol.ts +28 -3
- package/src/SandboxPluginProtocol.ts +62 -0
- package/src/SandboxResourceProtocol.ts +5 -0
- package/src/__tests__/ProjectRoomReadStateProtocol.test.ts +16 -0
- package/src/__tests__/ProjectRoomStores.test.ts +4 -0
- package/src/__tests__/a2a-types.test.ts +0 -6
- package/src/__tests__/open-grants.test.ts +29 -0
- package/src/index.ts +4 -0
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @axiom-lattice/protocols@4.1
|
|
2
|
+
> @axiom-lattice/protocols@4.2.1 build /home/runner/work/agentic/agentic/packages/protocols
|
|
3
3
|
> tsup src/index.ts --format cjs,esm --dts --sourcemap
|
|
4
4
|
|
|
5
5
|
[34mCLI[39m Building entry: src/index.ts
|
|
@@ -8,13 +8,13 @@
|
|
|
8
8
|
[34mCLI[39m Target: es2020
|
|
9
9
|
[34mCJS[39m Build start
|
|
10
10
|
[34mESM[39m Build start
|
|
11
|
-
[32mCJS[39m [1mdist/index.js [22m[
|
|
12
|
-
[32mCJS[39m [1mdist/index.js.map [22m[
|
|
13
|
-
[32mCJS[39m ⚡️ Build success in
|
|
14
|
-
[32mESM[39m [1mdist/index.mjs [22m[
|
|
15
|
-
[32mESM[39m [1mdist/index.mjs.map [22m[
|
|
16
|
-
[32mESM[39m ⚡️ Build success in
|
|
11
|
+
[32mCJS[39m [1mdist/index.js [22m[32m41.52 KB[39m
|
|
12
|
+
[32mCJS[39m [1mdist/index.js.map [22m[32m136.65 KB[39m
|
|
13
|
+
[32mCJS[39m ⚡️ Build success in 349ms
|
|
14
|
+
[32mESM[39m [1mdist/index.mjs [22m[32m37.37 KB[39m
|
|
15
|
+
[32mESM[39m [1mdist/index.mjs.map [22m[32m133.14 KB[39m
|
|
16
|
+
[32mESM[39m ⚡️ Build success in 349ms
|
|
17
17
|
[34mDTS[39m Build start
|
|
18
|
-
[32mDTS[39m ⚡️ Build success in
|
|
19
|
-
[32mDTS[39m [1mdist/index.d.ts [22m[
|
|
20
|
-
[32mDTS[39m [1mdist/index.d.mts [22m[
|
|
18
|
+
[32mDTS[39m ⚡️ Build success in 14821ms
|
|
19
|
+
[32mDTS[39m [1mdist/index.d.ts [22m[32m210.87 KB[39m
|
|
20
|
+
[32mDTS[39m [1mdist/index.d.mts [22m[32m210.87 KB[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# @axiom-lattice/protocols
|
|
2
2
|
|
|
3
|
+
## 4.2.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 20ec3c1: add webapp, mcps
|
|
8
|
+
|
|
9
|
+
## 4.2.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- a2a0615: feat: MCP server connection authentication — `McpServerConfig.headers` (http/sse, encrypted at rest) plumbed through stores, gateway connections, and the config form; env-variable editor for stdio; SSE deprecation hint in the form.
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- af3dff0: fix web app
|
|
18
|
+
|
|
19
|
+
## 4.1.5
|
|
20
|
+
|
|
21
|
+
### Patch Changes
|
|
22
|
+
|
|
23
|
+
- 15d2469: fix issue
|
|
24
|
+
|
|
3
25
|
## 4.1.4
|
|
4
26
|
|
|
5
27
|
### Patch Changes
|
package/dist/index.d.mts
CHANGED
|
@@ -1771,8 +1771,14 @@ interface McpServerConfig {
|
|
|
1771
1771
|
args?: string[];
|
|
1772
1772
|
/** URL for HTTP/SSE transport */
|
|
1773
1773
|
url?: string;
|
|
1774
|
-
/** Environment variables */
|
|
1774
|
+
/** Environment variables (stdio transport; credentials passed to the server process) */
|
|
1775
1775
|
env?: Record<string, string>;
|
|
1776
|
+
/**
|
|
1777
|
+
* Custom HTTP headers sent with every request (streamable_http / sse only).
|
|
1778
|
+
* Commonly used for authentication, e.g. `{ Authorization: "Bearer <token>" }`.
|
|
1779
|
+
* Ignored for stdio transport. Values are encrypted at rest by config stores.
|
|
1780
|
+
*/
|
|
1781
|
+
headers?: Record<string, string>;
|
|
1776
1782
|
/** Connection timeout in milliseconds */
|
|
1777
1783
|
timeout?: number;
|
|
1778
1784
|
/** Retry attempts on connection failure */
|
|
@@ -2865,7 +2871,8 @@ interface McpServerConfigEntry {
|
|
|
2865
2871
|
*/
|
|
2866
2872
|
selectedTools: string[];
|
|
2867
2873
|
/**
|
|
2868
|
-
* Whether
|
|
2874
|
+
* Whether secret values (env vars and headers) are encrypted at rest.
|
|
2875
|
+
* Field name kept for backward compatibility; it covers config.headers too.
|
|
2869
2876
|
*/
|
|
2870
2877
|
isEnvEncrypted: boolean;
|
|
2871
2878
|
/**
|
|
@@ -4603,30 +4610,120 @@ interface ChannelAdapter<TConfig = unknown> {
|
|
|
4603
4610
|
}
|
|
4604
4611
|
|
|
4605
4612
|
/**
|
|
4606
|
-
*
|
|
4607
|
-
*
|
|
4613
|
+
* OpenProtocol — contracts for the Open API surface (unified external
|
|
4614
|
+
* capability invocation). See docs/superpowers/specs/2026-09-07-open-platform-api-design.md.
|
|
4615
|
+
*/
|
|
4616
|
+
/** Authorization grant: default-deny; a grant covers one capability domain. */
|
|
4617
|
+
interface OpenGrant {
|
|
4618
|
+
domain: string;
|
|
4619
|
+
/**
|
|
4620
|
+
* Action names (kb: ["search"]) or instance ids (agent: [assistantId]).
|
|
4621
|
+
* Absent/empty = every action in the domain.
|
|
4622
|
+
*/
|
|
4623
|
+
items?: string[];
|
|
4624
|
+
selector?: {
|
|
4625
|
+
sandbox?: "self";
|
|
4626
|
+
};
|
|
4627
|
+
}
|
|
4628
|
+
/** Execution context synthesized from a verified credential — never from the caller. */
|
|
4629
|
+
interface OpenExecutionContext {
|
|
4630
|
+
tenantId: string;
|
|
4631
|
+
projectId: string;
|
|
4632
|
+
/** Addressing only, not an authorization dimension (see design §6.2). */
|
|
4633
|
+
workspaceId?: string;
|
|
4634
|
+
/** Synthesized runConfig (mirrors the Agent path, incl. _resolvedConnections). */
|
|
4635
|
+
runConfig: Record<string, unknown>;
|
|
4636
|
+
}
|
|
4637
|
+
interface OpenExecutionResult {
|
|
4638
|
+
content: Array<{
|
|
4639
|
+
type: "text";
|
|
4640
|
+
text: string;
|
|
4641
|
+
}>;
|
|
4642
|
+
isError?: boolean;
|
|
4643
|
+
}
|
|
4644
|
+
/**
|
|
4645
|
+
* Effective grants for the Open door, derived from a key record.
|
|
4646
|
+
*
|
|
4647
|
+
* Backward compatibility with pre-grants A2A keys:
|
|
4648
|
+
* - explicit grants win;
|
|
4649
|
+
* - otherwise assistantIds become an agent-domain grant;
|
|
4650
|
+
* - legacy "empty assistantIds = all exposed agents" maps to a bare agent grant.
|
|
4651
|
+
*
|
|
4652
|
+
* The A2A door keeps reading assistantIds directly and never consults this —
|
|
4653
|
+
* existing A2A behavior is unchanged by construction.
|
|
4608
4654
|
*/
|
|
4655
|
+
declare function effectiveGrants(record: {
|
|
4656
|
+
grants?: OpenGrant[];
|
|
4657
|
+
assistantIds?: string[];
|
|
4658
|
+
}): OpenGrant[];
|
|
4659
|
+
/** Where an exposed capability comes from. */
|
|
4660
|
+
type OpenCapabilitySource = "builtin" | "plugin" | "agent";
|
|
4661
|
+
/** A selectable grant item: an action name or an instance id. */
|
|
4662
|
+
interface OpenCatalogItem {
|
|
4663
|
+
/** Grant item value: action name (kb → "search") or instance id (agent → assistantId). */
|
|
4664
|
+
id: string;
|
|
4665
|
+
/** Full MCP tool name when this item is exclusively exposed (informational). */
|
|
4666
|
+
toolName: string;
|
|
4667
|
+
label: string;
|
|
4668
|
+
description?: string;
|
|
4669
|
+
annotations?: {
|
|
4670
|
+
readOnlyHint: boolean;
|
|
4671
|
+
destructiveHint: boolean;
|
|
4672
|
+
};
|
|
4673
|
+
}
|
|
4674
|
+
interface OpenCatalogDomain {
|
|
4675
|
+
domain: string;
|
|
4676
|
+
label: string;
|
|
4677
|
+
source: OpenCapabilitySource;
|
|
4678
|
+
/** Display-only scope hint (defaults to tenant-wide). */
|
|
4679
|
+
scopeKind?: "tenant" | "workspace" | "project";
|
|
4680
|
+
/** How grant items are chosen: per-action or per-instance. */
|
|
4681
|
+
itemKind: "action" | "instance";
|
|
4682
|
+
items: OpenCatalogItem[];
|
|
4683
|
+
}
|
|
4684
|
+
/** Full grantable capability catalog for a tenant (drives the key picker). */
|
|
4685
|
+
interface OpenCatalog {
|
|
4686
|
+
domains: OpenCatalogDomain[];
|
|
4687
|
+
}
|
|
4688
|
+
type OpenCredentialKind = "api_key" | "sandbox_token" | "browser_token";
|
|
4689
|
+
/** Append-only audit input; the writer is responsible for redacting args. */
|
|
4690
|
+
interface OpenAuditAppendInput {
|
|
4691
|
+
tenantId: string;
|
|
4692
|
+
credentialId: string;
|
|
4693
|
+
credentialKind: OpenCredentialKind;
|
|
4694
|
+
projectId: string;
|
|
4695
|
+
domain: string;
|
|
4696
|
+
action: string;
|
|
4697
|
+
args: unknown;
|
|
4698
|
+
status: "ok" | "error";
|
|
4699
|
+
errorCode?: string;
|
|
4700
|
+
durationMs: number;
|
|
4701
|
+
}
|
|
4702
|
+
interface OpenAuditRecord extends OpenAuditAppendInput {
|
|
4703
|
+
id: string;
|
|
4704
|
+
createdAt: Date;
|
|
4705
|
+
}
|
|
4706
|
+
interface OpenAuditQuery {
|
|
4707
|
+
tenantId: string;
|
|
4708
|
+
credentialId?: string;
|
|
4709
|
+
domain?: string;
|
|
4710
|
+
status?: "ok" | "error";
|
|
4711
|
+
/** ISO timestamps; inclusive from / exclusive to. */
|
|
4712
|
+
from?: string;
|
|
4713
|
+
to?: string;
|
|
4714
|
+
limit?: number;
|
|
4715
|
+
offset?: number;
|
|
4716
|
+
}
|
|
4717
|
+
interface OpenAuditStore {
|
|
4718
|
+
append(record: OpenAuditAppendInput): Promise<void>;
|
|
4719
|
+
/** Tenant-scoped, newest-first. */
|
|
4720
|
+
query(params: OpenAuditQuery): Promise<OpenAuditRecord[]>;
|
|
4721
|
+
}
|
|
4609
4722
|
|
|
4610
4723
|
/**
|
|
4611
4724
|
* Per-agent A2A exposure configuration — controls whether an agent is
|
|
4612
4725
|
* reachable over A2A and which skills are advertised on its AgentCard.
|
|
4613
4726
|
*/
|
|
4614
|
-
interface A2AExposure {
|
|
4615
|
-
/** Whether this agent is exposed over the A2A protocol */
|
|
4616
|
-
enabled: boolean;
|
|
4617
|
-
/** Skills advertised on the AgentCard; defaults to a single generic skill when omitted */
|
|
4618
|
-
skills?: Array<{
|
|
4619
|
-
id: string;
|
|
4620
|
-
name: string;
|
|
4621
|
-
description: string;
|
|
4622
|
-
tags?: string[];
|
|
4623
|
-
examples?: string[];
|
|
4624
|
-
}>;
|
|
4625
|
-
/** Supported input modes (MIME types); defaults to text modes when omitted */
|
|
4626
|
-
inputModes?: string[];
|
|
4627
|
-
/** Supported output modes (MIME types); defaults to text modes when omitted */
|
|
4628
|
-
outputModes?: string[];
|
|
4629
|
-
}
|
|
4630
4727
|
/**
|
|
4631
4728
|
* In-memory API key entry used for request authentication.
|
|
4632
4729
|
* Empty/undefined assistantIds means all exposed agents in the tenant.
|
|
@@ -4636,6 +4733,8 @@ interface A2AApiKeyEntry {
|
|
|
4636
4733
|
tenantId: string;
|
|
4637
4734
|
projectId: string;
|
|
4638
4735
|
assistantIds?: string[];
|
|
4736
|
+
/** Open-door grants; the agent whitelist derives from the agent-domain items. */
|
|
4737
|
+
grants?: OpenGrant[];
|
|
4639
4738
|
}
|
|
4640
4739
|
/**
|
|
4641
4740
|
* Authentication context attached to an incoming A2A request after key validation.
|
|
@@ -4664,6 +4763,11 @@ interface A2AApiKeyRecord {
|
|
|
4664
4763
|
projectId: string;
|
|
4665
4764
|
/** Assistant whitelist; empty/undefined = all exposed agents in the tenant */
|
|
4666
4765
|
assistantIds?: string[];
|
|
4766
|
+
/**
|
|
4767
|
+
* Open-door authorization grants (A2A door keeps reading assistantIds).
|
|
4768
|
+
* Absent/empty → derived via effectiveGrants() legacy semantics.
|
|
4769
|
+
*/
|
|
4770
|
+
grants?: OpenGrant[];
|
|
4667
4771
|
label?: string;
|
|
4668
4772
|
enabled: boolean;
|
|
4669
4773
|
createdAt: Date;
|
|
@@ -4675,7 +4779,15 @@ interface CreateA2AApiKeyInput {
|
|
|
4675
4779
|
projectId: string;
|
|
4676
4780
|
/** Assistant whitelist; empty/undefined = all exposed agents in the tenant */
|
|
4677
4781
|
assistantIds?: string[];
|
|
4782
|
+
/** Open-door grants (see OpenProtocol); absent → legacy derivation */
|
|
4783
|
+
grants?: OpenGrant[];
|
|
4784
|
+
label?: string;
|
|
4785
|
+
}
|
|
4786
|
+
interface UpdateA2AApiKeyInput {
|
|
4678
4787
|
label?: string;
|
|
4788
|
+
projectId?: string;
|
|
4789
|
+
assistantIds?: string[];
|
|
4790
|
+
grants?: OpenGrant[];
|
|
4679
4791
|
}
|
|
4680
4792
|
interface A2AApiKeyStore {
|
|
4681
4793
|
/** Look up a key record by its bearer token value (for auth). */
|
|
@@ -4698,6 +4810,8 @@ interface A2AApiKeyStore {
|
|
|
4698
4810
|
rotate(id: string): Promise<A2AApiKeyRecord>;
|
|
4699
4811
|
/** Delete a key permanently. */
|
|
4700
4812
|
delete(id: string): Promise<void>;
|
|
4813
|
+
/** Update mutable fields of an existing key (label, grants, projectId, assistantIds). */
|
|
4814
|
+
update(id: string, input: UpdateA2AApiKeyInput): Promise<A2AApiKeyRecord>;
|
|
4701
4815
|
/** Bulk load all active keys into a lookup Map (used at startup). */
|
|
4702
4816
|
loadIntoMap(): Promise<Map<string, A2AApiKeyEntry>>;
|
|
4703
4817
|
}
|
|
@@ -5365,7 +5479,10 @@ interface ProjectRoomMessageStore {
|
|
|
5365
5479
|
createIdempotent(input: Omit<ProjectRoomMessage, "createdAt"> & {
|
|
5366
5480
|
idempotencyKey: string;
|
|
5367
5481
|
}): Promise<ProjectRoomMessage>;
|
|
5368
|
-
/**
|
|
5482
|
+
/**
|
|
5483
|
+
* Lists messages strictly before an optional cursor, up to the requested limit.
|
|
5484
|
+
* Individually invalid persisted rows are skipped (and logged) instead of failing the whole read.
|
|
5485
|
+
*/
|
|
5369
5486
|
list(input: {
|
|
5370
5487
|
tenantId: string;
|
|
5371
5488
|
roomId: string;
|
|
@@ -5374,6 +5491,38 @@ interface ProjectRoomMessageStore {
|
|
|
5374
5491
|
}): Promise<ProjectRoomMessage[]>;
|
|
5375
5492
|
/** Finds a room message by identifier within a tenant. */
|
|
5376
5493
|
findById(tenantId: string, id: string): Promise<ProjectRoomMessage | null>;
|
|
5494
|
+
/** Counts messages created strictly after a horizon, optionally excluding one human author. */
|
|
5495
|
+
countAfter(input: {
|
|
5496
|
+
tenantId: string;
|
|
5497
|
+
roomId: string;
|
|
5498
|
+
after: Date;
|
|
5499
|
+
excludeAuthorUserId?: string;
|
|
5500
|
+
}): Promise<number>;
|
|
5501
|
+
}
|
|
5502
|
+
|
|
5503
|
+
/** A user's per-room read marker used to compute unread counts. */
|
|
5504
|
+
interface ProjectRoomReadState {
|
|
5505
|
+
tenantId: string;
|
|
5506
|
+
roomId: string;
|
|
5507
|
+
userId: string;
|
|
5508
|
+
/** Read horizon: messages created strictly after this instant are unread. */
|
|
5509
|
+
lastReadAt: Date;
|
|
5510
|
+
updatedAt: Date;
|
|
5511
|
+
}
|
|
5512
|
+
/** Persistence operations for per-user, per-room read markers. */
|
|
5513
|
+
interface ProjectRoomReadStateStore {
|
|
5514
|
+
/** Returns the user's read marker for a room, or null when never reported. */
|
|
5515
|
+
get(tenantId: string, roomId: string, userId: string): Promise<ProjectRoomReadState | null>;
|
|
5516
|
+
/**
|
|
5517
|
+
* Upserts the read marker monotonically: an earlier lastReadAt never moves
|
|
5518
|
+
* the marker backwards. Returns the stored state after the write.
|
|
5519
|
+
*/
|
|
5520
|
+
markRead(input: {
|
|
5521
|
+
tenantId: string;
|
|
5522
|
+
roomId: string;
|
|
5523
|
+
userId: string;
|
|
5524
|
+
lastReadAt: Date;
|
|
5525
|
+
}): Promise<ProjectRoomReadState>;
|
|
5377
5526
|
}
|
|
5378
5527
|
|
|
5379
5528
|
/** A safely extracted value from an own enumerable data-property descriptor. */
|
|
@@ -5478,10 +5627,22 @@ type ProjectRoomTaskChangedEvent = ProjectRoomEventOf<"task.changed", {
|
|
|
5478
5627
|
ownerMembershipId: string;
|
|
5479
5628
|
updatedAt: string;
|
|
5480
5629
|
}>;
|
|
5630
|
+
/** A read-marker update broadcast on the acting user's channel. */
|
|
5631
|
+
type ProjectRoomReadChangedEvent = ProjectRoomEventOf<"read.changed", {
|
|
5632
|
+
projectId: string;
|
|
5633
|
+
roomId: string;
|
|
5634
|
+
lastReadAt: string;
|
|
5635
|
+
}>;
|
|
5636
|
+
/** A membership mutation that may change a user's room subscription set. */
|
|
5637
|
+
type ProjectRoomMembershipAffectedEvent = ProjectRoomEventOf<"membership.affected", {
|
|
5638
|
+
change: "added" | "removed" | "role_changed";
|
|
5639
|
+
projectId: string;
|
|
5640
|
+
roomId: string;
|
|
5641
|
+
}>;
|
|
5481
5642
|
/** All identified business events retained by the realtime broker. */
|
|
5482
|
-
type ProjectRoomBusinessEvent = ProjectRoomMessageCreatedEvent | ProjectRoomRosterChangedEvent | ProjectRoomMembershipChangedEvent | ProjectRoomTaskChangedEvent;
|
|
5643
|
+
type ProjectRoomBusinessEvent = ProjectRoomMessageCreatedEvent | ProjectRoomRosterChangedEvent | ProjectRoomMembershipChangedEvent | ProjectRoomTaskChangedEvent | ProjectRoomReadChangedEvent | ProjectRoomMembershipAffectedEvent;
|
|
5483
5644
|
/** A business event before the broker assigns its process-local ID. */
|
|
5484
|
-
type ProjectRoomBusinessEventDraft = Omit<ProjectRoomMessageCreatedEvent, "id"> | Omit<ProjectRoomRosterChangedEvent, "id"> | Omit<ProjectRoomMembershipChangedEvent, "id"> | Omit<ProjectRoomTaskChangedEvent, "id">;
|
|
5645
|
+
type ProjectRoomBusinessEventDraft = Omit<ProjectRoomMessageCreatedEvent, "id"> | Omit<ProjectRoomRosterChangedEvent, "id"> | Omit<ProjectRoomMembershipChangedEvent, "id"> | Omit<ProjectRoomTaskChangedEvent, "id"> | Omit<ProjectRoomReadChangedEvent, "id"> | Omit<ProjectRoomMembershipAffectedEvent, "id">;
|
|
5485
5646
|
/** A connection control event; control events are never replayed. */
|
|
5486
5647
|
type ProjectRoomControlEvent = {
|
|
5487
5648
|
type: "ready";
|
|
@@ -5497,7 +5658,7 @@ type ProjectRoomControlEvent = {
|
|
|
5497
5658
|
} | {
|
|
5498
5659
|
type: "access.revoked";
|
|
5499
5660
|
data: {
|
|
5500
|
-
reason: "PROJECT_ACCESS_REVOKED" | "TOKEN_EXPIRED";
|
|
5661
|
+
reason: "PROJECT_ACCESS_REVOKED" | "TOKEN_EXPIRED" | "CONNECTION_SUPERSEDED";
|
|
5501
5662
|
};
|
|
5502
5663
|
};
|
|
5503
5664
|
/** The authenticated identity used by Project Room realtime access checks. */
|
|
@@ -5559,6 +5720,10 @@ interface ProjectRoomEventId {
|
|
|
5559
5720
|
declare function parseProjectRoomEventId(value: unknown): ProjectRoomEventId | undefined;
|
|
5560
5721
|
/** Checks an event ID without relying on realm-specific object identity. */
|
|
5561
5722
|
declare function isProjectRoomEventId(value: unknown): value is string;
|
|
5723
|
+
/** projectId sentinel marking a per-user event channel inside the room broker. */
|
|
5724
|
+
declare const PROJECT_ROOM_USER_CHANNEL_PROJECT = "__user_channel__";
|
|
5725
|
+
/** Builds the per-user broker scope used for membership and read broadcasts. */
|
|
5726
|
+
declare function projectRoomUserEventScope(tenantId: string, userId: string): ProjectRoomEventScope;
|
|
5562
5727
|
/** Maps a canonical internal message to the strict public message DTO. */
|
|
5563
5728
|
declare function toProjectRoomPublicMessage(value: unknown): ProjectRoomPublicMessage | undefined;
|
|
5564
5729
|
/** A descriptor-safe message projection together with its canonical realtime scope. */
|
|
@@ -5775,6 +5940,8 @@ interface ShareRecord {
|
|
|
5775
5940
|
passwordHash: string | null;
|
|
5776
5941
|
expiresAt: Date | null;
|
|
5777
5942
|
maxAccess: number | null;
|
|
5943
|
+
/** Extra Open-door grants appended to sandbox tokens (V1: kb read-only). */
|
|
5944
|
+
openGrants?: OpenGrant[];
|
|
5778
5945
|
accessCount: number;
|
|
5779
5946
|
revoked: boolean;
|
|
5780
5947
|
createdAt: Date;
|
|
@@ -5789,6 +5956,8 @@ interface CreateShareRequest {
|
|
|
5789
5956
|
title?: string;
|
|
5790
5957
|
expiresAt?: string;
|
|
5791
5958
|
maxAccess?: number;
|
|
5959
|
+
/** Extra Open-door grants for sandbox tokens minted for this share. */
|
|
5960
|
+
openGrants?: OpenGrant[];
|
|
5792
5961
|
}
|
|
5793
5962
|
/** Response returned to clients after a share is created. */
|
|
5794
5963
|
interface ShareResult {
|
|
@@ -5874,6 +6043,16 @@ interface PluginConnection {
|
|
|
5874
6043
|
interface PluginToolMeta {
|
|
5875
6044
|
name: string;
|
|
5876
6045
|
description: string;
|
|
6046
|
+
/** When true, this tool surfaces on the Open API (MCP) surface. */
|
|
6047
|
+
expose?: boolean;
|
|
6048
|
+
}
|
|
6049
|
+
/** Open-surface exposure entry with MCP annotation hints. */
|
|
6050
|
+
interface PluginOpenExposeTool {
|
|
6051
|
+
name: string;
|
|
6052
|
+
/** MCP readOnlyHint — pure query, no side effects. */
|
|
6053
|
+
readOnly?: boolean;
|
|
6054
|
+
/** MCP destructiveHint — may cause irreversible changes. */
|
|
6055
|
+
destructive?: boolean;
|
|
5877
6056
|
}
|
|
5878
6057
|
/**
|
|
5879
6058
|
* A text file included in a plugin skill bundle.
|
|
@@ -5932,6 +6111,14 @@ interface PluginMeta {
|
|
|
5932
6111
|
icon?: string;
|
|
5933
6112
|
/** 工具清单(可选,middleware 能自动提取时不需要写) */
|
|
5934
6113
|
tools?: PluginToolMeta[];
|
|
6114
|
+
/**
|
|
6115
|
+
* Open 面(MCP)暴露的工具名清单——独立于 tools 声明,一行即生长。
|
|
6116
|
+
* 声明后 OpenCredentialService 的 grants 匹配 domain=<meta.type>。
|
|
6117
|
+
*
|
|
6118
|
+
* 条目可为字符串(默认 readOnly=false, destructive=false)或带注解对象,
|
|
6119
|
+
* 注解映射到 MCP annotations(readOnlyHint / destructiveHint)。
|
|
6120
|
+
*/
|
|
6121
|
+
openExpose?: Array<string | PluginOpenExposeTool>;
|
|
5935
6122
|
/**
|
|
5936
6123
|
* 中间件配置 schema(用于 agent 配置面板)。新的 connection-backed
|
|
5937
6124
|
* plugins use `connections: string[]` and optional `connectAll?: boolean`.
|
|
@@ -6054,6 +6241,67 @@ interface Plugin {
|
|
|
6054
6241
|
stores?: Record<string, object | (() => object)>;
|
|
6055
6242
|
}
|
|
6056
6243
|
|
|
6244
|
+
/**
|
|
6245
|
+
* A single tool contributed by a sandbox-authored tenant plugin.
|
|
6246
|
+
*
|
|
6247
|
+
* @property name - Tool name exposed to the LLM (validated `^[a-zA-Z0-9_-]{1,64}$`).
|
|
6248
|
+
* @property description - Tool description.
|
|
6249
|
+
* @property schema - Restricted JSON Schema subset describing the tool input.
|
|
6250
|
+
* @property handler - Safe relative path (within the plugin directory) to a JS file.
|
|
6251
|
+
*/
|
|
6252
|
+
interface SandboxPluginToolDef {
|
|
6253
|
+
name: string;
|
|
6254
|
+
description: string;
|
|
6255
|
+
schema: Record<string, unknown>;
|
|
6256
|
+
handler: string;
|
|
6257
|
+
expose?: boolean;
|
|
6258
|
+
readOnly?: boolean;
|
|
6259
|
+
destructive?: boolean;
|
|
6260
|
+
timeoutMs?: number;
|
|
6261
|
+
maxResultBytes?: number;
|
|
6262
|
+
}
|
|
6263
|
+
/**
|
|
6264
|
+
* Connection capability contributed by a sandbox plugin. `test`/`discover`
|
|
6265
|
+
* point at handler files relative to the plugin directory.
|
|
6266
|
+
*/
|
|
6267
|
+
interface SandboxPluginConnectionDef {
|
|
6268
|
+
fields: PluginConnectionFieldSchema[];
|
|
6269
|
+
test?: {
|
|
6270
|
+
handler: string;
|
|
6271
|
+
};
|
|
6272
|
+
discover?: {
|
|
6273
|
+
handler: string;
|
|
6274
|
+
};
|
|
6275
|
+
resourceLabel?: string;
|
|
6276
|
+
}
|
|
6277
|
+
/**
|
|
6278
|
+
* Authoritative declarative definition of a tenant plugin, stored at
|
|
6279
|
+
* `/root/.agents/plugins/<type>/plugin.json`.
|
|
6280
|
+
*/
|
|
6281
|
+
interface SandboxPluginManifest {
|
|
6282
|
+
schemaVersion: 1;
|
|
6283
|
+
type: string;
|
|
6284
|
+
name: string;
|
|
6285
|
+
description: string;
|
|
6286
|
+
version: string;
|
|
6287
|
+
icon?: string;
|
|
6288
|
+
category?: string;
|
|
6289
|
+
configSchema?: Record<string, unknown>;
|
|
6290
|
+
defaultConfig?: Record<string, unknown>;
|
|
6291
|
+
connection?: SandboxPluginConnectionDef;
|
|
6292
|
+
tools: SandboxPluginToolDef[];
|
|
6293
|
+
skills?: Record<string, PluginSkillDefinition>;
|
|
6294
|
+
agents?: Record<string, AgentConfig>;
|
|
6295
|
+
}
|
|
6296
|
+
/** Structured load/validation feedback surfaced to authors and operators. */
|
|
6297
|
+
interface SandboxPluginDiagnostic {
|
|
6298
|
+
level: "error" | "warning";
|
|
6299
|
+
code: string;
|
|
6300
|
+
pluginType?: string;
|
|
6301
|
+
tool?: string;
|
|
6302
|
+
message: string;
|
|
6303
|
+
}
|
|
6304
|
+
|
|
6057
6305
|
/**
|
|
6058
6306
|
* 通用类型定义
|
|
6059
6307
|
*
|
|
@@ -6167,4 +6415,4 @@ declare function parseTrustedRunContext(value: unknown): TrustedRunContext;
|
|
|
6167
6415
|
*/
|
|
6168
6416
|
declare function parseQueuedExecutionMode(value: unknown): QueuedExecutionMode;
|
|
6169
6417
|
|
|
6170
|
-
export { type A2AApiKeyEntry, type A2AApiKeyRecord, type A2AApiKeyStore, type A2AAuthContext, type A2AExposure, type A2ARemoteAgentConfig, type AgentClient, type AgentConfig, type AgentConfigWithTools, type AgentLatticeProtocol, type AgentMenuConfig, type AgentMiddlewareConfig, type AgentRunConfig, AgentType, type AgentWebApp, type AgentWebAppAppearance, type AgentWebAppBootstrap, type AgentWebAppCalloutWidget, type AgentWebAppError, type AgentWebAppErrorCode, type AgentWebAppFeatures, type AgentWebAppGenUIBlock, type AgentWebAppIdentityAssurance, type AgentWebAppIdentityConfig, type AgentWebAppIdentityPolicy, type AgentWebAppInterrupt, type AgentWebAppIssuerConfig, type AgentWebAppRuntimeMessage, type AgentWebAppRuntimeThread, type AgentWebAppScope, type AgentWebAppStatus, type AgentWebAppStore, type AgentWebAppStorePatch, type AgentWebAppStreamEvent, type AgentWebAppStreamProjectionContext, type AgentWebAppTableWidget, type AgentWebAppThreadMetadata, type AgentWebAppUpdateOptions, type Assistant, type AssistantMessage, type AssistantStore, type Attachment, type AvailableModule, type BaseLatticeProtocol, type BaseMessage, type Binding, type BindingListParams, type BindingMutablePatch, type BindingRegistry, type BootstrapFilesConfig, type BrowserMiddlewareConfig, type Callback, type CapabilityBundle, type CapabilityBundleDeleteResult, type CapabilityBundleStore, type CapabilityBundleUpdateConflict, type CapabilityFieldSource, type CapabilityOverride, type CapabilityPreview, type CapabilityPreviewIssue, type CapabilityRuntime, type ChannelAdapter, type ChannelBindingMigrationConflict, ChannelBindingMigrationConflictError, type ChannelInstallation, type ChannelInstallationStore, type ChannelInstallationType, type ClawMiddlewareConfig, type CodeEvalMiddlewareConfig, type Collection, type CollectionField, type CollectionFieldType, type CollectionMiddlewareConfig, type CollectionSchema, type CollectionStore, type ConnectionEntry, type ConnectionStore, type ConversationRecord, type CreateA2AApiKeyInput, type CreateAgentWebAppInput, type CreateAssistantRequest, type CreateBindingInput, type CreateCapabilityBundleInput, type CreateChannelInstallationInput, type CreateChannelInstallationRequest, type CreateCollectionRequest, type CreateConversationInput, type CreateDatabaseConfigRequest, type CreateEvalCaseRequest, type CreateEvalProjectRequest, type CreateEvalRunRequest, type CreateEvalSuiteRequest, type CreateMcpServerConfigRequest, type CreateMenuItemInput, type CreateMetricsServerConfigRequest, type CreateProjectRequest, type CreateRunStepRequest, type CreateShareRequest, type CreateSkillRequest, type CreateTaskRequest, type CreateTenantRequest, type CreateThreadRequest, type CreateUserRequest, type CreateUserTenantLinkRequest, type CreateWorkItemIfAbsentRequest, type CreateWorkItemRequest, type CreateWorkflowRunRequest, type CreateWorkspaceRequest, type CustomMenuConfig, type DataSource, type DatabaseConfig, type DatabaseConfigEntry, type DatabaseConfigStore, type DatabaseType, type DeepAgentConfig, type DescriptorDataValue, type DeveloperMessage, type DispatchResult, DuplicateChannelBindingSubjectError, EXECUTION_RESULT_EVENT_KEY_PATTERN, EXECUTION_RESULT_EVENT_KEY_PATTERN_SOURCE, EXECUTION_RESULT_EVENT_KEY_PREFIX, type EmbeddingsConfig, type EmbeddingsLatticeProtocol, type EvalCase, type EvalProject, type EvalProjectReport, type EvalRun, type EvalRunResult, type EvalStore, type EvalSuite, type ExecuteSqlQueryRequest, type ExecuteSqlQueryResponse, type ExpectedCapabilityBundleRevisions, type FilterCondition, type GraphBuildOptions, type HtmlMenuConfig, type IConversationStore, type ID, type InboundMessage, type InternalAgentNode, type InternalBaseNode, type InternalCreateCapabilityBundleInput, type InternalDSL, type InternalEdge, type InternalInput, type InternalInputNode, type InternalMapNode, type InternalNode, type InternalNodeConfig, type InternalOutput, type InternalState, type InternalStateField, type InternalTerminalNode, type InternalUpdateCapabilityBundleInput, type InterruptMessage, type InterruptPolicy, InvalidProjectCapabilityBundleConfigError, type LLMConfig, type LarkChannelInstallationConfig, type LatticeError, type LatticeEventBus, type LatticeMessage, type LocalA2AProviderId, type LocalA2AProviderState, type LocalA2AProviderStatus, type LocalA2ATemplateDefinition, type LocalRuntimeConfig, type LoggerClient, type LoggerConfig, type LoggerContext, type LoggerLatticeProtocol, LoggerType, MAX_PENDING_EXECUTION_RESULTS_LIMIT, type McpClient, type McpClientOptions, type McpConnectionStatus, type McpLatticeMessage, type McpLatticeProtocol, McpMessageType, type McpServerConfig, type McpServerConfigEntry, type McpServerConfigStore, type McpStats, type McpTool, type McpToolResult, type McpTransportType, type MemoryClient, type MemoryConfig, type MemoryLatticeProtocol, MemoryType, type MenuContentConfig, type MenuContentType, type MenuItem, type MenuRegistry, type MenuTarget, type Message, type MessageChunk, type MessageChunkType, MessageChunkTypes, type MessageContext, type MessageMiddleware, type MetricColumn, type MetricDataPoint, type MetricMeta, type MetricQueryResult, type MetricsMiddlewareConfig, type MetricsServerConfig, type MetricsServerConfigEntry, type MetricsServerConfigStore, type MetricsServerType, type MiddlewareType, type ModelLatticeProtocol, type OutboundMessage, PROJECT_TASK_LIFECYCLE_ACTIONS, type PaginatedResult, type PaginationParams, type PinoFileOptions, type Plugin, type PluginConnection, type PluginConnectionFieldSchema, type PluginConnectionTestResult, type PluginContext, type PluginDiscoveredResource, type PluginMeta, type PluginMetaOutput, type PluginMiddlewareFactory, type PluginSkillDefinition, type PluginSkillResource, type PluginStandardConnectionConfig, type PluginToolMeta, type ProcessingAgentConfig, type Project, type ProjectBotMembership, type ProjectBotMembershipStatus, type ProjectBotMembershipStore, type ProjectBotRole, type ProjectCapabilityConfig, type ProjectFilter, type ProjectHumanRole, type ProjectKind, type ProjectLifecycleEventCursor, type ProjectLifecycleEventQuery, type ProjectMembership, type ProjectMembershipMutationResult, type ProjectMembershipStatus, type ProjectMembershipStore, type ProjectRoom, ProjectRoomBrokerCapacityError, type ProjectRoomBusinessEvent, type ProjectRoomBusinessEventDraft, type ProjectRoomControlEvent, ProjectRoomCursorError, type ProjectRoomEventBrokerProtocol, type ProjectRoomEventId, type ProjectRoomEventOf, type ProjectRoomEventScope, type ProjectRoomEventSubscription, type ProjectRoomMembershipChangedEvent, type ProjectRoomMention, type ProjectRoomMessage, type ProjectRoomMessageAuthor, type ProjectRoomMessageCreatedEvent, type ProjectRoomMessageCursor, type ProjectRoomMessageSource, type ProjectRoomMessageStore, type ProjectRoomPublicBotMembership, type ProjectRoomPublicMembership, type ProjectRoomPublicMessage, type ProjectRoomRealtimeActor, type ProjectRoomRosterChangedEvent, type ProjectRoomScopedBusinessEvent, type ProjectRoomSseWritable, type ProjectRoomStore, type ProjectRoomTaskChangedEvent, type ProjectRoomThreadMetadata, type ProjectRoomTrustedRunContext, type ProjectStore, type ProjectTaskLifecycleAction, ProjectTaskStoreUnsupportedError, type ProjectTaskThreadMetadata, type ProjectTaskTrustedRunContext, type ProjectTaskWorkItemStore, type PublicChannelInstallationType, type QueryParams, type QueryResultFormat, type QueryWorkflowRunsOptions, type QueryWorkflowRunsResult, type QueueClient, type QueueConfig, type QueueLatticeProtocol, type QueueResult, QueueType, type QueuedExecutionMode, type ReactAgentConfig, type ReplyTarget, type ResourceAddress, type ResourceResolver, type Result, type RunStep, type STTClient, type STTConfig, type STTModelLatticeProtocol, type SandboxMiddlewareConfig, type ScheduleClient, type ScheduleConfig, type ScheduleCronOptions, ScheduleExecutionType, type ScheduleLatticeProtocol, type ScheduleOnceOptions, type ScheduleStorage, ScheduleType, type ScheduledTaskDefinition, ScheduledTaskStatus, type SchedulerMiddlewareConfig, type SemanticMetricsFilter, type SemanticMetricsQueryRequest, type SemanticMetricsQueryResponse, type SemanticMetricsServerConfig, type ShareRecord, type ShareResult, type ShareVisibility, type SharedResourceStore, type Skill, type SkillClient, type SkillClientType, type SkillConfig, type SkillLatticeProtocol, type SkillStore, type SkillStoreContext, type SqlMiddlewareConfig, type StepStatus, type StepType, type StorageType, type SystemMessage, type TableQueryRequest, type TableQueryResponse, type TaskBeliefDiagnosticCode, type TaskBeliefEntry, type TaskBeliefParseFailure, type TaskBeliefParseResult, type TaskBeliefParseSuccess, type TaskBeliefState, type TaskDependentListQuery, type TaskFileRef, type TaskHandler, type TaskItem, type TaskListFilter, type TaskMutationSnapshot, type TaskStore, type TaskWorkItem, type TaskWorkItemListFilter, type TaskWorkItemStore, type TeamAgentConfig, type TeamTeammateConfig, type Tenant, type TenantStatus, type TenantStore, type TestMcpServerToolsResponse, type Thread, type ThreadStore, type Timestamp, type ToolCall, type ToolConfig, type ToolExecutor, type ToolLatticeProtocol, type ToolMessage, type TopologyEdge, type TranscriptionResult, type TrustedRunContext, type UIComponent, UIComponentType, type UIConfig, type UILatticeProtocol, type UpdateAgentWebAppInput, type UpdateCapabilityBundleInput, type UpdateChannelInstallationRequest, type UpdateCollectionRequest, type UpdateDatabaseConfigRequest, type UpdateMcpServerConfigRequest, type UpdateMenuItemInput, type UpdateMetricsServerConfigRequest, type UpdateProjectCapabilityBundlesResult, type UpdateProjectRequest, type UpdateRunStepRequest, type UpdateTaskRequest, type UpdateTenantRequest, type UpdateUserRequest, type UpdateUserTenantLinkRequest, type UpdateWorkflowRunRequest, type UpdateWorkspaceRequest, type User, type UserMessage, type UserStatus, type UserStore, type UserTenantLink, type UserTenantLinkStore, type UserTenantRole, type VectorStoreConfig, type VectorStoreCreateParams, type VectorStoreLatticeProtocol, type VectorStoreProvider, type WechatChannelInstallationConfig, type WorkflowAgentConfig, type WorkflowRun, type WorkflowRunStatus, type WorkflowTrackingStore, type Workspace, type WorkspaceStore, type YamlAgentStep, type YamlMapStep, type YamlParallelBlock, type YamlTopLevelStep, type YamlWorkflow, assertGenericProjectConfig, createAgentWebAppStreamProjectionContext, descriptorDataValue, getSubAgentsFromConfig, getToolsFromConfig, hasTools, isA2ARemoteAgentConfig, isDeepAgentConfig, isExecutionResultEventKey, isProcessingAgentConfig, isProjectRoomEventId, isTeamAgentConfig, isWorkflowAgentConfig, parseAgentWebAppGenUIBlock, parseProjectRoomEventId, parseQueuedExecutionMode, parseTaskBeliefState, parseTrustedRunContext, projectAgentWebAppChunk, replaceTaskBeliefState, requireProjectTaskWorkItemStore, snapshotExactArray, snapshotExactRecord, snapshotProjectRoomBotMembershipRealtime, snapshotProjectRoomMembershipRealtime, snapshotProjectRoomMessageRealtime, taskBeliefStatesEqual, toProjectRoomPublicBotMembership, toProjectRoomPublicMembership, toProjectRoomPublicMessage };
|
|
6418
|
+
export { type A2AApiKeyEntry, type A2AApiKeyRecord, type A2AApiKeyStore, type A2AAuthContext, type A2ARemoteAgentConfig, type AgentClient, type AgentConfig, type AgentConfigWithTools, type AgentLatticeProtocol, type AgentMenuConfig, type AgentMiddlewareConfig, type AgentRunConfig, AgentType, type AgentWebApp, type AgentWebAppAppearance, type AgentWebAppBootstrap, type AgentWebAppCalloutWidget, type AgentWebAppError, type AgentWebAppErrorCode, type AgentWebAppFeatures, type AgentWebAppGenUIBlock, type AgentWebAppIdentityAssurance, type AgentWebAppIdentityConfig, type AgentWebAppIdentityPolicy, type AgentWebAppInterrupt, type AgentWebAppIssuerConfig, type AgentWebAppRuntimeMessage, type AgentWebAppRuntimeThread, type AgentWebAppScope, type AgentWebAppStatus, type AgentWebAppStore, type AgentWebAppStorePatch, type AgentWebAppStreamEvent, type AgentWebAppStreamProjectionContext, type AgentWebAppTableWidget, type AgentWebAppThreadMetadata, type AgentWebAppUpdateOptions, type Assistant, type AssistantMessage, type AssistantStore, type Attachment, type AvailableModule, type BaseLatticeProtocol, type BaseMessage, type Binding, type BindingListParams, type BindingMutablePatch, type BindingRegistry, type BootstrapFilesConfig, type BrowserMiddlewareConfig, type Callback, type CapabilityBundle, type CapabilityBundleDeleteResult, type CapabilityBundleStore, type CapabilityBundleUpdateConflict, type CapabilityFieldSource, type CapabilityOverride, type CapabilityPreview, type CapabilityPreviewIssue, type CapabilityRuntime, type ChannelAdapter, type ChannelBindingMigrationConflict, ChannelBindingMigrationConflictError, type ChannelInstallation, type ChannelInstallationStore, type ChannelInstallationType, type ClawMiddlewareConfig, type CodeEvalMiddlewareConfig, type Collection, type CollectionField, type CollectionFieldType, type CollectionMiddlewareConfig, type CollectionSchema, type CollectionStore, type ConnectionEntry, type ConnectionStore, type ConversationRecord, type CreateA2AApiKeyInput, type CreateAgentWebAppInput, type CreateAssistantRequest, type CreateBindingInput, type CreateCapabilityBundleInput, type CreateChannelInstallationInput, type CreateChannelInstallationRequest, type CreateCollectionRequest, type CreateConversationInput, type CreateDatabaseConfigRequest, type CreateEvalCaseRequest, type CreateEvalProjectRequest, type CreateEvalRunRequest, type CreateEvalSuiteRequest, type CreateMcpServerConfigRequest, type CreateMenuItemInput, type CreateMetricsServerConfigRequest, type CreateProjectRequest, type CreateRunStepRequest, type CreateShareRequest, type CreateSkillRequest, type CreateTaskRequest, type CreateTenantRequest, type CreateThreadRequest, type CreateUserRequest, type CreateUserTenantLinkRequest, type CreateWorkItemIfAbsentRequest, type CreateWorkItemRequest, type CreateWorkflowRunRequest, type CreateWorkspaceRequest, type CustomMenuConfig, type DataSource, type DatabaseConfig, type DatabaseConfigEntry, type DatabaseConfigStore, type DatabaseType, type DeepAgentConfig, type DescriptorDataValue, type DeveloperMessage, type DispatchResult, DuplicateChannelBindingSubjectError, EXECUTION_RESULT_EVENT_KEY_PATTERN, EXECUTION_RESULT_EVENT_KEY_PATTERN_SOURCE, EXECUTION_RESULT_EVENT_KEY_PREFIX, type EmbeddingsConfig, type EmbeddingsLatticeProtocol, type EvalCase, type EvalProject, type EvalProjectReport, type EvalRun, type EvalRunResult, type EvalStore, type EvalSuite, type ExecuteSqlQueryRequest, type ExecuteSqlQueryResponse, type ExpectedCapabilityBundleRevisions, type FilterCondition, type GraphBuildOptions, type HtmlMenuConfig, type IConversationStore, type ID, type InboundMessage, type InternalAgentNode, type InternalBaseNode, type InternalCreateCapabilityBundleInput, type InternalDSL, type InternalEdge, type InternalInput, type InternalInputNode, type InternalMapNode, type InternalNode, type InternalNodeConfig, type InternalOutput, type InternalState, type InternalStateField, type InternalTerminalNode, type InternalUpdateCapabilityBundleInput, type InterruptMessage, type InterruptPolicy, InvalidProjectCapabilityBundleConfigError, type LLMConfig, type LarkChannelInstallationConfig, type LatticeError, type LatticeEventBus, type LatticeMessage, type LocalA2AProviderId, type LocalA2AProviderState, type LocalA2AProviderStatus, type LocalA2ATemplateDefinition, type LocalRuntimeConfig, type LoggerClient, type LoggerConfig, type LoggerContext, type LoggerLatticeProtocol, LoggerType, MAX_PENDING_EXECUTION_RESULTS_LIMIT, type McpClient, type McpClientOptions, type McpConnectionStatus, type McpLatticeMessage, type McpLatticeProtocol, McpMessageType, type McpServerConfig, type McpServerConfigEntry, type McpServerConfigStore, type McpStats, type McpTool, type McpToolResult, type McpTransportType, type MemoryClient, type MemoryConfig, type MemoryLatticeProtocol, MemoryType, type MenuContentConfig, type MenuContentType, type MenuItem, type MenuRegistry, type MenuTarget, type Message, type MessageChunk, type MessageChunkType, MessageChunkTypes, type MessageContext, type MessageMiddleware, type MetricColumn, type MetricDataPoint, type MetricMeta, type MetricQueryResult, type MetricsMiddlewareConfig, type MetricsServerConfig, type MetricsServerConfigEntry, type MetricsServerConfigStore, type MetricsServerType, type MiddlewareType, type ModelLatticeProtocol, type OpenAuditAppendInput, type OpenAuditQuery, type OpenAuditRecord, type OpenAuditStore, type OpenCapabilitySource, type OpenCatalog, type OpenCatalogDomain, type OpenCatalogItem, type OpenCredentialKind, type OpenExecutionContext, type OpenExecutionResult, type OpenGrant, type OutboundMessage, PROJECT_ROOM_USER_CHANNEL_PROJECT, PROJECT_TASK_LIFECYCLE_ACTIONS, type PaginatedResult, type PaginationParams, type PinoFileOptions, type Plugin, type PluginConnection, type PluginConnectionFieldSchema, type PluginConnectionTestResult, type PluginContext, type PluginDiscoveredResource, type PluginMeta, type PluginMetaOutput, type PluginMiddlewareFactory, type PluginSkillDefinition, type PluginSkillResource, type PluginStandardConnectionConfig, type PluginToolMeta, type ProcessingAgentConfig, type Project, type ProjectBotMembership, type ProjectBotMembershipStatus, type ProjectBotMembershipStore, type ProjectBotRole, type ProjectCapabilityConfig, type ProjectFilter, type ProjectHumanRole, type ProjectKind, type ProjectLifecycleEventCursor, type ProjectLifecycleEventQuery, type ProjectMembership, type ProjectMembershipMutationResult, type ProjectMembershipStatus, type ProjectMembershipStore, type ProjectRoom, ProjectRoomBrokerCapacityError, type ProjectRoomBusinessEvent, type ProjectRoomBusinessEventDraft, type ProjectRoomControlEvent, ProjectRoomCursorError, type ProjectRoomEventBrokerProtocol, type ProjectRoomEventId, type ProjectRoomEventOf, type ProjectRoomEventScope, type ProjectRoomEventSubscription, type ProjectRoomMembershipAffectedEvent, type ProjectRoomMembershipChangedEvent, type ProjectRoomMention, type ProjectRoomMessage, type ProjectRoomMessageAuthor, type ProjectRoomMessageCreatedEvent, type ProjectRoomMessageCursor, type ProjectRoomMessageSource, type ProjectRoomMessageStore, type ProjectRoomPublicBotMembership, type ProjectRoomPublicMembership, type ProjectRoomPublicMessage, type ProjectRoomReadChangedEvent, type ProjectRoomReadState, type ProjectRoomReadStateStore, type ProjectRoomRealtimeActor, type ProjectRoomRosterChangedEvent, type ProjectRoomScopedBusinessEvent, type ProjectRoomSseWritable, type ProjectRoomStore, type ProjectRoomTaskChangedEvent, type ProjectRoomThreadMetadata, type ProjectRoomTrustedRunContext, type ProjectStore, type ProjectTaskLifecycleAction, ProjectTaskStoreUnsupportedError, type ProjectTaskThreadMetadata, type ProjectTaskTrustedRunContext, type ProjectTaskWorkItemStore, type PublicChannelInstallationType, type QueryParams, type QueryResultFormat, type QueryWorkflowRunsOptions, type QueryWorkflowRunsResult, type QueueClient, type QueueConfig, type QueueLatticeProtocol, type QueueResult, QueueType, type QueuedExecutionMode, type ReactAgentConfig, type ReplyTarget, type ResourceAddress, type ResourceResolver, type Result, type RunStep, type STTClient, type STTConfig, type STTModelLatticeProtocol, type SandboxMiddlewareConfig, type SandboxPluginConnectionDef, type SandboxPluginDiagnostic, type SandboxPluginManifest, type SandboxPluginToolDef, type ScheduleClient, type ScheduleConfig, type ScheduleCronOptions, ScheduleExecutionType, type ScheduleLatticeProtocol, type ScheduleOnceOptions, type ScheduleStorage, ScheduleType, type ScheduledTaskDefinition, ScheduledTaskStatus, type SchedulerMiddlewareConfig, type SemanticMetricsFilter, type SemanticMetricsQueryRequest, type SemanticMetricsQueryResponse, type SemanticMetricsServerConfig, type ShareRecord, type ShareResult, type ShareVisibility, type SharedResourceStore, type Skill, type SkillClient, type SkillClientType, type SkillConfig, type SkillLatticeProtocol, type SkillStore, type SkillStoreContext, type SqlMiddlewareConfig, type StepStatus, type StepType, type StorageType, type SystemMessage, type TableQueryRequest, type TableQueryResponse, type TaskBeliefDiagnosticCode, type TaskBeliefEntry, type TaskBeliefParseFailure, type TaskBeliefParseResult, type TaskBeliefParseSuccess, type TaskBeliefState, type TaskDependentListQuery, type TaskFileRef, type TaskHandler, type TaskItem, type TaskListFilter, type TaskMutationSnapshot, type TaskStore, type TaskWorkItem, type TaskWorkItemListFilter, type TaskWorkItemStore, type TeamAgentConfig, type TeamTeammateConfig, type Tenant, type TenantStatus, type TenantStore, type TestMcpServerToolsResponse, type Thread, type ThreadStore, type Timestamp, type ToolCall, type ToolConfig, type ToolExecutor, type ToolLatticeProtocol, type ToolMessage, type TopologyEdge, type TranscriptionResult, type TrustedRunContext, type UIComponent, UIComponentType, type UIConfig, type UILatticeProtocol, type UpdateA2AApiKeyInput, type UpdateAgentWebAppInput, type UpdateCapabilityBundleInput, type UpdateChannelInstallationRequest, type UpdateCollectionRequest, type UpdateDatabaseConfigRequest, type UpdateMcpServerConfigRequest, type UpdateMenuItemInput, type UpdateMetricsServerConfigRequest, type UpdateProjectCapabilityBundlesResult, type UpdateProjectRequest, type UpdateRunStepRequest, type UpdateTaskRequest, type UpdateTenantRequest, type UpdateUserRequest, type UpdateUserTenantLinkRequest, type UpdateWorkflowRunRequest, type UpdateWorkspaceRequest, type User, type UserMessage, type UserStatus, type UserStore, type UserTenantLink, type UserTenantLinkStore, type UserTenantRole, type VectorStoreConfig, type VectorStoreCreateParams, type VectorStoreLatticeProtocol, type VectorStoreProvider, type WechatChannelInstallationConfig, type WorkflowAgentConfig, type WorkflowRun, type WorkflowRunStatus, type WorkflowTrackingStore, type Workspace, type WorkspaceStore, type YamlAgentStep, type YamlMapStep, type YamlParallelBlock, type YamlTopLevelStep, type YamlWorkflow, assertGenericProjectConfig, createAgentWebAppStreamProjectionContext, descriptorDataValue, effectiveGrants, getSubAgentsFromConfig, getToolsFromConfig, hasTools, isA2ARemoteAgentConfig, isDeepAgentConfig, isExecutionResultEventKey, isProcessingAgentConfig, isProjectRoomEventId, isTeamAgentConfig, isWorkflowAgentConfig, parseAgentWebAppGenUIBlock, parseProjectRoomEventId, parseQueuedExecutionMode, parseTaskBeliefState, parseTrustedRunContext, projectAgentWebAppChunk, projectRoomUserEventScope, replaceTaskBeliefState, requireProjectTaskWorkItemStore, snapshotExactArray, snapshotExactRecord, snapshotProjectRoomBotMembershipRealtime, snapshotProjectRoomMembershipRealtime, snapshotProjectRoomMessageRealtime, taskBeliefStatesEqual, toProjectRoomPublicBotMembership, toProjectRoomPublicMembership, toProjectRoomPublicMessage };
|