@chipschat/protocol 1.0.0 → 1.0.2
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/dist/generated/types.d.ts +2 -2
- package/dist/generated/types.d.ts.map +1 -1
- package/dist/src/context.js +1 -1
- package/dist/src/context.js.map +1 -1
- package/dist/src/frames.d.ts +5 -2
- package/dist/src/frames.d.ts.map +1 -1
- package/dist/src/frames.js +5 -1
- package/dist/src/frames.js.map +1 -1
- package/dist/src/index.d.ts +6 -2
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +4 -2
- package/dist/src/index.js.map +1 -1
- package/dist/src/join.d.ts +27 -1
- package/dist/src/join.d.ts.map +1 -1
- package/dist/src/join.js +56 -1
- package/dist/src/join.js.map +1 -1
- package/dist/src/push.d.ts +80 -0
- package/dist/src/push.d.ts.map +1 -0
- package/dist/src/push.js +55 -0
- package/dist/src/push.js.map +1 -0
- package/dist/src/read-marks.d.ts +24 -0
- package/dist/src/read-marks.d.ts.map +1 -0
- package/dist/src/read-marks.js +28 -0
- package/dist/src/read-marks.js.map +1 -0
- package/dist/src/room-note.d.ts +13 -7
- package/dist/src/room-note.d.ts.map +1 -1
- package/dist/src/room-note.js +22 -11
- package/dist/src/room-note.js.map +1 -1
- package/fixtures/frames/read.json +7 -0
- package/generated/agent-connect.json +2 -2
- package/generated/schema/agent.attached.json +1 -1
- package/generated/schema/message.new.json +1 -1
- package/generated/types.ts +2 -2
- package/package.json +2 -1
- package/dist/envelope.d.ts +0 -54
- package/dist/envelope.d.ts.map +0 -1
- package/dist/envelope.js +0 -48
- package/dist/envelope.js.map +0 -1
- package/dist/events/agent-to-chips.d.ts +0 -27
- package/dist/events/agent-to-chips.d.ts.map +0 -1
- package/dist/events/agent-to-chips.js +0 -392
- package/dist/events/agent-to-chips.js.map +0 -1
- package/dist/events/catalogue.d.ts +0 -48
- package/dist/events/catalogue.d.ts.map +0 -1
- package/dist/events/catalogue.js +0 -67
- package/dist/events/catalogue.js.map +0 -1
- package/dist/events/chips-to-agent.d.ts +0 -24
- package/dist/events/chips-to-agent.d.ts.map +0 -1
- package/dist/events/chips-to-agent.js +0 -324
- package/dist/events/chips-to-agent.js.map +0 -1
- package/dist/events/chips-to-harness.d.ts +0 -24
- package/dist/events/chips-to-harness.d.ts.map +0 -1
- package/dist/events/chips-to-harness.js +0 -324
- package/dist/events/chips-to-harness.js.map +0 -1
- package/dist/events/harness-to-chips.d.ts +0 -27
- package/dist/events/harness-to-chips.d.ts.map +0 -1
- package/dist/events/harness-to-chips.js +0 -390
- package/dist/events/harness-to-chips.js.map +0 -1
- package/dist/events/index.d.ts +0 -6
- package/dist/events/index.d.ts.map +0 -1
- package/dist/events/index.js +0 -5
- package/dist/events/index.js.map +0 -1
- package/dist/events/workspace.d.ts +0 -19
- package/dist/events/workspace.d.ts.map +0 -1
- package/dist/events/workspace.js +0 -79
- package/dist/events/workspace.js.map +0 -1
- package/dist/frames.d.ts +0 -175
- package/dist/frames.d.ts.map +0 -1
- package/dist/frames.js +0 -161
- package/dist/frames.js.map +0 -1
- package/dist/ids/index.d.ts +0 -3
- package/dist/ids/index.d.ts.map +0 -1
- package/dist/ids/index.js +0 -2
- package/dist/ids/index.js.map +0 -1
- package/dist/ids/ulid.d.ts +0 -83
- package/dist/ids/ulid.d.ts.map +0 -1
- package/dist/ids/ulid.js +0 -199
- package/dist/ids/ulid.js.map +0 -1
- package/dist/index.d.ts +0 -18
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -13
- package/dist/index.js.map +0 -1
- package/dist/primitives.d.ts +0 -194
- package/dist/primitives.d.ts.map +0 -1
- package/dist/primitives.js +0 -193
- package/dist/primitives.js.map +0 -1
package/dist/index.d.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* `@chips/protocol` is Agent Connect. The Zod schemas here are canonical (decision 7): the
|
|
3
|
-
* JSON Schema in `generated/`, the TypeScript types, the documentation reference and the
|
|
4
|
-
* fixtures every layer's tests read are all produced from them by `pnpm gen:protocol`.
|
|
5
|
-
*
|
|
6
|
-
* It depends on `zod` and nothing else, so an SDK built on it stays light.
|
|
7
|
-
*/
|
|
8
|
-
export type * from "../generated/types.js";
|
|
9
|
-
export type { Direction, Envelope, EventDefinition } from "./envelope.js";
|
|
10
|
-
export { defineEvent, envelope, eventSchema, PROTOCOL_VERSION } from "./envelope.js";
|
|
11
|
-
export * from "./events/index.js";
|
|
12
|
-
export type { ClientFrame, ErrorCode, ServerFrame } from "./frames.js";
|
|
13
|
-
export { ackFrame, clientFrame, clientHelloFrame, errorCode, errorFrame, eventFrame, FRAME_NAMES, negotiateProtocol, pingFrame, pongFrame, receiptFrame, serverFrame, subscribeFrame, } from "./frames.js";
|
|
14
|
-
export type { Id, IdGenerator, IdGeneratorOptions, IdKind, IdPrefix } from "./ids/index.js";
|
|
15
|
-
export { createIdGenerator, defaultIdGenerator, eventIdOfMessage, ID_PREFIXES, InvalidIdError, isId, messageIdOf, newId, parseId, timestampOf, } from "./ids/index.js";
|
|
16
|
-
export type { Action, Actor, Attachment, AutonomyLevel, Budget, Cost, ParticipantRef, Policy, PolicyRule, Preview, RiskClass, SignedAttachment, Source, TrailEntry, } from "./primitives.js";
|
|
17
|
-
export { action, actor, approverRef, attachment, autonomyLevel, budget, cost, id, isoTimestamp, participantRef, policy, policyRule, preview, riskClass, signedAttachment, source, trailEntry, } from "./primitives.js";
|
|
18
|
-
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,mBAAmB,uBAAuB,CAAC;AAC3C,YAAY,EAAE,SAAS,EAAE,QAAQ,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAC1E,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACrF,cAAc,mBAAmB,CAAC;AAClC,YAAY,EAAE,WAAW,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AACvE,OAAO,EACL,QAAQ,EACR,WAAW,EACX,gBAAgB,EAChB,SAAS,EACT,UAAU,EACV,UAAU,EACV,WAAW,EACX,iBAAiB,EACjB,SAAS,EACT,SAAS,EACT,YAAY,EACZ,WAAW,EACX,cAAc,GACf,MAAM,aAAa,CAAC;AACrB,YAAY,EAAE,EAAE,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC5F,OAAO,EACL,iBAAiB,EACjB,kBAAkB,EAClB,gBAAgB,EAChB,WAAW,EACX,cAAc,EACd,IAAI,EACJ,WAAW,EACX,KAAK,EACL,OAAO,EACP,WAAW,GACZ,MAAM,gBAAgB,CAAC;AACxB,YAAY,EACV,MAAM,EACN,KAAK,EACL,UAAU,EACV,aAAa,EACb,MAAM,EACN,IAAI,EACJ,cAAc,EACd,MAAM,EACN,UAAU,EACV,OAAO,EACP,SAAS,EACT,gBAAgB,EAChB,MAAM,EACN,UAAU,GACX,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,MAAM,EACN,KAAK,EACL,WAAW,EACX,UAAU,EACV,aAAa,EACb,MAAM,EACN,IAAI,EACJ,EAAE,EACF,YAAY,EACZ,cAAc,EACd,MAAM,EACN,UAAU,EACV,OAAO,EACP,SAAS,EACT,gBAAgB,EAChB,MAAM,EACN,UAAU,GACX,MAAM,iBAAiB,CAAC"}
|
package/dist/index.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* `@chips/protocol` is Agent Connect. The Zod schemas here are canonical (decision 7): the
|
|
3
|
-
* JSON Schema in `generated/`, the TypeScript types, the documentation reference and the
|
|
4
|
-
* fixtures every layer's tests read are all produced from them by `pnpm gen:protocol`.
|
|
5
|
-
*
|
|
6
|
-
* It depends on `zod` and nothing else, so an SDK built on it stays light.
|
|
7
|
-
*/
|
|
8
|
-
export { defineEvent, envelope, eventSchema, PROTOCOL_VERSION } from "./envelope.js";
|
|
9
|
-
export * from "./events/index.js";
|
|
10
|
-
export { ackFrame, clientFrame, clientHelloFrame, errorCode, errorFrame, eventFrame, FRAME_NAMES, negotiateProtocol, pingFrame, pongFrame, receiptFrame, serverFrame, subscribeFrame, } from "./frames.js";
|
|
11
|
-
export { createIdGenerator, defaultIdGenerator, eventIdOfMessage, ID_PREFIXES, InvalidIdError, isId, messageIdOf, newId, parseId, timestampOf, } from "./ids/index.js";
|
|
12
|
-
export { action, actor, approverRef, attachment, autonomyLevel, budget, cost, id, isoTimestamp, participantRef, policy, policyRule, preview, riskClass, signedAttachment, source, trailEntry, } from "./primitives.js";
|
|
13
|
-
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACrF,cAAc,mBAAmB,CAAC;AAElC,OAAO,EACL,QAAQ,EACR,WAAW,EACX,gBAAgB,EAChB,SAAS,EACT,UAAU,EACV,UAAU,EACV,WAAW,EACX,iBAAiB,EACjB,SAAS,EACT,SAAS,EACT,YAAY,EACZ,WAAW,EACX,cAAc,GACf,MAAM,aAAa,CAAC;AAErB,OAAO,EACL,iBAAiB,EACjB,kBAAkB,EAClB,gBAAgB,EAChB,WAAW,EACX,cAAc,EACd,IAAI,EACJ,WAAW,EACX,KAAK,EACL,OAAO,EACP,WAAW,GACZ,MAAM,gBAAgB,CAAC;AAiBxB,OAAO,EACL,MAAM,EACN,KAAK,EACL,WAAW,EACX,UAAU,EACV,aAAa,EACb,MAAM,EACN,IAAI,EACJ,EAAE,EACF,YAAY,EACZ,cAAc,EACd,MAAM,EACN,UAAU,EACV,OAAO,EACP,SAAS,EACT,gBAAgB,EAChB,MAAM,EACN,UAAU,GACX,MAAM,iBAAiB,CAAC"}
|
package/dist/primitives.d.ts
DELETED
|
@@ -1,194 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The sub-schemas events are built from. Each one exists because more than one event needs
|
|
3
|
-
* it, and each carries a description, because those descriptions become the documentation
|
|
4
|
-
* reference (technical-plan decision 13).
|
|
5
|
-
*/
|
|
6
|
-
import { z } from "zod";
|
|
7
|
-
import { type IdKind } from "./ids/index.js";
|
|
8
|
-
/** A schema for one kind of prefixed ULID, for example `run_01K4...` (decision 11). */
|
|
9
|
-
export declare function id<K extends IdKind>(kind: K): z.ZodString;
|
|
10
|
-
export declare const isoTimestamp: z.ZodISODateTime;
|
|
11
|
-
/** Who caused an event. Every envelope says so; the audit log is a read of this field. */
|
|
12
|
-
export declare const actor: z.ZodObject<{
|
|
13
|
-
kind: z.ZodEnum<{
|
|
14
|
-
person: "person";
|
|
15
|
-
agent: "agent";
|
|
16
|
-
system: "system";
|
|
17
|
-
}>;
|
|
18
|
-
id: z.ZodString;
|
|
19
|
-
}, z.core.$strip>;
|
|
20
|
-
export type Actor = z.infer<typeof actor>;
|
|
21
|
-
/** A person or agent as another party sees them, with the role Chips assigns. */
|
|
22
|
-
export declare const participantRef: z.ZodObject<{
|
|
23
|
-
participant_id: z.ZodString;
|
|
24
|
-
kind: z.ZodEnum<{
|
|
25
|
-
person: "person";
|
|
26
|
-
agent: "agent";
|
|
27
|
-
}>;
|
|
28
|
-
display_name: z.ZodString;
|
|
29
|
-
role: z.ZodEnum<{
|
|
30
|
-
owner: "owner";
|
|
31
|
-
member: "member";
|
|
32
|
-
guest: "guest";
|
|
33
|
-
}>;
|
|
34
|
-
}, z.core.$strip>;
|
|
35
|
-
export type ParticipantRef = z.infer<typeof participantRef>;
|
|
36
|
-
/**
|
|
37
|
-
* An attachment. Anything you can send a person you can send an agent, so this shape carries
|
|
38
|
-
* files, images, video and voice notes alike (decision 10).
|
|
39
|
-
*/
|
|
40
|
-
export declare const attachment: z.ZodObject<{
|
|
41
|
-
attachment_id: z.ZodString;
|
|
42
|
-
filename: z.ZodString;
|
|
43
|
-
mime_type: z.ZodString;
|
|
44
|
-
byte_size: z.ZodInt;
|
|
45
|
-
sha256: z.ZodString;
|
|
46
|
-
width: z.ZodOptional<z.ZodInt>;
|
|
47
|
-
height: z.ZodOptional<z.ZodInt>;
|
|
48
|
-
duration_ms: z.ZodOptional<z.ZodInt>;
|
|
49
|
-
}, z.core.$strip>;
|
|
50
|
-
export type Attachment = z.infer<typeof attachment>;
|
|
51
|
-
/** An attachment as it reaches an agent: with a URL it can actually fetch. */
|
|
52
|
-
export declare const signedAttachment: z.ZodObject<{
|
|
53
|
-
attachment_id: z.ZodString;
|
|
54
|
-
filename: z.ZodString;
|
|
55
|
-
mime_type: z.ZodString;
|
|
56
|
-
byte_size: z.ZodInt;
|
|
57
|
-
sha256: z.ZodString;
|
|
58
|
-
width: z.ZodOptional<z.ZodInt>;
|
|
59
|
-
height: z.ZodOptional<z.ZodInt>;
|
|
60
|
-
duration_ms: z.ZodOptional<z.ZodInt>;
|
|
61
|
-
url: z.ZodURL;
|
|
62
|
-
url_expires_at: z.ZodISODateTime;
|
|
63
|
-
}, z.core.$strip>;
|
|
64
|
-
export type SignedAttachment = z.infer<typeof signedAttachment>;
|
|
65
|
-
/** Where a claim came from. External sources are what make an action risky. */
|
|
66
|
-
export declare const source: z.ZodObject<{
|
|
67
|
-
kind: z.ZodEnum<{
|
|
68
|
-
external: "external";
|
|
69
|
-
internal: "internal";
|
|
70
|
-
}>;
|
|
71
|
-
label: z.ZodString;
|
|
72
|
-
url: z.ZodOptional<z.ZodURL>;
|
|
73
|
-
}, z.core.$strip>;
|
|
74
|
-
export type Source = z.infer<typeof source>;
|
|
75
|
-
/**
|
|
76
|
-
* Risk classes. These are the flags the policy engine matches on (decision 8), so the list is
|
|
77
|
-
* closed: a new class is a protocol change, not a free-text string an agent invents.
|
|
78
|
-
*/
|
|
79
|
-
export declare const riskClass: z.ZodEnum<{
|
|
80
|
-
external: "external";
|
|
81
|
-
external_communication: "external_communication";
|
|
82
|
-
irreversible: "irreversible";
|
|
83
|
-
destructive: "destructive";
|
|
84
|
-
financial: "financial";
|
|
85
|
-
credential: "credential";
|
|
86
|
-
privacy: "privacy";
|
|
87
|
-
legal: "legal";
|
|
88
|
-
}>;
|
|
89
|
-
export type RiskClass = z.infer<typeof riskClass>;
|
|
90
|
-
/** The action an agent wants to take. `kind` is what policy rules glob against. */
|
|
91
|
-
export declare const action: z.ZodObject<{
|
|
92
|
-
kind: z.ZodString;
|
|
93
|
-
input: z.ZodOptional<z.ZodUnknown>;
|
|
94
|
-
external: z.ZodOptional<z.ZodBoolean>;
|
|
95
|
-
irreversible: z.ZodOptional<z.ZodBoolean>;
|
|
96
|
-
money_usd: z.ZodOptional<z.ZodNumber>;
|
|
97
|
-
}, z.core.$strip>;
|
|
98
|
-
export type Action = z.infer<typeof action>;
|
|
99
|
-
/** What a person is shown before they decide. A diff for a change, prose for a message. */
|
|
100
|
-
export declare const preview: z.ZodObject<{
|
|
101
|
-
format: z.ZodEnum<{
|
|
102
|
-
markdown: "markdown";
|
|
103
|
-
plain: "plain";
|
|
104
|
-
diff: "diff";
|
|
105
|
-
json: "json";
|
|
106
|
-
table: "table";
|
|
107
|
-
}>;
|
|
108
|
-
body: z.ZodString;
|
|
109
|
-
title: z.ZodOptional<z.ZodString>;
|
|
110
|
-
}, z.core.$strip>;
|
|
111
|
-
export type Preview = z.infer<typeof preview>;
|
|
112
|
-
/**
|
|
113
|
-
* Who may answer an approval. `owner` and `role:<name>` are resolved by Chips, so a harness
|
|
114
|
-
* never needs to know who is on shift.
|
|
115
|
-
*/
|
|
116
|
-
export declare const approverRef: z.ZodString;
|
|
117
|
-
/** Autonomy levels L0 to L3 (blueprint: trust is a dial, not a switch). */
|
|
118
|
-
export declare const autonomyLevel: z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
|
|
119
|
-
export type AutonomyLevel = z.infer<typeof autonomyLevel>;
|
|
120
|
-
/** One policy rule. Rules read like sentences: `email.send to an external domain -> ask the owner`. */
|
|
121
|
-
export declare const policyRule: z.ZodObject<{
|
|
122
|
-
match: z.ZodString;
|
|
123
|
-
when: z.ZodOptional<z.ZodObject<{
|
|
124
|
-
external: z.ZodOptional<z.ZodBoolean>;
|
|
125
|
-
irreversible: z.ZodOptional<z.ZodBoolean>;
|
|
126
|
-
money_usd_over: z.ZodOptional<z.ZodNumber>;
|
|
127
|
-
risk: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
128
|
-
external: "external";
|
|
129
|
-
external_communication: "external_communication";
|
|
130
|
-
irreversible: "irreversible";
|
|
131
|
-
destructive: "destructive";
|
|
132
|
-
financial: "financial";
|
|
133
|
-
credential: "credential";
|
|
134
|
-
privacy: "privacy";
|
|
135
|
-
legal: "legal";
|
|
136
|
-
}>>>;
|
|
137
|
-
}, z.core.$strip>>;
|
|
138
|
-
decision: z.ZodEnum<{
|
|
139
|
-
allow: "allow";
|
|
140
|
-
ask: "ask";
|
|
141
|
-
deny: "deny";
|
|
142
|
-
}>;
|
|
143
|
-
approvers: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
144
|
-
reason: z.ZodOptional<z.ZodString>;
|
|
145
|
-
}, z.core.$strip>;
|
|
146
|
-
export type PolicyRule = z.infer<typeof policyRule>;
|
|
147
|
-
export declare const policy: z.ZodObject<{
|
|
148
|
-
autonomy: z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
|
|
149
|
-
rules: z.ZodArray<z.ZodObject<{
|
|
150
|
-
match: z.ZodString;
|
|
151
|
-
when: z.ZodOptional<z.ZodObject<{
|
|
152
|
-
external: z.ZodOptional<z.ZodBoolean>;
|
|
153
|
-
irreversible: z.ZodOptional<z.ZodBoolean>;
|
|
154
|
-
money_usd_over: z.ZodOptional<z.ZodNumber>;
|
|
155
|
-
risk: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
156
|
-
external: "external";
|
|
157
|
-
external_communication: "external_communication";
|
|
158
|
-
irreversible: "irreversible";
|
|
159
|
-
destructive: "destructive";
|
|
160
|
-
financial: "financial";
|
|
161
|
-
credential: "credential";
|
|
162
|
-
privacy: "privacy";
|
|
163
|
-
legal: "legal";
|
|
164
|
-
}>>>;
|
|
165
|
-
}, z.core.$strip>>;
|
|
166
|
-
decision: z.ZodEnum<{
|
|
167
|
-
allow: "allow";
|
|
168
|
-
ask: "ask";
|
|
169
|
-
deny: "deny";
|
|
170
|
-
}>;
|
|
171
|
-
approvers: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
172
|
-
reason: z.ZodOptional<z.ZodString>;
|
|
173
|
-
}, z.core.$strip>>;
|
|
174
|
-
}, z.core.$strip>;
|
|
175
|
-
export type Policy = z.infer<typeof policy>;
|
|
176
|
-
/** Money is always an estimate and always labelled as one (blueprint: cost rolls up the trail). */
|
|
177
|
-
export declare const cost: z.ZodObject<{
|
|
178
|
-
usd: z.ZodNumber;
|
|
179
|
-
estimated: z.ZodLiteral<true>;
|
|
180
|
-
}, z.core.$strip>;
|
|
181
|
-
export type Cost = z.infer<typeof cost>;
|
|
182
|
-
export declare const budget: z.ZodObject<{
|
|
183
|
-
limit_usd: z.ZodNumber;
|
|
184
|
-
spent_usd: z.ZodNumber;
|
|
185
|
-
}, z.core.$strip>;
|
|
186
|
-
export type Budget = z.infer<typeof budget>;
|
|
187
|
-
/** How work travelled to get here, so a lane can be traced back to the message that caused it. */
|
|
188
|
-
export declare const trailEntry: z.ZodObject<{
|
|
189
|
-
participant_id: z.ZodString;
|
|
190
|
-
run_id: z.ZodOptional<z.ZodString>;
|
|
191
|
-
goal: z.ZodOptional<z.ZodString>;
|
|
192
|
-
}, z.core.$strip>;
|
|
193
|
-
export type TrailEntry = z.infer<typeof trailEntry>;
|
|
194
|
-
//# sourceMappingURL=primitives.d.ts.map
|
package/dist/primitives.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"primitives.d.ts","sourceRoot":"","sources":["../src/primitives.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAe,KAAK,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAI1D,uFAAuF;AACvF,wBAAgB,EAAE,CAAC,CAAC,SAAS,MAAM,EAAE,IAAI,EAAE,CAAC,eAK3C;AAED,eAAO,MAAM,YAAY,kBAEoD,CAAC;AAE9E,0FAA0F;AAC1F,eAAO,MAAM,KAAK;;;;;;;iBAOuC,CAAC;AAC1D,MAAM,MAAM,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,KAAK,CAAC,CAAC;AAE1C,iFAAiF;AACjF,eAAO,MAAM,cAAc;;;;;;;;;;;;iBAW8B,CAAC;AAC1D,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAE5D;;;GAGG;AACH,eAAO,MAAM,UAAU;;;;;;;;;iBAkBoB,CAAC;AAC5C,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC;AAEpD,8EAA8E;AAC9E,eAAO,MAAM,gBAAgB;;;;;;;;;;;iBAKoC,CAAC;AAClE,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAEhE,+EAA+E;AAC/E,eAAO,MAAM,MAAM;;;;;;;iBAU+D,CAAC;AACnF,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,MAAM,CAAC,CAAC;AAE5C;;;GAGG;AACH,eAAO,MAAM,SAAS;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AC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC"}
|
package/dist/primitives.js
DELETED
|
@@ -1,193 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The sub-schemas events are built from. Each one exists because more than one event needs
|
|
3
|
-
* it, and each carries a description, because those descriptions become the documentation
|
|
4
|
-
* reference (technical-plan decision 13).
|
|
5
|
-
*/
|
|
6
|
-
import { z } from "zod";
|
|
7
|
-
import { ID_PREFIXES } from "./ids/index.js";
|
|
8
|
-
const ULID = "[0-7][0-9A-HJKMNP-TV-Z]{25}";
|
|
9
|
-
/** A schema for one kind of prefixed ULID, for example `run_01K4...` (decision 11). */
|
|
10
|
-
export function id(kind) {
|
|
11
|
-
return z
|
|
12
|
-
.string()
|
|
13
|
-
.regex(new RegExp(`^${ID_PREFIXES[kind]}_${ULID}$`), `expected a ${kind} id`)
|
|
14
|
-
.describe(`A ${kind} identifier: \`${ID_PREFIXES[kind]}_\` followed by a ULID.`);
|
|
15
|
-
}
|
|
16
|
-
export const isoTimestamp = z.iso
|
|
17
|
-
.datetime({ offset: true })
|
|
18
|
-
.describe("An ISO 8601 timestamp, for example `2026-09-02T14:22:31.004Z`.");
|
|
19
|
-
/** Who caused an event. Every envelope says so; the audit log is a read of this field. */
|
|
20
|
-
export const actor = z
|
|
21
|
-
.object({
|
|
22
|
-
kind: z
|
|
23
|
-
.enum(["person", "agent", "system"])
|
|
24
|
-
.describe("Whether a person, an agent or Chips itself acted."),
|
|
25
|
-
id: z.string().min(1).describe("The participant id, or `system` for Chips."),
|
|
26
|
-
})
|
|
27
|
-
.describe("The participant an event is attributed to.");
|
|
28
|
-
/** A person or agent as another party sees them, with the role Chips assigns. */
|
|
29
|
-
export const participantRef = z
|
|
30
|
-
.object({
|
|
31
|
-
participant_id: z.string().min(1).describe("The stable id of the sender."),
|
|
32
|
-
kind: z.enum(["person", "agent"]).describe("Whether the sender is a person or an agent."),
|
|
33
|
-
display_name: z.string().min(1).max(120).describe("The name to show."),
|
|
34
|
-
role: z
|
|
35
|
-
.enum(["owner", "member", "guest"])
|
|
36
|
-
.describe("The sender's standing in this conversation. Multi-user is Chips' job, not the harness's."),
|
|
37
|
-
})
|
|
38
|
-
.describe("A sender, as the receiving side sees them.");
|
|
39
|
-
/**
|
|
40
|
-
* An attachment. Anything you can send a person you can send an agent, so this shape carries
|
|
41
|
-
* files, images, video and voice notes alike (decision 10).
|
|
42
|
-
*/
|
|
43
|
-
export const attachment = z
|
|
44
|
-
.object({
|
|
45
|
-
attachment_id: id("attachment"),
|
|
46
|
-
filename: z.string().min(1).max(255).describe("The name to show. Never trusted for its type."),
|
|
47
|
-
mime_type: z
|
|
48
|
-
.string()
|
|
49
|
-
.min(1)
|
|
50
|
-
.max(255)
|
|
51
|
-
.describe("Sniffed from the bytes on upload, not taken from the client."),
|
|
52
|
-
byte_size: z.int().nonnegative().describe("Size in bytes."),
|
|
53
|
-
sha256: z
|
|
54
|
-
.string()
|
|
55
|
-
.regex(/^[a-f0-9]{64}$/)
|
|
56
|
-
.describe("Lowercase hex digest. The store is content-addressed."),
|
|
57
|
-
width: z.int().positive().optional().describe("Pixels, for images and video."),
|
|
58
|
-
height: z.int().positive().optional().describe("Pixels, for images and video."),
|
|
59
|
-
duration_ms: z.int().nonnegative().optional().describe("Milliseconds, for audio and video."),
|
|
60
|
-
})
|
|
61
|
-
.describe("A file carried by a message.");
|
|
62
|
-
/** An attachment as it reaches an agent: with a URL it can actually fetch. */
|
|
63
|
-
export const signedAttachment = attachment
|
|
64
|
-
.extend({
|
|
65
|
-
url: z.url().describe("A signed URL, bound to the requesting token."),
|
|
66
|
-
url_expires_at: isoTimestamp.describe("Ten minutes from issue, by default (decision 10)."),
|
|
67
|
-
})
|
|
68
|
-
.describe("An attachment with a short-lived, token-bound URL.");
|
|
69
|
-
/** Where a claim came from. External sources are what make an action risky. */
|
|
70
|
-
export const source = z
|
|
71
|
-
.object({
|
|
72
|
-
kind: z.enum(["external", "internal"]).describe("Whether the source is outside the workspace."),
|
|
73
|
-
label: z
|
|
74
|
-
.string()
|
|
75
|
-
.min(1)
|
|
76
|
-
.max(200)
|
|
77
|
-
.describe("What to show in the receipt, for example `vendor website`."),
|
|
78
|
-
url: z.url().optional().describe("Where to look, when there is somewhere to look."),
|
|
79
|
-
})
|
|
80
|
-
.describe("A source an agent used, shown in the receipt and on approval cards.");
|
|
81
|
-
/**
|
|
82
|
-
* Risk classes. These are the flags the policy engine matches on (decision 8), so the list is
|
|
83
|
-
* closed: a new class is a protocol change, not a free-text string an agent invents.
|
|
84
|
-
*/
|
|
85
|
-
export const riskClass = z
|
|
86
|
-
.enum([
|
|
87
|
-
"external",
|
|
88
|
-
"external_communication",
|
|
89
|
-
"irreversible",
|
|
90
|
-
"destructive",
|
|
91
|
-
"financial",
|
|
92
|
-
"credential",
|
|
93
|
-
"privacy",
|
|
94
|
-
"legal",
|
|
95
|
-
])
|
|
96
|
-
.describe("A risk class the policy engine can match a rule against.");
|
|
97
|
-
/** The action an agent wants to take. `kind` is what policy rules glob against. */
|
|
98
|
-
export const action = z
|
|
99
|
-
.object({
|
|
100
|
-
kind: z
|
|
101
|
-
.string()
|
|
102
|
-
.regex(/^[a-z][a-z0-9_]*(\.[a-z][a-z0-9_]*)+$/)
|
|
103
|
-
.max(120)
|
|
104
|
-
.describe("A dotted verb, for example `email.send` or `payment.transfer`. Policy rules glob on it."),
|
|
105
|
-
input: z.unknown().optional().describe("The arguments, shaped by the tool being called."),
|
|
106
|
-
external: z.boolean().optional().describe("True when the action leaves the workspace."),
|
|
107
|
-
irreversible: z.boolean().optional().describe("True when the action cannot be undone."),
|
|
108
|
-
money_usd: z.number().nonnegative().optional().describe("Amount at stake, in US dollars."),
|
|
109
|
-
})
|
|
110
|
-
.describe("An action an agent proposes to take.");
|
|
111
|
-
/** What a person is shown before they decide. A diff for a change, prose for a message. */
|
|
112
|
-
export const preview = z
|
|
113
|
-
.object({
|
|
114
|
-
format: z
|
|
115
|
-
.enum(["markdown", "plain", "diff", "json", "table"])
|
|
116
|
-
.describe("How to render the body."),
|
|
117
|
-
body: z.string().max(200_000).describe("The rendered preview."),
|
|
118
|
-
title: z.string().max(200).optional().describe("A heading for the card."),
|
|
119
|
-
})
|
|
120
|
-
.describe("What the approver sees before deciding.");
|
|
121
|
-
/**
|
|
122
|
-
* Who may answer an approval. `owner` and `role:<name>` are resolved by Chips, so a harness
|
|
123
|
-
* never needs to know who is on shift.
|
|
124
|
-
*/
|
|
125
|
-
export const approverRef = z
|
|
126
|
-
.string()
|
|
127
|
-
.regex(/^(owner|any|role:[a-z][a-z0-9_]*|usr_[0-9A-HJKMNP-TV-Z]{26})$/)
|
|
128
|
-
.describe("`owner`, `any`, `role:<name>`, or a specific person id.");
|
|
129
|
-
/** Autonomy levels L0 to L3 (blueprint: trust is a dial, not a switch). */
|
|
130
|
-
export const autonomyLevel = z
|
|
131
|
-
.union([z.literal(0), z.literal(1), z.literal(2), z.literal(3)])
|
|
132
|
-
.describe("0 observe, 1 ask first, 2 ask when it matters, 3 autonomous and report back. Presets that expand to rules.");
|
|
133
|
-
/** One policy rule. Rules read like sentences: `email.send to an external domain -> ask the owner`. */
|
|
134
|
-
export const policyRule = z
|
|
135
|
-
.object({
|
|
136
|
-
match: z
|
|
137
|
-
.string()
|
|
138
|
-
.min(1)
|
|
139
|
-
.max(120)
|
|
140
|
-
.describe("A glob over action kinds, for example `payment.*`."),
|
|
141
|
-
when: z
|
|
142
|
-
.object({
|
|
143
|
-
external: z.boolean().optional(),
|
|
144
|
-
irreversible: z.boolean().optional(),
|
|
145
|
-
money_usd_over: z.number().nonnegative().optional(),
|
|
146
|
-
risk: z.array(riskClass).max(8).optional(),
|
|
147
|
-
})
|
|
148
|
-
.optional()
|
|
149
|
-
.describe("Extra conditions on the action's flags."),
|
|
150
|
-
decision: z.enum(["allow", "ask", "deny"]).describe("What to do when the rule matches."),
|
|
151
|
-
approvers: z
|
|
152
|
-
.array(approverRef)
|
|
153
|
-
.max(16)
|
|
154
|
-
.optional()
|
|
155
|
-
.describe("Who may answer, when the decision is `ask`."),
|
|
156
|
-
reason: z
|
|
157
|
-
.string()
|
|
158
|
-
.max(400)
|
|
159
|
-
.optional()
|
|
160
|
-
.describe("Shown to the agent, and recorded in the audit log."),
|
|
161
|
-
})
|
|
162
|
-
.describe("A rule the policy engine evaluates.");
|
|
163
|
-
export const policy = z
|
|
164
|
-
.object({
|
|
165
|
-
autonomy: autonomyLevel,
|
|
166
|
-
rules: z
|
|
167
|
-
.array(policyRule)
|
|
168
|
-
.max(200)
|
|
169
|
-
.describe("Evaluated in order; the workspace cap always wins."),
|
|
170
|
-
})
|
|
171
|
-
.describe("An agent's autonomy level and the rules that fill in the details.");
|
|
172
|
-
/** Money is always an estimate and always labelled as one (blueprint: cost rolls up the trail). */
|
|
173
|
-
export const cost = z
|
|
174
|
-
.object({
|
|
175
|
-
usd: z.number().nonnegative().describe("An estimate, in US dollars."),
|
|
176
|
-
estimated: z.literal(true).describe("Always true. Cost is never presented as exact."),
|
|
177
|
-
})
|
|
178
|
-
.describe("An estimated cost.");
|
|
179
|
-
export const budget = z
|
|
180
|
-
.object({
|
|
181
|
-
limit_usd: z.number().nonnegative().describe("The ceiling for this agent."),
|
|
182
|
-
spent_usd: z.number().nonnegative().describe("Spent so far, estimated."),
|
|
183
|
-
})
|
|
184
|
-
.describe("An agent's budget. Warns at 80 percent, pauses the run at 100.");
|
|
185
|
-
/** How work travelled to get here, so a lane can be traced back to the message that caused it. */
|
|
186
|
-
export const trailEntry = z
|
|
187
|
-
.object({
|
|
188
|
-
participant_id: z.string().min(1).describe("Who handled this hop."),
|
|
189
|
-
run_id: id("run").optional().describe("The run this hop belongs to."),
|
|
190
|
-
goal: z.string().max(2000).optional().describe("What was asked at this hop."),
|
|
191
|
-
})
|
|
192
|
-
.describe("One hop in the chain that led to this work.");
|
|
193
|
-
//# sourceMappingURL=primitives.js.map
|
package/dist/primitives.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"primitives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