@dsh-ray/assistant-growth-contract 0.0.1-seed.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +68 -1
- package/lib/automation.d.ts +21 -0
- package/lib/automation.d.ts.map +1 -0
- package/lib/automation.js +336 -0
- package/lib/automation.js.map +1 -0
- package/lib/canonical.d.ts +44 -0
- package/lib/canonical.d.ts.map +1 -0
- package/lib/canonical.js +541 -0
- package/lib/canonical.js.map +1 -0
- package/lib/creation-verification.d.ts +111 -0
- package/lib/creation-verification.d.ts.map +1 -0
- package/lib/creation-verification.js +150 -0
- package/lib/creation-verification.js.map +1 -0
- package/lib/index.d.ts +16 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +16 -0
- package/lib/index.js.map +1 -0
- package/lib/memory-learning.d.ts +91 -0
- package/lib/memory-learning.d.ts.map +1 -0
- package/lib/memory-learning.js +162 -0
- package/lib/memory-learning.js.map +1 -0
- package/lib/native-model-messages.d.ts +11 -0
- package/lib/native-model-messages.d.ts.map +1 -0
- package/lib/native-model-messages.js +39 -0
- package/lib/native-model-messages.js.map +1 -0
- package/lib/plugin-protection.d.ts +28 -0
- package/lib/plugin-protection.d.ts.map +1 -0
- package/lib/plugin-protection.js +77 -0
- package/lib/plugin-protection.js.map +1 -0
- package/lib/preferences.d.ts +13 -0
- package/lib/preferences.d.ts.map +1 -0
- package/lib/preferences.js +19 -0
- package/lib/preferences.js.map +1 -0
- package/lib/promotion.d.ts +192 -0
- package/lib/promotion.d.ts.map +1 -0
- package/lib/promotion.js +442 -0
- package/lib/promotion.js.map +1 -0
- package/lib/revision-benefit.d.ts +106 -0
- package/lib/revision-benefit.d.ts.map +1 -0
- package/lib/revision-benefit.js +135 -0
- package/lib/revision-benefit.js.map +1 -0
- package/lib/revision-regression.d.ts +83 -0
- package/lib/revision-regression.d.ts.map +1 -0
- package/lib/revision-regression.js +169 -0
- package/lib/revision-regression.js.map +1 -0
- package/lib/revision-verification.d.ts +80 -0
- package/lib/revision-verification.d.ts.map +1 -0
- package/lib/revision-verification.js +114 -0
- package/lib/revision-verification.js.map +1 -0
- package/lib/source-owner.d.ts +17 -0
- package/lib/source-owner.d.ts.map +1 -0
- package/lib/source-owner.js +19 -0
- package/lib/source-owner.js.map +1 -0
- package/lib/source-run.d.ts +190 -0
- package/lib/source-run.d.ts.map +1 -0
- package/lib/source-run.js +410 -0
- package/lib/source-run.js.map +1 -0
- package/lib/types.d.ts +246 -0
- package/lib/types.d.ts.map +1 -0
- package/lib/types.js +26 -0
- package/lib/types.js.map +1 -0
- package/lib/version.d.ts +2 -0
- package/lib/version.d.ts.map +1 -0
- package/lib/version.js +2 -0
- package/lib/version.js.map +1 -0
- package/package.json +37 -4
package/lib/types.d.ts
ADDED
|
@@ -0,0 +1,246 @@
|
|
|
1
|
+
export declare const ASSISTANT_GROWTH_CONTRACT_VERSION: 1;
|
|
2
|
+
export declare const WORKFLOW_TRACE_SOURCE_ID: "assistantDelivery";
|
|
3
|
+
export declare const WORKFLOW_TRACE_PROTOCOL: "assistant-growth-workflow-trace/v1";
|
|
4
|
+
export declare const WORKFLOW_ARGUMENT_SHAPE_PROTOCOL: "assistant-growth-argument-shape/v1";
|
|
5
|
+
export declare const WORKFLOW_TEMPLATE_PROTOCOL: "assistant-growth-template/v1";
|
|
6
|
+
export declare const GROWTH_AUTOMATION_OPERATION_PROTOCOL: "assistant-growth-automation-operation/v1";
|
|
7
|
+
export declare const GROWTH_AUTOMATION_RECEIPT_PROTOCOL: "assistant-growth-automation-receipt/v1";
|
|
8
|
+
export declare const GROWTH_EFFECT_BLOCKER_PROTOCOL: "assistant-automations-effect-blocker/v1";
|
|
9
|
+
/** Delivery's built-in model-turn orchestration step; it is not a DSH tool schema. */
|
|
10
|
+
export declare const WORKFLOW_MODEL_TURN_CATALOG_ID: "assistant.agent-turn";
|
|
11
|
+
/**
|
|
12
|
+
* Placeholder schedule for an owner-anchored template learned from a successful
|
|
13
|
+
* goal before the owner has chosen when it should recur. It is a valid five-
|
|
14
|
+
* field cron (00:00 UTC on 29 February), so it passes schedule validation and
|
|
15
|
+
* stays materializable, but it matches at most one day every four years. The
|
|
16
|
+
* resulting automation is created paused with the scheduler disabled, so it can
|
|
17
|
+
* never run until the owner performs an explicit schedule mutation that replaces
|
|
18
|
+
* it; Automations compares against this frozen value to enforce that gate. It is
|
|
19
|
+
* deliberately not a new schedule kind.
|
|
20
|
+
*/
|
|
21
|
+
export declare const WORKFLOW_OWNER_ANCHORED_PLACEHOLDER_SCHEDULE: Readonly<{
|
|
22
|
+
kind: "cron";
|
|
23
|
+
expression: "0 0 29 2 *";
|
|
24
|
+
timezone: "UTC";
|
|
25
|
+
}>;
|
|
26
|
+
export interface WorkflowScope {
|
|
27
|
+
workspace: string;
|
|
28
|
+
preset: string;
|
|
29
|
+
}
|
|
30
|
+
export interface WorkflowStepFingerprint {
|
|
31
|
+
/** Fixed Host action/tool catalog id; never a raw command or argument. */
|
|
32
|
+
catalogId: string;
|
|
33
|
+
/** SHA-256 of the redacted JSON argument shape, never argument values. */
|
|
34
|
+
argumentSchemaDigest: string;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* A shape-checked claim is not proof by itself. Delivery must resolve
|
|
38
|
+
* `attestationId` to its private immutable review ledger before materializing
|
|
39
|
+
* the template or emitting a trace.
|
|
40
|
+
*/
|
|
41
|
+
export type WorkflowTemplatePrivacyAttestation = Readonly<{
|
|
42
|
+
kind: 'deterministic-deidentification';
|
|
43
|
+
method: 'assistant-delivery-redaction-v1';
|
|
44
|
+
attestationId: string;
|
|
45
|
+
attestationDigest: string;
|
|
46
|
+
}> | Readonly<{
|
|
47
|
+
kind: 'owner-explicit';
|
|
48
|
+
limitation: 'deidentification-unproven';
|
|
49
|
+
attestationId: string;
|
|
50
|
+
attestationDigest: string;
|
|
51
|
+
}> | Readonly<{
|
|
52
|
+
/**
|
|
53
|
+
* Learned automatically from a Delivery-reverified owner-root successful
|
|
54
|
+
* goal. The reusable prompt is the goal's own free objective and has NOT
|
|
55
|
+
* been proven de-identified, so it never crosses Growth and the resulting
|
|
56
|
+
* automation stays paused until the owner reviews it and sets a real cron.
|
|
57
|
+
*/
|
|
58
|
+
kind: 'owner-anchored';
|
|
59
|
+
limitation: 'deidentification-unproven';
|
|
60
|
+
provenance: 'owner-goal-success';
|
|
61
|
+
attestationId: string;
|
|
62
|
+
attestationDigest: string;
|
|
63
|
+
}>;
|
|
64
|
+
/** Content-free wire reference. The reusable prompt never crosses Growth. */
|
|
65
|
+
export interface WorkflowAutomationTemplate {
|
|
66
|
+
templateRef: string;
|
|
67
|
+
templateDigest: string;
|
|
68
|
+
privacyAttestation: WorkflowTemplatePrivacyAttestation;
|
|
69
|
+
}
|
|
70
|
+
/** Private Delivery-owned template content resolved only at the Host boundary. */
|
|
71
|
+
export interface WorkflowAutomationTemplateContent {
|
|
72
|
+
scope: Readonly<WorkflowScope>;
|
|
73
|
+
ownerBindingId: string;
|
|
74
|
+
/** Canonical external owner principal, derived by Delivery from the live binding. */
|
|
75
|
+
principalId: string;
|
|
76
|
+
name: string;
|
|
77
|
+
prompt: string;
|
|
78
|
+
schedule: Readonly<{
|
|
79
|
+
kind: 'cron';
|
|
80
|
+
expression: string;
|
|
81
|
+
timezone: string;
|
|
82
|
+
}>;
|
|
83
|
+
timeoutMs: number;
|
|
84
|
+
toolCatalogIds: readonly string[];
|
|
85
|
+
deliveryBindingId: string;
|
|
86
|
+
}
|
|
87
|
+
/** Exact private materialization returned by Delivery to Automations. */
|
|
88
|
+
export interface ResolvedWorkflowAutomationTemplate extends WorkflowAutomationTemplateContent {
|
|
89
|
+
contractVersion: 1;
|
|
90
|
+
template: Readonly<WorkflowAutomationTemplate>;
|
|
91
|
+
}
|
|
92
|
+
export interface WorkflowTemplateResolver {
|
|
93
|
+
resolveWorkflowAutomationTemplate(input: Readonly<{
|
|
94
|
+
contractVersion: 1;
|
|
95
|
+
template: Readonly<WorkflowAutomationTemplate>;
|
|
96
|
+
scope: Readonly<WorkflowScope>;
|
|
97
|
+
ownerBindingId: string;
|
|
98
|
+
}>): Readonly<ResolvedWorkflowAutomationTemplate>;
|
|
99
|
+
}
|
|
100
|
+
export interface WorkflowTraceEvidence {
|
|
101
|
+
occurredAt: number;
|
|
102
|
+
signal: 'owner-explicit' | 'verified-repetition' | 'owner-anchored';
|
|
103
|
+
objectiveStatus: 'achieved' | 'unknown';
|
|
104
|
+
ownerBindingId: string;
|
|
105
|
+
/** Stable privacy-preserving task identity produced by Delivery. */
|
|
106
|
+
taskRef: string;
|
|
107
|
+
/** Exact trusted task-projection digest, required for verified repetition. */
|
|
108
|
+
taskEvidenceDigest?: string;
|
|
109
|
+
template: Readonly<WorkflowAutomationTemplate>;
|
|
110
|
+
steps: readonly Readonly<WorkflowStepFingerprint>[];
|
|
111
|
+
}
|
|
112
|
+
export interface WorkflowTraceSourceAttestation {
|
|
113
|
+
sourceId: 'assistantDelivery';
|
|
114
|
+
generation: number;
|
|
115
|
+
authorityDigest: string;
|
|
116
|
+
}
|
|
117
|
+
export interface WorkflowTraceRevision {
|
|
118
|
+
source: Readonly<WorkflowTraceSourceAttestation>;
|
|
119
|
+
scope: Readonly<WorkflowScope>;
|
|
120
|
+
subjectRef: string;
|
|
121
|
+
version: number;
|
|
122
|
+
disposition: 'upsert' | 'retract';
|
|
123
|
+
digest: string;
|
|
124
|
+
evidence?: Readonly<WorkflowTraceEvidence>;
|
|
125
|
+
}
|
|
126
|
+
export interface WorkflowTraceProjectionReceipt {
|
|
127
|
+
contractVersion: 1;
|
|
128
|
+
source: Readonly<WorkflowTraceSourceAttestation>;
|
|
129
|
+
scope: Readonly<WorkflowScope>;
|
|
130
|
+
subjectRef: string;
|
|
131
|
+
version: number;
|
|
132
|
+
disposition: 'upsert' | 'retract';
|
|
133
|
+
digest: string;
|
|
134
|
+
outcome: 'applied' | 'replayed';
|
|
135
|
+
candidateIds: readonly string[];
|
|
136
|
+
}
|
|
137
|
+
export interface WorkflowTraceSink {
|
|
138
|
+
projectWorkflowTraceRevision(input: Readonly<WorkflowTraceRevision>): WorkflowTraceProjectionReceipt;
|
|
139
|
+
}
|
|
140
|
+
export interface GrowthWorkflowTraceSourceRegistration extends WorkflowTraceSourceAttestation {
|
|
141
|
+
contractVersion: 1;
|
|
142
|
+
dispose(): void;
|
|
143
|
+
}
|
|
144
|
+
/** Delivery-owned source; `sink` is a private in-process capability. */
|
|
145
|
+
export interface GrowthWorkflowTraceSourcePort {
|
|
146
|
+
registerWorkflowTraceSink(input: Readonly<{
|
|
147
|
+
contractVersion: 1;
|
|
148
|
+
sink: WorkflowTraceSink;
|
|
149
|
+
}>): GrowthWorkflowTraceSourceRegistration;
|
|
150
|
+
}
|
|
151
|
+
export interface GrowthExperimentIdentity {
|
|
152
|
+
contractVersion: 1;
|
|
153
|
+
operationId: string;
|
|
154
|
+
experimentId: string;
|
|
155
|
+
candidateId: string;
|
|
156
|
+
candidateRevision: number;
|
|
157
|
+
candidateDigest: string;
|
|
158
|
+
}
|
|
159
|
+
export interface GrowthArtifactIdentity {
|
|
160
|
+
artifactId: string;
|
|
161
|
+
artifactVersion: number;
|
|
162
|
+
artifactDigest: string;
|
|
163
|
+
}
|
|
164
|
+
export interface GrowthAutomationProposalRequest extends GrowthExperimentIdentity {
|
|
165
|
+
/** The port must atomically create this artifact paused, never active. */
|
|
166
|
+
initialState: 'paused';
|
|
167
|
+
scope: Readonly<WorkflowScope>;
|
|
168
|
+
ownerBindingId: string;
|
|
169
|
+
evidenceDigest: string;
|
|
170
|
+
evidenceCount: number;
|
|
171
|
+
template: Readonly<WorkflowAutomationTemplate>;
|
|
172
|
+
steps: readonly Readonly<WorkflowStepFingerprint>[];
|
|
173
|
+
deadlineAt: number;
|
|
174
|
+
}
|
|
175
|
+
export type GrowthAutomationProposalReceipt = GrowthExperimentIdentity & {
|
|
176
|
+
receiptDigest: string;
|
|
177
|
+
} & ({
|
|
178
|
+
outcome: 'approval-pending';
|
|
179
|
+
proposalId: string;
|
|
180
|
+
} | ({
|
|
181
|
+
outcome: 'approved-paused';
|
|
182
|
+
proposalId: string;
|
|
183
|
+
} & GrowthArtifactIdentity) | {
|
|
184
|
+
outcome: 'conflicted' | 'expired' | 'rejected';
|
|
185
|
+
proposalId?: string;
|
|
186
|
+
});
|
|
187
|
+
export interface GrowthAutomationApprovalRequest extends GrowthExperimentIdentity {
|
|
188
|
+
proposalId: string;
|
|
189
|
+
}
|
|
190
|
+
export type GrowthAutomationApprovalReceipt = GrowthAutomationProposalReceipt;
|
|
191
|
+
export interface GrowthAutomationArtifactRequest extends GrowthExperimentIdentity, GrowthArtifactIdentity {
|
|
192
|
+
}
|
|
193
|
+
export type GrowthReplayReceipt = GrowthExperimentIdentity & GrowthArtifactIdentity & {
|
|
194
|
+
outcome: 'failed' | 'passed';
|
|
195
|
+
replayDigest: string;
|
|
196
|
+
receiptDigest: string;
|
|
197
|
+
};
|
|
198
|
+
export type GrowthShadowReceipt = GrowthExperimentIdentity & GrowthArtifactIdentity & {
|
|
199
|
+
outcome: 'failed' | 'passed';
|
|
200
|
+
effectsBlocked: true;
|
|
201
|
+
effectBlockerAttestation: Readonly<{
|
|
202
|
+
contract: 'assistant-automations-effect-blocker/v1';
|
|
203
|
+
blockedEffects: readonly ['delivery', 'tool-execution'];
|
|
204
|
+
implementationDigest: string;
|
|
205
|
+
}>;
|
|
206
|
+
shadowDigest: string;
|
|
207
|
+
receiptDigest: string;
|
|
208
|
+
};
|
|
209
|
+
export type GrowthCanaryReceipt = GrowthExperimentIdentity & GrowthArtifactIdentity & {
|
|
210
|
+
outcome: 'failed' | 'passed' | 'pending';
|
|
211
|
+
exposureCount: 1;
|
|
212
|
+
exposureOperationId: string;
|
|
213
|
+
evaluationDigest?: string;
|
|
214
|
+
evaluationTrust?: 'trusted';
|
|
215
|
+
objectiveStatus?: 'achieved';
|
|
216
|
+
receiptDigest: string;
|
|
217
|
+
};
|
|
218
|
+
export interface GrowthCanaryInspectionRequest extends GrowthAutomationArtifactRequest {
|
|
219
|
+
exposureOperationId: string;
|
|
220
|
+
}
|
|
221
|
+
export type GrowthCanaryInspectionReceipt = GrowthCanaryReceipt;
|
|
222
|
+
export type GrowthPromotionReceipt = GrowthExperimentIdentity & GrowthArtifactIdentity & {
|
|
223
|
+
outcome: 'promoted';
|
|
224
|
+
resultingArtifactVersion: number;
|
|
225
|
+
resultingArtifactDigest: string;
|
|
226
|
+
receiptDigest: string;
|
|
227
|
+
};
|
|
228
|
+
export type GrowthRollbackReceipt = GrowthExperimentIdentity & GrowthArtifactIdentity & {
|
|
229
|
+
outcome: 'rolled-back';
|
|
230
|
+
receiptDigest: string;
|
|
231
|
+
};
|
|
232
|
+
/**
|
|
233
|
+
* Host-only idempotent Automation boundary. Every operation must durably replay
|
|
234
|
+
* the same receipt for the same operationId and reject a changed payload.
|
|
235
|
+
*/
|
|
236
|
+
export interface GrowthAutomationPort {
|
|
237
|
+
requestWorkflowAutomation(input: Readonly<GrowthAutomationProposalRequest>): GrowthAutomationProposalReceipt | Promise<GrowthAutomationProposalReceipt>;
|
|
238
|
+
settleWorkflowAutomation(input: Readonly<GrowthAutomationApprovalRequest>): GrowthAutomationApprovalReceipt | Promise<GrowthAutomationApprovalReceipt>;
|
|
239
|
+
replayWorkflowAutomation(input: Readonly<GrowthAutomationArtifactRequest>): GrowthReplayReceipt | Promise<GrowthReplayReceipt>;
|
|
240
|
+
shadowWorkflowAutomation(input: Readonly<GrowthAutomationArtifactRequest>): GrowthShadowReceipt | Promise<GrowthShadowReceipt>;
|
|
241
|
+
canaryWorkflowAutomation(input: Readonly<GrowthAutomationArtifactRequest>): GrowthCanaryReceipt | Promise<GrowthCanaryReceipt>;
|
|
242
|
+
inspectWorkflowCanary(input: Readonly<GrowthCanaryInspectionRequest>): GrowthCanaryInspectionReceipt | Promise<GrowthCanaryInspectionReceipt>;
|
|
243
|
+
promoteWorkflowAutomation(input: Readonly<GrowthAutomationArtifactRequest>): GrowthPromotionReceipt | Promise<GrowthPromotionReceipt>;
|
|
244
|
+
rollbackWorkflowAutomation(input: Readonly<GrowthAutomationArtifactRequest>): GrowthRollbackReceipt | Promise<GrowthRollbackReceipt>;
|
|
245
|
+
}
|
|
246
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iCAAiC,EAAG,CAAU,CAAA;AAC3D,eAAO,MAAM,wBAAwB,EAAG,mBAA4B,CAAA;AACpE,eAAO,MAAM,uBAAuB,EAAG,oCAA6C,CAAA;AACpF,eAAO,MAAM,gCAAgC,EAAG,oCAA6C,CAAA;AAC7F,eAAO,MAAM,0BAA0B,EAAG,8BAAuC,CAAA;AACjF,eAAO,MAAM,oCAAoC,EAAG,0CAAmD,CAAA;AACvG,eAAO,MAAM,kCAAkC,EAAG,wCAAiD,CAAA;AACnG,eAAO,MAAM,8BAA8B,EAAG,yCAAkD,CAAA;AAChG,sFAAsF;AACtF,eAAO,MAAM,8BAA8B,EAAG,sBAA+B,CAAA;AAE7E;;;;;;;;;GASG;AACH,eAAO,MAAM,4CAA4C;;;;EAIvD,CAAA;AAEF,MAAM,WAAW,aAAa;IAC5B,SAAS,EAAE,MAAM,CAAA;IACjB,MAAM,EAAE,MAAM,CAAA;CACf;AAED,MAAM,WAAW,uBAAuB;IACtC,0EAA0E;IAC1E,SAAS,EAAE,MAAM,CAAA;IACjB,0EAA0E;IAC1E,oBAAoB,EAAE,MAAM,CAAA;CAC7B;AAED;;;;GAIG;AACH,MAAM,MAAM,kCAAkC,GAC1C,QAAQ,CAAC;IACP,IAAI,EAAE,gCAAgC,CAAA;IACtC,MAAM,EAAE,iCAAiC,CAAA;IACzC,aAAa,EAAE,MAAM,CAAA;IACrB,iBAAiB,EAAE,MAAM,CAAA;CAC1B,CAAC,GACF,QAAQ,CAAC;IACP,IAAI,EAAE,gBAAg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O,CAAC,mBAAmB,CAAC,CAAA;IAChC,wBAAwB,CAAC,KAAK,EAAE,QAAQ,CAAC,+BAA+B,CAAC,GAAG,mBAAmB,GAC3F,OAAO,CAAC,mBAAmB,CAAC,CAAA;IAChC,qBAAqB,CAAC,KAAK,EAAE,QAAQ,CAAC,6BAA6B,CAAC,GAAG,6BAA6B,GAChG,OAAO,CAAC,6BAA6B,CAAC,CAAA;IAC1C,yBAAyB,CAAC,KAAK,EAAE,QAAQ,CAAC,+BAA+B,CAAC,GAAG,sBAAsB,GAC/F,OAAO,CAAC,sBAAsB,CAAC,CAAA;IACnC,0BAA0B,CAAC,KAAK,EAAE,QAAQ,CAAC,+BAA+B,CAAC,GAAG,qBAAqB,GAC/F,OAAO,CAAC,qBAAqB,CAAC,CAAA;CACnC"}
|
package/lib/types.js
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export const ASSISTANT_GROWTH_CONTRACT_VERSION = 1;
|
|
2
|
+
export const WORKFLOW_TRACE_SOURCE_ID = 'assistantDelivery';
|
|
3
|
+
export const WORKFLOW_TRACE_PROTOCOL = 'assistant-growth-workflow-trace/v1';
|
|
4
|
+
export const WORKFLOW_ARGUMENT_SHAPE_PROTOCOL = 'assistant-growth-argument-shape/v1';
|
|
5
|
+
export const WORKFLOW_TEMPLATE_PROTOCOL = 'assistant-growth-template/v1';
|
|
6
|
+
export const GROWTH_AUTOMATION_OPERATION_PROTOCOL = 'assistant-growth-automation-operation/v1';
|
|
7
|
+
export const GROWTH_AUTOMATION_RECEIPT_PROTOCOL = 'assistant-growth-automation-receipt/v1';
|
|
8
|
+
export const GROWTH_EFFECT_BLOCKER_PROTOCOL = 'assistant-automations-effect-blocker/v1';
|
|
9
|
+
/** Delivery's built-in model-turn orchestration step; it is not a DSH tool schema. */
|
|
10
|
+
export const WORKFLOW_MODEL_TURN_CATALOG_ID = 'assistant.agent-turn';
|
|
11
|
+
/**
|
|
12
|
+
* Placeholder schedule for an owner-anchored template learned from a successful
|
|
13
|
+
* goal before the owner has chosen when it should recur. It is a valid five-
|
|
14
|
+
* field cron (00:00 UTC on 29 February), so it passes schedule validation and
|
|
15
|
+
* stays materializable, but it matches at most one day every four years. The
|
|
16
|
+
* resulting automation is created paused with the scheduler disabled, so it can
|
|
17
|
+
* never run until the owner performs an explicit schedule mutation that replaces
|
|
18
|
+
* it; Automations compares against this frozen value to enforce that gate. It is
|
|
19
|
+
* deliberately not a new schedule kind.
|
|
20
|
+
*/
|
|
21
|
+
export const WORKFLOW_OWNER_ANCHORED_PLACEHOLDER_SCHEDULE = Object.freeze({
|
|
22
|
+
kind: 'cron',
|
|
23
|
+
expression: '0 0 29 2 *',
|
|
24
|
+
timezone: 'UTC',
|
|
25
|
+
});
|
|
26
|
+
//# sourceMappingURL=types.js.map
|
package/lib/types.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,iCAAiC,GAAG,CAAU,CAAA;AAC3D,MAAM,CAAC,MAAM,wBAAwB,GAAG,mBAA4B,CAAA;AACpE,MAAM,CAAC,MAAM,uBAAuB,GAAG,oCAA6C,CAAA;AACpF,MAAM,CAAC,MAAM,gCAAgC,GAAG,oCAA6C,CAAA;AAC7F,MAAM,CAAC,MAAM,0BAA0B,GAAG,8BAAuC,CAAA;AACjF,MAAM,CAAC,MAAM,oCAAoC,GAAG,0CAAmD,CAAA;AACvG,MAAM,CAAC,MAAM,kCAAkC,GAAG,wCAAiD,CAAA;AACnG,MAAM,CAAC,MAAM,8BAA8B,GAAG,yCAAkD,CAAA;AAChG,sFAAsF;AACtF,MAAM,CAAC,MAAM,8BAA8B,GAAG,sBAA+B,CAAA;AAE7E;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,4CAA4C,GAAG,MAAM,CAAC,MAAM,CAAC;IACxE,IAAI,EAAE,MAAe;IACrB,UAAU,EAAE,YAAY;IACxB,QAAQ,EAAE,KAAK;CAChB,CAAC,CAAA"}
|
package/lib/version.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,UAAU,CAAA"}
|
package/lib/version.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"version.js","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,OAAO,GAAG,OAAO,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,14 +1,47 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dsh-ray/assistant-growth-contract",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "Strict shared workflow-growth wire contracts for DSH assistant plugins.",
|
|
5
5
|
"license": "MIT",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"main": "./lib/index.js",
|
|
8
|
+
"types": "./lib/index.d.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"types": "./lib/index.d.ts",
|
|
12
|
+
"default": "./lib/index.js"
|
|
13
|
+
},
|
|
14
|
+
"./package.json": "./package.json"
|
|
15
|
+
},
|
|
16
|
+
"files": [
|
|
17
|
+
"lib",
|
|
18
|
+
"README.md",
|
|
19
|
+
"LICENSE"
|
|
20
|
+
],
|
|
21
|
+
"engines": {
|
|
22
|
+
"node": ">=24.9.0"
|
|
23
|
+
},
|
|
24
|
+
"publishConfig": {
|
|
25
|
+
"access": "public"
|
|
26
|
+
},
|
|
6
27
|
"repository": {
|
|
7
28
|
"type": "git",
|
|
8
29
|
"url": "git+https://github.com/22-ai-00/dsh-ray.git",
|
|
9
30
|
"directory": "packages/assistant-growth-contract"
|
|
10
31
|
},
|
|
11
|
-
"
|
|
12
|
-
"
|
|
32
|
+
"keywords": [
|
|
33
|
+
"deepseek",
|
|
34
|
+
"deepseek-harness",
|
|
35
|
+
"workflow-learning"
|
|
36
|
+
],
|
|
37
|
+
"devDependencies": {
|
|
38
|
+
"@types/node": "22.20.0",
|
|
39
|
+
"typescript": "6.0.3",
|
|
40
|
+
"vitest": "4.1.8"
|
|
41
|
+
},
|
|
42
|
+
"scripts": {
|
|
43
|
+
"build": "tsc -p tsconfig.build.json",
|
|
44
|
+
"test": "vitest run",
|
|
45
|
+
"typecheck": "tsc -p tsconfig.json --noEmit"
|
|
13
46
|
}
|
|
14
|
-
}
|
|
47
|
+
}
|