synomem 0.1.0 → 0.2.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/ARCHITECTURE.md +2 -2
- package/CHANGELOG.md +37 -1
- package/README.md +28 -15
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +311 -70
- package/dist/cli.js.map +1 -1
- package/dist/client.d.ts +96 -17
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +333 -76
- package/dist/client.js.map +1 -1
- package/dist/config.d.ts +2 -2
- package/dist/config.js +8 -8
- package/dist/import.d.ts +207 -13
- package/dist/import.d.ts.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/mcp/index.d.ts.map +1 -1
- package/dist/mcp/index.js +156 -31
- package/dist/mcp/index.js.map +1 -1
- package/dist/mcp-server.js +54 -8
- package/dist/mcp-server.js.map +1 -1
- package/dist/ports/repository.d.ts +18 -1
- package/dist/ports/repository.d.ts.map +1 -1
- package/dist/projections.d.ts +18 -1
- package/dist/projections.d.ts.map +1 -1
- package/dist/projections.js +137 -44
- package/dist/projections.js.map +1 -1
- package/dist/remote.d.ts +57 -9
- package/dist/remote.d.ts.map +1 -1
- package/dist/remote.js +43 -2
- package/dist/remote.js.map +1 -1
- package/dist/schemas.d.ts +302 -21
- package/dist/schemas.d.ts.map +1 -1
- package/dist/schemas.js +142 -26
- package/dist/schemas.js.map +1 -1
- package/dist/service.d.ts +57 -10
- package/dist/service.d.ts.map +1 -1
- package/dist/skill-install.d.ts +8 -2
- package/dist/skill-install.d.ts.map +1 -1
- package/dist/skill-install.js +6 -11
- package/dist/skill-install.js.map +1 -1
- package/dist/storage.d.ts +41 -1
- package/dist/storage.d.ts.map +1 -1
- package/dist/storage.js +254 -36
- package/dist/storage.js.map +1 -1
- package/dist/types.d.ts +213 -38
- package/dist/types.d.ts.map +1 -1
- package/docs/cli.md +53 -20
- package/docs/examples.md +4 -4
- package/docs/mcp.md +12 -4
- package/docs/skill.md +10 -7
- package/docs/storage-format.md +4 -4
- package/openapi/synomem-v1.yaml +24 -24
- package/package.json +1 -1
- package/skills/synomem/SKILL.md +24 -8
- package/skills/synomem/agents/openai.yaml +1 -1
- package/skills/synomem/references/examples.md +1 -1
- package/src/cli.ts +572 -173
- package/src/client.ts +391 -79
- package/src/config.ts +8 -8
- package/src/index.ts +11 -1
- package/src/mcp/index.ts +189 -30
- package/src/mcp-server.ts +58 -8
- package/src/ports/repository.ts +16 -0
- package/src/projections.ts +139 -44
- package/src/remote.ts +118 -8
- package/src/schemas.ts +147 -26
- package/src/service.ts +59 -7
- package/src/skill-install.ts +14 -17
- package/src/storage.ts +326 -34
- package/src/types.ts +228 -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,16 +58,28 @@ 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<{
|
|
@@ -89,11 +116,11 @@ export declare const eventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
89
116
|
evidence: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
90
117
|
kind: z.ZodEnum<{
|
|
91
118
|
note: "note";
|
|
119
|
+
task: "task";
|
|
92
120
|
"tool-call": "tool-call";
|
|
93
121
|
commit: "commit";
|
|
94
122
|
file: "file";
|
|
95
123
|
url: "url";
|
|
96
|
-
task: "task";
|
|
97
124
|
}>;
|
|
98
125
|
label: z.ZodOptional<z.ZodString>;
|
|
99
126
|
value: z.ZodString;
|
|
@@ -197,7 +224,7 @@ export declare const eventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
197
224
|
agent: z.ZodObject<{
|
|
198
225
|
id: z.ZodString;
|
|
199
226
|
displayName: z.ZodString;
|
|
200
|
-
aliases: z.ZodOptional<z.ZodArray<z.ZodString
|
|
227
|
+
aliases: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
|
|
201
228
|
description: z.ZodOptional<z.ZodString>;
|
|
202
229
|
createdAt: z.ZodString;
|
|
203
230
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
|
|
@@ -232,7 +259,7 @@ export declare const eventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
232
259
|
agentId: z.ZodString;
|
|
233
260
|
changes: z.ZodObject<{
|
|
234
261
|
displayName: z.ZodOptional<z.ZodString>;
|
|
235
|
-
aliases: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString
|
|
262
|
+
aliases: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>>;
|
|
236
263
|
description: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
237
264
|
metadata: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>>;
|
|
238
265
|
}, z.core.$strip>;
|
|
@@ -467,7 +494,7 @@ export declare const eventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
467
494
|
workspace: "workspace";
|
|
468
495
|
public: "public";
|
|
469
496
|
}>;
|
|
470
|
-
type: z.ZodLiteral<"
|
|
497
|
+
type: z.ZodLiteral<"task.created">;
|
|
471
498
|
assigneeAgentId: z.ZodString;
|
|
472
499
|
assigneeDisplayName: z.ZodString;
|
|
473
500
|
requiresAcceptance: z.ZodBoolean;
|
|
@@ -514,8 +541,8 @@ export declare const eventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
514
541
|
workspace: "workspace";
|
|
515
542
|
public: "public";
|
|
516
543
|
}>;
|
|
517
|
-
type: z.ZodLiteral<"
|
|
518
|
-
|
|
544
|
+
type: z.ZodLiteral<"task.updated">;
|
|
545
|
+
taskId: z.ZodString;
|
|
519
546
|
}, z.core.$strip>, z.ZodObject<{
|
|
520
547
|
schemaVersion: z.ZodLiteral<1>;
|
|
521
548
|
id: z.ZodString;
|
|
@@ -542,8 +569,8 @@ export declare const eventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
542
569
|
workingDirectory: z.ZodOptional<z.ZodString>;
|
|
543
570
|
}, z.core.$strip>>;
|
|
544
571
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
|
|
545
|
-
type: z.ZodLiteral<"
|
|
546
|
-
|
|
572
|
+
type: z.ZodLiteral<"task.completed">;
|
|
573
|
+
taskId: z.ZodString;
|
|
547
574
|
note: z.ZodOptional<z.ZodString>;
|
|
548
575
|
}, z.core.$strip>, z.ZodObject<{
|
|
549
576
|
schemaVersion: z.ZodLiteral<1>;
|
|
@@ -571,7 +598,173 @@ export declare const eventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
571
598
|
workingDirectory: z.ZodOptional<z.ZodString>;
|
|
572
599
|
}, z.core.$strip>>;
|
|
573
600
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
|
|
574
|
-
type: z.ZodLiteral<"
|
|
601
|
+
type: z.ZodLiteral<"task.reopened">;
|
|
602
|
+
taskId: z.ZodString;
|
|
603
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
604
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
605
|
+
id: z.ZodString;
|
|
606
|
+
workspaceId: z.ZodString;
|
|
607
|
+
aggregateId: z.ZodString;
|
|
608
|
+
aggregateVersion: z.ZodNumber;
|
|
609
|
+
createdAt: z.ZodString;
|
|
610
|
+
actor: z.ZodObject<{
|
|
611
|
+
kind: z.ZodEnum<{
|
|
612
|
+
human: "human";
|
|
613
|
+
agent: "agent";
|
|
614
|
+
system: "system";
|
|
615
|
+
}>;
|
|
616
|
+
id: z.ZodString;
|
|
617
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
618
|
+
}, z.core.$strip>;
|
|
619
|
+
idempotencyKey: z.ZodOptional<z.ZodString>;
|
|
620
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
621
|
+
runtime: z.ZodOptional<z.ZodString>;
|
|
622
|
+
model: z.ZodOptional<z.ZodString>;
|
|
623
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
624
|
+
repository: z.ZodOptional<z.ZodString>;
|
|
625
|
+
commit: z.ZodOptional<z.ZodString>;
|
|
626
|
+
workingDirectory: z.ZodOptional<z.ZodString>;
|
|
627
|
+
}, z.core.$strip>>;
|
|
628
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
|
|
629
|
+
type: z.ZodLiteral<"task.accepted">;
|
|
630
|
+
taskId: z.ZodString;
|
|
631
|
+
response: z.ZodOptional<z.ZodString>;
|
|
632
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
633
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
634
|
+
id: z.ZodString;
|
|
635
|
+
workspaceId: z.ZodString;
|
|
636
|
+
aggregateId: z.ZodString;
|
|
637
|
+
aggregateVersion: z.ZodNumber;
|
|
638
|
+
createdAt: z.ZodString;
|
|
639
|
+
actor: z.ZodObject<{
|
|
640
|
+
kind: z.ZodEnum<{
|
|
641
|
+
human: "human";
|
|
642
|
+
agent: "agent";
|
|
643
|
+
system: "system";
|
|
644
|
+
}>;
|
|
645
|
+
id: z.ZodString;
|
|
646
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
647
|
+
}, z.core.$strip>;
|
|
648
|
+
idempotencyKey: z.ZodOptional<z.ZodString>;
|
|
649
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
650
|
+
runtime: z.ZodOptional<z.ZodString>;
|
|
651
|
+
model: z.ZodOptional<z.ZodString>;
|
|
652
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
653
|
+
repository: z.ZodOptional<z.ZodString>;
|
|
654
|
+
commit: z.ZodOptional<z.ZodString>;
|
|
655
|
+
workingDirectory: z.ZodOptional<z.ZodString>;
|
|
656
|
+
}, z.core.$strip>>;
|
|
657
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
|
|
658
|
+
type: z.ZodLiteral<"task.rejected">;
|
|
659
|
+
taskId: z.ZodString;
|
|
660
|
+
response: z.ZodString;
|
|
661
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
662
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
663
|
+
id: z.ZodString;
|
|
664
|
+
workspaceId: z.ZodString;
|
|
665
|
+
aggregateId: z.ZodString;
|
|
666
|
+
aggregateVersion: z.ZodNumber;
|
|
667
|
+
createdAt: z.ZodString;
|
|
668
|
+
actor: z.ZodObject<{
|
|
669
|
+
kind: z.ZodEnum<{
|
|
670
|
+
human: "human";
|
|
671
|
+
agent: "agent";
|
|
672
|
+
system: "system";
|
|
673
|
+
}>;
|
|
674
|
+
id: z.ZodString;
|
|
675
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
676
|
+
}, z.core.$strip>;
|
|
677
|
+
idempotencyKey: z.ZodOptional<z.ZodString>;
|
|
678
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
679
|
+
runtime: z.ZodOptional<z.ZodString>;
|
|
680
|
+
model: z.ZodOptional<z.ZodString>;
|
|
681
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
682
|
+
repository: z.ZodOptional<z.ZodString>;
|
|
683
|
+
commit: z.ZodOptional<z.ZodString>;
|
|
684
|
+
workingDirectory: z.ZodOptional<z.ZodString>;
|
|
685
|
+
}, z.core.$strip>>;
|
|
686
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
|
|
687
|
+
type: z.ZodLiteral<"task.canceled">;
|
|
688
|
+
taskId: z.ZodString;
|
|
689
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
690
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
691
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
692
|
+
id: z.ZodString;
|
|
693
|
+
workspaceId: z.ZodString;
|
|
694
|
+
aggregateId: z.ZodString;
|
|
695
|
+
aggregateVersion: z.ZodNumber;
|
|
696
|
+
createdAt: z.ZodString;
|
|
697
|
+
actor: z.ZodObject<{
|
|
698
|
+
kind: z.ZodEnum<{
|
|
699
|
+
human: "human";
|
|
700
|
+
agent: "agent";
|
|
701
|
+
system: "system";
|
|
702
|
+
}>;
|
|
703
|
+
id: z.ZodString;
|
|
704
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
705
|
+
}, z.core.$strip>;
|
|
706
|
+
idempotencyKey: z.ZodOptional<z.ZodString>;
|
|
707
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
708
|
+
runtime: z.ZodOptional<z.ZodString>;
|
|
709
|
+
model: z.ZodOptional<z.ZodString>;
|
|
710
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
711
|
+
repository: z.ZodOptional<z.ZodString>;
|
|
712
|
+
commit: z.ZodOptional<z.ZodString>;
|
|
713
|
+
workingDirectory: z.ZodOptional<z.ZodString>;
|
|
714
|
+
}, z.core.$strip>>;
|
|
715
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
|
|
716
|
+
title: z.ZodString;
|
|
717
|
+
details: z.ZodOptional<z.ZodString>;
|
|
718
|
+
priority: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>]>;
|
|
719
|
+
due: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
720
|
+
kind: z.ZodLiteral<"date">;
|
|
721
|
+
date: z.ZodString;
|
|
722
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
723
|
+
kind: z.ZodLiteral<"datetime">;
|
|
724
|
+
datetime: z.ZodString;
|
|
725
|
+
timeZone: z.ZodString;
|
|
726
|
+
}, z.core.$strip>], "kind">>;
|
|
727
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
728
|
+
type: z.ZodLiteral<"todo.created">;
|
|
729
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
730
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
731
|
+
id: z.ZodString;
|
|
732
|
+
workspaceId: z.ZodString;
|
|
733
|
+
aggregateId: z.ZodString;
|
|
734
|
+
aggregateVersion: z.ZodNumber;
|
|
735
|
+
createdAt: z.ZodString;
|
|
736
|
+
actor: z.ZodObject<{
|
|
737
|
+
kind: z.ZodEnum<{
|
|
738
|
+
human: "human";
|
|
739
|
+
agent: "agent";
|
|
740
|
+
system: "system";
|
|
741
|
+
}>;
|
|
742
|
+
id: z.ZodString;
|
|
743
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
744
|
+
}, z.core.$strip>;
|
|
745
|
+
idempotencyKey: z.ZodOptional<z.ZodString>;
|
|
746
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
747
|
+
runtime: z.ZodOptional<z.ZodString>;
|
|
748
|
+
model: z.ZodOptional<z.ZodString>;
|
|
749
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
750
|
+
repository: z.ZodOptional<z.ZodString>;
|
|
751
|
+
commit: z.ZodOptional<z.ZodString>;
|
|
752
|
+
workingDirectory: z.ZodOptional<z.ZodString>;
|
|
753
|
+
}, z.core.$strip>>;
|
|
754
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
|
|
755
|
+
title: z.ZodString;
|
|
756
|
+
details: z.ZodOptional<z.ZodString>;
|
|
757
|
+
priority: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>]>;
|
|
758
|
+
due: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
759
|
+
kind: z.ZodLiteral<"date">;
|
|
760
|
+
date: z.ZodString;
|
|
761
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
762
|
+
kind: z.ZodLiteral<"datetime">;
|
|
763
|
+
datetime: z.ZodString;
|
|
764
|
+
timeZone: z.ZodString;
|
|
765
|
+
}, z.core.$strip>], "kind">>;
|
|
766
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
767
|
+
type: z.ZodLiteral<"todo.updated">;
|
|
575
768
|
todoId: z.ZodString;
|
|
576
769
|
}, z.core.$strip>, z.ZodObject<{
|
|
577
770
|
schemaVersion: z.ZodLiteral<1>;
|
|
@@ -599,8 +792,9 @@ export declare const eventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
599
792
|
workingDirectory: z.ZodOptional<z.ZodString>;
|
|
600
793
|
}, z.core.$strip>>;
|
|
601
794
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
|
|
602
|
-
type: z.ZodLiteral<"todo.
|
|
795
|
+
type: z.ZodLiteral<"todo.completed">;
|
|
603
796
|
todoId: z.ZodString;
|
|
797
|
+
note: z.ZodOptional<z.ZodString>;
|
|
604
798
|
}, z.core.$strip>, z.ZodObject<{
|
|
605
799
|
schemaVersion: z.ZodLiteral<1>;
|
|
606
800
|
id: z.ZodString;
|
|
@@ -627,9 +821,8 @@ export declare const eventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
627
821
|
workingDirectory: z.ZodOptional<z.ZodString>;
|
|
628
822
|
}, z.core.$strip>>;
|
|
629
823
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
|
|
630
|
-
type: z.ZodLiteral<"todo.
|
|
824
|
+
type: z.ZodLiteral<"todo.reopened">;
|
|
631
825
|
todoId: z.ZodString;
|
|
632
|
-
reason: z.ZodOptional<z.ZodString>;
|
|
633
826
|
}, z.core.$strip>, z.ZodObject<{
|
|
634
827
|
schemaVersion: z.ZodLiteral<1>;
|
|
635
828
|
id: z.ZodString;
|
|
@@ -659,6 +852,34 @@ export declare const eventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
659
852
|
type: z.ZodLiteral<"todo.canceled">;
|
|
660
853
|
todoId: z.ZodString;
|
|
661
854
|
reason: z.ZodOptional<z.ZodString>;
|
|
855
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
856
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
857
|
+
id: z.ZodString;
|
|
858
|
+
workspaceId: z.ZodString;
|
|
859
|
+
aggregateId: z.ZodString;
|
|
860
|
+
aggregateVersion: z.ZodNumber;
|
|
861
|
+
createdAt: z.ZodString;
|
|
862
|
+
actor: z.ZodObject<{
|
|
863
|
+
kind: z.ZodEnum<{
|
|
864
|
+
human: "human";
|
|
865
|
+
agent: "agent";
|
|
866
|
+
system: "system";
|
|
867
|
+
}>;
|
|
868
|
+
id: z.ZodString;
|
|
869
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
870
|
+
}, z.core.$strip>;
|
|
871
|
+
idempotencyKey: z.ZodOptional<z.ZodString>;
|
|
872
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
873
|
+
runtime: z.ZodOptional<z.ZodString>;
|
|
874
|
+
model: z.ZodOptional<z.ZodString>;
|
|
875
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
876
|
+
repository: z.ZodOptional<z.ZodString>;
|
|
877
|
+
commit: z.ZodOptional<z.ZodString>;
|
|
878
|
+
workingDirectory: z.ZodOptional<z.ZodString>;
|
|
879
|
+
}, z.core.$strip>>;
|
|
880
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
|
|
881
|
+
type: z.ZodLiteral<"todo.archived">;
|
|
882
|
+
todoId: z.ZodString;
|
|
662
883
|
}, z.core.$strip>], "type">;
|
|
663
884
|
export declare const giveKudosSchema: z.ZodObject<{
|
|
664
885
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
|
|
@@ -682,11 +903,11 @@ export declare const giveKudosSchema: z.ZodObject<{
|
|
|
682
903
|
evidence: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
683
904
|
kind: z.ZodEnum<{
|
|
684
905
|
note: "note";
|
|
906
|
+
task: "task";
|
|
685
907
|
"tool-call": "tool-call";
|
|
686
908
|
commit: "commit";
|
|
687
909
|
file: "file";
|
|
688
910
|
url: "url";
|
|
689
|
-
task: "task";
|
|
690
911
|
}>;
|
|
691
912
|
label: z.ZodOptional<z.ZodString>;
|
|
692
913
|
value: z.ZodString;
|
|
@@ -710,11 +931,11 @@ export declare const giveKudosMcpSchema: z.ZodObject<{
|
|
|
710
931
|
evidence: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
711
932
|
kind: z.ZodEnum<{
|
|
712
933
|
note: "note";
|
|
934
|
+
task: "task";
|
|
713
935
|
"tool-call": "tool-call";
|
|
714
936
|
commit: "commit";
|
|
715
937
|
file: "file";
|
|
716
938
|
url: "url";
|
|
717
|
-
task: "task";
|
|
718
939
|
}>;
|
|
719
940
|
label: z.ZodOptional<z.ZodString>;
|
|
720
941
|
value: z.ZodString;
|
|
@@ -809,7 +1030,7 @@ export declare const reviseNoteSchema: z.ZodObject<{
|
|
|
809
1030
|
body: z.ZodOptional<z.ZodString>;
|
|
810
1031
|
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
811
1032
|
}, z.core.$strict>;
|
|
812
|
-
export declare const
|
|
1033
|
+
export declare const createTaskSchema: z.ZodObject<{
|
|
813
1034
|
idempotencyKey: z.ZodOptional<z.ZodString>;
|
|
814
1035
|
source: z.ZodOptional<z.ZodObject<{
|
|
815
1036
|
runtime: z.ZodOptional<z.ZodString>;
|
|
@@ -839,7 +1060,7 @@ export declare const createTodoSchema: z.ZodObject<{
|
|
|
839
1060
|
public: "public";
|
|
840
1061
|
}>>;
|
|
841
1062
|
}, z.core.$strict>;
|
|
842
|
-
export declare const
|
|
1063
|
+
export declare const updateTaskSchema: z.ZodObject<{
|
|
843
1064
|
idempotencyKey: z.ZodOptional<z.ZodString>;
|
|
844
1065
|
source: z.ZodOptional<z.ZodObject<{
|
|
845
1066
|
runtime: z.ZodOptional<z.ZodString>;
|
|
@@ -850,7 +1071,7 @@ export declare const updateTodoSchema: z.ZodObject<{
|
|
|
850
1071
|
workingDirectory: z.ZodOptional<z.ZodString>;
|
|
851
1072
|
}, z.core.$strip>>;
|
|
852
1073
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
|
|
853
|
-
|
|
1074
|
+
taskId: z.ZodString;
|
|
854
1075
|
expectedVersion: z.ZodNumber;
|
|
855
1076
|
title: z.ZodOptional<z.ZodString>;
|
|
856
1077
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -870,11 +1091,68 @@ export declare const updateTodoSchema: z.ZodObject<{
|
|
|
870
1091
|
public: "public";
|
|
871
1092
|
}>>;
|
|
872
1093
|
}, z.core.$strict>;
|
|
1094
|
+
/**
|
|
1095
|
+
* A Todo takes no assignee and no visibility: it belongs to its author and is
|
|
1096
|
+
* always private. Omitting those fields from the input — rather than accepting
|
|
1097
|
+
* and ignoring them — means an attempt to assign a Todo fails loudly instead of
|
|
1098
|
+
* silently producing a private reminder nobody else can see.
|
|
1099
|
+
*/
|
|
1100
|
+
export declare const createTodoSchema: z.ZodObject<{
|
|
1101
|
+
idempotencyKey: z.ZodOptional<z.ZodString>;
|
|
1102
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
1103
|
+
runtime: z.ZodOptional<z.ZodString>;
|
|
1104
|
+
model: z.ZodOptional<z.ZodString>;
|
|
1105
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
1106
|
+
repository: z.ZodOptional<z.ZodString>;
|
|
1107
|
+
commit: z.ZodOptional<z.ZodString>;
|
|
1108
|
+
workingDirectory: z.ZodOptional<z.ZodString>;
|
|
1109
|
+
}, z.core.$strip>>;
|
|
1110
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
|
|
1111
|
+
title: z.ZodString;
|
|
1112
|
+
details: z.ZodOptional<z.ZodString>;
|
|
1113
|
+
priority: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>]>>;
|
|
1114
|
+
due: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1115
|
+
kind: z.ZodLiteral<"date">;
|
|
1116
|
+
date: z.ZodString;
|
|
1117
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1118
|
+
kind: z.ZodLiteral<"datetime">;
|
|
1119
|
+
datetime: z.ZodString;
|
|
1120
|
+
timeZone: z.ZodString;
|
|
1121
|
+
}, z.core.$strip>], "kind">>;
|
|
1122
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1123
|
+
}, z.core.$strict>;
|
|
1124
|
+
export declare const updateTodoSchema: z.ZodObject<{
|
|
1125
|
+
idempotencyKey: z.ZodOptional<z.ZodString>;
|
|
1126
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
1127
|
+
runtime: z.ZodOptional<z.ZodString>;
|
|
1128
|
+
model: z.ZodOptional<z.ZodString>;
|
|
1129
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
1130
|
+
repository: z.ZodOptional<z.ZodString>;
|
|
1131
|
+
commit: z.ZodOptional<z.ZodString>;
|
|
1132
|
+
workingDirectory: z.ZodOptional<z.ZodString>;
|
|
1133
|
+
}, z.core.$strip>>;
|
|
1134
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
|
|
1135
|
+
todoId: z.ZodString;
|
|
1136
|
+
expectedVersion: z.ZodNumber;
|
|
1137
|
+
title: z.ZodOptional<z.ZodString>;
|
|
1138
|
+
details: z.ZodOptional<z.ZodString>;
|
|
1139
|
+
priority: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>]>>;
|
|
1140
|
+
due: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1141
|
+
kind: z.ZodLiteral<"date">;
|
|
1142
|
+
date: z.ZodString;
|
|
1143
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1144
|
+
kind: z.ZodLiteral<"datetime">;
|
|
1145
|
+
datetime: z.ZodString;
|
|
1146
|
+
timeZone: z.ZodString;
|
|
1147
|
+
}, z.core.$strip>], "kind">>>;
|
|
1148
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1149
|
+
}, z.core.$strict>;
|
|
873
1150
|
export declare const itemListInputSchema: z.ZodObject<{
|
|
874
1151
|
kinds: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
875
1152
|
kudos: "kudos";
|
|
876
1153
|
memo: "memo";
|
|
877
1154
|
note: "note";
|
|
1155
|
+
task: "task";
|
|
878
1156
|
todo: "todo";
|
|
879
1157
|
}>>>;
|
|
880
1158
|
participantAgentId: z.ZodOptional<z.ZodString>;
|
|
@@ -884,6 +1162,9 @@ export declare const itemListInputSchema: z.ZodObject<{
|
|
|
884
1162
|
agent: "agent";
|
|
885
1163
|
system: "system";
|
|
886
1164
|
}>>;
|
|
1165
|
+
awaitingResponse: z.ZodOptional<z.ZodBoolean>;
|
|
1166
|
+
awaitingSince: z.ZodOptional<z.ZodString>;
|
|
1167
|
+
overdueAsOf: z.ZodOptional<z.ZodString>;
|
|
887
1168
|
tag: z.ZodOptional<z.ZodString>;
|
|
888
1169
|
status: z.ZodOptional<z.ZodString>;
|
|
889
1170
|
pending: z.ZodOptional<z.ZodBoolean>;
|
package/dist/schemas.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../src/schemas.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAiB5C,eAAO,MAAM,aAAa,aAKkC,CAAC;AAE7D,eAAO,MAAM,WAAW;;;;;;;;iBAItB,CAAC;AAEH,eAAO,MAAM,eAAe,EAAE,CAAC,CAAC,OAAO,CAAC,SAAS,CAShD,CAAC;AAEF,eAAO,MAAM,cAAc,uGAAiD,CAAC;AAE7E,eAAO,MAAM,YAAY;;;;;;;iBAOvB,CAAC;AAoBH,eAAO,MAAM,cAAc;;;;;;;;;;;iBAavB,CAAC;AAEL,eAAO,MAAM,aAAa;;;;;;;iBAOxB,CAAC;AAEH,eAAO,MAAM,iBAAiB;;;;;;iBAA0C,CAAC;AACzE,eAAO,MAAM,iBAAiB;;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