@dsh-enhanced/assistant-evolution 0.1.6 → 0.1.12
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/README.md +70 -17
- package/cordis.patch.yml +4 -1
- package/lib/guidance.d.ts +2 -0
- package/lib/guidance.d.ts.map +1 -1
- package/lib/guidance.js +7 -1
- package/lib/guidance.js.map +1 -1
- package/lib/index.d.ts +2 -2
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +2 -2
- package/lib/index.js.map +1 -1
- package/lib/review.d.ts +1 -1
- package/lib/review.d.ts.map +1 -1
- package/lib/review.js +22 -0
- package/lib/review.js.map +1 -1
- package/lib/service.d.ts +236 -12
- package/lib/service.d.ts.map +1 -1
- package/lib/service.js +947 -42
- package/lib/service.js.map +1 -1
- package/lib/sqlite.d.ts +1 -1
- package/lib/sqlite.d.ts.map +1 -1
- package/lib/sqlite.js +508 -7
- package/lib/sqlite.js.map +1 -1
- package/lib/store.d.ts +136 -3
- package/lib/store.d.ts.map +1 -1
- package/lib/store.js +1672 -108
- package/lib/store.js.map +1 -1
- package/lib/tools.d.ts.map +1 -1
- package/lib/tools.js +222 -1
- package/lib/tools.js.map +1 -1
- package/lib/types.d.ts +211 -11
- package/lib/types.d.ts.map +1 -1
- package/lib/types.js +2 -0
- package/lib/types.js.map +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.d.ts.map +1 -1
- package/lib/version.js +1 -1
- package/lib/version.js.map +1 -1
- package/package.json +14 -4
package/lib/types.d.ts
CHANGED
|
@@ -1,11 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import type { ApprovalDispatchRoute, ApprovalDispatchRouteV2 } from '@dsh-enhanced/assistant-policy';
|
|
2
|
+
/** Binary terminal projection. Its quality meaning is determined separately by
|
|
3
|
+
* evidenceKind; execution success alone is never treated as task success. */
|
|
3
4
|
export type EpisodeOutcome = 'succeeded' | 'failed';
|
|
4
|
-
/** Where an episode came from.
|
|
5
|
-
|
|
6
|
-
export type EpisodeSource = 'automation' | 'foreground';
|
|
5
|
+
/** Where an episode came from. Source is provenance, never learning authority. */
|
|
6
|
+
export type EpisodeSource = 'automation' | 'evaluation' | 'foreground';
|
|
7
7
|
/** Whether the recorder is authoritative for the fact it reports. */
|
|
8
8
|
export type EpisodeTrust = 'trusted' | 'self-reported' | 'legacy';
|
|
9
|
+
/**
|
|
10
|
+
* Why an episode exists in the ledger.
|
|
11
|
+
*
|
|
12
|
+
* Execution status is operational telemetry, not evidence that an answer was
|
|
13
|
+
* correct or useful. Only an authoritative objective assertion or independent
|
|
14
|
+
* verification may influence behavioural learning. Rows written before this
|
|
15
|
+
* distinction existed are permanently quarantined as `legacy-unknown`.
|
|
16
|
+
*/
|
|
17
|
+
export type EpisodeEvidenceKind = 'operational' | 'objective' | 'verification' | 'legacy-unknown';
|
|
18
|
+
export type QualityEvidenceKind = Extract<EpisodeEvidenceKind, 'objective' | 'verification'>;
|
|
19
|
+
export type TaskLearningSubjectKind = 'automation-run' | 'outcome';
|
|
20
|
+
export type TaskLearningDisposition = 'upsert' | 'retract';
|
|
9
21
|
/** Reserved scope used only for rows that predate scoped evidence. */
|
|
10
22
|
export declare const legacyEvolutionScope = "legacy:v1";
|
|
11
23
|
export type RuleStatus = 'active' | 'retired';
|
|
@@ -24,6 +36,16 @@ export interface EpisodeInput {
|
|
|
24
36
|
detail: string;
|
|
25
37
|
source: EpisodeSource;
|
|
26
38
|
trust: EpisodeTrust;
|
|
39
|
+
evidenceKind: EpisodeEvidenceKind;
|
|
40
|
+
/** Immutable ID in the authoritative Evaluation ledger. Required for quality evidence. */
|
|
41
|
+
evidenceRef?: string;
|
|
42
|
+
/**
|
|
43
|
+
* Immutable unit whose behaviour may be learned from. For an Automation
|
|
44
|
+
* objective this is the exact production run, not the Evaluation row that
|
|
45
|
+
* happened to assess it. For every other objective it is the Evaluation
|
|
46
|
+
* outcome itself.
|
|
47
|
+
*/
|
|
48
|
+
learningSubjectRef?: string;
|
|
27
49
|
/** Trusted infrastructure attribution. Model-supplied values never enter this field. */
|
|
28
50
|
ruleId?: string;
|
|
29
51
|
/** Immutable rule generation captured by trusted injection infrastructure. */
|
|
@@ -41,11 +63,54 @@ export interface StoredEpisode {
|
|
|
41
63
|
detail: string;
|
|
42
64
|
source: EpisodeSource;
|
|
43
65
|
trust: EpisodeTrust;
|
|
66
|
+
evidenceKind: EpisodeEvidenceKind;
|
|
67
|
+
evidenceRef: string | undefined;
|
|
68
|
+
learningSubjectRef: string | undefined;
|
|
69
|
+
/** Host-derived projection; callers cannot mark arbitrary telemetry eligible. */
|
|
70
|
+
learningEligible: boolean;
|
|
44
71
|
ruleId: string | undefined;
|
|
45
72
|
guidanceVersion: number | undefined;
|
|
46
73
|
claimedRuleId: string | undefined;
|
|
47
74
|
occurredAt: number;
|
|
48
75
|
}
|
|
76
|
+
/** Current monotonic state of one Evaluation-owned learning subject. */
|
|
77
|
+
export interface StoredTaskLearningProjection {
|
|
78
|
+
scopeKey: string;
|
|
79
|
+
/** Latest Evaluation scope watermark carried by the applying receipt. */
|
|
80
|
+
scopeWatermark: number;
|
|
81
|
+
subjectKind: TaskLearningSubjectKind;
|
|
82
|
+
subjectRef: string;
|
|
83
|
+
version: number;
|
|
84
|
+
digest: string;
|
|
85
|
+
disposition: TaskLearningDisposition;
|
|
86
|
+
situation: string;
|
|
87
|
+
episodeId?: string;
|
|
88
|
+
updatedAt: number;
|
|
89
|
+
}
|
|
90
|
+
export type TaskLearningProjectionInput = {
|
|
91
|
+
scopeKey: string;
|
|
92
|
+
scopeWatermark: number;
|
|
93
|
+
subjectKind: TaskLearningSubjectKind;
|
|
94
|
+
subjectRef: string;
|
|
95
|
+
version: number;
|
|
96
|
+
digest: string;
|
|
97
|
+
situation: string;
|
|
98
|
+
occurredAt: number;
|
|
99
|
+
} & ({
|
|
100
|
+
disposition: 'upsert';
|
|
101
|
+
outcome: EpisodeOutcome;
|
|
102
|
+
detail: string;
|
|
103
|
+
evidenceRef: string;
|
|
104
|
+
ruleId?: string;
|
|
105
|
+
guidanceVersion?: number;
|
|
106
|
+
} | {
|
|
107
|
+
disposition: 'retract';
|
|
108
|
+
});
|
|
109
|
+
export interface TaskLearningProjectionResult {
|
|
110
|
+
projection: Readonly<StoredTaskLearningProjection>;
|
|
111
|
+
episode?: Readonly<StoredEpisode>;
|
|
112
|
+
replayed: boolean;
|
|
113
|
+
}
|
|
49
114
|
export interface RuleInput {
|
|
50
115
|
scopeKey: string;
|
|
51
116
|
situation: string;
|
|
@@ -73,6 +138,25 @@ export interface StoredRule {
|
|
|
73
138
|
/** Immutable adoption generation within one scoped situation. */
|
|
74
139
|
generation: number;
|
|
75
140
|
}
|
|
141
|
+
/**
|
|
142
|
+
* Immutable receipt for a Host-authorized, evidence-gated rollback.
|
|
143
|
+
*
|
|
144
|
+
* This lane can only retire one exact active guidance generation. The risk
|
|
145
|
+
* classification and evidence snapshot are computed by the store while holding
|
|
146
|
+
* the SQLite writer lock; callers cannot provide or weaken either one.
|
|
147
|
+
*/
|
|
148
|
+
export interface StoredAutonomousRollback {
|
|
149
|
+
scopeKey: string;
|
|
150
|
+
ruleId: string;
|
|
151
|
+
expectedVersion: number;
|
|
152
|
+
resultVersion: number;
|
|
153
|
+
risk: 'low';
|
|
154
|
+
reason: string;
|
|
155
|
+
evaluation: SituationStats;
|
|
156
|
+
baseline: SituationStats;
|
|
157
|
+
evidence: EvidenceReference;
|
|
158
|
+
occurredAt: number;
|
|
159
|
+
}
|
|
76
160
|
/** Observed failure rate for one situation over a bounded recent window. */
|
|
77
161
|
export interface SituationStats {
|
|
78
162
|
scopeKey: string;
|
|
@@ -88,6 +172,8 @@ export interface SituationStats {
|
|
|
88
172
|
export interface EvidenceSample {
|
|
89
173
|
episodeId: string;
|
|
90
174
|
outcome: EpisodeOutcome;
|
|
175
|
+
evidenceKind: QualityEvidenceKind;
|
|
176
|
+
evidenceRef: string;
|
|
91
177
|
detail: string;
|
|
92
178
|
occurredAt: number;
|
|
93
179
|
}
|
|
@@ -97,6 +183,18 @@ export interface EvidenceReference {
|
|
|
97
183
|
/** Digest of the complete ordered candidate window, not only the samples. */
|
|
98
184
|
digest: string;
|
|
99
185
|
total: number;
|
|
186
|
+
/** Exact configured candidate window used for full digest revalidation. */
|
|
187
|
+
window?: number;
|
|
188
|
+
/** Required for every v12 evidence-dependent proposal. */
|
|
189
|
+
scopeWatermark?: number;
|
|
190
|
+
/** Complete ordered task-revision identity for the exact evidence window. */
|
|
191
|
+
taskRevisions?: readonly Readonly<{
|
|
192
|
+
subjectKind: TaskLearningSubjectKind;
|
|
193
|
+
subjectRef: string;
|
|
194
|
+
version: number;
|
|
195
|
+
digest: string;
|
|
196
|
+
disposition: 'upsert';
|
|
197
|
+
}>[];
|
|
100
198
|
}
|
|
101
199
|
export type EvolutionMutation = {
|
|
102
200
|
op: 'adopt';
|
|
@@ -107,7 +205,12 @@ export type EvolutionMutation = {
|
|
|
107
205
|
evidence?: EvidenceReference;
|
|
108
206
|
} | {
|
|
109
207
|
op: 'retire';
|
|
208
|
+
/** Frozen exact active-rule review snapshot; all are server-derived. */
|
|
209
|
+
scopeKey: string;
|
|
110
210
|
ruleId: string;
|
|
211
|
+
situation: string;
|
|
212
|
+
guidance: string;
|
|
213
|
+
generation: number;
|
|
111
214
|
expectedVersion: number;
|
|
112
215
|
reason: string;
|
|
113
216
|
/** Exact post-adoption window that justified retiring this rule. */
|
|
@@ -116,6 +219,16 @@ export type EvolutionMutation = {
|
|
|
116
219
|
baseline: SituationStats;
|
|
117
220
|
/** Exact attributed candidate provenance reviewed by the owner. */
|
|
118
221
|
evidence: EvidenceReference;
|
|
222
|
+
} | {
|
|
223
|
+
/** Owner-approved immediate removal; it can never revise guidance. */
|
|
224
|
+
op: 'owner-undo';
|
|
225
|
+
scopeKey: string;
|
|
226
|
+
ruleId: string;
|
|
227
|
+
situation: string;
|
|
228
|
+
guidance: string;
|
|
229
|
+
generation: number;
|
|
230
|
+
expectedVersion: number;
|
|
231
|
+
reason: string;
|
|
119
232
|
};
|
|
120
233
|
/** Caller intent. Scope, baseline, generation and immutable rule ID are server-owned. */
|
|
121
234
|
export type EvolutionProposalMutation = {
|
|
@@ -172,13 +285,12 @@ export interface EvolutionCreationIntent {
|
|
|
172
285
|
diff: string;
|
|
173
286
|
summary: string;
|
|
174
287
|
ttlMs: number;
|
|
175
|
-
dispatch?: Readonly<
|
|
176
|
-
sourceId: string;
|
|
177
|
-
bindingId: string;
|
|
178
|
-
workspace: string;
|
|
179
|
-
principal: string;
|
|
180
|
-
}>;
|
|
288
|
+
dispatch?: Readonly<ApprovalDispatchRoute>;
|
|
181
289
|
}
|
|
290
|
+
/** New Policy proposal input; legacy routes are retained only in stored rows. */
|
|
291
|
+
export type EvolutionCreationInput = Omit<EvolutionCreationIntent, 'dispatch'> & {
|
|
292
|
+
dispatch?: Readonly<ApprovalDispatchRouteV2>;
|
|
293
|
+
};
|
|
182
294
|
/** Durable proof that an exact immutable rule was injected into a session. */
|
|
183
295
|
export interface GuidanceExposure {
|
|
184
296
|
sessionId: string;
|
|
@@ -209,7 +321,95 @@ export interface RuleCandidate {
|
|
|
209
321
|
evidenceDigest: string;
|
|
210
322
|
/** Number of eligible episodes covered by the digest. */
|
|
211
323
|
evidenceTotal: number;
|
|
324
|
+
/** Evaluation scope state from which the complete window was computed. */
|
|
325
|
+
scopeWatermark: number;
|
|
326
|
+
/** Complete ordered identity, not merely the bounded display samples. */
|
|
327
|
+
taskRevisions: readonly Readonly<{
|
|
328
|
+
subjectKind: TaskLearningSubjectKind;
|
|
329
|
+
subjectRef: string;
|
|
330
|
+
version: number;
|
|
331
|
+
digest: string;
|
|
332
|
+
disposition: 'upsert';
|
|
333
|
+
}>[];
|
|
212
334
|
/** Bounded, human-readable justification shown to the owner on review. */
|
|
213
335
|
rationale: string;
|
|
214
336
|
}
|
|
337
|
+
/** Immutable protocol spoken by the dedicated supervised-growth analyst. */
|
|
338
|
+
export declare const SUPERVISED_GROWTH_ANALYST_CONTRACT_VERSION: "supervised-growth-analyst/v1";
|
|
339
|
+
export type SupervisedGrowthAnalystContractVersion = typeof SUPERVISED_GROWTH_ANALYST_CONTRACT_VERSION;
|
|
340
|
+
/**
|
|
341
|
+
* Complete identity of the exact adoption window reviewed by the analyst.
|
|
342
|
+
*
|
|
343
|
+
* `evidenceDigest` binds every eligible episode in the ordered window. Samples
|
|
344
|
+
* are a bounded, human-readable projection and never replace that full digest.
|
|
345
|
+
*/
|
|
346
|
+
export interface SupervisedGrowthAnalystEvidence {
|
|
347
|
+
contractVersion: SupervisedGrowthAnalystContractVersion;
|
|
348
|
+
situation: string;
|
|
349
|
+
failures: number;
|
|
350
|
+
total: number;
|
|
351
|
+
evidenceDigest: string;
|
|
352
|
+
evidenceTotal: number;
|
|
353
|
+
evidenceWindow: number;
|
|
354
|
+
sampleEpisodeIds: readonly string[];
|
|
355
|
+
evidence: readonly EvidenceSample[];
|
|
356
|
+
scopeWatermark: number;
|
|
357
|
+
taskRevisions: readonly Readonly<{
|
|
358
|
+
subjectKind: TaskLearningSubjectKind;
|
|
359
|
+
subjectRef: string;
|
|
360
|
+
version: number;
|
|
361
|
+
digest: string;
|
|
362
|
+
disposition: 'upsert';
|
|
363
|
+
}>[];
|
|
364
|
+
}
|
|
365
|
+
/** At most one adoption candidate is exposed to one analyst execution. */
|
|
366
|
+
export interface SupervisedGrowthAnalystCandidate extends SupervisedGrowthAnalystEvidence {
|
|
367
|
+
/** Random durable capability; it deliberately reveals no evidence fields. */
|
|
368
|
+
reviewToken: string;
|
|
369
|
+
/** True when this exact evidence identity already owns a durable proposal. */
|
|
370
|
+
proposalExists: boolean;
|
|
371
|
+
}
|
|
372
|
+
export interface SupervisedGrowthAnalystReview {
|
|
373
|
+
contractVersion: SupervisedGrowthAnalystContractVersion;
|
|
374
|
+
candidate?: Readonly<SupervisedGrowthAnalystCandidate>;
|
|
375
|
+
}
|
|
376
|
+
/** The analyst supplies wording only; target, baseline and evidence stay frozen. */
|
|
377
|
+
export interface SupervisedGrowthAnalystProposalInput {
|
|
378
|
+
reviewToken: string;
|
|
379
|
+
guidance: string;
|
|
380
|
+
}
|
|
381
|
+
/** Durable binding between one production execution and its frozen review. */
|
|
382
|
+
export interface StoredSupervisedGrowthAnalystReview {
|
|
383
|
+
reviewToken: string;
|
|
384
|
+
scopeKey: string;
|
|
385
|
+
occurrenceId: string;
|
|
386
|
+
evidence: Readonly<SupervisedGrowthAnalystEvidence>;
|
|
387
|
+
proposalId?: string;
|
|
388
|
+
createdAt: number;
|
|
389
|
+
proposedAt?: number;
|
|
390
|
+
}
|
|
391
|
+
export type EvolutionApplicationStatus = 'applied' | 'conflicted' | 'expired' | 'rejected';
|
|
392
|
+
export type EvolutionApplicationOperation = 'adopt' | 'owner-undo' | 'retire';
|
|
393
|
+
/** Domain-authoritative result of applying one terminal Policy decision. */
|
|
394
|
+
export interface StoredEvolutionApplicationReceipt {
|
|
395
|
+
localProposalId: string;
|
|
396
|
+
policyProposalId: string;
|
|
397
|
+
applicationStatus: EvolutionApplicationStatus;
|
|
398
|
+
operation: EvolutionApplicationOperation;
|
|
399
|
+
terminalAt: number;
|
|
400
|
+
receiptDigest: string;
|
|
401
|
+
revision: number;
|
|
402
|
+
ruleId?: string;
|
|
403
|
+
resultingRuleVersion?: number;
|
|
404
|
+
ruleStatus?: RuleStatus;
|
|
405
|
+
}
|
|
406
|
+
/** Durable producer outbox state; Delivery acknowledgement is not settlement. */
|
|
407
|
+
export interface StoredEvolutionApplicationOutboxEntry {
|
|
408
|
+
receipt: Readonly<StoredEvolutionApplicationReceipt>;
|
|
409
|
+
state: 'pending' | 'published';
|
|
410
|
+
attemptCount: number;
|
|
411
|
+
updatedAt: number;
|
|
412
|
+
publishedAt?: number;
|
|
413
|
+
lastError?: string;
|
|
414
|
+
}
|
|
215
415
|
//# sourceMappingURL=types.d.ts.map
|
package/lib/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot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
|
|
2
2
|
export const legacyEvolutionScope = 'legacy:v1';
|
|
3
|
+
/** Immutable protocol spoken by the dedicated supervised-growth analyst. */
|
|
4
|
+
export const SUPERVISED_GROWTH_ANALYST_CONTRACT_VERSION = 'supervised-growth-analyst/v1';
|
|
3
5
|
//# sourceMappingURL=types.js.map
|
package/lib/types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AA2BA,sEAAsE;AACtE,MAAM,CAAC,MAAM,oBAAoB,GAAG,WAAW,CAAA;AA8U/C,4EAA4E;AAC5E,MAAM,CAAC,MAAM,0CAA0C,GAAG,8BAAuC,CAAA"}
|
package/lib/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const version = "0.1.
|
|
1
|
+
export declare const version = "0.1.12";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/lib/version.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,WAAW,CAAA"}
|
package/lib/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const version = '0.1.
|
|
1
|
+
export const version = '0.1.12';
|
|
2
2
|
//# sourceMappingURL=version.js.map
|
package/lib/version.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,OAAO,GAAG,
|
|
1
|
+
{"version":3,"file":"version.js","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,OAAO,GAAG,QAAQ,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dsh-enhanced/assistant-evolution",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.12",
|
|
4
4
|
"description": "Approval-gated behavioural self-evolution for the DSH personal assistant.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -47,7 +47,9 @@
|
|
|
47
47
|
"@deepseek-ai/dsh-llm": ">=0.1.0-rc.8 <0.2.0",
|
|
48
48
|
"@deepseek-ai/dsh-session": ">=0.1.0-rc.8 <0.2.0",
|
|
49
49
|
"@deepseek-ai/dsh-tools": ">=0.1.0-rc.8 <0.2.0",
|
|
50
|
-
"@dsh-enhanced/assistant-delivery": "
|
|
50
|
+
"@dsh-enhanced/assistant-delivery": ">0.1.7 <0.2.0",
|
|
51
|
+
"@dsh-enhanced/assistant-automations": ">0.1.7 <0.2.0",
|
|
52
|
+
"@dsh-enhanced/assistant-evaluation": ">0.1.7 <0.2.0",
|
|
51
53
|
"@dsh-enhanced/assistant-policy": ">=0.1.0 <0.2.0"
|
|
52
54
|
},
|
|
53
55
|
"peerDependenciesMeta": {
|
|
@@ -69,6 +71,12 @@
|
|
|
69
71
|
"@dsh-enhanced/assistant-delivery": {
|
|
70
72
|
"optional": true
|
|
71
73
|
},
|
|
74
|
+
"@dsh-enhanced/assistant-automations": {
|
|
75
|
+
"optional": true
|
|
76
|
+
},
|
|
77
|
+
"@dsh-enhanced/assistant-evaluation": {
|
|
78
|
+
"optional": true
|
|
79
|
+
},
|
|
72
80
|
"@dsh-enhanced/assistant-policy": {
|
|
73
81
|
"optional": true
|
|
74
82
|
}
|
|
@@ -85,8 +93,10 @@
|
|
|
85
93
|
"@types/node": "22.20.0",
|
|
86
94
|
"typescript": "6.0.3",
|
|
87
95
|
"vitest": "4.1.8",
|
|
88
|
-
"@dsh-enhanced/assistant-delivery": "0.1.
|
|
89
|
-
"@dsh-enhanced/assistant-
|
|
96
|
+
"@dsh-enhanced/assistant-delivery": "0.1.12",
|
|
97
|
+
"@dsh-enhanced/assistant-automations": "0.1.12",
|
|
98
|
+
"@dsh-enhanced/assistant-evaluation": "0.1.12",
|
|
99
|
+
"@dsh-enhanced/assistant-policy": "0.1.12"
|
|
90
100
|
},
|
|
91
101
|
"dependencies": {
|
|
92
102
|
"@deepseek-ai/schemastery": "3.18.1"
|