@aigile/core 0.2.1 → 0.4.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/dist/agent-config.d.ts +850 -0
- package/dist/agent-config.d.ts.map +1 -0
- package/dist/agent-config.js +111 -0
- package/dist/agent-config.js.map +1 -0
- package/dist/collections.d.ts +33 -1
- package/dist/collections.d.ts.map +1 -1
- package/dist/collections.js +33 -1
- package/dist/collections.js.map +1 -1
- package/dist/config-sections.d.ts +78 -0
- package/dist/config-sections.d.ts.map +1 -0
- package/dist/config-sections.js +42 -0
- package/dist/config-sections.js.map +1 -0
- package/dist/config.d.ts +6795 -445
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +724 -87
- package/dist/config.js.map +1 -1
- package/dist/domain/action-item.d.ts +409 -0
- package/dist/domain/action-item.d.ts.map +1 -0
- package/dist/domain/action-item.js +155 -0
- package/dist/domain/action-item.js.map +1 -0
- package/dist/domain/ai-call.d.ts +15 -11
- package/dist/domain/ai-call.d.ts.map +1 -1
- package/dist/domain/ai-call.js +2 -0
- package/dist/domain/ai-call.js.map +1 -1
- package/dist/domain/build.d.ts +47 -5
- package/dist/domain/build.d.ts.map +1 -1
- package/dist/domain/build.js +6 -0
- package/dist/domain/build.js.map +1 -1
- package/dist/domain/change-set.d.ts +216 -0
- package/dist/domain/change-set.d.ts.map +1 -0
- package/dist/domain/change-set.js +48 -0
- package/dist/domain/change-set.js.map +1 -0
- package/dist/domain/common.d.ts +6 -3
- package/dist/domain/common.d.ts.map +1 -1
- package/dist/domain/common.js +4 -1
- package/dist/domain/common.js.map +1 -1
- package/dist/domain/conflict.d.ts +8 -8
- package/dist/domain/conversation.d.ts +78 -8
- package/dist/domain/conversation.d.ts.map +1 -1
- package/dist/domain/conversation.js +2 -0
- package/dist/domain/conversation.js.map +1 -1
- package/dist/domain/deliverable.d.ts +235 -0
- package/dist/domain/deliverable.d.ts.map +1 -0
- package/dist/domain/deliverable.js +76 -0
- package/dist/domain/deliverable.js.map +1 -0
- package/dist/domain/index.d.ts +4 -1
- package/dist/domain/index.d.ts.map +1 -1
- package/dist/domain/index.js +4 -1
- package/dist/domain/index.js.map +1 -1
- package/dist/domain/message.d.ts +7 -7
- package/dist/domain/milestone.d.ts +11 -11
- package/dist/domain/organization.d.ts +2 -2
- package/dist/domain/project.d.ts +524 -3
- package/dist/domain/project.d.ts.map +1 -1
- package/dist/domain/project.js +38 -1
- package/dist/domain/project.js.map +1 -1
- package/dist/domain/question.d.ts +238 -26
- package/dist/domain/question.d.ts.map +1 -1
- package/dist/domain/question.js +49 -4
- package/dist/domain/question.js.map +1 -1
- package/dist/domain/reassignment.d.ts +23 -18
- package/dist/domain/reassignment.d.ts.map +1 -1
- package/dist/domain/reassignment.js +14 -6
- package/dist/domain/reassignment.js.map +1 -1
- package/dist/domain/reference.d.ts +595 -0
- package/dist/domain/reference.d.ts.map +1 -0
- package/dist/domain/reference.js +180 -0
- package/dist/domain/reference.js.map +1 -0
- package/dist/domain/release.d.ts +246 -10
- package/dist/domain/release.d.ts.map +1 -1
- package/dist/domain/release.js +6 -0
- package/dist/domain/release.js.map +1 -1
- package/dist/domain/review.d.ts +11 -11
- package/dist/domain/role-assignment.d.ts +5 -5
- package/dist/domain/role-assignment.js +1 -1
- package/dist/domain/role.d.ts +41 -6
- package/dist/domain/role.d.ts.map +1 -1
- package/dist/domain/role.js +12 -0
- package/dist/domain/role.js.map +1 -1
- package/dist/domain/spec.d.ts +197 -6
- package/dist/domain/spec.d.ts.map +1 -1
- package/dist/domain/spec.js +73 -1
- package/dist/domain/spec.js.map +1 -1
- package/dist/domain/sweep.d.ts +11 -11
- package/dist/domain/sweep.d.ts.map +1 -1
- package/dist/domain/sweep.js +1 -1
- package/dist/domain/sweep.js.map +1 -1
- package/dist/domain/track.d.ts +16 -16
- package/dist/domain/user.d.ts +50 -2
- package/dist/domain/user.d.ts.map +1 -1
- package/dist/domain/user.js +13 -0
- package/dist/domain/user.js.map +1 -1
- package/dist/domain/verification.d.ts +4 -4
- package/dist/id.d.ts +114 -0
- package/dist/id.d.ts.map +1 -0
- package/dist/id.js +204 -0
- package/dist/id.js.map +1 -0
- package/dist/ids.d.ts +0 -2
- package/dist/ids.d.ts.map +1 -1
- package/dist/ids.js +0 -5
- package/dist/ids.js.map +1 -1
- package/dist/index.d.ts +7 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +7 -0
- package/dist/index.js.map +1 -1
- package/dist/jira.d.ts +26 -0
- package/dist/jira.d.ts.map +1 -0
- package/dist/jira.js +37 -0
- package/dist/jira.js.map +1 -0
- package/dist/outline.d.ts +64 -0
- package/dist/outline.d.ts.map +1 -0
- package/dist/outline.js +127 -0
- package/dist/outline.js.map +1 -0
- package/dist/plugins/action-source.d.ts +44 -0
- package/dist/plugins/action-source.d.ts.map +1 -0
- package/dist/plugins/action-source.js +2 -0
- package/dist/plugins/action-source.js.map +1 -0
- package/dist/plugins/ai.d.ts +5 -0
- package/dist/plugins/ai.d.ts.map +1 -1
- package/dist/plugins/blob-store.d.ts +36 -0
- package/dist/plugins/blob-store.d.ts.map +1 -0
- package/dist/plugins/blob-store.js +11 -0
- package/dist/plugins/blob-store.js.map +1 -0
- package/dist/plugins/datastore.d.ts +6 -0
- package/dist/plugins/datastore.d.ts.map +1 -1
- package/dist/plugins/design.d.ts +62 -0
- package/dist/plugins/design.d.ts.map +1 -0
- package/dist/plugins/design.js +2 -0
- package/dist/plugins/design.js.map +1 -0
- package/dist/plugins/git-host.d.ts +35 -0
- package/dist/plugins/git-host.d.ts.map +1 -0
- package/dist/plugins/git-host.js +2 -0
- package/dist/plugins/git-host.js.map +1 -0
- package/dist/plugins/index.d.ts +9 -0
- package/dist/plugins/index.d.ts.map +1 -1
- package/dist/plugins/index.js +9 -0
- package/dist/plugins/index.js.map +1 -1
- package/dist/plugins/registry.d.ts +360 -0
- package/dist/plugins/registry.d.ts.map +1 -0
- package/dist/plugins/registry.js +218 -0
- package/dist/plugins/registry.js.map +1 -0
- package/dist/plugins/release-gate.d.ts +53 -0
- package/dist/plugins/release-gate.d.ts.map +1 -0
- package/dist/plugins/release-gate.js +2 -0
- package/dist/plugins/release-gate.js.map +1 -0
- package/dist/plugins/spec-cache.d.ts +23 -0
- package/dist/plugins/spec-cache.d.ts.map +1 -0
- package/dist/plugins/spec-cache.js +2 -0
- package/dist/plugins/spec-cache.js.map +1 -0
- package/dist/plugins/spec-source.d.ts +177 -0
- package/dist/plugins/spec-source.d.ts.map +1 -0
- package/dist/plugins/spec-source.js +31 -0
- package/dist/plugins/spec-source.js.map +1 -0
- package/dist/plugins/test-runner.d.ts +68 -0
- package/dist/plugins/test-runner.d.ts.map +1 -0
- package/dist/plugins/test-runner.js +14 -0
- package/dist/plugins/test-runner.js.map +1 -0
- package/dist/preamble.d.ts +11 -0
- package/dist/preamble.d.ts.map +1 -0
- package/dist/preamble.js +12 -0
- package/dist/preamble.js.map +1 -0
- package/dist/prompts.d.ts +8 -0
- package/dist/prompts.d.ts.map +1 -0
- package/dist/prompts.js +13 -0
- package/dist/prompts.js.map +1 -0
- package/dist/settings.d.ts +90 -0
- package/dist/settings.d.ts.map +1 -0
- package/dist/settings.js +120 -0
- package/dist/settings.js.map +1 -0
- package/dist/template.d.ts +89 -0
- package/dist/template.d.ts.map +1 -0
- package/dist/template.js +9 -0
- package/dist/template.js.map +1 -0
- package/package.json +9 -3
- package/prompts/mission.md +3 -0
- package/prompts/preamble.md +37 -0
|
@@ -5,7 +5,7 @@ import { z } from 'zod';
|
|
|
5
5
|
* an ancestor project, or to the project's organization or an ancestor
|
|
6
6
|
* organization; an assignment with no scope at all applies everywhere.
|
|
7
7
|
*
|
|
8
|
-
* A person may hold several: Engineering Lead for
|
|
8
|
+
* A person may hold several: Engineering Lead for one product and DevOps for
|
|
9
9
|
* all of Cast & Crew. This is separate from `User.organizationId` (the one
|
|
10
10
|
* organization a person belongs to) and from `User.jobTitle` (what they do, in
|
|
11
11
|
* their words).
|
|
@@ -24,17 +24,17 @@ export declare const roleAssignmentSchema: z.ZodObject<{
|
|
|
24
24
|
rankingOverride: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
25
25
|
}, "strip", z.ZodTypeAny, {
|
|
26
26
|
id: string;
|
|
27
|
-
|
|
27
|
+
organizationIds: string[];
|
|
28
|
+
projectIds: string[];
|
|
28
29
|
updatedAt: string;
|
|
30
|
+
createdAt: string;
|
|
29
31
|
userId: string;
|
|
30
32
|
roleId: string;
|
|
31
|
-
organizationIds: string[];
|
|
32
|
-
projectIds: string[];
|
|
33
33
|
rankingOverride: number | null;
|
|
34
34
|
}, {
|
|
35
35
|
id: string;
|
|
36
|
-
createdAt: string;
|
|
37
36
|
updatedAt: string;
|
|
37
|
+
createdAt: string;
|
|
38
38
|
userId: string;
|
|
39
39
|
roleId: string;
|
|
40
40
|
organizationIds?: string[] | undefined;
|
|
@@ -6,7 +6,7 @@ import { baseEntitySchema, idSchema } from './common.js';
|
|
|
6
6
|
* an ancestor project, or to the project's organization or an ancestor
|
|
7
7
|
* organization; an assignment with no scope at all applies everywhere.
|
|
8
8
|
*
|
|
9
|
-
* A person may hold several: Engineering Lead for
|
|
9
|
+
* A person may hold several: Engineering Lead for one product and DevOps for
|
|
10
10
|
* all of Cast & Crew. This is separate from `User.organizationId` (the one
|
|
11
11
|
* organization a person belongs to) and from `User.jobTitle` (what they do, in
|
|
12
12
|
* their words).
|
package/dist/domain/role.d.ts
CHANGED
|
@@ -26,6 +26,18 @@ export type RoleKind = z.infer<typeof roleKindSchema>;
|
|
|
26
26
|
* each with its `agentKey` ("spec-analyst") so an upgrade finds them whatever
|
|
27
27
|
* they were renamed to. The agent's brief is a spec mapped to the role.
|
|
28
28
|
*/
|
|
29
|
+
/** Where a role came from: the template (or `aigile` itself for the generic agents) and the seat in it. A role a person made has none. */
|
|
30
|
+
export declare const roleOriginSchema: z.ZodObject<{
|
|
31
|
+
templateId: z.ZodString;
|
|
32
|
+
agentKey: z.ZodString;
|
|
33
|
+
}, "strip", z.ZodTypeAny, {
|
|
34
|
+
agentKey: string;
|
|
35
|
+
templateId: string;
|
|
36
|
+
}, {
|
|
37
|
+
agentKey: string;
|
|
38
|
+
templateId: string;
|
|
39
|
+
}>;
|
|
40
|
+
export type RoleOrigin = z.infer<typeof roleOriginSchema>;
|
|
29
41
|
export declare const roleSchema: z.ZodObject<{
|
|
30
42
|
id: z.ZodString;
|
|
31
43
|
createdAt: z.ZodString;
|
|
@@ -37,26 +49,49 @@ export declare const roleSchema: z.ZodObject<{
|
|
|
37
49
|
appRole: z.ZodDefault<z.ZodEnum<["owner", "admin", "maintainer", "contributor", "viewer"]>>;
|
|
38
50
|
kind: z.ZodDefault<z.ZodEnum<["human", "agent"]>>;
|
|
39
51
|
agentKey: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
52
|
+
/** The template resource this role was instantiated from (documentation/templates.md "Instances"); kept across renames and forks. */
|
|
53
|
+
origin: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
54
|
+
templateId: z.ZodString;
|
|
55
|
+
agentKey: z.ZodString;
|
|
56
|
+
}, "strip", z.ZodTypeAny, {
|
|
57
|
+
agentKey: string;
|
|
58
|
+
templateId: string;
|
|
59
|
+
}, {
|
|
60
|
+
agentKey: string;
|
|
61
|
+
templateId: string;
|
|
62
|
+
}>>>;
|
|
63
|
+
/** True for the installation's shared instance of a template seat (the one the install seeded); a fork a project made is not. */
|
|
64
|
+
seeded: z.ZodDefault<z.ZodBoolean>;
|
|
40
65
|
}, "strip", z.ZodTypeAny, {
|
|
41
66
|
name: string;
|
|
67
|
+
kind: "human" | "agent";
|
|
42
68
|
id: string;
|
|
43
|
-
|
|
69
|
+
agentKey: string | null;
|
|
44
70
|
updatedAt: string;
|
|
71
|
+
createdAt: string;
|
|
45
72
|
ranking: number;
|
|
46
73
|
description: string;
|
|
47
74
|
appRole: "owner" | "admin" | "maintainer" | "contributor" | "viewer";
|
|
48
|
-
|
|
49
|
-
|
|
75
|
+
origin: {
|
|
76
|
+
agentKey: string;
|
|
77
|
+
templateId: string;
|
|
78
|
+
} | null;
|
|
79
|
+
seeded: boolean;
|
|
50
80
|
}, {
|
|
51
81
|
name: string;
|
|
52
82
|
id: string;
|
|
53
|
-
createdAt: string;
|
|
54
83
|
updatedAt: string;
|
|
84
|
+
createdAt: string;
|
|
55
85
|
ranking: number;
|
|
56
|
-
description?: string | undefined;
|
|
57
|
-
appRole?: "owner" | "admin" | "maintainer" | "contributor" | "viewer" | undefined;
|
|
58
86
|
kind?: "human" | "agent" | undefined;
|
|
59
87
|
agentKey?: string | null | undefined;
|
|
88
|
+
description?: string | undefined;
|
|
89
|
+
appRole?: "owner" | "admin" | "maintainer" | "contributor" | "viewer" | undefined;
|
|
90
|
+
origin?: {
|
|
91
|
+
agentKey: string;
|
|
92
|
+
templateId: string;
|
|
93
|
+
} | null | undefined;
|
|
94
|
+
seeded?: boolean | undefined;
|
|
60
95
|
}>;
|
|
61
96
|
export type Role = z.infer<typeof roleSchema>;
|
|
62
97
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"role.d.ts","sourceRoot":"","sources":["../../src/domain/role.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB;;;;;GAKG;AACH,eAAO,MAAM,SAAS,oEAAqE,CAAC;AAC5F,eAAO,MAAM,aAAa,sEAAoB,CAAC;AAC/C,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AACpD,eAAO,MAAM,eAAe,EAAE,SAAS,OAAO,EAAuB,CAAC;AACtE,yHAAyH;AACzH,eAAO,MAAM,kBAAkB,EAAE,SAAS,OAAO,EAAqC,CAAC;AAEvF,eAAO,MAAM,qBAAqB,EAAE,MAAM,CAAC,OAAO,EAAE,MAAM,CAMzD,CAAC;AAEF,wBAAgB,SAAS,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,OAAO,CAE1D;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;;;;;;;;;;;;;EAEjI,CAAC;AACH,MAAM,MAAM,IAAI,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC;AAE9C;;;;GAIG;AACH,wBAAgB,SAAS,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI,CAO5C;AAED,0FAA0F;AAC1F,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,OAAO,GAAG,OAAO,CAExD"}
|
package/dist/domain/role.js
CHANGED
|
@@ -33,6 +33,11 @@ export const roleKindSchema = z.enum(ROLE_KINDS);
|
|
|
33
33
|
* each with its `agentKey` ("spec-analyst") so an upgrade finds them whatever
|
|
34
34
|
* they were renamed to. The agent's brief is a spec mapped to the role.
|
|
35
35
|
*/
|
|
36
|
+
/** Where a role came from: the template (or `aigile` itself for the generic agents) and the seat in it. A role a person made has none. */
|
|
37
|
+
export const roleOriginSchema = z.object({
|
|
38
|
+
templateId: z.string().min(1),
|
|
39
|
+
agentKey: z.string().min(1),
|
|
40
|
+
});
|
|
36
41
|
export const roleSchema = baseEntitySchema.extend({
|
|
37
42
|
name: z.string().min(1),
|
|
38
43
|
ranking: z.number().int(),
|
|
@@ -40,6 +45,10 @@ export const roleSchema = baseEntitySchema.extend({
|
|
|
40
45
|
appRole: appRoleSchema.default('contributor'),
|
|
41
46
|
kind: roleKindSchema.default('human'),
|
|
42
47
|
agentKey: z.string().nullable().default(null),
|
|
48
|
+
/** The template resource this role was instantiated from (documentation/templates.md "Instances"); kept across renames and forks. */
|
|
49
|
+
origin: roleOriginSchema.nullable().default(null),
|
|
50
|
+
/** True for the installation's shared instance of a template seat (the one the install seeded); a fork a project made is not. */
|
|
51
|
+
seeded: z.boolean().default(false),
|
|
43
52
|
});
|
|
44
53
|
/**
|
|
45
54
|
* Parse a stored role. Roles seeded by earlier versions (`system: true`, named
|
|
@@ -51,6 +60,9 @@ export function parseRole(raw) {
|
|
|
51
60
|
const stored = typeof raw === 'object' && raw !== null ? raw : {};
|
|
52
61
|
if (stored.appRole === undefined && stored.system === true && isAppRole(role.name))
|
|
53
62
|
role.appRole = role.name;
|
|
63
|
+
// An agent role seeded before origins existed is the installation's shared instance.
|
|
64
|
+
if (role.kind === 'agent' && role.agentKey && stored.seeded === undefined)
|
|
65
|
+
role.seeded = true;
|
|
54
66
|
return role;
|
|
55
67
|
}
|
|
56
68
|
/** True for a role seeded by an earlier version as a stand-in for an application role. */
|
package/dist/domain/role.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"role.js","sourceRoot":"","sources":["../../src/domain/role.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAE/C;;;;;GAKG;AACH,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,QAAQ,CAAU,CAAC;AAC5F,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;AAE/C,MAAM,CAAC,MAAM,eAAe,GAAuB,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;AACtE,yHAAyH;AACzH,MAAM,CAAC,MAAM,kBAAkB,GAAuB,CAAC,OAAO,EAAE,OAAO,EAAE,YAAY,CAAC,CAAC;AAEvF,MAAM,CAAC,MAAM,qBAAqB,GAA4B;IAC5D,KAAK,EAAE,kDAAkD;IACzD,KAAK,EAAE,wCAAwC;IAC/C,UAAU,EAAE,6CAA6C;IACzD,WAAW,EAAE,4BAA4B;IACzC,MAAM,EAAE,QAAQ;CACjB,CAAC;AAEF,MAAM,UAAU,SAAS,CAAC,KAAc;IACtC,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAK,SAA+B,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;AACvF,CAAC;AAED,6FAA6F;AAC7F,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,OAA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ACjD,iIAAiI;IACjI,MAAM,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC;CACnC,CAAC,CAAC;AAGH;;;;GAIG;AACH,MAAM,UAAU,SAAS,CAAC,GAAY;IACpC,MAAM,IAAI,GAAG,UAAU,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IACnC,MAAM,MAAM,GAAG,OAAO,GAAG,KAAK,QAAQ,IAAI,GAAG,KAAK,IAAI,CAAC,CAAC,CAAE,GAAiE,CAAC,CAAC,CAAC,EAAE,CAAC;IACjI,IAAI,MAAM,CAAC,OAAO,KAAK,SAAS,IAAI,MAAM,CAAC,MAAM,KAAK,IAAI,IAAI,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC;QAAE,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,IAAI,CAAC;IAC7G,qFAAqF;IACrF,IAAI,IAAI,CAAC,IAAI,KAAK,OAAO,IAAI,IAAI,CAAC,QAAQ,IAAI,MAAM,CAAC,MAAM,KAAK,SAAS;QAAE,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC;IAC9F,OAAO,IAAI,CAAC;AACd,CAAC;AAED,0FAA0F;AAC1F,MAAM,UAAU,kBAAkB,CAAC,GAAY;IAC7C,OAAO,OAAO,GAAG,KAAK,QAAQ,IAAI,GAAG,KAAK,IAAI,IAAK,GAA4B,CAAC,MAAM,KAAK,IAAI,CAAC;AAClG,CAAC"}
|
package/dist/domain/spec.d.ts
CHANGED
|
@@ -1,4 +1,74 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* Where a mirrored spec comes from (documentation/sources.md): the source, the
|
|
4
|
+
* document's identity there and the version the mirror holds. Such a spec is
|
|
5
|
+
* edited at the source; aigile keeps its mappings and its history.
|
|
6
|
+
*/
|
|
7
|
+
export declare const specSourceRefSchema: z.ZodObject<{
|
|
8
|
+
sourceId: z.ZodString;
|
|
9
|
+
kind: z.ZodString;
|
|
10
|
+
externalId: z.ZodString;
|
|
11
|
+
version: z.ZodString;
|
|
12
|
+
url: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
13
|
+
/** When the mirror last took this version. */
|
|
14
|
+
syncedAt: z.ZodString;
|
|
15
|
+
/** Set when the source no longer has the document: the record stays (its relations, the builds that pinned it), hidden from lists and the resolver. */
|
|
16
|
+
removedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
17
|
+
/** Facts the source keeps about the document (a Jira issue's type, status, feature flag). */
|
|
18
|
+
meta: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
19
|
+
}, "strip", z.ZodTypeAny, {
|
|
20
|
+
url: string | null;
|
|
21
|
+
kind: string;
|
|
22
|
+
sourceId: string;
|
|
23
|
+
externalId: string;
|
|
24
|
+
version: string;
|
|
25
|
+
syncedAt: string;
|
|
26
|
+
removedAt: string | null;
|
|
27
|
+
meta: Record<string, string>;
|
|
28
|
+
}, {
|
|
29
|
+
kind: string;
|
|
30
|
+
sourceId: string;
|
|
31
|
+
externalId: string;
|
|
32
|
+
version: string;
|
|
33
|
+
syncedAt: string;
|
|
34
|
+
url?: string | null | undefined;
|
|
35
|
+
removedAt?: string | null | undefined;
|
|
36
|
+
meta?: Record<string, string> | undefined;
|
|
37
|
+
}>;
|
|
38
|
+
export type SpecSourceRef = z.infer<typeof specSourceRefSchema>;
|
|
39
|
+
/**
|
|
40
|
+
* An edit in progress on a spec: title and content as last typed, kept
|
|
41
|
+
* beside the spec until "save" writes them to the source (or, for a spec
|
|
42
|
+
* with no source, to the datastore) and the draft goes away. One per spec.
|
|
43
|
+
*/
|
|
44
|
+
export declare const specDraftSchema: z.ZodObject<{
|
|
45
|
+
id: z.ZodString;
|
|
46
|
+
createdAt: z.ZodString;
|
|
47
|
+
updatedAt: z.ZodString;
|
|
48
|
+
} & {
|
|
49
|
+
title: z.ZodString;
|
|
50
|
+
content: z.ZodDefault<z.ZodString>;
|
|
51
|
+
authorUserId: z.ZodString;
|
|
52
|
+
/** The spec's revision the edit started from; a save over a newer one is a conflict. */
|
|
53
|
+
baseRevision: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
54
|
+
}, "strip", z.ZodTypeAny, {
|
|
55
|
+
id: string;
|
|
56
|
+
title: string;
|
|
57
|
+
content: string;
|
|
58
|
+
updatedAt: string;
|
|
59
|
+
createdAt: string;
|
|
60
|
+
authorUserId: string;
|
|
61
|
+
baseRevision: string | null;
|
|
62
|
+
}, {
|
|
63
|
+
id: string;
|
|
64
|
+
title: string;
|
|
65
|
+
updatedAt: string;
|
|
66
|
+
createdAt: string;
|
|
67
|
+
authorUserId: string;
|
|
68
|
+
content?: string | undefined;
|
|
69
|
+
baseRevision?: string | null | undefined;
|
|
70
|
+
}>;
|
|
71
|
+
export type SpecDraft = z.infer<typeof specDraftSchema>;
|
|
2
72
|
/**
|
|
3
73
|
* A Spec is the primary application artifact: an authored statement of intent.
|
|
4
74
|
* It can be mapped to many organizations and projects (it then applies to every
|
|
@@ -9,6 +79,18 @@ import { z } from 'zod';
|
|
|
9
79
|
* is that agent's brief. All historical revisions are
|
|
10
80
|
* retained by the datastore (Git history), addressable via SpecRevisionRef.
|
|
11
81
|
*/
|
|
82
|
+
/** What an inline spec describes (documentation/specs.md "Inline specs"). */
|
|
83
|
+
export declare const specSubjectSchema: z.ZodObject<{
|
|
84
|
+
kind: z.ZodEnum<["organization", "project", "user", "role"]>;
|
|
85
|
+
id: z.ZodString;
|
|
86
|
+
}, "strip", z.ZodTypeAny, {
|
|
87
|
+
kind: "user" | "organization" | "project" | "role";
|
|
88
|
+
id: string;
|
|
89
|
+
}, {
|
|
90
|
+
kind: "user" | "organization" | "project" | "role";
|
|
91
|
+
id: string;
|
|
92
|
+
}>;
|
|
93
|
+
export type SpecSubject = z.infer<typeof specSubjectSchema>;
|
|
12
94
|
export declare const specSchema: z.ZodObject<{
|
|
13
95
|
id: z.ZodString;
|
|
14
96
|
createdAt: z.ZodString;
|
|
@@ -27,30 +109,139 @@ export declare const specSchema: z.ZodObject<{
|
|
|
27
109
|
* never overwritten by an upgrade.
|
|
28
110
|
*/
|
|
29
111
|
seed: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
112
|
+
/** Set on a spec mirrored from a spec source; `null` for one written in aigile. */
|
|
113
|
+
source: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
114
|
+
sourceId: z.ZodString;
|
|
115
|
+
kind: z.ZodString;
|
|
116
|
+
externalId: z.ZodString;
|
|
117
|
+
version: z.ZodString;
|
|
118
|
+
url: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
119
|
+
/** When the mirror last took this version. */
|
|
120
|
+
syncedAt: z.ZodString;
|
|
121
|
+
/** Set when the source no longer has the document: the record stays (its relations, the builds that pinned it), hidden from lists and the resolver. */
|
|
122
|
+
removedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
123
|
+
/** Facts the source keeps about the document (a Jira issue's type, status, feature flag). */
|
|
124
|
+
meta: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
125
|
+
}, "strip", z.ZodTypeAny, {
|
|
126
|
+
url: string | null;
|
|
127
|
+
kind: string;
|
|
128
|
+
sourceId: string;
|
|
129
|
+
externalId: string;
|
|
130
|
+
version: string;
|
|
131
|
+
syncedAt: string;
|
|
132
|
+
removedAt: string | null;
|
|
133
|
+
meta: Record<string, string>;
|
|
134
|
+
}, {
|
|
135
|
+
kind: string;
|
|
136
|
+
sourceId: string;
|
|
137
|
+
externalId: string;
|
|
138
|
+
version: string;
|
|
139
|
+
syncedAt: string;
|
|
140
|
+
url?: string | null | undefined;
|
|
141
|
+
removedAt?: string | null | undefined;
|
|
142
|
+
meta?: Record<string, string> | undefined;
|
|
143
|
+
}>>>;
|
|
144
|
+
/** A Charter: an organization's own grounding, opening every agent's prompt (after the Preamble) wherever this spec applies. */
|
|
145
|
+
grounding: z.ZodDefault<z.ZodBoolean>;
|
|
146
|
+
/**
|
|
147
|
+
* The spec this one sits under in an outline (documentation/sources.md
|
|
148
|
+
* "Outlines"), or null for a top one. Its children name it; it never lists
|
|
149
|
+
* them. With no organizations or projects of its own, a spec applies where
|
|
150
|
+
* its nearest ancestor does. A mirrored spec's parent comes from its source.
|
|
151
|
+
*/
|
|
152
|
+
parentId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
153
|
+
/** Its place among its siblings (lower first); null sorts after the numbered ones, by title. */
|
|
154
|
+
order: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
155
|
+
/**
|
|
156
|
+
* A mirrored spec a person (or a deliverable) placed under a spec of
|
|
157
|
+
* another source or written in aigile: the sync keeps that parent instead
|
|
158
|
+
* of the source's own (documentation/sources.md "Outlines").
|
|
159
|
+
*/
|
|
160
|
+
anchored: z.ZodDefault<z.ZodBoolean>;
|
|
161
|
+
/**
|
|
162
|
+
* Set on an inline spec: the one spec that describes this organization,
|
|
163
|
+
* project, user or role, edited on its page and named after it. Mapped to it
|
|
164
|
+
* alone, it resolves like any spec mapped there; an organization's is its
|
|
165
|
+
* Charter. Kept out of the spec tree.
|
|
166
|
+
*/
|
|
167
|
+
subject: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
168
|
+
kind: z.ZodEnum<["organization", "project", "user", "role"]>;
|
|
169
|
+
id: z.ZodString;
|
|
170
|
+
}, "strip", z.ZodTypeAny, {
|
|
171
|
+
kind: "user" | "organization" | "project" | "role";
|
|
172
|
+
id: string;
|
|
173
|
+
}, {
|
|
174
|
+
kind: "user" | "organization" | "project" | "role";
|
|
175
|
+
id: string;
|
|
176
|
+
}>>>;
|
|
30
177
|
}, "strip", z.ZodTypeAny, {
|
|
31
178
|
id: string;
|
|
32
|
-
createdAt: string;
|
|
33
|
-
updatedAt: string;
|
|
34
179
|
organizationIds: string[];
|
|
35
180
|
projectIds: string[];
|
|
36
181
|
title: string;
|
|
182
|
+
content: string;
|
|
183
|
+
updatedAt: string;
|
|
184
|
+
subject: {
|
|
185
|
+
kind: "user" | "organization" | "project" | "role";
|
|
186
|
+
id: string;
|
|
187
|
+
} | null;
|
|
188
|
+
source: {
|
|
189
|
+
url: string | null;
|
|
190
|
+
kind: string;
|
|
191
|
+
sourceId: string;
|
|
192
|
+
externalId: string;
|
|
193
|
+
version: string;
|
|
194
|
+
syncedAt: string;
|
|
195
|
+
removedAt: string | null;
|
|
196
|
+
meta: Record<string, string>;
|
|
197
|
+
} | null;
|
|
198
|
+
createdAt: string;
|
|
199
|
+
parentId: string | null;
|
|
200
|
+
order: number | null;
|
|
37
201
|
authorUserId: string;
|
|
38
202
|
roleIds: string[];
|
|
39
203
|
userIds: string[];
|
|
40
|
-
content: string;
|
|
41
204
|
seed: string | null;
|
|
205
|
+
grounding: boolean;
|
|
206
|
+
anchored: boolean;
|
|
42
207
|
}, {
|
|
43
208
|
id: string;
|
|
44
|
-
createdAt: string;
|
|
45
|
-
updatedAt: string;
|
|
46
209
|
title: string;
|
|
210
|
+
updatedAt: string;
|
|
211
|
+
createdAt: string;
|
|
47
212
|
authorUserId: string;
|
|
48
213
|
organizationIds?: string[] | undefined;
|
|
49
214
|
projectIds?: string[] | undefined;
|
|
215
|
+
content?: string | undefined;
|
|
216
|
+
subject?: {
|
|
217
|
+
kind: "user" | "organization" | "project" | "role";
|
|
218
|
+
id: string;
|
|
219
|
+
} | null | undefined;
|
|
220
|
+
source?: {
|
|
221
|
+
kind: string;
|
|
222
|
+
sourceId: string;
|
|
223
|
+
externalId: string;
|
|
224
|
+
version: string;
|
|
225
|
+
syncedAt: string;
|
|
226
|
+
url?: string | null | undefined;
|
|
227
|
+
removedAt?: string | null | undefined;
|
|
228
|
+
meta?: Record<string, string> | undefined;
|
|
229
|
+
} | null | undefined;
|
|
230
|
+
parentId?: string | null | undefined;
|
|
231
|
+
order?: number | null | undefined;
|
|
50
232
|
roleIds?: string[] | undefined;
|
|
51
233
|
userIds?: string[] | undefined;
|
|
52
|
-
content?: string | undefined;
|
|
53
234
|
seed?: string | null | undefined;
|
|
235
|
+
grounding?: boolean | undefined;
|
|
236
|
+
anchored?: boolean | undefined;
|
|
54
237
|
}>;
|
|
55
238
|
export type Spec = z.infer<typeof specSchema>;
|
|
239
|
+
/**
|
|
240
|
+
* What a spec describes inline, or null for an ordinary spec. An agent's
|
|
241
|
+
* seeded brief (seeded before inline specs existed: its seed is the agent key,
|
|
242
|
+
* mapped to that one role) counts as the role's inline spec.
|
|
243
|
+
*/
|
|
244
|
+
export declare function subjectOf(spec: Pick<Spec, 'subject' | 'seed' | 'roleIds' | 'projectIds'>): SpecSubject | null;
|
|
245
|
+
/** How an inline spec is titled: "Project: FD Cloud". */
|
|
246
|
+
export declare const SUBJECT_LABELS: Record<SpecSubject['kind'], string>;
|
|
56
247
|
//# sourceMappingURL=spec.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"spec.d.ts","sourceRoot":"","sources":["../../src/domain/spec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB;;;;;;;;;GASG;AACH,eAAO,MAAM,UAAU;;;;;;;;;;;;IAQrB;;;;OAIG
|
|
1
|
+
{"version":3,"file":"spec.d.ts","sourceRoot":"","sources":["../../src/domain/spec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB;;;;GAIG;AACH,eAAO,MAAM,mBAAmB;;;;;;IAM9B,8CAA8C;;IAE9C,uJAAuJ;;IAEvJ,6FAA6F;;;;;;;;;;;;;;;;;;;;EAE7F,CAAC;AACH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEhE;;;;GAIG;AACH,eAAO,MAAM,eAAe;;;;;;;;IAI1B,wFAAwF;;;;;;;;;;;;;;;;;;EAExF,CAAC;AACH,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAExD;;;;;;;;;GASG;AACH,6EAA6E;AAC7E,eAAO,MAAM,iBAAiB;;;;;;;;;EAAwF,CAAC;AACvH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE5D,eAAO,MAAM,UAAU;;;;;;;;;;;;IAQrB;;;;OAIG;;IAEH,mFAAmF;;;;;;;QAnDnF,8CAA8C;;QAE9C,uJAAuJ;;QAEvJ,6FAA6F;;;;;;;;;;;;;;;;;;;;;IAiD7F,gIAAgI;;IAEhI;;;;;OAKG;;IAEH,gGAAgG;;IAEhG;;;;OAIG;;IAEH;;;;;OAKG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAEH,CAAC;AACH,MAAM,MAAM,IAAI,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC;AAE9C;;;;GAIG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,SAAS,GAAG,MAAM,GAAG,SAAS,GAAG,YAAY,CAAC,GAAG,WAAW,GAAG,IAAI,CAI7G;AAED,yDAAyD;AACzD,eAAO,MAAM,cAAc,EAAE,MAAM,CAAC,WAAW,CAAC,MAAM,CAAC,EAAE,MAAM,CAAoF,CAAC"}
|
package/dist/domain/spec.js
CHANGED
|
@@ -1,5 +1,35 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { baseEntitySchema, idSchema } from './common.js';
|
|
2
|
+
import { baseEntitySchema, idSchema, isoDateTimeSchema } from './common.js';
|
|
3
|
+
/**
|
|
4
|
+
* Where a mirrored spec comes from (documentation/sources.md): the source, the
|
|
5
|
+
* document's identity there and the version the mirror holds. Such a spec is
|
|
6
|
+
* edited at the source; aigile keeps its mappings and its history.
|
|
7
|
+
*/
|
|
8
|
+
export const specSourceRefSchema = z.object({
|
|
9
|
+
sourceId: z.string().min(1),
|
|
10
|
+
kind: z.string().min(1),
|
|
11
|
+
externalId: z.string().min(1),
|
|
12
|
+
version: z.string().min(1),
|
|
13
|
+
url: z.string().nullable().default(null),
|
|
14
|
+
/** When the mirror last took this version. */
|
|
15
|
+
syncedAt: isoDateTimeSchema,
|
|
16
|
+
/** Set when the source no longer has the document: the record stays (its relations, the builds that pinned it), hidden from lists and the resolver. */
|
|
17
|
+
removedAt: isoDateTimeSchema.nullable().default(null),
|
|
18
|
+
/** Facts the source keeps about the document (a Jira issue's type, status, feature flag). */
|
|
19
|
+
meta: z.record(z.string(), z.string()).default({}),
|
|
20
|
+
});
|
|
21
|
+
/**
|
|
22
|
+
* An edit in progress on a spec: title and content as last typed, kept
|
|
23
|
+
* beside the spec until "save" writes them to the source (or, for a spec
|
|
24
|
+
* with no source, to the datastore) and the draft goes away. One per spec.
|
|
25
|
+
*/
|
|
26
|
+
export const specDraftSchema = baseEntitySchema.extend({
|
|
27
|
+
title: z.string().min(1),
|
|
28
|
+
content: z.string().default(''),
|
|
29
|
+
authorUserId: idSchema,
|
|
30
|
+
/** The spec's revision the edit started from; a save over a newer one is a conflict. */
|
|
31
|
+
baseRevision: z.string().nullable().default(null),
|
|
32
|
+
});
|
|
3
33
|
/**
|
|
4
34
|
* A Spec is the primary application artifact: an authored statement of intent.
|
|
5
35
|
* It can be mapped to many organizations and projects (it then applies to every
|
|
@@ -10,6 +40,8 @@ import { baseEntitySchema, idSchema } from './common.js';
|
|
|
10
40
|
* is that agent's brief. All historical revisions are
|
|
11
41
|
* retained by the datastore (Git history), addressable via SpecRevisionRef.
|
|
12
42
|
*/
|
|
43
|
+
/** What an inline spec describes (documentation/specs.md "Inline specs"). */
|
|
44
|
+
export const specSubjectSchema = z.object({ kind: z.enum(['organization', 'project', 'user', 'role']), id: idSchema });
|
|
13
45
|
export const specSchema = baseEntitySchema.extend({
|
|
14
46
|
title: z.string().min(1),
|
|
15
47
|
authorUserId: idSchema,
|
|
@@ -24,5 +56,45 @@ export const specSchema = baseEntitySchema.extend({
|
|
|
24
56
|
* never overwritten by an upgrade.
|
|
25
57
|
*/
|
|
26
58
|
seed: z.string().nullable().default(null),
|
|
59
|
+
/** Set on a spec mirrored from a spec source; `null` for one written in aigile. */
|
|
60
|
+
source: specSourceRefSchema.nullable().default(null),
|
|
61
|
+
/** A Charter: an organization's own grounding, opening every agent's prompt (after the Preamble) wherever this spec applies. */
|
|
62
|
+
grounding: z.boolean().default(false),
|
|
63
|
+
/**
|
|
64
|
+
* The spec this one sits under in an outline (documentation/sources.md
|
|
65
|
+
* "Outlines"), or null for a top one. Its children name it; it never lists
|
|
66
|
+
* them. With no organizations or projects of its own, a spec applies where
|
|
67
|
+
* its nearest ancestor does. A mirrored spec's parent comes from its source.
|
|
68
|
+
*/
|
|
69
|
+
parentId: idSchema.nullable().default(null),
|
|
70
|
+
/** Its place among its siblings (lower first); null sorts after the numbered ones, by title. */
|
|
71
|
+
order: z.number().nullable().default(null),
|
|
72
|
+
/**
|
|
73
|
+
* A mirrored spec a person (or a deliverable) placed under a spec of
|
|
74
|
+
* another source or written in aigile: the sync keeps that parent instead
|
|
75
|
+
* of the source's own (documentation/sources.md "Outlines").
|
|
76
|
+
*/
|
|
77
|
+
anchored: z.boolean().default(false),
|
|
78
|
+
/**
|
|
79
|
+
* Set on an inline spec: the one spec that describes this organization,
|
|
80
|
+
* project, user or role, edited on its page and named after it. Mapped to it
|
|
81
|
+
* alone, it resolves like any spec mapped there; an organization's is its
|
|
82
|
+
* Charter. Kept out of the spec tree.
|
|
83
|
+
*/
|
|
84
|
+
subject: specSubjectSchema.nullable().default(null),
|
|
27
85
|
});
|
|
86
|
+
/**
|
|
87
|
+
* What a spec describes inline, or null for an ordinary spec. An agent's
|
|
88
|
+
* seeded brief (seeded before inline specs existed: its seed is the agent key,
|
|
89
|
+
* mapped to that one role) counts as the role's inline spec.
|
|
90
|
+
*/
|
|
91
|
+
export function subjectOf(spec) {
|
|
92
|
+
if (spec.subject)
|
|
93
|
+
return spec.subject;
|
|
94
|
+
if (spec.seed && !spec.seed.includes(':') && spec.roleIds.length === 1 && spec.projectIds.length === 0)
|
|
95
|
+
return { kind: 'role', id: spec.roleIds[0] };
|
|
96
|
+
return null;
|
|
97
|
+
}
|
|
98
|
+
/** How an inline spec is titled: "Project: FD Cloud". */
|
|
99
|
+
export const SUBJECT_LABELS = { organization: 'Organization', project: 'Project', user: 'User', role: 'Role' };
|
|
28
100
|
//# sourceMappingURL=spec.js.map
|
package/dist/domain/spec.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"spec.js","sourceRoot":"","sources":["../../src/domain/spec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,gBAAgB,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"spec.js","sourceRoot":"","sources":["../../src/domain/spec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,gBAAgB,EAAE,QAAQ,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAE5E;;;;GAIG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC1C,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC3B,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACvB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC7B,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC1B,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC;IACxC,8CAA8C;IAC9C,QAAQ,EAAE,iBAAiB;IA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,MAAM,EAAE,EAAE,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC,CAAE,EAAE,CAAC;IACtJ,OAAO,IAAI,CAAC;AACd,CAAC;AAED,yDAAyD;AACzD,MAAM,CAAC,MAAM,cAAc,GAAwC,EAAE,YAAY,EAAE,cAAc,EAAE,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC"}
|
package/dist/domain/sweep.d.ts
CHANGED
|
@@ -103,7 +103,7 @@ export declare const sweepSchema: z.ZodObject<{
|
|
|
103
103
|
evidence?: string | undefined;
|
|
104
104
|
firstAction?: string | undefined;
|
|
105
105
|
}>, "many">>;
|
|
106
|
-
/** The
|
|
106
|
+
/** The action items opened for real findings. */
|
|
107
107
|
incidentItemIds: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
108
108
|
costUsd: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
109
109
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -118,27 +118,27 @@ export declare const sweepSchema: z.ZodObject<{
|
|
|
118
118
|
outputTail: string;
|
|
119
119
|
}[];
|
|
120
120
|
id: string;
|
|
121
|
-
createdAt: string;
|
|
122
121
|
updatedAt: string;
|
|
122
|
+
createdAt: string;
|
|
123
123
|
summary: string;
|
|
124
124
|
costUsd: number | null;
|
|
125
|
+
buildId: string | null;
|
|
126
|
+
reason: "audit" | "cadence" | "manual";
|
|
127
|
+
verdict: "blocked" | "watch" | "clean" | "regression";
|
|
125
128
|
findings: {
|
|
126
129
|
grade: "real" | "noise" | "watching";
|
|
127
130
|
probe: string;
|
|
128
131
|
evidence: string;
|
|
129
132
|
firstAction: string;
|
|
130
133
|
}[];
|
|
131
|
-
buildId: string | null;
|
|
132
|
-
verdict: "blocked" | "clean" | "watch" | "regression";
|
|
133
|
-
reason: "cadence" | "audit" | "manual";
|
|
134
134
|
incidentItemIds: string[];
|
|
135
135
|
}, {
|
|
136
136
|
at: string;
|
|
137
137
|
id: string;
|
|
138
|
-
createdAt: string;
|
|
139
138
|
updatedAt: string;
|
|
140
|
-
|
|
141
|
-
reason: "
|
|
139
|
+
createdAt: string;
|
|
140
|
+
reason: "audit" | "cadence" | "manual";
|
|
141
|
+
verdict: "blocked" | "watch" | "clean" | "regression";
|
|
142
142
|
probes?: {
|
|
143
143
|
name: string;
|
|
144
144
|
command: string;
|
|
@@ -150,13 +150,13 @@ export declare const sweepSchema: z.ZodObject<{
|
|
|
150
150
|
}[] | undefined;
|
|
151
151
|
summary?: string | undefined;
|
|
152
152
|
costUsd?: number | null | undefined;
|
|
153
|
+
buildId?: string | null | undefined;
|
|
153
154
|
findings?: {
|
|
154
155
|
grade: "real" | "noise" | "watching";
|
|
155
156
|
probe: string;
|
|
156
157
|
evidence?: string | undefined;
|
|
157
158
|
firstAction?: string | undefined;
|
|
158
159
|
}[] | undefined;
|
|
159
|
-
buildId?: string | null | undefined;
|
|
160
160
|
incidentItemIds?: string[] | undefined;
|
|
161
161
|
}>;
|
|
162
162
|
export type Sweep = z.infer<typeof sweepSchema>;
|
|
@@ -172,16 +172,16 @@ export declare const auditSchema: z.ZodObject<{
|
|
|
172
172
|
sweepId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
173
173
|
}, "strip", z.ZodTypeAny, {
|
|
174
174
|
id: string;
|
|
175
|
-
createdAt: string;
|
|
176
175
|
updatedAt: string;
|
|
177
176
|
done: boolean;
|
|
177
|
+
createdAt: string;
|
|
178
178
|
buildId: string;
|
|
179
179
|
dueAt: string;
|
|
180
180
|
sweepId: string | null;
|
|
181
181
|
}, {
|
|
182
182
|
id: string;
|
|
183
|
-
createdAt: string;
|
|
184
183
|
updatedAt: string;
|
|
184
|
+
createdAt: string;
|
|
185
185
|
buildId: string;
|
|
186
186
|
dueAt: string;
|
|
187
187
|
done?: boolean | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sweep.d.ts","sourceRoot":"","sources":["../../src/domain/sweep.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B,CAAC,CAAC;AAE9D;;;;GAIG;AACH,eAAO,MAAM,WAAW;;;;;;;IAGtB,wDAAwD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAMxD,iDAAiD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGjD,CAAC;AACH,MAAM,MAAM,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC;AAEhD,gFAAgF;AAChF,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;EAKtB,CAAC;AACH,MAAM,MAAM,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC"}
|
package/dist/domain/sweep.js
CHANGED
|
@@ -32,7 +32,7 @@ export const sweepSchema = baseEntitySchema.extend({
|
|
|
32
32
|
verdict: sweepVerdictSchema,
|
|
33
33
|
summary: z.string().default(''),
|
|
34
34
|
findings: z.array(sweepFindingSchema).default([]),
|
|
35
|
-
/** The
|
|
35
|
+
/** The action items opened for real findings. */
|
|
36
36
|
incidentItemIds: z.array(idSchema).default([]),
|
|
37
37
|
costUsd: z.number().nonnegative().nullable().default(null),
|
|
38
38
|
});
|
package/dist/domain/sweep.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sweep.js","sourceRoot":"","sources":["../../src/domain/sweep.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,gBAAgB,EAAE,QAAQ,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAE5E,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,SAAS,CAAU,CAAC;AACnF,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;AAGzD,MAAM,CAAC,MAAM,i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