@devtrack-solution/codesdd 1.2.3 → 1.2.4
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/.sdd/skills/curated/devtrack-api/SKILL.md +98 -12
- package/.sdd/skills/curated/devtrack-api/agents/claude-code.yaml +10 -0
- package/.sdd/skills/curated/devtrack-api/agents/codex.yaml +10 -0
- package/.sdd/skills/curated/devtrack-api/agents/cursor.yaml +10 -0
- package/.sdd/skills/curated/devtrack-api/agents/gemini.yaml +10 -0
- package/.sdd/skills/curated/devtrack-api/agents/kimi.yaml +10 -0
- package/.sdd/skills/curated/devtrack-api/agents/openai.yaml +5 -3
- package/.sdd/skills/curated/devtrack-api/agents/opencode.yaml +12 -0
- package/.sdd/skills/curated/devtrack-api/references/application-presentation.md +61 -5
- package/.sdd/skills/curated/devtrack-api/references/consumer-sync-policy.md +15 -3
- package/.sdd/skills/curated/devtrack-api/references/contract-pack.yaml +1951 -0
- package/.sdd/skills/curated/devtrack-api/references/domain-modeling.md +16 -14
- package/.sdd/skills/curated/devtrack-api/references/field-validation-protocol.md +40 -0
- package/.sdd/skills/curated/devtrack-api/references/foundation-layout.md +19 -2
- package/.sdd/skills/curated/devtrack-api/references/generated-artifact-invalidation.md +97 -0
- package/.sdd/skills/curated/devtrack-api/references/implementation-checklist.md +30 -1
- package/.sdd/skills/curated/devtrack-api/references/portable-agent-contract.md +42 -0
- package/.sdd/skills/curated/devtrack-api/references/testing-validation.md +22 -1
- package/.sdd/skills/curated/devtrack-api/references/typeorm-infrastructure.md +9 -7
- package/README.md +280 -29
- package/dist/applications/sdd/index.d.ts +16 -0
- package/dist/applications/sdd/index.js +16 -0
- package/dist/cli/program.js +180 -11
- package/dist/commands/config.js +197 -10
- package/dist/commands/sdd/execution.js +408 -16
- package/dist/commands/sdd/plugin.js +5 -0
- package/dist/commands/sdd/shared.d.ts +1 -0
- package/dist/commands/sdd/shared.js +10 -0
- package/dist/commands/sdd.js +157 -7
- package/dist/core/cli/command-matrix.d.ts +18 -0
- package/dist/core/cli/command-matrix.js +157 -0
- package/dist/core/cli-command-quality.js +11 -0
- package/dist/core/completions/command-registry.js +45 -0
- package/dist/core/config-schema.d.ts +31 -1
- package/dist/core/config-schema.js +79 -5
- package/dist/core/config.d.ts +1 -0
- package/dist/core/config.js +11 -0
- package/dist/core/global-config.d.ts +29 -0
- package/dist/core/init.d.ts +2 -2
- package/dist/core/init.js +13 -14
- package/dist/core/sdd/agent-binding.d.ts +19 -19
- package/dist/core/sdd/agent-runtime-contract.d.ts +204 -0
- package/dist/core/sdd/agent-runtime-contract.js +200 -0
- package/dist/core/sdd/allocator-recovery.d.ts +14 -0
- package/dist/core/sdd/allocator-recovery.js +30 -0
- package/dist/core/sdd/allocator-security.d.ts +18 -0
- package/dist/core/sdd/allocator-security.js +36 -0
- package/dist/core/sdd/api-foundation-baseline.d.ts +111 -0
- package/dist/core/sdd/api-foundation-baseline.js +151 -0
- package/dist/core/sdd/api-foundation-parity.d.ts +114 -0
- package/dist/core/sdd/api-foundation-parity.js +131 -0
- package/dist/core/sdd/api-profile-catalog.d.ts +36 -0
- package/dist/core/sdd/api-profile-catalog.js +132 -0
- package/dist/core/sdd/api-profile-dry-run-projection.d.ts +93 -0
- package/dist/core/sdd/api-profile-dry-run-projection.js +370 -0
- package/dist/core/sdd/api-profile-recipes.d.ts +82 -0
- package/dist/core/sdd/api-profile-recipes.js +484 -0
- package/dist/core/sdd/artifact-id-allocator.d.ts +368 -0
- package/dist/core/sdd/artifact-id-allocator.js +510 -0
- package/dist/core/sdd/check.d.ts +52 -1
- package/dist/core/sdd/check.js +326 -11
- package/dist/core/sdd/coordination/coordination-adapters.d.ts +15 -8
- package/dist/core/sdd/coordination/coordination-adapters.js +43 -15
- package/dist/core/sdd/coordination/index.d.ts +1 -0
- package/dist/core/sdd/coordination/index.js +1 -0
- package/dist/core/sdd/coordination/redis-runtime.d.ts +131 -0
- package/dist/core/sdd/coordination/redis-runtime.js +698 -0
- package/dist/core/sdd/deepagent-contracts.d.ts +99 -5
- package/dist/core/sdd/deepagent-contracts.js +62 -0
- package/dist/core/sdd/deepagents/reversa-subagents.d.ts +3 -3
- package/dist/core/sdd/default-bootstrap-files.d.ts +2 -2
- package/dist/core/sdd/default-bootstrap-files.js +14 -10
- package/dist/core/sdd/default-skills.js +115 -9
- package/dist/core/sdd/devtrack-api-appliance.d.ts +42 -1
- package/dist/core/sdd/devtrack-api-appliance.js +159 -32
- package/dist/core/sdd/devtrack-api-architecture.d.ts +16 -0
- package/dist/core/sdd/devtrack-api-architecture.js +86 -0
- package/dist/core/sdd/docs-sync.js +24 -18
- package/dist/core/sdd/domain/capability-diff.d.ts +63 -0
- package/dist/core/sdd/domain/capability-diff.js +200 -0
- package/dist/core/sdd/domain/change-safety-guardrails.d.ts +74 -0
- package/dist/core/sdd/domain/change-safety-guardrails.js +333 -0
- package/dist/core/sdd/domain/semantic-intent-classifier.d.ts +29 -0
- package/dist/core/sdd/domain/semantic-intent-classifier.js +117 -0
- package/dist/core/sdd/enterprise-mutating-command-gate.d.ts +27 -0
- package/dist/core/sdd/enterprise-mutating-command-gate.js +104 -0
- package/dist/core/sdd/enterprise-provenance-gates.d.ts +20 -0
- package/dist/core/sdd/enterprise-provenance-gates.js +63 -0
- package/dist/core/sdd/enterprise-provisioning-policy.d.ts +26 -0
- package/dist/core/sdd/enterprise-provisioning-policy.js +104 -0
- package/dist/core/sdd/foundation-artifact-map-validator.d.ts +16 -0
- package/dist/core/sdd/foundation-artifact-map-validator.js +71 -0
- package/dist/core/sdd/foundation-layer-manifest.d.ts +24 -0
- package/dist/core/sdd/foundation-layer-manifest.js +117 -0
- package/dist/core/sdd/governance-schemas.d.ts +2 -2
- package/dist/core/sdd/governance-schemas.js +11 -2
- package/dist/core/sdd/intent-guard.d.ts +22 -0
- package/dist/core/sdd/intent-guard.js +67 -0
- package/dist/core/sdd/json-schema.js +13 -1
- package/dist/core/sdd/legacy-operations.js +169 -5
- package/dist/core/sdd/migrate-workspace.js +39 -0
- package/dist/core/sdd/package-security-gates.d.ts +21 -0
- package/dist/core/sdd/package-security-gates.js +121 -0
- package/dist/core/sdd/package-structure-gate.d.ts +85 -3
- package/dist/core/sdd/package-structure-gate.js +384 -11
- package/dist/core/sdd/parallel-feat-automation.d.ts +185 -7
- package/dist/core/sdd/parallel-feat-automation.js +212 -0
- package/dist/core/sdd/plugin-broker.d.ts +223 -4
- package/dist/core/sdd/plugin-broker.js +10 -0
- package/dist/core/sdd/plugin-cli.d.ts +30 -0
- package/dist/core/sdd/plugin-cli.js +70 -3
- package/dist/core/sdd/plugin-evidence.d.ts +73 -0
- package/dist/core/sdd/plugin-manifest.d.ts +69 -1
- package/dist/core/sdd/plugin-manifest.js +10 -0
- package/dist/core/sdd/plugin-policy-pack.d.ts +1 -1
- package/dist/core/sdd/plugin-policy.js +6 -1
- package/dist/core/sdd/plugin-registry.d.ts +138 -2
- package/dist/core/sdd/plugin-sdk-contract.d.ts +363 -0
- package/dist/core/sdd/plugin-sdk-contract.js +268 -0
- package/dist/core/sdd/plugin-skill-binding.d.ts +1 -1
- package/dist/core/sdd/quality-validation.d.ts +89 -16
- package/dist/core/sdd/release-readiness.d.ts +68 -0
- package/dist/core/sdd/release-readiness.js +767 -0
- package/dist/core/sdd/reversa-architecture-extractor.d.ts +13 -0
- package/dist/core/sdd/reversa-architecture-extractor.js +89 -0
- package/dist/core/sdd/reversa-artifact-writer.d.ts +18 -0
- package/dist/core/sdd/reversa-artifact-writer.js +40 -0
- package/dist/core/sdd/reversa-command-policy.d.ts +136 -0
- package/dist/core/sdd/reversa-command-policy.js +361 -0
- package/dist/core/sdd/reversa-data-extractor.d.ts +11 -0
- package/dist/core/sdd/reversa-data-extractor.js +73 -0
- package/dist/core/sdd/reversa-equivalence.d.ts +20 -0
- package/dist/core/sdd/reversa-equivalence.js +34 -0
- package/dist/core/sdd/reversa-evidence.d.ts +298 -0
- package/dist/core/sdd/reversa-evidence.js +118 -0
- package/dist/core/sdd/reversa-reconstruction.d.ts +29 -0
- package/dist/core/sdd/reversa-reconstruction.js +32 -0
- package/dist/core/sdd/reversa-rules-extractor.d.ts +12 -0
- package/dist/core/sdd/reversa-rules-extractor.js +86 -0
- package/dist/core/sdd/reversa-source-safety.d.ts +19 -0
- package/dist/core/sdd/reversa-source-safety.js +105 -0
- package/dist/core/sdd/reversa-surface-scout.d.ts +13 -0
- package/dist/core/sdd/reversa-surface-scout.js +85 -0
- package/dist/core/sdd/reversa-ux-mapper.d.ts +11 -0
- package/dist/core/sdd/reversa-ux-mapper.js +73 -0
- package/dist/core/sdd/runtime-boundary-contract.d.ts +45 -0
- package/dist/core/sdd/runtime-boundary-contract.js +90 -0
- package/dist/core/sdd/sdk-agent-plugin-quality-gates.d.ts +150 -0
- package/dist/core/sdd/sdk-agent-plugin-quality-gates.js +258 -0
- package/dist/core/sdd/services/agent-run.service.d.ts +38 -6
- package/dist/core/sdd/services/agent-run.service.js +73 -1
- package/dist/core/sdd/services/archive-quality-coherence.service.d.ts +17 -0
- package/dist/core/sdd/services/archive-quality-coherence.service.js +141 -0
- package/dist/core/sdd/services/capability-diff.service.d.ts +18 -0
- package/dist/core/sdd/services/capability-diff.service.js +26 -0
- package/dist/core/sdd/services/change-safety-preflight.service.d.ts +17 -0
- package/dist/core/sdd/services/change-safety-preflight.service.js +17 -0
- package/dist/core/sdd/services/context.service.d.ts +43 -340
- package/dist/core/sdd/services/context.service.js +323 -9
- package/dist/core/sdd/services/decide.service.js +1 -1
- package/dist/core/sdd/services/finalize.service.d.ts +27 -0
- package/dist/core/sdd/services/finalize.service.js +226 -18
- package/dist/core/sdd/services/frontend-impact.service.d.ts +1 -1
- package/dist/core/sdd/services/historical-quality-regression.service.d.ts +35 -0
- package/dist/core/sdd/services/historical-quality-regression.service.js +228 -0
- package/dist/core/sdd/services/ingest-deposito.service.js +1 -1
- package/dist/core/sdd/services/planning-execution-coherence.service.d.ts +45 -0
- package/dist/core/sdd/services/planning-execution-coherence.service.js +225 -0
- package/dist/core/sdd/services/semantic-intent-classifier.service.d.ts +6 -0
- package/dist/core/sdd/services/semantic-intent-classifier.service.js +7 -0
- package/dist/core/sdd/state.d.ts +1 -0
- package/dist/core/sdd/state.js +266 -34
- package/dist/core/sdd/store/sdd-stores.js +2 -2
- package/dist/core/sdd/structural-health.d.ts +13 -13
- package/dist/core/sdd/types.d.ts +30 -15
- package/dist/core/sdd/types.js +4 -0
- package/dist/core/sdd/views.js +17 -0
- package/dist/core/sdd/workspace-schemas.d.ts +428 -7
- package/dist/core/sdd/workspace-schemas.js +223 -70
- package/dist/core/shared/skill-generation.d.ts +2 -0
- package/dist/core/shared/skill-generation.js +19 -2
- package/dist/core/shared/tool-detection.d.ts +19 -0
- package/dist/core/shared/tool-detection.js +89 -0
- package/dist/domains/sdd/index.d.ts +6 -0
- package/dist/domains/sdd/index.js +6 -0
- package/dist/infrastructures/sdd/index.d.ts +7 -0
- package/dist/infrastructures/sdd/index.js +6 -0
- package/dist/presentations/cli/sdd/index.d.ts +3 -0
- package/dist/presentations/cli/sdd/index.js +3 -0
- package/dist/shared/sdd/index.d.ts +3 -0
- package/dist/shared/sdd/index.js +2 -0
- package/package.json +14 -10
- package/schemas/sdd/2-plan.schema.json +207 -2
- package/schemas/sdd/5-quality.schema.json +324 -25
- package/schemas/sdd/agent-runtime-command-plan.schema.json +212 -0
- package/schemas/sdd/agent-runtime-opencode-run-evidence.schema.json +270 -0
- package/schemas/sdd/codesdd-plugin.schema.json +171 -0
- package/schemas/sdd/deepagent-run-request.schema.json +316 -0
- package/schemas/sdd/parallel-feat-automation-plan.schema.json +89 -0
- package/schemas/sdd/parallel-feat-scheduler-request.schema.json +116 -0
- package/schemas/sdd/parallel-feat-scheduler-result.schema.json +404 -0
- package/schemas/sdd/plugin-artifact-manifest.schema.json +109 -0
- package/schemas/sdd/plugin-artifact-map.schema.json +223 -0
- package/schemas/sdd/plugin-evidence-manifest.schema.json +109 -0
- package/schemas/sdd/plugin-language-runtime.schema.json +103 -0
- package/schemas/sdd/plugin-package-governance.schema.json +74 -0
- package/schemas/sdd/plugin-registry.schema.json +171 -0
- package/schemas/sdd/plugin-runtime-invocation-plan.schema.json +109 -0
- package/schemas/sdd/quality-evidence-bundle.schema.json +109 -0
- package/schemas/sdd/reversa-evidence-bundle.schema.json +466 -0
- package/schemas/sdd/sdk-agent-plugin-quality-gate-input.schema.json +168 -0
- package/schemas/sdd/sdk-agent-plugin-quality-gate-report.schema.json +160 -0
- package/schemas/sdd/workspace-catalog.schema.json +5298 -1409
|
@@ -0,0 +1,368 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const artifactIdAllocatorTypeSchema: z.ZodEnum<{
|
|
3
|
+
INS: "INS";
|
|
4
|
+
DEB: "DEB";
|
|
5
|
+
EPIC: "EPIC";
|
|
6
|
+
FEAT: "FEAT";
|
|
7
|
+
FGAP: "FGAP";
|
|
8
|
+
TD: "TD";
|
|
9
|
+
}>;
|
|
10
|
+
export type ArtifactIdAllocatorType = z.infer<typeof artifactIdAllocatorTypeSchema>;
|
|
11
|
+
export declare const allocatorActorSchema: z.ZodObject<{
|
|
12
|
+
agent_id: z.ZodString;
|
|
13
|
+
agent_kind: z.ZodOptional<z.ZodString>;
|
|
14
|
+
}, z.core.$strip>;
|
|
15
|
+
export declare const artifactIdReserveRequestSchema: z.ZodObject<{
|
|
16
|
+
schema_version: z.ZodLiteral<1>;
|
|
17
|
+
project_id: z.ZodString;
|
|
18
|
+
tenant_id: z.ZodOptional<z.ZodString>;
|
|
19
|
+
artifact_type: z.ZodEnum<{
|
|
20
|
+
INS: "INS";
|
|
21
|
+
DEB: "DEB";
|
|
22
|
+
EPIC: "EPIC";
|
|
23
|
+
FEAT: "FEAT";
|
|
24
|
+
FGAP: "FGAP";
|
|
25
|
+
TD: "TD";
|
|
26
|
+
}>;
|
|
27
|
+
title_canonical: z.ZodOptional<z.ZodString>;
|
|
28
|
+
origin_ref: z.ZodOptional<z.ZodString>;
|
|
29
|
+
requested_by: z.ZodObject<{
|
|
30
|
+
agent_id: z.ZodString;
|
|
31
|
+
agent_kind: z.ZodOptional<z.ZodString>;
|
|
32
|
+
}, z.core.$strip>;
|
|
33
|
+
client_request_id: z.ZodOptional<z.ZodString>;
|
|
34
|
+
idempotency_key: z.ZodString;
|
|
35
|
+
}, z.core.$strip>;
|
|
36
|
+
export type ArtifactIdReserveRequest = z.infer<typeof artifactIdReserveRequestSchema>;
|
|
37
|
+
export declare const artifactIdReservationSchema: z.ZodObject<{
|
|
38
|
+
schema_version: z.ZodLiteral<1>;
|
|
39
|
+
artifact_id: z.ZodString;
|
|
40
|
+
artifact_type: z.ZodEnum<{
|
|
41
|
+
INS: "INS";
|
|
42
|
+
DEB: "DEB";
|
|
43
|
+
EPIC: "EPIC";
|
|
44
|
+
FEAT: "FEAT";
|
|
45
|
+
FGAP: "FGAP";
|
|
46
|
+
TD: "TD";
|
|
47
|
+
}>;
|
|
48
|
+
sequence: z.ZodNumber;
|
|
49
|
+
project_id: z.ZodString;
|
|
50
|
+
tenant_id: z.ZodOptional<z.ZodString>;
|
|
51
|
+
idempotency_key: z.ZodString;
|
|
52
|
+
request_fingerprint: z.ZodString;
|
|
53
|
+
revision: z.ZodNumber;
|
|
54
|
+
reserved_at: z.ZodString;
|
|
55
|
+
}, z.core.$strip>;
|
|
56
|
+
export type ArtifactIdReservation = z.infer<typeof artifactIdReservationSchema>;
|
|
57
|
+
export declare const artifactIdReserveResponseSchema: z.ZodObject<{
|
|
58
|
+
schema_version: z.ZodLiteral<1>;
|
|
59
|
+
status: z.ZodEnum<{
|
|
60
|
+
reserved: "reserved";
|
|
61
|
+
replayed: "replayed";
|
|
62
|
+
}>;
|
|
63
|
+
reservation: z.ZodObject<{
|
|
64
|
+
schema_version: z.ZodLiteral<1>;
|
|
65
|
+
artifact_id: z.ZodString;
|
|
66
|
+
artifact_type: z.ZodEnum<{
|
|
67
|
+
INS: "INS";
|
|
68
|
+
DEB: "DEB";
|
|
69
|
+
EPIC: "EPIC";
|
|
70
|
+
FEAT: "FEAT";
|
|
71
|
+
FGAP: "FGAP";
|
|
72
|
+
TD: "TD";
|
|
73
|
+
}>;
|
|
74
|
+
sequence: z.ZodNumber;
|
|
75
|
+
project_id: z.ZodString;
|
|
76
|
+
tenant_id: z.ZodOptional<z.ZodString>;
|
|
77
|
+
idempotency_key: z.ZodString;
|
|
78
|
+
request_fingerprint: z.ZodString;
|
|
79
|
+
revision: z.ZodNumber;
|
|
80
|
+
reserved_at: z.ZodString;
|
|
81
|
+
}, z.core.$strip>;
|
|
82
|
+
}, z.core.$strip>;
|
|
83
|
+
export type ArtifactIdReserveResponse = z.infer<typeof artifactIdReserveResponseSchema>;
|
|
84
|
+
export declare const artifactAllocatorLeaseRequestSchema: z.ZodObject<{
|
|
85
|
+
schema_version: z.ZodLiteral<1>;
|
|
86
|
+
project_id: z.ZodString;
|
|
87
|
+
tenant_id: z.ZodOptional<z.ZodString>;
|
|
88
|
+
artifact_type: z.ZodEnum<{
|
|
89
|
+
INS: "INS";
|
|
90
|
+
DEB: "DEB";
|
|
91
|
+
EPIC: "EPIC";
|
|
92
|
+
FEAT: "FEAT";
|
|
93
|
+
FGAP: "FGAP";
|
|
94
|
+
TD: "TD";
|
|
95
|
+
}>;
|
|
96
|
+
holder: z.ZodObject<{
|
|
97
|
+
agent_id: z.ZodString;
|
|
98
|
+
agent_kind: z.ZodOptional<z.ZodString>;
|
|
99
|
+
}, z.core.$strip>;
|
|
100
|
+
ttl_ms: z.ZodNumber;
|
|
101
|
+
idempotency_key: z.ZodString;
|
|
102
|
+
}, z.core.$strip>;
|
|
103
|
+
export type ArtifactAllocatorLeaseRequest = z.infer<typeof artifactAllocatorLeaseRequestSchema>;
|
|
104
|
+
export declare const artifactAllocatorLeaseSchema: z.ZodObject<{
|
|
105
|
+
schema_version: z.ZodLiteral<1>;
|
|
106
|
+
lease_id: z.ZodString;
|
|
107
|
+
project_id: z.ZodString;
|
|
108
|
+
tenant_id: z.ZodOptional<z.ZodString>;
|
|
109
|
+
artifact_type: z.ZodEnum<{
|
|
110
|
+
INS: "INS";
|
|
111
|
+
DEB: "DEB";
|
|
112
|
+
EPIC: "EPIC";
|
|
113
|
+
FEAT: "FEAT";
|
|
114
|
+
FGAP: "FGAP";
|
|
115
|
+
TD: "TD";
|
|
116
|
+
}>;
|
|
117
|
+
holder: z.ZodObject<{
|
|
118
|
+
agent_id: z.ZodString;
|
|
119
|
+
agent_kind: z.ZodOptional<z.ZodString>;
|
|
120
|
+
}, z.core.$strip>;
|
|
121
|
+
fencing_token: z.ZodNumber;
|
|
122
|
+
idempotency_key: z.ZodString;
|
|
123
|
+
request_fingerprint: z.ZodString;
|
|
124
|
+
acquired_at: z.ZodString;
|
|
125
|
+
expires_at: z.ZodString;
|
|
126
|
+
}, z.core.$strip>;
|
|
127
|
+
export type ArtifactAllocatorLease = z.infer<typeof artifactAllocatorLeaseSchema>;
|
|
128
|
+
export declare const artifactAllocatorLeaseResponseSchema: z.ZodObject<{
|
|
129
|
+
schema_version: z.ZodLiteral<1>;
|
|
130
|
+
status: z.ZodEnum<{
|
|
131
|
+
replayed: "replayed";
|
|
132
|
+
acquired: "acquired";
|
|
133
|
+
}>;
|
|
134
|
+
lease: z.ZodObject<{
|
|
135
|
+
schema_version: z.ZodLiteral<1>;
|
|
136
|
+
lease_id: z.ZodString;
|
|
137
|
+
project_id: z.ZodString;
|
|
138
|
+
tenant_id: z.ZodOptional<z.ZodString>;
|
|
139
|
+
artifact_type: z.ZodEnum<{
|
|
140
|
+
INS: "INS";
|
|
141
|
+
DEB: "DEB";
|
|
142
|
+
EPIC: "EPIC";
|
|
143
|
+
FEAT: "FEAT";
|
|
144
|
+
FGAP: "FGAP";
|
|
145
|
+
TD: "TD";
|
|
146
|
+
}>;
|
|
147
|
+
holder: z.ZodObject<{
|
|
148
|
+
agent_id: z.ZodString;
|
|
149
|
+
agent_kind: z.ZodOptional<z.ZodString>;
|
|
150
|
+
}, z.core.$strip>;
|
|
151
|
+
fencing_token: z.ZodNumber;
|
|
152
|
+
idempotency_key: z.ZodString;
|
|
153
|
+
request_fingerprint: z.ZodString;
|
|
154
|
+
acquired_at: z.ZodString;
|
|
155
|
+
expires_at: z.ZodString;
|
|
156
|
+
}, z.core.$strip>;
|
|
157
|
+
}, z.core.$strip>;
|
|
158
|
+
export type ArtifactAllocatorLeaseResponse = z.infer<typeof artifactAllocatorLeaseResponseSchema>;
|
|
159
|
+
export declare const artifactAllocatorAuditEventSchema: z.ZodObject<{
|
|
160
|
+
schema_version: z.ZodLiteral<1>;
|
|
161
|
+
event_id: z.ZodString;
|
|
162
|
+
event_type: z.ZodEnum<{
|
|
163
|
+
lease_acquired: "lease_acquired";
|
|
164
|
+
lease_replayed: "lease_replayed";
|
|
165
|
+
lease_conflict: "lease_conflict";
|
|
166
|
+
reservation_created: "reservation_created";
|
|
167
|
+
reservation_replayed: "reservation_replayed";
|
|
168
|
+
canonical_write_committed: "canonical_write_committed";
|
|
169
|
+
canonical_write_replayed: "canonical_write_replayed";
|
|
170
|
+
canonical_write_rejected: "canonical_write_rejected";
|
|
171
|
+
}>;
|
|
172
|
+
project_id: z.ZodString;
|
|
173
|
+
tenant_id: z.ZodOptional<z.ZodString>;
|
|
174
|
+
artifact_type: z.ZodEnum<{
|
|
175
|
+
INS: "INS";
|
|
176
|
+
DEB: "DEB";
|
|
177
|
+
EPIC: "EPIC";
|
|
178
|
+
FEAT: "FEAT";
|
|
179
|
+
FGAP: "FGAP";
|
|
180
|
+
TD: "TD";
|
|
181
|
+
}>;
|
|
182
|
+
actor: z.ZodObject<{
|
|
183
|
+
agent_id: z.ZodString;
|
|
184
|
+
agent_kind: z.ZodOptional<z.ZodString>;
|
|
185
|
+
}, z.core.$strip>;
|
|
186
|
+
idempotency_key: z.ZodString;
|
|
187
|
+
lease_id: z.ZodOptional<z.ZodString>;
|
|
188
|
+
fencing_token: z.ZodOptional<z.ZodNumber>;
|
|
189
|
+
occurred_at: z.ZodString;
|
|
190
|
+
result: z.ZodEnum<{
|
|
191
|
+
blocked: "blocked";
|
|
192
|
+
accepted: "accepted";
|
|
193
|
+
replayed: "replayed";
|
|
194
|
+
}>;
|
|
195
|
+
}, z.core.$strip>;
|
|
196
|
+
export type ArtifactAllocatorAuditEvent = z.infer<typeof artifactAllocatorAuditEventSchema>;
|
|
197
|
+
export declare const canonicalArtifactWriteRequestSchema: z.ZodObject<{
|
|
198
|
+
schema_version: z.ZodLiteral<1>;
|
|
199
|
+
artifact_id: z.ZodString;
|
|
200
|
+
project_id: z.ZodString;
|
|
201
|
+
tenant_id: z.ZodOptional<z.ZodString>;
|
|
202
|
+
actor: z.ZodObject<{
|
|
203
|
+
agent_id: z.ZodString;
|
|
204
|
+
agent_kind: z.ZodOptional<z.ZodString>;
|
|
205
|
+
}, z.core.$strip>;
|
|
206
|
+
lease_id: z.ZodString;
|
|
207
|
+
fencing_token: z.ZodNumber;
|
|
208
|
+
expected_revision: z.ZodNumber;
|
|
209
|
+
idempotency_key: z.ZodString;
|
|
210
|
+
}, z.core.$strip>;
|
|
211
|
+
export type CanonicalArtifactWriteRequest = z.infer<typeof canonicalArtifactWriteRequestSchema>;
|
|
212
|
+
export declare const canonicalArtifactWriteRecordSchema: z.ZodObject<{
|
|
213
|
+
schema_version: z.ZodLiteral<1>;
|
|
214
|
+
artifact_id: z.ZodString;
|
|
215
|
+
project_id: z.ZodString;
|
|
216
|
+
tenant_id: z.ZodOptional<z.ZodString>;
|
|
217
|
+
revision: z.ZodNumber;
|
|
218
|
+
previous_revision: z.ZodNumber;
|
|
219
|
+
lease_id: z.ZodString;
|
|
220
|
+
fencing_token: z.ZodNumber;
|
|
221
|
+
idempotency_key: z.ZodString;
|
|
222
|
+
request_fingerprint: z.ZodString;
|
|
223
|
+
committed_at: z.ZodString;
|
|
224
|
+
}, z.core.$strip>;
|
|
225
|
+
export type CanonicalArtifactWriteRecord = z.infer<typeof canonicalArtifactWriteRecordSchema>;
|
|
226
|
+
export declare const canonicalArtifactWriteResponseSchema: z.ZodObject<{
|
|
227
|
+
schema_version: z.ZodLiteral<1>;
|
|
228
|
+
status: z.ZodEnum<{
|
|
229
|
+
replayed: "replayed";
|
|
230
|
+
committed: "committed";
|
|
231
|
+
}>;
|
|
232
|
+
write: z.ZodObject<{
|
|
233
|
+
schema_version: z.ZodLiteral<1>;
|
|
234
|
+
artifact_id: z.ZodString;
|
|
235
|
+
project_id: z.ZodString;
|
|
236
|
+
tenant_id: z.ZodOptional<z.ZodString>;
|
|
237
|
+
revision: z.ZodNumber;
|
|
238
|
+
previous_revision: z.ZodNumber;
|
|
239
|
+
lease_id: z.ZodString;
|
|
240
|
+
fencing_token: z.ZodNumber;
|
|
241
|
+
idempotency_key: z.ZodString;
|
|
242
|
+
request_fingerprint: z.ZodString;
|
|
243
|
+
committed_at: z.ZodString;
|
|
244
|
+
}, z.core.$strip>;
|
|
245
|
+
}, z.core.$strip>;
|
|
246
|
+
export type CanonicalArtifactWriteResponse = z.infer<typeof canonicalArtifactWriteResponseSchema>;
|
|
247
|
+
export declare const noncanonicalDraftSchema: z.ZodObject<{
|
|
248
|
+
schema_version: z.ZodLiteral<1>;
|
|
249
|
+
draft_id: z.ZodString;
|
|
250
|
+
artifact_type: z.ZodEnum<{
|
|
251
|
+
INS: "INS";
|
|
252
|
+
DEB: "DEB";
|
|
253
|
+
EPIC: "EPIC";
|
|
254
|
+
FEAT: "FEAT";
|
|
255
|
+
FGAP: "FGAP";
|
|
256
|
+
TD: "TD";
|
|
257
|
+
}>;
|
|
258
|
+
project_id: z.ZodString;
|
|
259
|
+
tenant_id: z.ZodOptional<z.ZodString>;
|
|
260
|
+
title_canonical: z.ZodString;
|
|
261
|
+
created_by: z.ZodObject<{
|
|
262
|
+
agent_id: z.ZodString;
|
|
263
|
+
agent_kind: z.ZodOptional<z.ZodString>;
|
|
264
|
+
}, z.core.$strip>;
|
|
265
|
+
created_at: z.ZodString;
|
|
266
|
+
converted_artifact_id: z.ZodOptional<z.ZodString>;
|
|
267
|
+
converted_at: z.ZodOptional<z.ZodString>;
|
|
268
|
+
}, z.core.$strip>;
|
|
269
|
+
export type NoncanonicalDraft = z.infer<typeof noncanonicalDraftSchema>;
|
|
270
|
+
export declare const draftConversionResponseSchema: z.ZodObject<{
|
|
271
|
+
schema_version: z.ZodLiteral<1>;
|
|
272
|
+
status: z.ZodEnum<{
|
|
273
|
+
converted: "converted";
|
|
274
|
+
replayed: "replayed";
|
|
275
|
+
}>;
|
|
276
|
+
draft: z.ZodObject<{
|
|
277
|
+
schema_version: z.ZodLiteral<1>;
|
|
278
|
+
draft_id: z.ZodString;
|
|
279
|
+
artifact_type: z.ZodEnum<{
|
|
280
|
+
INS: "INS";
|
|
281
|
+
DEB: "DEB";
|
|
282
|
+
EPIC: "EPIC";
|
|
283
|
+
FEAT: "FEAT";
|
|
284
|
+
FGAP: "FGAP";
|
|
285
|
+
TD: "TD";
|
|
286
|
+
}>;
|
|
287
|
+
project_id: z.ZodString;
|
|
288
|
+
tenant_id: z.ZodOptional<z.ZodString>;
|
|
289
|
+
title_canonical: z.ZodString;
|
|
290
|
+
created_by: z.ZodObject<{
|
|
291
|
+
agent_id: z.ZodString;
|
|
292
|
+
agent_kind: z.ZodOptional<z.ZodString>;
|
|
293
|
+
}, z.core.$strip>;
|
|
294
|
+
created_at: z.ZodString;
|
|
295
|
+
converted_artifact_id: z.ZodOptional<z.ZodString>;
|
|
296
|
+
converted_at: z.ZodOptional<z.ZodString>;
|
|
297
|
+
}, z.core.$strip>;
|
|
298
|
+
reservation: z.ZodObject<{
|
|
299
|
+
schema_version: z.ZodLiteral<1>;
|
|
300
|
+
artifact_id: z.ZodString;
|
|
301
|
+
artifact_type: z.ZodEnum<{
|
|
302
|
+
INS: "INS";
|
|
303
|
+
DEB: "DEB";
|
|
304
|
+
EPIC: "EPIC";
|
|
305
|
+
FEAT: "FEAT";
|
|
306
|
+
FGAP: "FGAP";
|
|
307
|
+
TD: "TD";
|
|
308
|
+
}>;
|
|
309
|
+
sequence: z.ZodNumber;
|
|
310
|
+
project_id: z.ZodString;
|
|
311
|
+
tenant_id: z.ZodOptional<z.ZodString>;
|
|
312
|
+
idempotency_key: z.ZodString;
|
|
313
|
+
request_fingerprint: z.ZodString;
|
|
314
|
+
revision: z.ZodNumber;
|
|
315
|
+
reserved_at: z.ZodString;
|
|
316
|
+
}, z.core.$strip>;
|
|
317
|
+
}, z.core.$strip>;
|
|
318
|
+
export type DraftConversionResponse = z.infer<typeof draftConversionResponseSchema>;
|
|
319
|
+
export interface ArtifactIdAllocatorState {
|
|
320
|
+
counters: Partial<Record<ArtifactIdAllocatorType, number>>;
|
|
321
|
+
reservations: ArtifactIdReservation[];
|
|
322
|
+
leases: ArtifactAllocatorLease[];
|
|
323
|
+
audit_log: ArtifactAllocatorAuditEvent[];
|
|
324
|
+
next_fencing_token: number;
|
|
325
|
+
canonical_revisions: Record<string, number>;
|
|
326
|
+
canonical_writes: CanonicalArtifactWriteRecord[];
|
|
327
|
+
drafts: NoncanonicalDraft[];
|
|
328
|
+
}
|
|
329
|
+
export declare function createEmptyArtifactIdAllocatorState(): ArtifactIdAllocatorState;
|
|
330
|
+
export declare function buildArtifactIdAllocatorIdempotencyKey(input: Omit<ArtifactIdReserveRequest, 'schema_version' | 'idempotency_key'>): string;
|
|
331
|
+
export declare function reserveArtifactId(state: ArtifactIdAllocatorState, requestInput: ArtifactIdReserveRequest, options?: {
|
|
332
|
+
now?: string;
|
|
333
|
+
}): ArtifactIdReserveResponse;
|
|
334
|
+
export declare function acquireArtifactAllocatorLease(state: ArtifactIdAllocatorState, requestInput: ArtifactAllocatorLeaseRequest, options?: {
|
|
335
|
+
now?: string;
|
|
336
|
+
}): ArtifactAllocatorLeaseResponse;
|
|
337
|
+
export declare function isAllocatorLeaseActive(lease: ArtifactAllocatorLease, now: string): boolean;
|
|
338
|
+
export declare function validateAllocatorFencingToken(lease: ArtifactAllocatorLease, input: {
|
|
339
|
+
fencing_token: number;
|
|
340
|
+
now: string;
|
|
341
|
+
}): {
|
|
342
|
+
valid: boolean;
|
|
343
|
+
reason: 'valid' | 'expired' | 'stale-token';
|
|
344
|
+
};
|
|
345
|
+
export declare function commitCanonicalArtifactWrite(state: ArtifactIdAllocatorState, requestInput: CanonicalArtifactWriteRequest, options?: {
|
|
346
|
+
now?: string;
|
|
347
|
+
}): CanonicalArtifactWriteResponse;
|
|
348
|
+
export declare function createNoncanonicalDraft(state: ArtifactIdAllocatorState, input: {
|
|
349
|
+
project_id: string;
|
|
350
|
+
tenant_id?: string;
|
|
351
|
+
artifact_type: ArtifactIdAllocatorType;
|
|
352
|
+
title_canonical: string;
|
|
353
|
+
created_by: z.infer<typeof allocatorActorSchema>;
|
|
354
|
+
}, options?: {
|
|
355
|
+
now?: string;
|
|
356
|
+
}): NoncanonicalDraft;
|
|
357
|
+
export declare function convertDraftToCanonicalArtifact(state: ArtifactIdAllocatorState, input: {
|
|
358
|
+
draft_id: string;
|
|
359
|
+
reservation: ArtifactIdReservation;
|
|
360
|
+
converted_by: z.infer<typeof allocatorActorSchema>;
|
|
361
|
+
}, options?: {
|
|
362
|
+
now?: string;
|
|
363
|
+
}): DraftConversionResponse;
|
|
364
|
+
export declare function buildReserveRequestFingerprint(request: ArtifactIdReserveRequest): string;
|
|
365
|
+
export declare function buildArtifactAllocatorLeaseIdempotencyKey(input: Omit<ArtifactAllocatorLeaseRequest, 'schema_version' | 'idempotency_key'>): string;
|
|
366
|
+
export declare function buildLeaseRequestFingerprint(request: ArtifactAllocatorLeaseRequest): string;
|
|
367
|
+
export declare function buildCanonicalWriteRequestFingerprint(request: CanonicalArtifactWriteRequest): string;
|
|
368
|
+
//# sourceMappingURL=artifact-id-allocator.d.ts.map
|