synomem 0.1.1 → 0.3.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.
Files changed (73) hide show
  1. package/ARCHITECTURE.md +2 -2
  2. package/CHANGELOG.md +37 -0
  3. package/README.md +26 -13
  4. package/dist/cli.d.ts.map +1 -1
  5. package/dist/cli.js +379 -51
  6. package/dist/cli.js.map +1 -1
  7. package/dist/client.d.ts +131 -17
  8. package/dist/client.d.ts.map +1 -1
  9. package/dist/client.js +489 -76
  10. package/dist/client.js.map +1 -1
  11. package/dist/config.d.ts +2 -2
  12. package/dist/config.js +8 -8
  13. package/dist/import.d.ts +356 -13
  14. package/dist/import.d.ts.map +1 -1
  15. package/dist/index.d.ts +2 -2
  16. package/dist/index.d.ts.map +1 -1
  17. package/dist/index.js +2 -2
  18. package/dist/index.js.map +1 -1
  19. package/dist/mcp/index.d.ts.map +1 -1
  20. package/dist/mcp/index.js +213 -31
  21. package/dist/mcp/index.js.map +1 -1
  22. package/dist/mcp-server.js +54 -8
  23. package/dist/mcp-server.js.map +1 -1
  24. package/dist/ports/repository.d.ts +21 -1
  25. package/dist/ports/repository.d.ts.map +1 -1
  26. package/dist/projections.d.ts +26 -1
  27. package/dist/projections.d.ts.map +1 -1
  28. package/dist/projections.js +208 -44
  29. package/dist/projections.js.map +1 -1
  30. package/dist/remote.d.ts +82 -9
  31. package/dist/remote.d.ts.map +1 -1
  32. package/dist/remote.js +53 -2
  33. package/dist/remote.js.map +1 -1
  34. package/dist/schemas.d.ts +476 -21
  35. package/dist/schemas.d.ts.map +1 -1
  36. package/dist/schemas.js +204 -26
  37. package/dist/schemas.js.map +1 -1
  38. package/dist/service.d.ts +82 -10
  39. package/dist/service.d.ts.map +1 -1
  40. package/dist/skill-install.d.ts +8 -2
  41. package/dist/skill-install.d.ts.map +1 -1
  42. package/dist/skill-install.js +6 -11
  43. package/dist/skill-install.js.map +1 -1
  44. package/dist/storage.d.ts +51 -1
  45. package/dist/storage.d.ts.map +1 -1
  46. package/dist/storage.js +366 -36
  47. package/dist/storage.js.map +1 -1
  48. package/dist/types.d.ts +310 -38
  49. package/dist/types.d.ts.map +1 -1
  50. package/docs/cli.md +53 -20
  51. package/docs/examples.md +4 -4
  52. package/docs/mcp.md +12 -4
  53. package/docs/skill.md +10 -7
  54. package/docs/storage-format.md +4 -4
  55. package/openapi/synomem-v1.yaml +24 -24
  56. package/package.json +1 -1
  57. package/skills/synomem/SKILL.md +24 -8
  58. package/skills/synomem/agents/openai.yaml +1 -1
  59. package/skills/synomem/references/examples.md +1 -1
  60. package/src/cli.ts +610 -95
  61. package/src/client.ts +587 -79
  62. package/src/config.ts +8 -8
  63. package/src/index.ts +11 -1
  64. package/src/mcp/index.ts +265 -30
  65. package/src/mcp-server.ts +58 -8
  66. package/src/ports/repository.ts +21 -0
  67. package/src/projections.ts +209 -44
  68. package/src/remote.ts +166 -8
  69. package/src/schemas.ts +211 -26
  70. package/src/service.ts +85 -7
  71. package/src/skill-install.ts +14 -17
  72. package/src/storage.ts +472 -34
  73. package/src/types.ts +332 -39
package/dist/schemas.d.ts CHANGED
@@ -1,6 +1,21 @@
1
1
  import { z } from 'zod';
2
2
  import type { JsonValue } from './types.js';
3
3
  export declare const agentIdSchema: z.ZodString;
4
+ /**
5
+ * An alias as written, folded to the canonical lowercase form.
6
+ *
7
+ * People type `Mike` and `mike` interchangeably, so accepting either and
8
+ * storing one keeps a single alias from being claimed twice in two casings.
9
+ */
10
+ export declare const agentAliasSchema: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
11
+ /**
12
+ * A name offered for lookup, which may be an ID or an alias in any casing.
13
+ *
14
+ * Lookups are deliberately more permissive than writes: rejecting `Mycroft`
15
+ * for its capital letter would tell the caller nothing useful about whether
16
+ * that agent exists.
17
+ */
18
+ export declare const agentLookupSchema: z.ZodString;
4
19
  export declare const actorSchema: z.ZodObject<{
5
20
  kind: z.ZodEnum<{
6
21
  human: "human";
@@ -23,11 +38,11 @@ export declare const sourceSchema: z.ZodObject<{
23
38
  export declare const evidenceSchema: z.ZodObject<{
24
39
  kind: z.ZodEnum<{
25
40
  note: "note";
41
+ task: "task";
26
42
  "tool-call": "tool-call";
27
43
  commit: "commit";
28
44
  file: "file";
29
45
  url: "url";
30
- task: "task";
31
46
  }>;
32
47
  label: z.ZodOptional<z.ZodString>;
33
48
  value: z.ZodString;
@@ -35,7 +50,7 @@ export declare const evidenceSchema: z.ZodObject<{
35
50
  export declare const profileSchema: z.ZodObject<{
36
51
  id: z.ZodString;
37
52
  displayName: z.ZodString;
38
- aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
53
+ aliases: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
39
54
  description: z.ZodOptional<z.ZodString>;
40
55
  createdAt: z.ZodString;
41
56
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
@@ -43,19 +58,180 @@ export declare const profileSchema: z.ZodObject<{
43
58
  export declare const createAgentSchema: z.ZodObject<{
44
59
  id: z.ZodString;
45
60
  displayName: z.ZodString;
46
- aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
61
+ aliases: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
47
62
  description: z.ZodOptional<z.ZodString>;
48
63
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
49
64
  }, z.core.$strip>;
50
65
  export declare const updateAgentSchema: z.ZodObject<{
51
66
  displayName: z.ZodOptional<z.ZodString>;
52
- aliases: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString>>>;
67
+ aliases: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>>;
53
68
  description: z.ZodOptional<z.ZodOptional<z.ZodString>>;
54
69
  metadata: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>>;
55
70
  }, z.core.$strip>;
71
+ /**
72
+ * A runtime binding is a claim about where an agent runs, so the fields stay
73
+ * deliberately loose: Synomem should record a runtime it has never heard of
74
+ * rather than reject an install it cannot classify.
75
+ */
76
+ export declare const bindRuntimeSchema: z.ZodObject<{
77
+ agentId: z.ZodString;
78
+ runtime: z.ZodString;
79
+ profile: z.ZodOptional<z.ZodString>;
80
+ installationId: z.ZodOptional<z.ZodString>;
81
+ capabilities: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
82
+ }, z.core.$strict>;
56
83
  export declare const kudosTitleSchema: z.ZodString;
57
84
  export declare const kudosTagSchema: z.ZodString;
58
85
  export declare const eventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
86
+ schemaVersion: z.ZodLiteral<1>;
87
+ id: z.ZodString;
88
+ workspaceId: z.ZodString;
89
+ aggregateId: z.ZodString;
90
+ aggregateVersion: z.ZodNumber;
91
+ createdAt: z.ZodString;
92
+ actor: z.ZodObject<{
93
+ kind: z.ZodEnum<{
94
+ human: "human";
95
+ agent: "agent";
96
+ system: "system";
97
+ }>;
98
+ id: z.ZodString;
99
+ displayName: z.ZodOptional<z.ZodString>;
100
+ }, z.core.$strip>;
101
+ idempotencyKey: z.ZodOptional<z.ZodString>;
102
+ source: z.ZodOptional<z.ZodObject<{
103
+ runtime: z.ZodOptional<z.ZodString>;
104
+ model: z.ZodOptional<z.ZodString>;
105
+ sessionId: z.ZodOptional<z.ZodString>;
106
+ repository: z.ZodOptional<z.ZodString>;
107
+ commit: z.ZodOptional<z.ZodString>;
108
+ workingDirectory: z.ZodOptional<z.ZodString>;
109
+ }, z.core.$strip>>;
110
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
111
+ replyTo: z.ZodOptional<z.ZodString>;
112
+ title: z.ZodString;
113
+ body: z.ZodString;
114
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
115
+ type: z.ZodLiteral<"post.created">;
116
+ }, z.core.$strip>, z.ZodObject<{
117
+ schemaVersion: z.ZodLiteral<1>;
118
+ id: z.ZodString;
119
+ workspaceId: z.ZodString;
120
+ aggregateId: z.ZodString;
121
+ aggregateVersion: z.ZodNumber;
122
+ createdAt: z.ZodString;
123
+ actor: z.ZodObject<{
124
+ kind: z.ZodEnum<{
125
+ human: "human";
126
+ agent: "agent";
127
+ system: "system";
128
+ }>;
129
+ id: z.ZodString;
130
+ displayName: z.ZodOptional<z.ZodString>;
131
+ }, z.core.$strip>;
132
+ idempotencyKey: z.ZodOptional<z.ZodString>;
133
+ source: z.ZodOptional<z.ZodObject<{
134
+ runtime: z.ZodOptional<z.ZodString>;
135
+ model: z.ZodOptional<z.ZodString>;
136
+ sessionId: z.ZodOptional<z.ZodString>;
137
+ repository: z.ZodOptional<z.ZodString>;
138
+ commit: z.ZodOptional<z.ZodString>;
139
+ workingDirectory: z.ZodOptional<z.ZodString>;
140
+ }, z.core.$strip>>;
141
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
142
+ title: z.ZodString;
143
+ body: z.ZodString;
144
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
145
+ type: z.ZodLiteral<"post.edited">;
146
+ postId: z.ZodString;
147
+ }, z.core.$strip>, z.ZodObject<{
148
+ schemaVersion: z.ZodLiteral<1>;
149
+ id: z.ZodString;
150
+ workspaceId: z.ZodString;
151
+ aggregateId: z.ZodString;
152
+ aggregateVersion: z.ZodNumber;
153
+ createdAt: z.ZodString;
154
+ actor: z.ZodObject<{
155
+ kind: z.ZodEnum<{
156
+ human: "human";
157
+ agent: "agent";
158
+ system: "system";
159
+ }>;
160
+ id: z.ZodString;
161
+ displayName: z.ZodOptional<z.ZodString>;
162
+ }, z.core.$strip>;
163
+ idempotencyKey: z.ZodOptional<z.ZodString>;
164
+ source: z.ZodOptional<z.ZodObject<{
165
+ runtime: z.ZodOptional<z.ZodString>;
166
+ model: z.ZodOptional<z.ZodString>;
167
+ sessionId: z.ZodOptional<z.ZodString>;
168
+ repository: z.ZodOptional<z.ZodString>;
169
+ commit: z.ZodOptional<z.ZodString>;
170
+ workingDirectory: z.ZodOptional<z.ZodString>;
171
+ }, z.core.$strip>>;
172
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
173
+ type: z.ZodLiteral<"post.archived">;
174
+ postId: z.ZodString;
175
+ reason: z.ZodOptional<z.ZodString>;
176
+ }, z.core.$strip>, z.ZodObject<{
177
+ schemaVersion: z.ZodLiteral<1>;
178
+ id: z.ZodString;
179
+ workspaceId: z.ZodString;
180
+ aggregateId: z.ZodString;
181
+ aggregateVersion: z.ZodNumber;
182
+ createdAt: z.ZodString;
183
+ actor: z.ZodObject<{
184
+ kind: z.ZodEnum<{
185
+ human: "human";
186
+ agent: "agent";
187
+ system: "system";
188
+ }>;
189
+ id: z.ZodString;
190
+ displayName: z.ZodOptional<z.ZodString>;
191
+ }, z.core.$strip>;
192
+ idempotencyKey: z.ZodOptional<z.ZodString>;
193
+ source: z.ZodOptional<z.ZodObject<{
194
+ runtime: z.ZodOptional<z.ZodString>;
195
+ model: z.ZodOptional<z.ZodString>;
196
+ sessionId: z.ZodOptional<z.ZodString>;
197
+ repository: z.ZodOptional<z.ZodString>;
198
+ commit: z.ZodOptional<z.ZodString>;
199
+ workingDirectory: z.ZodOptional<z.ZodString>;
200
+ }, z.core.$strip>>;
201
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
202
+ type: z.ZodLiteral<"post.acknowledged">;
203
+ postId: z.ZodString;
204
+ note: z.ZodOptional<z.ZodString>;
205
+ }, z.core.$strip>, z.ZodObject<{
206
+ schemaVersion: z.ZodLiteral<1>;
207
+ id: z.ZodString;
208
+ workspaceId: z.ZodString;
209
+ aggregateId: z.ZodString;
210
+ aggregateVersion: z.ZodNumber;
211
+ createdAt: z.ZodString;
212
+ actor: z.ZodObject<{
213
+ kind: z.ZodEnum<{
214
+ human: "human";
215
+ agent: "agent";
216
+ system: "system";
217
+ }>;
218
+ id: z.ZodString;
219
+ displayName: z.ZodOptional<z.ZodString>;
220
+ }, z.core.$strip>;
221
+ idempotencyKey: z.ZodOptional<z.ZodString>;
222
+ source: z.ZodOptional<z.ZodObject<{
223
+ runtime: z.ZodOptional<z.ZodString>;
224
+ model: z.ZodOptional<z.ZodString>;
225
+ sessionId: z.ZodOptional<z.ZodString>;
226
+ repository: z.ZodOptional<z.ZodString>;
227
+ commit: z.ZodOptional<z.ZodString>;
228
+ workingDirectory: z.ZodOptional<z.ZodString>;
229
+ }, z.core.$strip>>;
230
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
231
+ type: z.ZodLiteral<"post.acknowledgment.withdrawn">;
232
+ postId: z.ZodString;
233
+ reason: z.ZodOptional<z.ZodString>;
234
+ }, z.core.$strip>, z.ZodObject<{
59
235
  schemaVersion: z.ZodLiteral<1>;
60
236
  id: z.ZodString;
61
237
  workspaceId: z.ZodString;
@@ -89,11 +265,11 @@ export declare const eventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
89
265
  evidence: z.ZodOptional<z.ZodArray<z.ZodObject<{
90
266
  kind: z.ZodEnum<{
91
267
  note: "note";
268
+ task: "task";
92
269
  "tool-call": "tool-call";
93
270
  commit: "commit";
94
271
  file: "file";
95
272
  url: "url";
96
- task: "task";
97
273
  }>;
98
274
  label: z.ZodOptional<z.ZodString>;
99
275
  value: z.ZodString;
@@ -197,7 +373,7 @@ export declare const eventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
197
373
  agent: z.ZodObject<{
198
374
  id: z.ZodString;
199
375
  displayName: z.ZodString;
200
- aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
376
+ aliases: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
201
377
  description: z.ZodOptional<z.ZodString>;
202
378
  createdAt: z.ZodString;
203
379
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
@@ -232,7 +408,7 @@ export declare const eventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
232
408
  agentId: z.ZodString;
233
409
  changes: z.ZodObject<{
234
410
  displayName: z.ZodOptional<z.ZodString>;
235
- aliases: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString>>>;
411
+ aliases: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>>;
236
412
  description: z.ZodOptional<z.ZodOptional<z.ZodString>>;
237
413
  metadata: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>>;
238
414
  }, z.core.$strip>;
@@ -467,7 +643,7 @@ export declare const eventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
467
643
  workspace: "workspace";
468
644
  public: "public";
469
645
  }>;
470
- type: z.ZodLiteral<"todo.created">;
646
+ type: z.ZodLiteral<"task.created">;
471
647
  assigneeAgentId: z.ZodString;
472
648
  assigneeDisplayName: z.ZodString;
473
649
  requiresAcceptance: z.ZodBoolean;
@@ -514,8 +690,8 @@ export declare const eventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
514
690
  workspace: "workspace";
515
691
  public: "public";
516
692
  }>;
517
- type: z.ZodLiteral<"todo.updated">;
518
- todoId: z.ZodString;
693
+ type: z.ZodLiteral<"task.updated">;
694
+ taskId: z.ZodString;
519
695
  }, z.core.$strip>, z.ZodObject<{
520
696
  schemaVersion: z.ZodLiteral<1>;
521
697
  id: z.ZodString;
@@ -542,8 +718,8 @@ export declare const eventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
542
718
  workingDirectory: z.ZodOptional<z.ZodString>;
543
719
  }, z.core.$strip>>;
544
720
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
545
- type: z.ZodLiteral<"todo.completed">;
546
- todoId: z.ZodString;
721
+ type: z.ZodLiteral<"task.completed">;
722
+ taskId: z.ZodString;
547
723
  note: z.ZodOptional<z.ZodString>;
548
724
  }, z.core.$strip>, z.ZodObject<{
549
725
  schemaVersion: z.ZodLiteral<1>;
@@ -571,7 +747,173 @@ export declare const eventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
571
747
  workingDirectory: z.ZodOptional<z.ZodString>;
572
748
  }, z.core.$strip>>;
573
749
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
574
- type: z.ZodLiteral<"todo.reopened">;
750
+ type: z.ZodLiteral<"task.reopened">;
751
+ taskId: z.ZodString;
752
+ }, z.core.$strip>, z.ZodObject<{
753
+ schemaVersion: z.ZodLiteral<1>;
754
+ id: z.ZodString;
755
+ workspaceId: z.ZodString;
756
+ aggregateId: z.ZodString;
757
+ aggregateVersion: z.ZodNumber;
758
+ createdAt: z.ZodString;
759
+ actor: z.ZodObject<{
760
+ kind: z.ZodEnum<{
761
+ human: "human";
762
+ agent: "agent";
763
+ system: "system";
764
+ }>;
765
+ id: z.ZodString;
766
+ displayName: z.ZodOptional<z.ZodString>;
767
+ }, z.core.$strip>;
768
+ idempotencyKey: z.ZodOptional<z.ZodString>;
769
+ source: z.ZodOptional<z.ZodObject<{
770
+ runtime: z.ZodOptional<z.ZodString>;
771
+ model: z.ZodOptional<z.ZodString>;
772
+ sessionId: z.ZodOptional<z.ZodString>;
773
+ repository: z.ZodOptional<z.ZodString>;
774
+ commit: z.ZodOptional<z.ZodString>;
775
+ workingDirectory: z.ZodOptional<z.ZodString>;
776
+ }, z.core.$strip>>;
777
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
778
+ type: z.ZodLiteral<"task.accepted">;
779
+ taskId: z.ZodString;
780
+ response: z.ZodOptional<z.ZodString>;
781
+ }, z.core.$strip>, z.ZodObject<{
782
+ schemaVersion: z.ZodLiteral<1>;
783
+ id: z.ZodString;
784
+ workspaceId: z.ZodString;
785
+ aggregateId: z.ZodString;
786
+ aggregateVersion: z.ZodNumber;
787
+ createdAt: z.ZodString;
788
+ actor: z.ZodObject<{
789
+ kind: z.ZodEnum<{
790
+ human: "human";
791
+ agent: "agent";
792
+ system: "system";
793
+ }>;
794
+ id: z.ZodString;
795
+ displayName: z.ZodOptional<z.ZodString>;
796
+ }, z.core.$strip>;
797
+ idempotencyKey: z.ZodOptional<z.ZodString>;
798
+ source: z.ZodOptional<z.ZodObject<{
799
+ runtime: z.ZodOptional<z.ZodString>;
800
+ model: z.ZodOptional<z.ZodString>;
801
+ sessionId: z.ZodOptional<z.ZodString>;
802
+ repository: z.ZodOptional<z.ZodString>;
803
+ commit: z.ZodOptional<z.ZodString>;
804
+ workingDirectory: z.ZodOptional<z.ZodString>;
805
+ }, z.core.$strip>>;
806
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
807
+ type: z.ZodLiteral<"task.rejected">;
808
+ taskId: z.ZodString;
809
+ response: z.ZodString;
810
+ }, z.core.$strip>, z.ZodObject<{
811
+ schemaVersion: z.ZodLiteral<1>;
812
+ id: z.ZodString;
813
+ workspaceId: z.ZodString;
814
+ aggregateId: z.ZodString;
815
+ aggregateVersion: z.ZodNumber;
816
+ createdAt: z.ZodString;
817
+ actor: z.ZodObject<{
818
+ kind: z.ZodEnum<{
819
+ human: "human";
820
+ agent: "agent";
821
+ system: "system";
822
+ }>;
823
+ id: z.ZodString;
824
+ displayName: z.ZodOptional<z.ZodString>;
825
+ }, z.core.$strip>;
826
+ idempotencyKey: z.ZodOptional<z.ZodString>;
827
+ source: z.ZodOptional<z.ZodObject<{
828
+ runtime: z.ZodOptional<z.ZodString>;
829
+ model: z.ZodOptional<z.ZodString>;
830
+ sessionId: z.ZodOptional<z.ZodString>;
831
+ repository: z.ZodOptional<z.ZodString>;
832
+ commit: z.ZodOptional<z.ZodString>;
833
+ workingDirectory: z.ZodOptional<z.ZodString>;
834
+ }, z.core.$strip>>;
835
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
836
+ type: z.ZodLiteral<"task.canceled">;
837
+ taskId: z.ZodString;
838
+ reason: z.ZodOptional<z.ZodString>;
839
+ }, z.core.$strip>, z.ZodObject<{
840
+ schemaVersion: z.ZodLiteral<1>;
841
+ id: z.ZodString;
842
+ workspaceId: z.ZodString;
843
+ aggregateId: z.ZodString;
844
+ aggregateVersion: z.ZodNumber;
845
+ createdAt: z.ZodString;
846
+ actor: z.ZodObject<{
847
+ kind: z.ZodEnum<{
848
+ human: "human";
849
+ agent: "agent";
850
+ system: "system";
851
+ }>;
852
+ id: z.ZodString;
853
+ displayName: z.ZodOptional<z.ZodString>;
854
+ }, z.core.$strip>;
855
+ idempotencyKey: z.ZodOptional<z.ZodString>;
856
+ source: z.ZodOptional<z.ZodObject<{
857
+ runtime: z.ZodOptional<z.ZodString>;
858
+ model: z.ZodOptional<z.ZodString>;
859
+ sessionId: z.ZodOptional<z.ZodString>;
860
+ repository: z.ZodOptional<z.ZodString>;
861
+ commit: z.ZodOptional<z.ZodString>;
862
+ workingDirectory: z.ZodOptional<z.ZodString>;
863
+ }, z.core.$strip>>;
864
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
865
+ title: z.ZodString;
866
+ details: z.ZodOptional<z.ZodString>;
867
+ priority: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>]>;
868
+ due: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
869
+ kind: z.ZodLiteral<"date">;
870
+ date: z.ZodString;
871
+ }, z.core.$strip>, z.ZodObject<{
872
+ kind: z.ZodLiteral<"datetime">;
873
+ datetime: z.ZodString;
874
+ timeZone: z.ZodString;
875
+ }, z.core.$strip>], "kind">>;
876
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
877
+ type: z.ZodLiteral<"todo.created">;
878
+ }, z.core.$strip>, z.ZodObject<{
879
+ schemaVersion: z.ZodLiteral<1>;
880
+ id: z.ZodString;
881
+ workspaceId: z.ZodString;
882
+ aggregateId: z.ZodString;
883
+ aggregateVersion: z.ZodNumber;
884
+ createdAt: z.ZodString;
885
+ actor: z.ZodObject<{
886
+ kind: z.ZodEnum<{
887
+ human: "human";
888
+ agent: "agent";
889
+ system: "system";
890
+ }>;
891
+ id: z.ZodString;
892
+ displayName: z.ZodOptional<z.ZodString>;
893
+ }, z.core.$strip>;
894
+ idempotencyKey: z.ZodOptional<z.ZodString>;
895
+ source: z.ZodOptional<z.ZodObject<{
896
+ runtime: z.ZodOptional<z.ZodString>;
897
+ model: z.ZodOptional<z.ZodString>;
898
+ sessionId: z.ZodOptional<z.ZodString>;
899
+ repository: z.ZodOptional<z.ZodString>;
900
+ commit: z.ZodOptional<z.ZodString>;
901
+ workingDirectory: z.ZodOptional<z.ZodString>;
902
+ }, z.core.$strip>>;
903
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
904
+ title: z.ZodString;
905
+ details: z.ZodOptional<z.ZodString>;
906
+ priority: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>]>;
907
+ due: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
908
+ kind: z.ZodLiteral<"date">;
909
+ date: z.ZodString;
910
+ }, z.core.$strip>, z.ZodObject<{
911
+ kind: z.ZodLiteral<"datetime">;
912
+ datetime: z.ZodString;
913
+ timeZone: z.ZodString;
914
+ }, z.core.$strip>], "kind">>;
915
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
916
+ type: z.ZodLiteral<"todo.updated">;
575
917
  todoId: z.ZodString;
576
918
  }, z.core.$strip>, z.ZodObject<{
577
919
  schemaVersion: z.ZodLiteral<1>;
@@ -599,8 +941,9 @@ export declare const eventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
599
941
  workingDirectory: z.ZodOptional<z.ZodString>;
600
942
  }, z.core.$strip>>;
601
943
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
602
- type: z.ZodLiteral<"todo.accepted">;
944
+ type: z.ZodLiteral<"todo.completed">;
603
945
  todoId: z.ZodString;
946
+ note: z.ZodOptional<z.ZodString>;
604
947
  }, z.core.$strip>, z.ZodObject<{
605
948
  schemaVersion: z.ZodLiteral<1>;
606
949
  id: z.ZodString;
@@ -627,9 +970,8 @@ export declare const eventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
627
970
  workingDirectory: z.ZodOptional<z.ZodString>;
628
971
  }, z.core.$strip>>;
629
972
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
630
- type: z.ZodLiteral<"todo.rejected">;
973
+ type: z.ZodLiteral<"todo.reopened">;
631
974
  todoId: z.ZodString;
632
- reason: z.ZodOptional<z.ZodString>;
633
975
  }, z.core.$strip>, z.ZodObject<{
634
976
  schemaVersion: z.ZodLiteral<1>;
635
977
  id: z.ZodString;
@@ -659,6 +1001,34 @@ export declare const eventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
659
1001
  type: z.ZodLiteral<"todo.canceled">;
660
1002
  todoId: z.ZodString;
661
1003
  reason: z.ZodOptional<z.ZodString>;
1004
+ }, z.core.$strip>, z.ZodObject<{
1005
+ schemaVersion: z.ZodLiteral<1>;
1006
+ id: z.ZodString;
1007
+ workspaceId: z.ZodString;
1008
+ aggregateId: z.ZodString;
1009
+ aggregateVersion: z.ZodNumber;
1010
+ createdAt: z.ZodString;
1011
+ actor: z.ZodObject<{
1012
+ kind: z.ZodEnum<{
1013
+ human: "human";
1014
+ agent: "agent";
1015
+ system: "system";
1016
+ }>;
1017
+ id: z.ZodString;
1018
+ displayName: z.ZodOptional<z.ZodString>;
1019
+ }, z.core.$strip>;
1020
+ idempotencyKey: z.ZodOptional<z.ZodString>;
1021
+ source: z.ZodOptional<z.ZodObject<{
1022
+ runtime: z.ZodOptional<z.ZodString>;
1023
+ model: z.ZodOptional<z.ZodString>;
1024
+ sessionId: z.ZodOptional<z.ZodString>;
1025
+ repository: z.ZodOptional<z.ZodString>;
1026
+ commit: z.ZodOptional<z.ZodString>;
1027
+ workingDirectory: z.ZodOptional<z.ZodString>;
1028
+ }, z.core.$strip>>;
1029
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
1030
+ type: z.ZodLiteral<"todo.archived">;
1031
+ todoId: z.ZodString;
662
1032
  }, z.core.$strip>], "type">;
663
1033
  export declare const giveKudosSchema: z.ZodObject<{
664
1034
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
@@ -682,11 +1052,11 @@ export declare const giveKudosSchema: z.ZodObject<{
682
1052
  evidence: z.ZodOptional<z.ZodArray<z.ZodObject<{
683
1053
  kind: z.ZodEnum<{
684
1054
  note: "note";
1055
+ task: "task";
685
1056
  "tool-call": "tool-call";
686
1057
  commit: "commit";
687
1058
  file: "file";
688
1059
  url: "url";
689
- task: "task";
690
1060
  }>;
691
1061
  label: z.ZodOptional<z.ZodString>;
692
1062
  value: z.ZodString;
@@ -710,11 +1080,11 @@ export declare const giveKudosMcpSchema: z.ZodObject<{
710
1080
  evidence: z.ZodOptional<z.ZodArray<z.ZodObject<{
711
1081
  kind: z.ZodEnum<{
712
1082
  note: "note";
1083
+ task: "task";
713
1084
  "tool-call": "tool-call";
714
1085
  commit: "commit";
715
1086
  file: "file";
716
1087
  url: "url";
717
- task: "task";
718
1088
  }>;
719
1089
  label: z.ZodOptional<z.ZodString>;
720
1090
  value: z.ZodString;
@@ -776,6 +1146,30 @@ export declare const sendMemoSchema: z.ZodObject<{
776
1146
  public: "public";
777
1147
  }>>;
778
1148
  }, z.core.$strict>;
1149
+ export declare const createPostSchema: z.ZodObject<{
1150
+ idempotencyKey: z.ZodOptional<z.ZodString>;
1151
+ source: z.ZodOptional<z.ZodObject<{
1152
+ runtime: z.ZodOptional<z.ZodString>;
1153
+ model: z.ZodOptional<z.ZodString>;
1154
+ sessionId: z.ZodOptional<z.ZodString>;
1155
+ repository: z.ZodOptional<z.ZodString>;
1156
+ commit: z.ZodOptional<z.ZodString>;
1157
+ workingDirectory: z.ZodOptional<z.ZodString>;
1158
+ }, z.core.$strip>>;
1159
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
1160
+ replyTo: z.ZodOptional<z.ZodString>;
1161
+ title: z.ZodString;
1162
+ body: z.ZodString;
1163
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
1164
+ }, z.core.$strict>;
1165
+ export declare const updatePostSchema: z.ZodObject<{
1166
+ postId: z.ZodString;
1167
+ expectedVersion: z.ZodNumber;
1168
+ title: z.ZodOptional<z.ZodString>;
1169
+ body: z.ZodOptional<z.ZodString>;
1170
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
1171
+ idempotencyKey: z.ZodOptional<z.ZodString>;
1172
+ }, z.core.$strict>;
779
1173
  export declare const createNoteSchema: z.ZodObject<{
780
1174
  idempotencyKey: z.ZodOptional<z.ZodString>;
781
1175
  source: z.ZodOptional<z.ZodObject<{
@@ -809,7 +1203,7 @@ export declare const reviseNoteSchema: z.ZodObject<{
809
1203
  body: z.ZodOptional<z.ZodString>;
810
1204
  tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
811
1205
  }, z.core.$strict>;
812
- export declare const createTodoSchema: z.ZodObject<{
1206
+ export declare const createTaskSchema: z.ZodObject<{
813
1207
  idempotencyKey: z.ZodOptional<z.ZodString>;
814
1208
  source: z.ZodOptional<z.ZodObject<{
815
1209
  runtime: z.ZodOptional<z.ZodString>;
@@ -839,7 +1233,7 @@ export declare const createTodoSchema: z.ZodObject<{
839
1233
  public: "public";
840
1234
  }>>;
841
1235
  }, z.core.$strict>;
842
- export declare const updateTodoSchema: z.ZodObject<{
1236
+ export declare const updateTaskSchema: z.ZodObject<{
843
1237
  idempotencyKey: z.ZodOptional<z.ZodString>;
844
1238
  source: z.ZodOptional<z.ZodObject<{
845
1239
  runtime: z.ZodOptional<z.ZodString>;
@@ -850,7 +1244,7 @@ export declare const updateTodoSchema: z.ZodObject<{
850
1244
  workingDirectory: z.ZodOptional<z.ZodString>;
851
1245
  }, z.core.$strip>>;
852
1246
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
853
- todoId: z.ZodString;
1247
+ taskId: z.ZodString;
854
1248
  expectedVersion: z.ZodNumber;
855
1249
  title: z.ZodOptional<z.ZodString>;
856
1250
  description: z.ZodOptional<z.ZodString>;
@@ -870,11 +1264,69 @@ export declare const updateTodoSchema: z.ZodObject<{
870
1264
  public: "public";
871
1265
  }>>;
872
1266
  }, z.core.$strict>;
1267
+ /**
1268
+ * A Todo takes no assignee and no visibility: it belongs to its author and is
1269
+ * always private. Omitting those fields from the input — rather than accepting
1270
+ * and ignoring them — means an attempt to assign a Todo fails loudly instead of
1271
+ * silently producing a private reminder nobody else can see.
1272
+ */
1273
+ export declare const createTodoSchema: z.ZodObject<{
1274
+ idempotencyKey: z.ZodOptional<z.ZodString>;
1275
+ source: z.ZodOptional<z.ZodObject<{
1276
+ runtime: z.ZodOptional<z.ZodString>;
1277
+ model: z.ZodOptional<z.ZodString>;
1278
+ sessionId: z.ZodOptional<z.ZodString>;
1279
+ repository: z.ZodOptional<z.ZodString>;
1280
+ commit: z.ZodOptional<z.ZodString>;
1281
+ workingDirectory: z.ZodOptional<z.ZodString>;
1282
+ }, z.core.$strip>>;
1283
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
1284
+ title: z.ZodString;
1285
+ details: z.ZodOptional<z.ZodString>;
1286
+ priority: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>]>>;
1287
+ due: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
1288
+ kind: z.ZodLiteral<"date">;
1289
+ date: z.ZodString;
1290
+ }, z.core.$strip>, z.ZodObject<{
1291
+ kind: z.ZodLiteral<"datetime">;
1292
+ datetime: z.ZodString;
1293
+ timeZone: z.ZodString;
1294
+ }, z.core.$strip>], "kind">>;
1295
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
1296
+ }, z.core.$strict>;
1297
+ export declare const updateTodoSchema: z.ZodObject<{
1298
+ idempotencyKey: z.ZodOptional<z.ZodString>;
1299
+ source: z.ZodOptional<z.ZodObject<{
1300
+ runtime: z.ZodOptional<z.ZodString>;
1301
+ model: z.ZodOptional<z.ZodString>;
1302
+ sessionId: z.ZodOptional<z.ZodString>;
1303
+ repository: z.ZodOptional<z.ZodString>;
1304
+ commit: z.ZodOptional<z.ZodString>;
1305
+ workingDirectory: z.ZodOptional<z.ZodString>;
1306
+ }, z.core.$strip>>;
1307
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
1308
+ todoId: z.ZodString;
1309
+ expectedVersion: z.ZodNumber;
1310
+ title: z.ZodOptional<z.ZodString>;
1311
+ details: z.ZodOptional<z.ZodString>;
1312
+ priority: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>]>>;
1313
+ due: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
1314
+ kind: z.ZodLiteral<"date">;
1315
+ date: z.ZodString;
1316
+ }, z.core.$strip>, z.ZodObject<{
1317
+ kind: z.ZodLiteral<"datetime">;
1318
+ datetime: z.ZodString;
1319
+ timeZone: z.ZodString;
1320
+ }, z.core.$strip>], "kind">>>;
1321
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
1322
+ }, z.core.$strict>;
873
1323
  export declare const itemListInputSchema: z.ZodObject<{
874
1324
  kinds: z.ZodOptional<z.ZodArray<z.ZodEnum<{
875
1325
  kudos: "kudos";
876
1326
  memo: "memo";
877
1327
  note: "note";
1328
+ post: "post";
1329
+ task: "task";
878
1330
  todo: "todo";
879
1331
  }>>>;
880
1332
  participantAgentId: z.ZodOptional<z.ZodString>;
@@ -884,6 +1336,9 @@ export declare const itemListInputSchema: z.ZodObject<{
884
1336
  agent: "agent";
885
1337
  system: "system";
886
1338
  }>>;
1339
+ awaitingResponse: z.ZodOptional<z.ZodBoolean>;
1340
+ awaitingSince: z.ZodOptional<z.ZodString>;
1341
+ overdueAsOf: z.ZodOptional<z.ZodString>;
887
1342
  tag: z.ZodOptional<z.ZodString>;
888
1343
  status: z.ZodOptional<z.ZodString>;
889
1344
  pending: z.ZodOptional<z.ZodBoolean>;