@arcfoundry/schemas 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (86) hide show
  1. package/README.md +3 -0
  2. package/dist/artifact-content-registry.d.ts +165 -0
  3. package/dist/artifact-content-registry.js +11 -0
  4. package/dist/artifact-content-registry.js.map +1 -0
  5. package/dist/base/command-evidence.d.ts +30 -0
  6. package/dist/base/command-evidence.js +21 -0
  7. package/dist/base/command-evidence.js.map +1 -0
  8. package/dist/base.d.ts +150 -0
  9. package/dist/base.js +41 -0
  10. package/dist/base.js.map +1 -0
  11. package/dist/catalog/agent-roles.d.ts +1 -0
  12. package/dist/catalog/agent-roles.js +18 -0
  13. package/dist/catalog/agent-roles.js.map +1 -0
  14. package/dist/catalog/artifact-types.d.ts +1 -0
  15. package/dist/catalog/artifact-types.js +27 -0
  16. package/dist/catalog/artifact-types.js.map +1 -0
  17. package/dist/catalog/workflow-stages.d.ts +1 -0
  18. package/dist/catalog/workflow-stages.js +21 -0
  19. package/dist/catalog/workflow-stages.js.map +1 -0
  20. package/dist/catalog.d.ts +9 -0
  21. package/dist/catalog.js +4 -0
  22. package/dist/catalog.js.map +1 -0
  23. package/dist/content/browser-validation.d.ts +54 -0
  24. package/dist/content/browser-validation.js +23 -0
  25. package/dist/content/browser-validation.js.map +1 -0
  26. package/dist/content/build-reports.d.ts +34 -0
  27. package/dist/content/build-reports.js +19 -0
  28. package/dist/content/build-reports.js.map +1 -0
  29. package/dist/content/conflict-report.d.ts +20 -0
  30. package/dist/content/conflict-report.js +12 -0
  31. package/dist/content/conflict-report.js.map +1 -0
  32. package/dist/content/delivery.d.ts +27 -0
  33. package/dist/content/delivery.js +19 -0
  34. package/dist/content/delivery.js.map +1 -0
  35. package/dist/content/failure-report.d.ts +48 -0
  36. package/dist/content/failure-report.js +26 -0
  37. package/dist/content/failure-report.js.map +1 -0
  38. package/dist/content/memory.d.ts +16 -0
  39. package/dist/content/memory.js +15 -0
  40. package/dist/content/memory.js.map +1 -0
  41. package/dist/content/planning.d.ts +113 -0
  42. package/dist/content/planning.js +31 -0
  43. package/dist/content/planning.js.map +1 -0
  44. package/dist/content/registry.d.ts +325 -0
  45. package/dist/content/registry.js +33 -0
  46. package/dist/content/registry.js.map +1 -0
  47. package/dist/content/review.d.ts +40 -0
  48. package/dist/content/review.js +24 -0
  49. package/dist/content/review.js.map +1 -0
  50. package/dist/content/system-verification.d.ts +58 -0
  51. package/dist/content/system-verification.js +33 -0
  52. package/dist/content/system-verification.js.map +1 -0
  53. package/dist/content.d.ts +9 -0
  54. package/dist/content.js +10 -0
  55. package/dist/content.js.map +1 -0
  56. package/dist/dispatch.d.ts +17 -0
  57. package/dist/dispatch.js +24 -0
  58. package/dist/dispatch.js.map +1 -0
  59. package/dist/index.d.ts +7 -0
  60. package/dist/index.js +6 -0
  61. package/dist/index.js.map +1 -0
  62. package/package.json +27 -0
  63. package/schemas/accessibility-review.schema.json +175 -0
  64. package/schemas/adr-record.schema.json +175 -0
  65. package/schemas/browser-validation-report.schema.json +273 -0
  66. package/schemas/client-brief.schema.json +175 -0
  67. package/schemas/client-summary.schema.json +175 -0
  68. package/schemas/conflict-report.schema.json +211 -0
  69. package/schemas/delivery-plan.schema.json +175 -0
  70. package/schemas/deployment-checklist.schema.json +175 -0
  71. package/schemas/discovery-report.schema.json +175 -0
  72. package/schemas/engineering-review.schema.json +175 -0
  73. package/schemas/failure-report.schema.json +252 -0
  74. package/schemas/implementation-report.schema.json +175 -0
  75. package/schemas/memory-candidate-report.schema.json +175 -0
  76. package/schemas/memory-promotion-report.schema.json +175 -0
  77. package/schemas/performance-review.schema.json +175 -0
  78. package/schemas/product-spec.schema.json +175 -0
  79. package/schemas/pull-request-package.schema.json +175 -0
  80. package/schemas/release-package.schema.json +175 -0
  81. package/schemas/security-review.schema.json +175 -0
  82. package/schemas/system-verification-report.schema.json +351 -0
  83. package/schemas/task-breakdown.schema.json +175 -0
  84. package/schemas/technical-design.schema.json +175 -0
  85. package/schemas/test-plan.schema.json +175 -0
  86. package/schemas/test-report.schema.json +175 -0
@@ -0,0 +1,34 @@
1
+ import { z } from "zod";
2
+ export declare const implementationReportContentSchema: z.ZodObject<{
3
+ changedPaths: z.ZodArray<z.ZodString>;
4
+ implementationSummary: z.ZodString;
5
+ demoProject: z.ZodOptional<z.ZodObject<{
6
+ packageName: z.ZodString;
7
+ playwrightConfig: z.ZodString;
8
+ changedPaths: z.ZodArray<z.ZodString>;
9
+ }, z.core.$strip>>;
10
+ }, z.core.$strip>;
11
+ export declare const testReportContentSchema: z.ZodObject<{
12
+ commandsExecuted: z.ZodArray<z.ZodObject<{
13
+ purpose: z.ZodEnum<{
14
+ format: "format";
15
+ install: "install";
16
+ test: "test";
17
+ build: "build";
18
+ "browser-validation": "browser-validation";
19
+ "agent-stage": "agent-stage";
20
+ lint: "lint";
21
+ "architecture-check": "architecture-check";
22
+ other: "other";
23
+ }>;
24
+ command: z.ZodString;
25
+ exitCode: z.ZodNumber;
26
+ durationMs: z.ZodNumber;
27
+ stdoutRef: z.ZodNullable<z.ZodString>;
28
+ stderrRef: z.ZodNullable<z.ZodString>;
29
+ }, z.core.$strip>>;
30
+ testsPassed: z.ZodBoolean;
31
+ blockingIssues: z.ZodArray<z.ZodString>;
32
+ }, z.core.$strip>;
33
+ export type ImplementationReportContent = z.infer<typeof implementationReportContentSchema>;
34
+ export type TestReportContent = z.infer<typeof testReportContentSchema>;
@@ -0,0 +1,19 @@
1
+ import { z } from "zod";
2
+ import { commandEvidenceSchema } from "../base.js";
3
+ export const implementationReportContentSchema = z.object({
4
+ changedPaths: z.array(z.string().min(1)),
5
+ implementationSummary: z.string().min(1),
6
+ demoProject: z
7
+ .object({
8
+ packageName: z.string().min(1),
9
+ playwrightConfig: z.string().min(1),
10
+ changedPaths: z.array(z.string().min(1)),
11
+ })
12
+ .optional(),
13
+ });
14
+ export const testReportContentSchema = z.object({
15
+ commandsExecuted: z.array(commandEvidenceSchema),
16
+ testsPassed: z.boolean(),
17
+ blockingIssues: z.array(z.string()),
18
+ });
19
+ //# sourceMappingURL=build-reports.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"build-reports.js","sourceRoot":"","sources":["../../src/content/build-reports.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AAEnD,MAAM,CAAC,MAAM,iCAAiC,GAAG,CAAC,CAAC,MAAM,CAAC;IACxD,YAAY,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;IACxC,qBAAqB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACxC,WAAW,EAAE,CAAC;SACX,MAAM,CAAC;QACN,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;QAC9B,gBAAgB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;QACnC,YAAY,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;KACzC,CAAC;SACD,QAAQ,EAAE;CACd,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9C,gBAAgB,EAAE,CAAC,CAAC,KAAK,CAAC,qBAAqB,CAAC;IAChD,WAAW,EAAE,CAAC,CAAC,OAAO,EAAE;IACxB,cAAc,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;CACpC,CAAC,CAAC"}
@@ -0,0 +1,20 @@
1
+ import { z } from "zod";
2
+ export declare const conflictReportContentSchema: z.ZodObject<{
3
+ conflictType: z.ZodEnum<{
4
+ adr_violation: "adr_violation";
5
+ missing_decision: "missing_decision";
6
+ supersession_required: "supersession_required";
7
+ }>;
8
+ relatedAdrIds: z.ZodArray<z.ZodString>;
9
+ impact: z.ZodEnum<{
10
+ low: "low";
11
+ medium: "medium";
12
+ high: "high";
13
+ critical: "critical";
14
+ }>;
15
+ options: z.ZodArray<z.ZodObject<{
16
+ option: z.ZodString;
17
+ tradeoffs: z.ZodArray<z.ZodString>;
18
+ requiresApproval: z.ZodBoolean;
19
+ }, z.core.$strip>>;
20
+ }, z.core.$strip>;
@@ -0,0 +1,12 @@
1
+ import { z } from "zod";
2
+ export const conflictReportContentSchema = z.object({
3
+ conflictType: z.enum(["adr_violation", "missing_decision", "supersession_required"]),
4
+ relatedAdrIds: z.array(z.string()),
5
+ impact: z.enum(["low", "medium", "high", "critical"]),
6
+ options: z.array(z.object({
7
+ option: z.string(),
8
+ tradeoffs: z.array(z.string()),
9
+ requiresApproval: z.boolean(),
10
+ })),
11
+ });
12
+ //# sourceMappingURL=conflict-report.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"conflict-report.js","sourceRoot":"","sources":["../../src/content/conflict-report.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC,CAAC,MAAM,CAAC;IAClD,YAAY,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,eAAe,EAAE,kBAAkB,EAAE,uBAAuB,CAAC,CAAC;IACpF,aAAa,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAClC,MAAM,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,UAAU,CAAC,CAAC;IACrD,OAAO,EAAE,CAAC,CAAC,KAAK,CACd,CAAC,CAAC,MAAM,CAAC;QACP,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;QAClB,SAAS,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;QAC9B,gBAAgB,EAAE,CAAC,CAAC,OAAO,EAAE;KAC9B,CAAC,CACH;CACF,CAAC,CAAC"}
@@ -0,0 +1,27 @@
1
+ import { z } from "zod";
2
+ export declare const pullRequestPackageContentSchema: z.ZodObject<{
3
+ summary: z.ZodString;
4
+ changedPaths: z.ZodArray<z.ZodString>;
5
+ evidenceDir: z.ZodString;
6
+ }, z.core.$strip>;
7
+ export declare const releasePackageContentSchema: z.ZodObject<{
8
+ releasable: z.ZodBoolean;
9
+ packageType: z.ZodLiteral<"verification-run">;
10
+ }, z.core.$strip>;
11
+ export declare const deploymentChecklistContentSchema: z.ZodObject<{
12
+ items: z.ZodArray<z.ZodObject<{
13
+ item: z.ZodString;
14
+ status: z.ZodEnum<{
15
+ passed: "passed";
16
+ failed: "failed";
17
+ }>;
18
+ }, z.core.$strip>>;
19
+ }, z.core.$strip>;
20
+ export declare const clientSummaryContentSchema: z.ZodObject<{
21
+ summary: z.ZodString;
22
+ evidence: z.ZodArray<z.ZodString>;
23
+ }, z.core.$strip>;
24
+ export type PullRequestPackageContent = z.infer<typeof pullRequestPackageContentSchema>;
25
+ export type ReleasePackageContent = z.infer<typeof releasePackageContentSchema>;
26
+ export type DeploymentChecklistContent = z.infer<typeof deploymentChecklistContentSchema>;
27
+ export type ClientSummaryContent = z.infer<typeof clientSummaryContentSchema>;
@@ -0,0 +1,19 @@
1
+ import { z } from "zod";
2
+ const checklistStatusSchema = z.enum(["passed", "failed"]);
3
+ export const pullRequestPackageContentSchema = z.object({
4
+ summary: z.string().min(1),
5
+ changedPaths: z.array(z.string().min(1)),
6
+ evidenceDir: z.string().min(1),
7
+ });
8
+ export const releasePackageContentSchema = z.object({
9
+ releasable: z.boolean(),
10
+ packageType: z.literal("verification-run"),
11
+ });
12
+ export const deploymentChecklistContentSchema = z.object({
13
+ items: z.array(z.object({ item: z.string().min(1), status: checklistStatusSchema })),
14
+ });
15
+ export const clientSummaryContentSchema = z.object({
16
+ summary: z.string().min(1),
17
+ evidence: z.array(z.string().min(1)),
18
+ });
19
+ //# sourceMappingURL=delivery.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"delivery.js","sourceRoot":"","sources":["../../src/content/delivery.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,qBAAqB,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC,CAAC;AAE3D,MAAM,CAAC,MAAM,+BAA+B,GAAG,CAAC,CAAC,MAAM,CAAC;IACtD,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC1B,YAAY,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;IACxC,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;CAC/B,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC,CAAC,MAAM,CAAC;IAClD,UAAU,EAAE,CAAC,CAAC,OAAO,EAAE;IACvB,WAAW,EAAE,CAAC,CAAC,OAAO,CAAC,kBAAkB,CAAC;CAC3C,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,gCAAgC,GAAG,CAAC,CAAC,MAAM,CAAC;IACvD,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,qBAAqB,EAAE,CAAC,CAAC;CACrF,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,CAAC,MAAM,CAAC;IACjD,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC1B,QAAQ,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CACrC,CAAC,CAAC"}
@@ -0,0 +1,48 @@
1
+ import { z } from "zod";
2
+ export declare const failureReportContentSchema: z.ZodObject<{
3
+ stage: z.ZodEnum<{
4
+ "browser-validation": "browser-validation";
5
+ "technical-design": "technical-design";
6
+ "security-review": "security-review";
7
+ "accessibility-review": "accessibility-review";
8
+ "performance-review": "performance-review";
9
+ "engineering-review": "engineering-review";
10
+ intake: "intake";
11
+ discovery: "discovery";
12
+ "product-specification": "product-specification";
13
+ "memory-retrieval": "memory-retrieval";
14
+ "adr-retrieval": "adr-retrieval";
15
+ "delivery-planning": "delivery-planning";
16
+ implementation: "implementation";
17
+ "unit-integration-tests": "unit-integration-tests";
18
+ "delivery-package": "delivery-package";
19
+ "memory-candidate-write": "memory-candidate-write";
20
+ "memory-promotion": "memory-promotion";
21
+ "system-verification": "system-verification";
22
+ }>;
23
+ failureType: z.ZodEnum<{
24
+ test: "test";
25
+ implementation: "implementation";
26
+ runtime: "runtime";
27
+ unknown: "unknown";
28
+ browser: "browser";
29
+ validation: "validation";
30
+ security: "security";
31
+ accessibility: "accessibility";
32
+ performance: "performance";
33
+ governance: "governance";
34
+ memory: "memory";
35
+ }>;
36
+ severity: z.ZodEnum<{
37
+ low: "low";
38
+ medium: "medium";
39
+ high: "high";
40
+ critical: "critical";
41
+ }>;
42
+ summary: z.ZodString;
43
+ details: z.ZodString;
44
+ blocking: z.ZodBoolean;
45
+ recommendedFixes: z.ZodArray<z.ZodString>;
46
+ requiresHumanApproval: z.ZodBoolean;
47
+ artifactsAffected: z.ZodArray<z.ZodString>;
48
+ }, z.core.$strip>;
@@ -0,0 +1,26 @@
1
+ import { z } from "zod";
2
+ import { workflowStageSchema } from "../base.js";
3
+ export const failureReportContentSchema = z.object({
4
+ stage: workflowStageSchema,
5
+ failureType: z.enum([
6
+ "validation",
7
+ "implementation",
8
+ "test",
9
+ "browser",
10
+ "security",
11
+ "accessibility",
12
+ "performance",
13
+ "runtime",
14
+ "governance",
15
+ "memory",
16
+ "unknown",
17
+ ]),
18
+ severity: z.enum(["critical", "high", "medium", "low"]),
19
+ summary: z.string(),
20
+ details: z.string(),
21
+ blocking: z.boolean(),
22
+ recommendedFixes: z.array(z.string()),
23
+ requiresHumanApproval: z.boolean(),
24
+ artifactsAffected: z.array(z.string()),
25
+ });
26
+ //# sourceMappingURL=failure-report.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"failure-report.js","sourceRoot":"","sources":["../../src/content/failure-report.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAEjD,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,CAAC,MAAM,CAAC;IACjD,KAAK,EAAE,mBAAmB;IAC1B,WAAW,EAAE,CAAC,CAAC,IAAI,CAAC;QAClB,YAAY;QACZ,gBAAgB;QAChB,MAAM;QACN,SAAS;QACT,UAAU;QACV,eAAe;QACf,aAAa;QACb,SAAS;QACT,YAAY;QACZ,QAAQ;QACR,SAAS;KACV,CAAC;IACF,QAAQ,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,CAAC,CAAC;IACvD,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;IACnB,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;IACnB,QAAQ,EAAE,CAAC,CAAC,OAAO,EAAE;IACrB,gBAAgB,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IACrC,qBAAqB,EAAE,CAAC,CAAC,OAAO,EAAE;IAClC,iBAAiB,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;CACvC,CAAC,CAAC"}
@@ -0,0 +1,16 @@
1
+ import { z } from "zod";
2
+ export declare const memoryCandidateReportContentSchema: z.ZodObject<{
3
+ candidates: z.ZodArray<z.ZodObject<{
4
+ scope: z.ZodLiteral<"project">;
5
+ authority: z.ZodLiteral<"candidate">;
6
+ title: z.ZodString;
7
+ sourceArtifacts: z.ZodArray<z.ZodString>;
8
+ }, z.core.$strip>>;
9
+ promotion: z.ZodString;
10
+ }, z.core.$strip>;
11
+ export declare const memoryPromotionReportContentSchema: z.ZodObject<{
12
+ promoted: z.ZodArray<z.ZodString>;
13
+ skipped: z.ZodArray<z.ZodString>;
14
+ }, z.core.$strip>;
15
+ export type MemoryCandidateReportContent = z.infer<typeof memoryCandidateReportContentSchema>;
16
+ export type MemoryPromotionReportContent = z.infer<typeof memoryPromotionReportContentSchema>;
@@ -0,0 +1,15 @@
1
+ import { z } from "zod";
2
+ export const memoryCandidateReportContentSchema = z.object({
3
+ candidates: z.array(z.object({
4
+ scope: z.literal("project"),
5
+ authority: z.literal("candidate"),
6
+ title: z.string().min(1),
7
+ sourceArtifacts: z.array(z.string().min(1)),
8
+ })),
9
+ promotion: z.string().min(1),
10
+ });
11
+ export const memoryPromotionReportContentSchema = z.object({
12
+ promoted: z.array(z.string()),
13
+ skipped: z.array(z.string().min(1)),
14
+ });
15
+ //# sourceMappingURL=memory.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"memory.js","sourceRoot":"","sources":["../../src/content/memory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,kCAAkC,GAAG,CAAC,CAAC,MAAM,CAAC;IACzD,UAAU,EAAE,CAAC,CAAC,KAAK,CACjB,CAAC,CAAC,MAAM,CAAC;QACP,KAAK,EAAE,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC;QAC3B,SAAS,EAAE,CAAC,CAAC,OAAO,CAAC,WAAW,CAAC;QACjC,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;QACxB,eAAe,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;KAC5C,CAAC,CACH;IACD,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;CAC7B,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,kCAAkC,GAAG,CAAC,CAAC,MAAM,CAAC;IACzD,QAAQ,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAC7B,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CACpC,CAAC,CAAC"}
@@ -0,0 +1,113 @@
1
+ import { z } from "zod";
2
+ export declare const commandIntentSchema: z.ZodObject<{
3
+ purpose: z.ZodEnum<{
4
+ install: "install";
5
+ test: "test";
6
+ build: "build";
7
+ "browser-validation": "browser-validation";
8
+ "agent-stage": "agent-stage";
9
+ lint: "lint";
10
+ format: "format";
11
+ "architecture-check": "architecture-check";
12
+ other: "other";
13
+ }>;
14
+ intent: z.ZodString;
15
+ preferredCommands: z.ZodDefault<z.ZodArray<z.ZodString>>;
16
+ equivalentCommandsAllowed: z.ZodDefault<z.ZodBoolean>;
17
+ }, z.core.$strip>;
18
+ export declare const developmentTaskSchema: z.ZodObject<{
19
+ id: z.ZodString;
20
+ owner: z.ZodEnum<{
21
+ "Intake Agent": "Intake Agent";
22
+ "Discovery Agent": "Discovery Agent";
23
+ "Product Specification Agent": "Product Specification Agent";
24
+ "Architect Agent": "Architect Agent";
25
+ "Planner Agent": "Planner Agent";
26
+ "Implementer Agent": "Implementer Agent";
27
+ "Test Agent": "Test Agent";
28
+ "Browser Validation Agent": "Browser Validation Agent";
29
+ "Security Agent": "Security Agent";
30
+ "Accessibility Agent": "Accessibility Agent";
31
+ "Performance Agent": "Performance Agent";
32
+ "Reviewer Agent": "Reviewer Agent";
33
+ "Delivery Agent": "Delivery Agent";
34
+ "Memory Curator Agent": "Memory Curator Agent";
35
+ "Verification Agent": "Verification Agent";
36
+ }>;
37
+ description: z.ZodString;
38
+ dependsOn: z.ZodDefault<z.ZodArray<z.ZodString>>;
39
+ parallelGroup: z.ZodDefault<z.ZodNullable<z.ZodString>>;
40
+ autonomy: z.ZodDefault<z.ZodObject<{
41
+ fileSelection: z.ZodDefault<z.ZodEnum<{
42
+ "agent-decides": "agent-decides";
43
+ restricted: "restricted";
44
+ }>>;
45
+ commandSelection: z.ZodDefault<z.ZodEnum<{
46
+ "agent-decides": "agent-decides";
47
+ "intent-guided": "intent-guided";
48
+ }>>;
49
+ }, z.core.$strip>>;
50
+ }, z.core.$strip>;
51
+ export declare const deliveryPlanContentSchema: z.ZodObject<{
52
+ slices: z.ZodArray<z.ZodString>;
53
+ gates: z.ZodArray<z.ZodString>;
54
+ commandIntents: z.ZodDefault<z.ZodArray<z.ZodObject<{
55
+ purpose: z.ZodEnum<{
56
+ install: "install";
57
+ test: "test";
58
+ build: "build";
59
+ "browser-validation": "browser-validation";
60
+ "agent-stage": "agent-stage";
61
+ lint: "lint";
62
+ format: "format";
63
+ "architecture-check": "architecture-check";
64
+ other: "other";
65
+ }>;
66
+ intent: z.ZodString;
67
+ preferredCommands: z.ZodDefault<z.ZodArray<z.ZodString>>;
68
+ equivalentCommandsAllowed: z.ZodDefault<z.ZodBoolean>;
69
+ }, z.core.$strip>>>;
70
+ }, z.core.$strip>;
71
+ export declare const taskBreakdownContentSchema: z.ZodObject<{
72
+ tasks: z.ZodArray<z.ZodObject<{
73
+ id: z.ZodString;
74
+ owner: z.ZodEnum<{
75
+ "Intake Agent": "Intake Agent";
76
+ "Discovery Agent": "Discovery Agent";
77
+ "Product Specification Agent": "Product Specification Agent";
78
+ "Architect Agent": "Architect Agent";
79
+ "Planner Agent": "Planner Agent";
80
+ "Implementer Agent": "Implementer Agent";
81
+ "Test Agent": "Test Agent";
82
+ "Browser Validation Agent": "Browser Validation Agent";
83
+ "Security Agent": "Security Agent";
84
+ "Accessibility Agent": "Accessibility Agent";
85
+ "Performance Agent": "Performance Agent";
86
+ "Reviewer Agent": "Reviewer Agent";
87
+ "Delivery Agent": "Delivery Agent";
88
+ "Memory Curator Agent": "Memory Curator Agent";
89
+ "Verification Agent": "Verification Agent";
90
+ }>;
91
+ description: z.ZodString;
92
+ dependsOn: z.ZodDefault<z.ZodArray<z.ZodString>>;
93
+ parallelGroup: z.ZodDefault<z.ZodNullable<z.ZodString>>;
94
+ autonomy: z.ZodDefault<z.ZodObject<{
95
+ fileSelection: z.ZodDefault<z.ZodEnum<{
96
+ "agent-decides": "agent-decides";
97
+ restricted: "restricted";
98
+ }>>;
99
+ commandSelection: z.ZodDefault<z.ZodEnum<{
100
+ "agent-decides": "agent-decides";
101
+ "intent-guided": "intent-guided";
102
+ }>>;
103
+ }, z.core.$strip>>;
104
+ }, z.core.$strip>>;
105
+ executionMode: z.ZodDefault<z.ZodEnum<{
106
+ sequential: "sequential";
107
+ "parallel-by-dependency": "parallel-by-dependency";
108
+ }>>;
109
+ }, z.core.$strip>;
110
+ export type CommandIntent = z.infer<typeof commandIntentSchema>;
111
+ export type DevelopmentTask = z.infer<typeof developmentTaskSchema>;
112
+ export type DeliveryPlanContent = z.infer<typeof deliveryPlanContentSchema>;
113
+ export type TaskBreakdownContent = z.infer<typeof taskBreakdownContentSchema>;
@@ -0,0 +1,31 @@
1
+ import { z } from "zod";
2
+ import { agentRoleSchema, commandPurposeSchema } from "../base.js";
3
+ export const commandIntentSchema = z.object({
4
+ purpose: commandPurposeSchema,
5
+ intent: z.string().min(1),
6
+ preferredCommands: z.array(z.string().min(1)).default([]),
7
+ equivalentCommandsAllowed: z.boolean().default(true),
8
+ });
9
+ export const developmentTaskSchema = z.object({
10
+ id: z.string().min(1),
11
+ owner: agentRoleSchema,
12
+ description: z.string().min(1),
13
+ dependsOn: z.array(z.string().min(1)).default([]),
14
+ parallelGroup: z.string().min(1).nullable().default(null),
15
+ autonomy: z
16
+ .object({
17
+ fileSelection: z.enum(["agent-decides", "restricted"]).default("agent-decides"),
18
+ commandSelection: z.enum(["agent-decides", "intent-guided"]).default("intent-guided"),
19
+ })
20
+ .default({ fileSelection: "agent-decides", commandSelection: "intent-guided" }),
21
+ });
22
+ export const deliveryPlanContentSchema = z.object({
23
+ slices: z.array(z.string().min(1)),
24
+ gates: z.array(z.string().min(1)),
25
+ commandIntents: z.array(commandIntentSchema).default([]),
26
+ });
27
+ export const taskBreakdownContentSchema = z.object({
28
+ tasks: z.array(developmentTaskSchema),
29
+ executionMode: z.enum(["sequential", "parallel-by-dependency"]).default("parallel-by-dependency"),
30
+ });
31
+ //# sourceMappingURL=planning.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"planning.js","sourceRoot":"","sources":["../../src/content/planning.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,eAAe,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAEnE,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC1C,OAAO,EAAE,oBAAoB;IAC7B,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACzB,iBAAiB,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;IACzD,yBAAyB,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC;CACrD,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC5C,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACrB,KAAK,EAAE,eAAe;IACtB,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC9B,SAAS,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;IACjD,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC;IACzD,QAAQ,EAAE,CAAC;SACR,MAAM,CAAC;QACN,aAAa,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,eAAe,EAAE,YAAY,CAAC,CAAC,CAAC,OAAO,CAAC,eAAe,CAAC;QAC/E,gBAAgB,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,eAAe,EAAE,eAAe,CAAC,CAAC,CAAC,OAAO,CAAC,eAAe,CAAC;KACtF,CAAC;SACD,OAAO,CAAC,EAAE,aAAa,EAAE,eAAe,EAAE,gBAAgB,EAAE,eAAe,EAAE,CAAC;CAClF,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,CAAC,MAAM,CAAC;IAChD,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;IAClC,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;IACjC,cAAc,EAAE,CAAC,CAAC,KAAK,CAAC,mBAAmB,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;CACzD,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,CAAC,MAAM,CAAC;IACjD,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,qBAAqB,CAAC;IACrC,aAAa,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,YAAY,EAAE,wBAAwB,CAAC,CAAC,CAAC,OAAO,CAAC,wBAAwB,CAAC;CAClG,CAAC,CAAC"}