@essentialai/cogent 3.4.0 → 3.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -3
- package/dist/a2a/agent-card.d.ts +57 -0
- package/dist/a2a/agent-card.d.ts.map +1 -0
- package/dist/a2a/agent-card.js +104 -0
- package/dist/a2a/agent-card.js.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/schemas/api-requests.d.ts +18 -2
- package/dist/schemas/api-requests.d.ts.map +1 -1
- package/dist/schemas/api-requests.js +15 -2
- package/dist/schemas/api-requests.js.map +1 -1
- package/dist/schemas/index.d.ts +1 -1
- package/dist/schemas/index.d.ts.map +1 -1
- package/dist/schemas/index.js +1 -1
- package/dist/schemas/index.js.map +1 -1
- package/dist/types/message.d.ts +1 -1
- package/dist/types/message.d.ts.map +1 -1
- package/dist/types/message.js +1 -1
- package/dist/types/message.js.map +1 -1
- package/dist/types/peer.d.ts +26 -2
- package/dist/types/peer.d.ts.map +1 -1
- package/dist/types/peer.js +6 -2
- package/dist/types/peer.js.map +1 -1
- package/package.json +4 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,10 +1,18 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [3.6.0] - 2026-08-05
|
|
4
|
+
|
|
5
|
+
### Added — A2A Agent Card
|
|
6
|
+
- `peerInfoToAgentCard(peer, ctx)` + `a2a/agent-card` module: maps a Cogent `PeerInfo` to a standard
|
|
7
|
+
**A2A v1.0.1 Agent Card** (typed against `@a2a-js/sdk`; v1.0.1 canonical + opt-in v0.3.0 scaffold).
|
|
8
|
+
- `RegisterPeerRequest` + `PeerInfo` gain optional `role` + `capabilities[]` (additive; `.strict()`-safe).
|
|
9
|
+
|
|
10
|
+
|
|
3
11
|
## [3.4.0] - 2026-06-03
|
|
4
12
|
|
|
5
13
|
### Added
|
|
6
14
|
- `CreateSessionRequest` / `JoinSessionRequest` (+ their Zod schemas) gain an **optional**
|
|
7
|
-
`orgId` field — the 3rd join credential for
|
|
15
|
+
`orgId` field — the 3rd join credential for Team Edition Org_ID-gated channels.
|
|
8
16
|
Backward-compatible: optional + still `.strict()`, so free-edition clients that omit it are
|
|
9
17
|
unaffected, and the free relay ignores it. Org_ID is generated high-entropy by the control
|
|
10
18
|
plane; the relay stores/verifies only its bcrypt hash.
|
|
@@ -15,7 +23,7 @@
|
|
|
15
23
|
- New `./auth` subpath export — shared hashing/token primitives (`AuthService`):
|
|
16
24
|
bcrypt `hashSecret`/`verifySecret`, `generateToken`, SHA-256 `hashToken`,
|
|
17
25
|
`timingSafeCompare`. Caller injects the bcrypt cost factor. Moved verbatim from
|
|
18
|
-
the relay so the relay and the upcoming
|
|
26
|
+
the relay so the relay and the upcoming Team Edition control plane hash
|
|
19
27
|
Org_IDs and channel secrets identically (no drift between deployed services).
|
|
20
28
|
|
|
21
29
|
### Changed
|
|
@@ -25,7 +33,7 @@
|
|
|
25
33
|
|
|
26
34
|
### Added
|
|
27
35
|
- New `./slack-format` subpath export — shared Slack <-> markdown translation engine,
|
|
28
|
-
reused by the Slack adapter (and the upcoming
|
|
36
|
+
reused by the Slack adapter (and the upcoming Team Edition's distributed app):
|
|
29
37
|
- `slackToMarkdown`, `markdownToSlack`
|
|
30
38
|
- `extractUserIds`, `resolveInboundMentions`, `resolveOutboundMentions`
|
|
31
39
|
- `derivePeerId`, `buildPeerLabel`, `platformLabel`, `getAgentEmoji`
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A2A Agent Card mapper — Cogent PeerInfo → a standard A2A Agent Card.
|
|
3
|
+
*
|
|
4
|
+
* Card-only compliance (see docs/superpowers/specs/2026-08-04-a2a-agent-card-compliance-design.md):
|
|
5
|
+
* we adopt the standard A2A **Agent Card** as a peer's self-description so Cogent can declare
|
|
6
|
+
* "latest A2A standard compliant (from the Agent Card point of view)" and expose a vendor-neutral
|
|
7
|
+
* interop primitive. We do NOT adopt A2A auth / security schemes / JSON-RPC-gRPC transport / the
|
|
8
|
+
* task protocol — Cogent stays on its own rails (WS + Bearer + relay).
|
|
9
|
+
*
|
|
10
|
+
* Types come from the official reference SDK `@a2a-js/sdk` (v1.0.1) — we do NOT hand-roll the schema.
|
|
11
|
+
*
|
|
12
|
+
* PURE: no I/O, no wire/auth change. Safe to call anywhere (bridge cogent_list_peers, relay /card).
|
|
13
|
+
*/
|
|
14
|
+
import type { AgentCard } from "@a2a-js/sdk";
|
|
15
|
+
import type { PeerInfo } from "../types/peer.js";
|
|
16
|
+
/**
|
|
17
|
+
* Open-form A2A `protocolBinding` for the Cogent relay transport. A2A's core bindings are
|
|
18
|
+
* JSONRPC | GRPC | HTTP+JSON; the field is explicitly an open string. We declare our OWN binding
|
|
19
|
+
* rather than falsely claiming JSON-RPC — a standard A2A client can READ this card but cannot yet
|
|
20
|
+
* TASK the peer over an A2A transport (that is the future cross-vendor gateway's job).
|
|
21
|
+
*/
|
|
22
|
+
export declare const COGENT_PROTOCOL_BINDING = "COGENT-RELAY";
|
|
23
|
+
/** The A2A protocol major.minor this card's interface exposes. */
|
|
24
|
+
export declare const A2A_PROTOCOL_VERSION = "1.0";
|
|
25
|
+
export interface AgentCardContext {
|
|
26
|
+
/** Base relay endpoint (e.g. https://cogent.tools) — the peer is addressed inside a session under it. */
|
|
27
|
+
endpoint: string;
|
|
28
|
+
/** The relay/channel session id the peer lives in. */
|
|
29
|
+
sessionId: string;
|
|
30
|
+
/** The peer's client version → AgentCard.version. Falls back to peer.clientVersion, then "0.0.0". */
|
|
31
|
+
clientVersion?: string;
|
|
32
|
+
/** Card shape. Default "1.0.1" (canonical — declare latest). "0.3.0" = opt-in legacy scaffold. */
|
|
33
|
+
cardVersion?: "1.0.1" | "0.3.0";
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* PeerInfo carries role/capabilities once the wire seams land; read defensively (order-independent).
|
|
37
|
+
* `clientVersion` + `mode` live on the BRIDGE PeerInfo (src/types.ts), not this shared one, so they are
|
|
38
|
+
* declared here as optional rather than assumed on the shared type.
|
|
39
|
+
*/
|
|
40
|
+
type PeerWithA2A = PeerInfo & {
|
|
41
|
+
role?: string;
|
|
42
|
+
capabilities?: string[];
|
|
43
|
+
mode?: "observer" | "agent";
|
|
44
|
+
clientVersion?: string;
|
|
45
|
+
};
|
|
46
|
+
/**
|
|
47
|
+
* Build a standard A2A Agent Card for a Cogent peer.
|
|
48
|
+
*
|
|
49
|
+
* v1.0.1 canonical (default): required `supportedInterfaces[]`, no top-level url/protocolVersion.
|
|
50
|
+
* v0.3.0 (opt-in scaffold): top-level `url` + `protocolVersion` — the shape most deployed clients read.
|
|
51
|
+
*
|
|
52
|
+
* Excluded-by-scope fields are emitted EMPTY (securitySchemes {}, securityRequirements [], signatures [])
|
|
53
|
+
* so the card is type/schema-valid without adopting any auth.
|
|
54
|
+
*/
|
|
55
|
+
export declare function peerInfoToAgentCard(peer: PeerWithA2A, ctx: AgentCardContext): AgentCard;
|
|
56
|
+
export {};
|
|
57
|
+
//# sourceMappingURL=agent-card.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent-card.d.ts","sourceRoot":"","sources":["../../src/a2a/agent-card.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,KAAK,EAAE,SAAS,EAAc,MAAM,aAAa,CAAC;AACzD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAEjD;;;;;GAKG;AACH,eAAO,MAAM,uBAAuB,iBAAiB,CAAC;AAEtD,kEAAkE;AAClE,eAAO,MAAM,oBAAoB,QAAQ,CAAC;AAE1C,MAAM,WAAW,gBAAgB;IAC/B,yGAAyG;IACzG,QAAQ,EAAE,MAAM,CAAC;IACjB,sDAAsD;IACtD,SAAS,EAAE,MAAM,CAAC;IAClB,qGAAqG;IACrG,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,kGAAkG;IAClG,WAAW,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC;CACjC;AAED;;;;GAIG;AACH,KAAK,WAAW,GAAG,QAAQ,GAAG;IAC5B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB,IAAI,CAAC,EAAE,UAAU,GAAG,OAAO,CAAC;IAC5B,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC;AAuCF;;;;;;;;GAQG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,WAAW,EAAE,GAAG,EAAE,gBAAgB,GAAG,SAAS,CAiDvF"}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Open-form A2A `protocolBinding` for the Cogent relay transport. A2A's core bindings are
|
|
3
|
+
* JSONRPC | GRPC | HTTP+JSON; the field is explicitly an open string. We declare our OWN binding
|
|
4
|
+
* rather than falsely claiming JSON-RPC — a standard A2A client can READ this card but cannot yet
|
|
5
|
+
* TASK the peer over an A2A transport (that is the future cross-vendor gateway's job).
|
|
6
|
+
*/
|
|
7
|
+
export const COGENT_PROTOCOL_BINDING = "COGENT-RELAY";
|
|
8
|
+
/** The A2A protocol major.minor this card's interface exposes. */
|
|
9
|
+
export const A2A_PROTOCOL_VERSION = "1.0";
|
|
10
|
+
/** "role:reviewer" / "auto-resume" → "Reviewer" / "Auto Resume". */
|
|
11
|
+
function titleCase(s) {
|
|
12
|
+
return s
|
|
13
|
+
.replace(/[:_-]+/g, " ")
|
|
14
|
+
.trim()
|
|
15
|
+
.replace(/\b\w/g, (c) => c.toUpperCase());
|
|
16
|
+
}
|
|
17
|
+
/** Map the peer's flat capability strings + role into A2A AgentSkill objects (deduped). */
|
|
18
|
+
function toSkills(peer) {
|
|
19
|
+
const caps = new Set(peer.capabilities ?? []);
|
|
20
|
+
if (peer.role)
|
|
21
|
+
caps.add(`role:${peer.role}`);
|
|
22
|
+
return [...caps].map((cap) => {
|
|
23
|
+
const isRole = cap.startsWith("role:");
|
|
24
|
+
const roleName = isRole ? cap.slice("role:".length) : cap;
|
|
25
|
+
return {
|
|
26
|
+
id: cap,
|
|
27
|
+
name: titleCase(roleName),
|
|
28
|
+
description: isRole
|
|
29
|
+
? `Acts as the ${roleName} in agent-to-agent collaboration.`
|
|
30
|
+
: `Cogent capability: ${cap}.`,
|
|
31
|
+
tags: isRole ? ["role", roleName] : ["capability"],
|
|
32
|
+
examples: [],
|
|
33
|
+
inputModes: [],
|
|
34
|
+
outputModes: [],
|
|
35
|
+
securityRequirements: [],
|
|
36
|
+
};
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
function synthDescription(peer) {
|
|
40
|
+
const parts = [`Cogent fabric peer on ${peer.platform ?? "cc"}`];
|
|
41
|
+
if (peer.role)
|
|
42
|
+
parts.push(`role: ${peer.role}`);
|
|
43
|
+
if (peer.mode === "observer")
|
|
44
|
+
parts.push("observer (read-only)");
|
|
45
|
+
return parts.join("; ") + ".";
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Build a standard A2A Agent Card for a Cogent peer.
|
|
49
|
+
*
|
|
50
|
+
* v1.0.1 canonical (default): required `supportedInterfaces[]`, no top-level url/protocolVersion.
|
|
51
|
+
* v0.3.0 (opt-in scaffold): top-level `url` + `protocolVersion` — the shape most deployed clients read.
|
|
52
|
+
*
|
|
53
|
+
* Excluded-by-scope fields are emitted EMPTY (securitySchemes {}, securityRequirements [], signatures [])
|
|
54
|
+
* so the card is type/schema-valid without adopting any auth.
|
|
55
|
+
*/
|
|
56
|
+
export function peerInfoToAgentCard(peer, ctx) {
|
|
57
|
+
const url = `${ctx.endpoint.replace(/\/$/, "")}/api/sessions/${ctx.sessionId}`;
|
|
58
|
+
const name = `${peer.label} (${peer.peerId})`;
|
|
59
|
+
const description = synthDescription(peer);
|
|
60
|
+
const version = ctx.clientVersion ?? peer.clientVersion ?? "0.0.0";
|
|
61
|
+
const provider = { organization: `Cogent · ${peer.platform ?? "cc"}`, url: "https://cogent.tools" };
|
|
62
|
+
const skills = toSkills(peer);
|
|
63
|
+
if (ctx.cardVersion === "0.3.0") {
|
|
64
|
+
// Opt-in legacy scaffold (top-level url + protocolVersion). Different shape than the v1.0.1 type,
|
|
65
|
+
// hence the deliberate cast — this branch exists only for backward interop, not as the primary card.
|
|
66
|
+
return {
|
|
67
|
+
protocolVersion: "0.3.0",
|
|
68
|
+
name,
|
|
69
|
+
description,
|
|
70
|
+
url,
|
|
71
|
+
version,
|
|
72
|
+
provider,
|
|
73
|
+
capabilities: {},
|
|
74
|
+
defaultInputModes: ["text/plain"],
|
|
75
|
+
defaultOutputModes: ["text/plain"],
|
|
76
|
+
skills,
|
|
77
|
+
securitySchemes: {},
|
|
78
|
+
security: [],
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
// v1.0.1 canonical (PRIMARY).
|
|
82
|
+
return {
|
|
83
|
+
name,
|
|
84
|
+
description,
|
|
85
|
+
version,
|
|
86
|
+
provider,
|
|
87
|
+
supportedInterfaces: [
|
|
88
|
+
{
|
|
89
|
+
url,
|
|
90
|
+
protocolBinding: COGENT_PROTOCOL_BINDING,
|
|
91
|
+
protocolVersion: A2A_PROTOCOL_VERSION,
|
|
92
|
+
tenant: ctx.sessionId,
|
|
93
|
+
},
|
|
94
|
+
],
|
|
95
|
+
capabilities: { extensions: [] },
|
|
96
|
+
defaultInputModes: ["text/plain"],
|
|
97
|
+
defaultOutputModes: ["text/plain"],
|
|
98
|
+
skills,
|
|
99
|
+
securitySchemes: {},
|
|
100
|
+
securityRequirements: [],
|
|
101
|
+
signatures: [],
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
//# sourceMappingURL=agent-card.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent-card.js","sourceRoot":"","sources":["../../src/a2a/agent-card.ts"],"names":[],"mappings":"AAgBA;;;;;GAKG;AAC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P,QAAQ;YACR,YAAY,EAAE,EAAE;YAChB,iBAAiB,EAAE,CAAC,YAAY,CAAC;YACjC,kBAAkB,EAAE,CAAC,YAAY,CAAC;YAClC,MAAM;YACN,eAAe,EAAE,EAAE;YACnB,QAAQ,EAAE,EAAE;SACW,CAAC;IAC5B,CAAC;IAED,8BAA8B;IAC9B,OAAO;QACL,IAAI;QACJ,WAAW;QACX,OAAO;QACP,QAAQ;QACR,mBAAmB,EAAE;YACnB;gBACE,GAAG;gBACH,eAAe,EAAE,uBAAuB;gBACxC,eAAe,EAAE,oBAAoB;gBACrC,MAAM,EAAE,GAAG,CAAC,SAAS;aACtB;SACF;QACD,YAAY,EAAE,EAAE,UAAU,EAAE,EAAE,EAAE;QAChC,iBAAiB,EAAE,CAAC,YAAY,CAAC;QACjC,kBAAkB,EAAE,CAAC,YAAY,CAAC;QAClC,MAAM;QACN,eAAe,EAAE,EAAE;QACnB,oBAAoB,EAAE,EAAE;QACxB,UAAU,EAAE,EAAE;KACf,CAAC;AACJ,CAAC"}
|
package/dist/index.d.ts
CHANGED
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC"}
|
package/dist/index.js
CHANGED
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC"}
|
|
@@ -16,15 +16,25 @@ export interface JoinSessionRequest {
|
|
|
16
16
|
/** Optional Org_ID — required to join an Org_ID-gated business channel. */
|
|
17
17
|
orgId?: string;
|
|
18
18
|
}
|
|
19
|
+
/** Request body for resolving a channel label (name) to its session ID. */
|
|
20
|
+
export interface ResolveSessionRequest {
|
|
21
|
+
label: string;
|
|
22
|
+
/** Optional Org_ID — required to resolve an Org_ID-gated business channel by name. */
|
|
23
|
+
orgId?: string;
|
|
24
|
+
}
|
|
19
25
|
/** Request body for registering a peer in a session. */
|
|
20
26
|
export interface RegisterPeerRequest {
|
|
21
27
|
peerId: string;
|
|
22
28
|
cwd: string;
|
|
23
29
|
label: string;
|
|
24
|
-
platform?: "cc" | "codex" | "slack" | "gchat" | "web";
|
|
30
|
+
platform?: "cc" | "codex" | "slack" | "gchat" | "web" | "gemini";
|
|
25
31
|
type?: "agent" | "human";
|
|
26
32
|
transport?: "ws" | "slack-bot" | "gchat-bot" | "websocket";
|
|
27
33
|
platformIdentity?: Record<string, string>;
|
|
34
|
+
/** A2A role advertised by an agent peer (implementer|reviewer|auditor|coordinator). Optional; back-compat. */
|
|
35
|
+
role?: string;
|
|
36
|
+
/** Flat capability strings (auto-resume, reply:*, role:*, observer) — source for the A2A Agent Card skills[]. Optional. */
|
|
37
|
+
capabilities?: string[];
|
|
28
38
|
}
|
|
29
39
|
/** Request body for deregistering a peer (empty -- IDs come from URL path). */
|
|
30
40
|
export interface DeregisterPeerRequest {
|
|
@@ -34,7 +44,7 @@ export interface SendMessageRequest {
|
|
|
34
44
|
fromPeerId: string;
|
|
35
45
|
toPeerId: string;
|
|
36
46
|
message: string;
|
|
37
|
-
originPlatform?: "cc" | "codex" | "slack" | "gchat" | "web";
|
|
47
|
+
originPlatform?: "cc" | "codex" | "slack" | "gchat" | "web" | "gemini";
|
|
38
48
|
}
|
|
39
49
|
/** Query parameters for message history retrieval. */
|
|
40
50
|
export interface GetHistoryQuery {
|
|
@@ -57,6 +67,12 @@ export declare const CreateSessionRequestSchema: z.ZodType<CreateSessionRequest>
|
|
|
57
67
|
* Joins an existing session by providing the shared secret.
|
|
58
68
|
*/
|
|
59
69
|
export declare const JoinSessionRequestSchema: z.ZodType<JoinSessionRequest>;
|
|
70
|
+
/**
|
|
71
|
+
* Schema for POST /api/sessions/resolve request body.
|
|
72
|
+
* Resolves a channel label to its session ID. An Org_ID scopes the lookup to a
|
|
73
|
+
* business channel (whose label is invisible to the public GET /resolve).
|
|
74
|
+
*/
|
|
75
|
+
export declare const ResolveSessionRequestSchema: z.ZodType<ResolveSessionRequest>;
|
|
60
76
|
/**
|
|
61
77
|
* Schema for POST /api/sessions/:sessionId/peers request body.
|
|
62
78
|
* Registers a new peer in a session. sessionId comes from URL path.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api-requests.d.ts","sourceRoot":"","sources":["../../src/schemas/api-requests.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,sDAAsD;AACtD,MAAM,WAAW,oBAAoB;IACnC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,oDAAoD;AACpD,MAAM,WAAW,kBAAkB;IACjC,M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OxD,CAAC;AAEZ;;;GAGG;AACH,eAAO,MAAM,qBAAqB,EAAE,CAAC,CAAC,OAAO,CAAC,eAAe,CAMlD,CAAC;AAEZ;;;GAGG;AACH,eAAO,MAAM,eAAe,EAAE,CAAC,CAAC,OAAO,CAAC,SAAS,CAKtC,CAAC"}
|
|
@@ -21,6 +21,17 @@ export const JoinSessionRequestSchema = z
|
|
|
21
21
|
orgId: z.string().min(1).optional().describe("Optional Org_ID -- required for Org_ID-gated business channels"),
|
|
22
22
|
})
|
|
23
23
|
.strict();
|
|
24
|
+
/**
|
|
25
|
+
* Schema for POST /api/sessions/resolve request body.
|
|
26
|
+
* Resolves a channel label to its session ID. An Org_ID scopes the lookup to a
|
|
27
|
+
* business channel (whose label is invisible to the public GET /resolve).
|
|
28
|
+
*/
|
|
29
|
+
export const ResolveSessionRequestSchema = z
|
|
30
|
+
.object({
|
|
31
|
+
label: z.string().regex(/^[a-z0-9][a-z0-9-]{1,30}[a-z0-9]$/).describe("Channel label (name) to resolve (3-32 lowercase alphanumeric + hyphens)"),
|
|
32
|
+
orgId: z.string().min(1).optional().describe("Optional Org_ID -- required to resolve an Org_ID-gated business channel"),
|
|
33
|
+
})
|
|
34
|
+
.strict();
|
|
24
35
|
/**
|
|
25
36
|
* Schema for POST /api/sessions/:sessionId/peers request body.
|
|
26
37
|
* Registers a new peer in a session. sessionId comes from URL path.
|
|
@@ -30,10 +41,12 @@ export const RegisterPeerRequestSchema = z
|
|
|
30
41
|
peerId: z.string().min(1).describe("Unique peer identifier"),
|
|
31
42
|
cwd: z.string().describe("Peer working directory path"),
|
|
32
43
|
label: z.string().describe("Human-readable peer label"),
|
|
33
|
-
platform: z.enum(["cc", "codex", "slack", "gchat", "web"]).optional().describe("Platform this peer belongs to"),
|
|
44
|
+
platform: z.enum(["cc", "codex", "slack", "gchat", "web", "gemini"]).optional().describe("Platform this peer belongs to"),
|
|
34
45
|
type: z.enum(["agent", "human"]).optional().describe("Peer type"),
|
|
35
46
|
transport: z.enum(["ws", "slack-bot", "gchat-bot", "websocket"]).optional().describe("Transport mechanism"),
|
|
36
47
|
platformIdentity: z.record(z.string(), z.string()).optional().describe("Platform-specific identity fields"),
|
|
48
|
+
role: z.string().max(64).optional().describe("A2A role advertised by this peer (Agent Card)"),
|
|
49
|
+
capabilities: z.array(z.string().max(64)).max(16).optional().describe("Capability strings → A2A Agent Card skills[]"),
|
|
37
50
|
})
|
|
38
51
|
.strict();
|
|
39
52
|
/**
|
|
@@ -52,7 +65,7 @@ export const SendMessageRequestSchema = z
|
|
|
52
65
|
fromPeerId: z.string().min(1).describe("Sender peer ID"),
|
|
53
66
|
toPeerId: z.string().min(1).describe("Recipient peer ID (use '*' for broadcast)"),
|
|
54
67
|
message: z.string().min(1).describe("Message content"),
|
|
55
|
-
originPlatform: z.enum(["cc", "codex", "slack", "gchat", "web"]).optional().describe("Platform originating this message"),
|
|
68
|
+
originPlatform: z.enum(["cc", "codex", "slack", "gchat", "web", "gemini"]).optional().describe("Platform originating this message"),
|
|
56
69
|
})
|
|
57
70
|
.strict();
|
|
58
71
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api-requests.js","sourceRoot":"","sources":["../../src/schemas/api-requests.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"api-requests.js","sourceRoot":"","sources":["../../src/schemas/api-requests.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAqExB,wCAAwC;AAExC;;;GAGG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAoC,CAAC;KACzE,MAAM,CAAC;IACN,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,mCAAmC,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,+EAA+E,CAAC;IACjK,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAA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AC,sCAAsC,CAAC;IACrF,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,mBAAmB,CAAC;CACxD,CAAC;KACD,MAAM,EAAE,CAAC"}
|
package/dist/schemas/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { CreateSessionRequestSchema, type CreateSessionRequest, JoinSessionRequestSchema, type JoinSessionRequest, RegisterPeerRequestSchema, type RegisterPeerRequest, DeregisterPeerRequestSchema, type DeregisterPeerRequest, SendMessageRequestSchema, type SendMessageRequest, GetHistoryQuerySchema, type GetHistoryQuery, PollQuerySchema, type PollQuery, } from "./api-requests.js";
|
|
1
|
+
export { CreateSessionRequestSchema, type CreateSessionRequest, JoinSessionRequestSchema, type JoinSessionRequest, ResolveSessionRequestSchema, type ResolveSessionRequest, RegisterPeerRequestSchema, type RegisterPeerRequest, DeregisterPeerRequestSchema, type DeregisterPeerRequest, SendMessageRequestSchema, type SendMessageRequest, GetHistoryQuerySchema, type GetHistoryQuery, PollQuerySchema, type PollQuery, } from "./api-requests.js";
|
|
2
2
|
export { CreateSessionResponseSchema, type CreateSessionResponse, JoinSessionResponseSchema, type JoinSessionResponse, RegisterPeerResponseSchema, ListPeersResponseSchema, type ListPeersResponse, SendMessageResponseSchema, type SendMessageResponse, GetHistoryResponseSchema, type GetHistoryResponse, HealthResponseSchema, type HealthResponse, PeerEventSchema, type PeerEvent, PollResponseSchema, type PollResponse, ErrorResponseSchema, } from "./api-responses.js";
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,0BAA0B,EAC1B,KAAK,oBAAoB,EACzB,wBAAwB,EACxB,KAAK,kBAAkB,EACvB,yBAAyB,EACzB,KAAK,mBAAmB,EACxB,2BAA2B,EAC3B,KAAK,qBAAqB,EAC1B,wBAAwB,EACxB,KAAK,kBAAkB,EACvB,qBAAqB,EACrB,KAAK,eAAe,EACpB,eAAe,EACf,KAAK,SAAS,GACf,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EACL,2BAA2B,EAC3B,KAAK,qBAAqB,EAC1B,yBAAyB,EACzB,KAAK,mBAAmB,EACxB,0BAA0B,EAC1B,uBAAuB,EACvB,KAAK,iBAAiB,EACtB,yBAAyB,EACzB,KAAK,mBAAmB,EACxB,wBAAwB,EACxB,KAAK,kBAAkB,EACvB,oBAAoB,EACpB,KAAK,cAAc,EACnB,eAAe,EACf,KAAK,SAAS,EACd,kBAAkB,EAClB,KAAK,YAAY,EACjB,mBAAmB,GACpB,MAAM,oBAAoB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,0BAA0B,EAC1B,KAAK,oBAAoB,EACzB,wBAAwB,EACxB,KAAK,kBAAkB,EACvB,2BAA2B,EAC3B,KAAK,qBAAqB,EAC1B,yBAAyB,EACzB,KAAK,mBAAmB,EACxB,2BAA2B,EAC3B,KAAK,qBAAqB,EAC1B,wBAAwB,EACxB,KAAK,kBAAkB,EACvB,qBAAqB,EACrB,KAAK,eAAe,EACpB,eAAe,EACf,KAAK,SAAS,GACf,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EACL,2BAA2B,EAC3B,KAAK,qBAAqB,EAC1B,yBAAyB,EACzB,KAAK,mBAAmB,EACxB,0BAA0B,EAC1B,uBAAuB,EACvB,KAAK,iBAAiB,EACtB,yBAAyB,EACzB,KAAK,mBAAmB,EACxB,wBAAwB,EACxB,KAAK,kBAAkB,EACvB,oBAAoB,EACpB,KAAK,cAAc,EACnB,eAAe,EACf,KAAK,SAAS,EACd,kBAAkB,EAClB,KAAK,YAAY,EACjB,mBAAmB,GACpB,MAAM,oBAAoB,CAAC"}
|
package/dist/schemas/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { CreateSessionRequestSchema, JoinSessionRequestSchema, RegisterPeerRequestSchema, DeregisterPeerRequestSchema, SendMessageRequestSchema, GetHistoryQuerySchema, PollQuerySchema, } from "./api-requests.js";
|
|
1
|
+
export { CreateSessionRequestSchema, JoinSessionRequestSchema, ResolveSessionRequestSchema, RegisterPeerRequestSchema, DeregisterPeerRequestSchema, SendMessageRequestSchema, GetHistoryQuerySchema, PollQuerySchema, } from "./api-requests.js";
|
|
2
2
|
export { CreateSessionResponseSchema, JoinSessionResponseSchema, RegisterPeerResponseSchema, ListPeersResponseSchema, SendMessageResponseSchema, GetHistoryResponseSchema, HealthResponseSchema, PeerEventSchema, PollResponseSchema, ErrorResponseSchema, } from "./api-responses.js";
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,0BAA0B,EAE1B,wBAAwB,EAExB,yBAAyB,EAEzB,2BAA2B,EAE3B,wBAAwB,EAExB,qBAAqB,EAErB,eAAe,GAEhB,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EACL,2BAA2B,EAE3B,yBAAyB,EAEzB,0BAA0B,EAC1B,uBAAuB,EAEvB,yBAAyB,EAEzB,wBAAwB,EAExB,oBAAoB,EAEpB,eAAe,EAEf,kBAAkB,EAElB,mBAAmB,GACpB,MAAM,oBAAoB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,0BAA0B,EAE1B,wBAAwB,EAExB,2BAA2B,EAE3B,yBAAyB,EAEzB,2BAA2B,EAE3B,wBAAwB,EAExB,qBAAqB,EAErB,eAAe,GAEhB,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EACL,2BAA2B,EAE3B,yBAAyB,EAEzB,0BAA0B,EAC1B,uBAAuB,EAEvB,yBAAyB,EAEzB,wBAAwB,EAExB,oBAAoB,EAEpB,eAAe,EAEf,kBAAkB,EAElB,mBAAmB,GACpB,MAAM,oBAAoB,CAAC"}
|
package/dist/types/message.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ export interface MessageRecord {
|
|
|
11
11
|
success: boolean;
|
|
12
12
|
error: string | null;
|
|
13
13
|
/** Platform that originated this message -- used for echo suppression in multi-platform sessions. */
|
|
14
|
-
originPlatform?: "cc" | "codex" | "slack" | "gchat" | "web";
|
|
14
|
+
originPlatform?: "cc" | "codex" | "slack" | "gchat" | "web" | "gemini" | "whatsapp";
|
|
15
15
|
}
|
|
16
16
|
/**
|
|
17
17
|
* MessageRecord schema -- describes a message exchanged between peers.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"message.d.ts","sourceRoot":"","sources":["../../src/types/message.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,4FAA4F;AAC5F,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,qGAAqG;IACrG,cAAc,CAAC,EAAE,IAAI,GAAG,OAAO,GAAG,OAAO,GAAG,OAAO,GAAG,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"message.d.ts","sourceRoot":"","sources":["../../src/types/message.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,4FAA4F;AAC5F,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,qGAAqG;IACrG,cAAc,CAAC,EAAE,IAAI,GAAG,OAAO,GAAG,OAAO,GAAG,OAAO,GAAG,KAAK,GAAG,QAAQ,GAAG,UAAU,CAAC;CACrF;AAED;;;GAGG;AACH,eAAO,MAAM,mBAAmB,EAAE,CAAC,CAAC,OAAO,CAAC,aAAa,CAWvD,CAAC"}
|
package/dist/types/message.js
CHANGED
|
@@ -13,6 +13,6 @@ export const MessageRecordSchema = z.object({
|
|
|
13
13
|
durationMs: z.number().nullable().describe("Round-trip duration in ms"),
|
|
14
14
|
success: z.boolean().describe("Whether delivery succeeded"),
|
|
15
15
|
error: z.string().nullable().describe("Error message if delivery failed"),
|
|
16
|
-
originPlatform: z.enum(["cc", "codex", "slack", "gchat", "web"]).optional().describe("Platform that originated this message"),
|
|
16
|
+
originPlatform: z.enum(["cc", "codex", "slack", "gchat", "web", "gemini", "whatsapp"]).optional().describe("Platform that originated this message"),
|
|
17
17
|
});
|
|
18
18
|
//# sourceMappingURL=message.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"message.js","sourceRoot":"","sources":["../../src/types/message.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAiBxB;;;GAGG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAA6B,CAAC,CAAC,MAAM,CAAC;IACpE,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,QAAQ,C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AC3D,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,gBAAgB,CAAC;IACxD,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,mBAAmB,CAAC;IACzD,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,iBAAiB,CAAC;IAC/C,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,2BAA2B,CAAC;IACrE,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,4BAA4B,CAAC;IACvE,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,2BAA2B,CAAC;IACvE,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,CAAC,4BAA4B,CAAC;IAC3D,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,kCAAkC,CAAC;IACzE,cAAc,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,UAAU,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,uCAAuC,CAAC;CACpJ,CAAC,CAAC"}
|
package/dist/types/peer.d.ts
CHANGED
|
@@ -8,13 +8,37 @@ export interface PeerInfo {
|
|
|
8
8
|
registeredAt: string;
|
|
9
9
|
lastSeenAt: string;
|
|
10
10
|
/** Platform this peer belongs to (default "cc" for Claude Code). */
|
|
11
|
-
platform?: "cc" | "codex" | "slack" | "gchat" | "web";
|
|
11
|
+
platform?: "cc" | "codex" | "slack" | "gchat" | "web" | "gemini" | "whatsapp";
|
|
12
12
|
/** Peer type: AI agent or human user. */
|
|
13
13
|
type?: "agent" | "human";
|
|
14
14
|
/** Transport mechanism for this peer. */
|
|
15
|
-
transport?: "ws" | "slack-bot" | "gchat-bot" | "websocket";
|
|
15
|
+
transport?: "ws" | "slack-bot" | "gchat-bot" | "websocket" | "whatsapp-cloud";
|
|
16
16
|
/** Platform-specific identity fields (e.g., slackUserId, slackChannelId). */
|
|
17
17
|
platformIdentity?: Record<string, string>;
|
|
18
|
+
/**
|
|
19
|
+
* Durable workspace identifier (Slice 5 / Story 8.6). A STABLE id for the
|
|
20
|
+
* peer's workspace that does NOT depend on the mutable, lossy cwd hint (CC's
|
|
21
|
+
* cwd→escaped-path map is non-injective, so distinct cwds can collide). When
|
|
22
|
+
* present the relay can route/resolve on it instead of cwd; cwd becomes a hint.
|
|
23
|
+
* Optional + conditional-set → back-compat with older clients/relays.
|
|
24
|
+
*/
|
|
25
|
+
workspaceId?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Durable thread/conversation identifier (Slice 5 / Story 8.6). A stable id
|
|
28
|
+
* for the specific conversation within the workspace. Optional; back-compat.
|
|
29
|
+
*/
|
|
30
|
+
threadId?: string;
|
|
31
|
+
/**
|
|
32
|
+
* A2A role advertised by an agent peer (implementer|reviewer|auditor|coordinator).
|
|
33
|
+
* Carried on the wire (2026-08) so the peer's A2A Agent Card has a real role skill.
|
|
34
|
+
* Optional; back-compat with older clients/relays.
|
|
35
|
+
*/
|
|
36
|
+
role?: string;
|
|
37
|
+
/**
|
|
38
|
+
* Flat capability strings (auto-resume, reply:*, role:*, observer) — the source for
|
|
39
|
+
* the peer's A2A Agent Card skills[]. Optional; back-compat.
|
|
40
|
+
*/
|
|
41
|
+
capabilities?: string[];
|
|
18
42
|
}
|
|
19
43
|
/**
|
|
20
44
|
* PeerInfo schema -- describes a registered peer in a bridge session.
|
package/dist/types/peer.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"peer.d.ts","sourceRoot":"","sources":["../../src/types/peer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,uFAAuF;AACvF,MAAM,WAAW,QAAQ;IACvB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,oEAAoE;IACpE,QAAQ,CAAC,EAAE,IAAI,GAAG,OAAO,GAAG,OAAO,GAAG,OAAO,GAAG,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"peer.d.ts","sourceRoot":"","sources":["../../src/types/peer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,uFAAuF;AACvF,MAAM,WAAW,QAAQ;IACvB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,oEAAoE;IACpE,QAAQ,CAAC,EAAE,IAAI,GAAG,OAAO,GAAG,OAAO,GAAG,OAAO,GAAG,KAAK,GAAG,QAAQ,GAAG,UAAU,CAAC;IAC9E,yCAAyC;IACzC,IAAI,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC;IACzB,yCAAyC;IACzC,SAAS,CAAC,EAAE,IAAI,GAAG,WAAW,GAAG,WAAW,GAAG,WAAW,GAAG,gBAAgB,CAAC;IAC9E,6EAA6E;IAC7E,gBAAgB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC1C;;;;;;OAMG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;CACzB;AAED;;;GAGG;AACH,eAAO,MAAM,cAAc,EAAE,CAAC,CAAC,OAAO,CAAC,QAAQ,CAe7C,CAAC"}
|
package/dist/types/peer.js
CHANGED
|
@@ -10,9 +10,13 @@ export const PeerInfoSchema = z.object({
|
|
|
10
10
|
label: z.string().describe("Human-readable label"),
|
|
11
11
|
registeredAt: z.string().datetime().describe("ISO 8601 registration timestamp"),
|
|
12
12
|
lastSeenAt: z.string().datetime().describe("ISO 8601 last activity timestamp"),
|
|
13
|
-
platform: z.enum(["cc", "codex", "slack", "gchat", "web"]).optional().describe("Platform this peer belongs to"),
|
|
13
|
+
platform: z.enum(["cc", "codex", "slack", "gchat", "web", "gemini", "whatsapp"]).optional().describe("Platform this peer belongs to"),
|
|
14
14
|
type: z.enum(["agent", "human"]).optional().describe("Peer type: AI agent or human user"),
|
|
15
|
-
transport: z.enum(["ws", "slack-bot", "gchat-bot", "websocket"]).optional().describe("Transport mechanism for this peer"),
|
|
15
|
+
transport: z.enum(["ws", "slack-bot", "gchat-bot", "websocket", "whatsapp-cloud"]).optional().describe("Transport mechanism for this peer"),
|
|
16
16
|
platformIdentity: z.record(z.string(), z.string()).optional().describe("Platform-specific identity fields (slackUserId, slackChannelId, etc.)"),
|
|
17
|
+
workspaceId: z.string().optional().describe("Durable workspace identifier (Slice 5) — stable id not tied to the mutable cwd hint"),
|
|
18
|
+
threadId: z.string().optional().describe("Durable thread/conversation identifier (Slice 5)"),
|
|
19
|
+
role: z.string().max(64).optional().describe("A2A role advertised by this peer (Agent Card)"),
|
|
20
|
+
capabilities: z.array(z.string().max(64)).max(16).optional().describe("Capability strings → A2A Agent Card skills[]"),
|
|
17
21
|
});
|
|
18
22
|
//# sourceMappingURL=peer.js.map
|
package/dist/types/peer.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"peer.js","sourceRoot":"","sources":["../../src/types/peer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"peer.js","sourceRoot":"","sources":["../../src/types/peer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AA4CxB;;;GAGG;AACH,MAAM,CAAC,MAAM,cAAc,GAAwB,CAAC,CAAC,MAAM,CAAC;IAC1D,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,iCAAiC,CAAC;IACrE,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,8BAA8B,CAAC;IACrE,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,wBAAwB,CAAC;IAClD,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,sBAAsB,CAAC;IAClD,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,iCAAiC,CAAC;IAC/E,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,kCAAkC,CAAC;IAC9E,QAAQ,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,UAAU,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,+BAA+B,CAAC;IACrI,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,mCAAmC,CAAC;IACzF,SAAS,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,WAAW,EAAE,WAAW,EAAE,WAAW,EAAE,gBAAgB,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,mCAAmC,CAAC;IAC3I,gBAAgB,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,uEAAuE,CAAC;IAC/I,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,qFAAqF,CAAC;IAClI,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,kDAAkD,CAAC;IAC5F,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,+CAA+C,CAAC;IAC7F,YAAY,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,8CAA8C,CAAC;CACtH,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@essentialai/cogent",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.6.0",
|
|
4
4
|
"description": "Shared types, schemas, and contracts for Cogent Bridge",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -36,6 +36,7 @@
|
|
|
36
36
|
"check-exports": "attw --pack"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
+
"@a2a-js/sdk": "^1.0.1",
|
|
39
40
|
"bcryptjs": "^3.0.3",
|
|
40
41
|
"slackify-markdown": "^5.0.0"
|
|
41
42
|
},
|
|
@@ -43,10 +44,10 @@
|
|
|
43
44
|
"zod": "^3.25.0 || ^4.0.0"
|
|
44
45
|
},
|
|
45
46
|
"devDependencies": {
|
|
46
|
-
"
|
|
47
|
+
"@arethetypeswrong/cli": "^0.17.0",
|
|
47
48
|
"typescript": "^5.7.2",
|
|
48
49
|
"vitest": "^4.0.18",
|
|
49
|
-
"
|
|
50
|
+
"zod": "^4.0.0"
|
|
50
51
|
},
|
|
51
52
|
"engines": {
|
|
52
53
|
"node": ">=18"
|