@oneie/sdk 0.14.3 → 0.14.5

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.
@@ -0,0 +1,459 @@
1
+ {
2
+ "generatedFrom": [
3
+ "schema/one.tql",
4
+ "packages/sdk/src/receivers.ts",
5
+ "packages/sdk/src/schemas.ts#StepKind"
6
+ ],
7
+ "stepKinds": [
8
+ "trigger",
9
+ "tool",
10
+ "skill",
11
+ "agent",
12
+ "condition",
13
+ "human",
14
+ "delay",
15
+ "sell"
16
+ ],
17
+ "verbs": [
18
+ "signal",
19
+ "mark",
20
+ "warn",
21
+ "fade",
22
+ "follow",
23
+ "harden"
24
+ ],
25
+ "enums": {
26
+ "group-type": [
27
+ "company",
28
+ "community",
29
+ "dao",
30
+ "friends",
31
+ "org",
32
+ "personal",
33
+ "team",
34
+ "workspace",
35
+ "world"
36
+ ],
37
+ "actor-type": [
38
+ "agent",
39
+ "animal",
40
+ "human",
41
+ "world"
42
+ ],
43
+ "thing-type": [
44
+ "corpus",
45
+ "creative-asset",
46
+ "do-cycle",
47
+ "do-plan",
48
+ "plan",
49
+ "service",
50
+ "skill",
51
+ "step",
52
+ "task",
53
+ "token"
54
+ ]
55
+ },
56
+ "owns": {
57
+ "group": [
58
+ "gid",
59
+ "name",
60
+ "group-type",
61
+ "brand",
62
+ "sensitivity",
63
+ "fade-rate",
64
+ "toxicity-threshold",
65
+ "visibility",
66
+ "plan"
67
+ ],
68
+ "actor": [
69
+ "aid",
70
+ "name",
71
+ "actor-type",
72
+ "model",
73
+ "prompt",
74
+ "generation",
75
+ "tag",
76
+ "wallet",
77
+ "auth-hash",
78
+ "valid-from",
79
+ "valid-to",
80
+ "quota-bucket",
81
+ "actor-status"
82
+ ],
83
+ "thing": [
84
+ "tid",
85
+ "name",
86
+ "thing-type",
87
+ "price",
88
+ "tag",
89
+ "task-wave",
90
+ "task-context",
91
+ "brand",
92
+ "owner"
93
+ ],
94
+ "task": [
95
+ "task-id",
96
+ "task-name",
97
+ "status",
98
+ "done",
99
+ "score",
100
+ "effort",
101
+ "phase",
102
+ "persona",
103
+ "priority-score",
104
+ "exit-condition",
105
+ "tag"
106
+ ],
107
+ "hypothesis": [
108
+ "hid",
109
+ "statement",
110
+ "confidence",
111
+ "observations",
112
+ "scope",
113
+ "hypothesis-status",
114
+ "p-value",
115
+ "observations-count",
116
+ "observed-at",
117
+ "source"
118
+ ],
119
+ "ext-wallet": [
120
+ "wallet-address"
121
+ ],
122
+ "escrow": [
123
+ "sui-escrow-id",
124
+ "escrow-status",
125
+ "escrow-amount",
126
+ "escrow-task",
127
+ "escrow-created-ms",
128
+ "escrow-released-ms",
129
+ "escrow-cancelled-ms",
130
+ "escrow-payment-amount",
131
+ "escrow-refund-amount"
132
+ ]
133
+ },
134
+ "configKeys": {
135
+ "trigger": [
136
+ "trigger-source"
137
+ ],
138
+ "tool": [
139
+ "receiver",
140
+ "args"
141
+ ],
142
+ "skill": [
143
+ "skill",
144
+ "input"
145
+ ],
146
+ "agent": [
147
+ "actorId",
148
+ "skill",
149
+ "instructions"
150
+ ],
151
+ "condition": [
152
+ "expr"
153
+ ],
154
+ "human": [
155
+ "ask",
156
+ "mode",
157
+ "assignTo",
158
+ "schema"
159
+ ],
160
+ "delay": [
161
+ "until"
162
+ ],
163
+ "sell": [
164
+ "offer",
165
+ "workspace",
166
+ "ppid"
167
+ ]
168
+ },
169
+ "receivers": [
170
+ "actors:find",
171
+ "agent:bootstrap",
172
+ "agent:enroll",
173
+ "agent:own-link",
174
+ "agent:provision",
175
+ "agent:run",
176
+ "agents:capabilities",
177
+ "agents:commend",
178
+ "agents:flag",
179
+ "agents:register",
180
+ "agents:status",
181
+ "agents:sync",
182
+ "attention:follow",
183
+ "audience:confirm",
184
+ "audience:subscribe",
185
+ "audience:unsubscribe",
186
+ "audience:winback",
187
+ "auth:agent",
188
+ "auth:sign-out",
189
+ "billing:clients",
190
+ "billing:plan",
191
+ "billing:set-markup",
192
+ "billing:topup",
193
+ "booking:cancel",
194
+ "booking:configure",
195
+ "booking:confirm-payment",
196
+ "booking:create",
197
+ "booking:list-bookings",
198
+ "booking:list-slots",
199
+ "brain:ingest",
200
+ "brain:provision",
201
+ "brain:tombstone",
202
+ "brand:set",
203
+ "broadcast:cancel",
204
+ "broadcast:create",
205
+ "broadcast:get",
206
+ "broadcast:list",
207
+ "broadcast:schedule",
208
+ "broadcast:send",
209
+ "broadcast:test",
210
+ "broadcast:update",
211
+ "build:resume",
212
+ "build:run",
213
+ "capabilities:publish",
214
+ "chat:context",
215
+ "chat:grade",
216
+ "chat:harden",
217
+ "chat:send",
218
+ "checkout:create",
219
+ "checkout:resume",
220
+ "companies:create",
221
+ "connect:channel",
222
+ "connect:status",
223
+ "conversation:start",
224
+ "course:enroll",
225
+ "course:get",
226
+ "course:lessons-save",
227
+ "course:list",
228
+ "course:save",
229
+ "dashboard:usage",
230
+ "domain:set",
231
+ "entity:connect",
232
+ "entity:meta",
233
+ "entity:participant",
234
+ "entity:rename",
235
+ "entity:reply",
236
+ "entity:tag",
237
+ "fn:run",
238
+ "funnel:advance",
239
+ "funnel:create",
240
+ "funnel:publish",
241
+ "funnel:update-step",
242
+ "grant-capability",
243
+ "groups:invite",
244
+ "groups:join",
245
+ "groups:leave",
246
+ "groups:members",
247
+ "human:notify",
248
+ "human:resolve",
249
+ "identity:address",
250
+ "lens:delete",
251
+ "lens:list",
252
+ "lens:run",
253
+ "lens:save",
254
+ "lifecycle:save",
255
+ "links:bulk-create",
256
+ "links:create",
257
+ "market:accept",
258
+ "market:bounties",
259
+ "market:bounty",
260
+ "market:claim",
261
+ "market:counter",
262
+ "market:deliver",
263
+ "market:dispute",
264
+ "market:escrow",
265
+ "market:hire",
266
+ "market:list",
267
+ "market:offer",
268
+ "market:reject",
269
+ "market:settle",
270
+ "market:verify",
271
+ "message:send",
272
+ "meta:catalog",
273
+ "meta:entitlements",
274
+ "meta:recall",
275
+ "meta:reputation",
276
+ "meta:schema",
277
+ "meta:types",
278
+ "notify",
279
+ "notify:count",
280
+ "notify:list",
281
+ "notify:read",
282
+ "pages:create",
283
+ "pages:edit",
284
+ "pages:list",
285
+ "pages:publish",
286
+ "pages:restore",
287
+ "pages:versions",
288
+ "pay:weight",
289
+ "peer:message",
290
+ "people:create",
291
+ "playbook:get",
292
+ "playbook:promote",
293
+ "playbook:save",
294
+ "plugins:buy",
295
+ "plugins:grant",
296
+ "plugins:list",
297
+ "plugins:source",
298
+ "products:archive",
299
+ "products:create",
300
+ "products:get",
301
+ "products:list",
302
+ "products:update",
303
+ "rag:connect",
304
+ "rag:list",
305
+ "rag:mark",
306
+ "rag:promote",
307
+ "rag:search",
308
+ "seo:backlinks-summary",
309
+ "seo:gsc-performance",
310
+ "seo:keyword-metrics",
311
+ "seo:keywords-for-keyword",
312
+ "seo:llm-mentions",
313
+ "seo:serp",
314
+ "settings:write",
315
+ "signals:list",
316
+ "skill:run",
317
+ "skills:list",
318
+ "social:news-to-drafts",
319
+ "social:publish",
320
+ "space:create",
321
+ "space:invite",
322
+ "space:join",
323
+ "space:post",
324
+ "stats:current",
325
+ "storefront:stats",
326
+ "subscriptions:register",
327
+ "tasks:announce",
328
+ "tasks:mine",
329
+ "tasks:stake",
330
+ "thread:append",
331
+ "tools:connect",
332
+ "video:contact-call",
333
+ "video:create-room",
334
+ "video:create-session",
335
+ "video:delete-room",
336
+ "video:ensure-defaults",
337
+ "video:invite",
338
+ "video:join-event",
339
+ "video:quick-room",
340
+ "video:schedule-webinar",
341
+ "video:start-recording",
342
+ "video:start-stream",
343
+ "video:summary",
344
+ "view:create",
345
+ "view:delete",
346
+ "view:get",
347
+ "view:list",
348
+ "view:update",
349
+ "visitor:identify",
350
+ "visitor:promote",
351
+ "voice:call",
352
+ "voice:provision",
353
+ "voice:token",
354
+ "web:crawl",
355
+ "workflow:apply-diff",
356
+ "workflow:create",
357
+ "workflow:delete",
358
+ "workflow:fade",
359
+ "workflow:get",
360
+ "workflow:list",
361
+ "workflow:run",
362
+ "workflow:runs",
363
+ "workflow:stop",
364
+ "workflow:trigger",
365
+ "workflow:update",
366
+ "workflow:webhook-subscribe",
367
+ "world",
368
+ "world:accept-client-invite",
369
+ "world:announce",
370
+ "world:approve-request",
371
+ "world:create-actor",
372
+ "world:create-group",
373
+ "world:create-hypothesis",
374
+ "world:create-key",
375
+ "world:create-thing",
376
+ "world:create-workspace",
377
+ "world:declare-types",
378
+ "world:freeze-path",
379
+ "world:in",
380
+ "world:invite-agent",
381
+ "world:invite-client",
382
+ "world:invite-member",
383
+ "world:list-actors",
384
+ "world:list-keys",
385
+ "world:list-things",
386
+ "world:mint-owner-key",
387
+ "world:outcome",
388
+ "world:pick-model",
389
+ "world:promote-hypothesis",
390
+ "world:publish-agent",
391
+ "world:reject-hypothesis",
392
+ "world:remove-actor",
393
+ "world:remove-group",
394
+ "world:remove-member",
395
+ "world:remove-path",
396
+ "world:remove-thing",
397
+ "world:request-access",
398
+ "world:revoke-key",
399
+ "world:route",
400
+ "world:seed-router",
401
+ "world:state",
402
+ "world:subscribe",
403
+ "world:subscribers",
404
+ "world:suspend-workspace",
405
+ "world:unfreeze-path",
406
+ "world:unsubscribe",
407
+ "world:update-actor",
408
+ "world:update-contact",
409
+ "world:update-group",
410
+ "world:update-thing",
411
+ "world:update-type"
412
+ ],
413
+ "facts": {
414
+ "skill:find-product": {
415
+ "requires": [],
416
+ "provides": [
417
+ "product"
418
+ ]
419
+ },
420
+ "skill:price-product": {
421
+ "requires": [
422
+ "product"
423
+ ],
424
+ "provides": [
425
+ "price"
426
+ ]
427
+ },
428
+ "skill:qualify-buyer": {
429
+ "requires": [],
430
+ "provides": [
431
+ "buyer"
432
+ ]
433
+ },
434
+ "skill:check-fulfillment": {
435
+ "requires": [
436
+ "product"
437
+ ],
438
+ "provides": [
439
+ "source"
440
+ ]
441
+ },
442
+ "sell": {
443
+ "requires": [
444
+ "product",
445
+ "price",
446
+ "buyer",
447
+ "source"
448
+ ],
449
+ "provides": [
450
+ "order"
451
+ ]
452
+ }
453
+ },
454
+ "limits": {
455
+ "maxNodes": 200,
456
+ "maxDepth": 8,
457
+ "maxFanout": 32
458
+ }
459
+ }
@@ -0,0 +1,44 @@
1
+ export type Node = [head: string, ...rest: Atom[]];
2
+ export type Atom = Node | string | number;
3
+ export interface Grammar {
4
+ stepKinds: Set<string>;
5
+ verbs: Set<string>;
6
+ enums: Record<string, Set<string>>;
7
+ owns: Record<string, Set<string>>;
8
+ configKeys: Record<string, Set<string>>;
9
+ receivers: Set<string>;
10
+ facts: Record<string, {
11
+ requires: string[];
12
+ provides: string[];
13
+ }>;
14
+ limits: {
15
+ maxNodes: number;
16
+ maxDepth: number;
17
+ maxFanout: number;
18
+ };
19
+ }
20
+ export declare const GRAMMAR: Grammar;
21
+ export type Verdict = {
22
+ kind: "ok";
23
+ nodes: number;
24
+ capabilities: string[];
25
+ } | {
26
+ kind: "dissolved";
27
+ errors: string[];
28
+ } | {
29
+ kind: "denied";
30
+ reasons: string[];
31
+ };
32
+ export interface Scope {
33
+ agent: string;
34
+ workspace: string;
35
+ granted: Set<string>;
36
+ }
37
+ export interface WireScope {
38
+ agent: string;
39
+ workspace: string;
40
+ granted: string[];
41
+ }
42
+ export declare const hydrateScope: (w: WireScope) => Scope;
43
+ export declare function validateContract(contract: Atom, grammar: Grammar | undefined, scope: Scope): Verdict;
44
+ //# sourceMappingURL=work-contract.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"work-contract.d.ts","sourceRoot":"","sources":["../src/work-contract.ts"],"names":[],"mappings":"AAaA,MAAM,MAAM,IAAI,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC;AACnD,MAAM,MAAM,IAAI,GAAG,IAAI,GAAG,MAAM,GAAG,MAAM,CAAC;AAG1C,MAAM,WAAW,OAAO;IACtB,SAAS,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IACvB,KAAK,EAAE,GAAG,CAAC,MAAM,C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