@dsh-ray/personal-memory 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 +187 -1
- package/cordis.patch.yml +18 -0
- package/lib/evidence-filesystem.d.ts +25 -0
- package/lib/evidence-filesystem.d.ts.map +1 -0
- package/lib/evidence-filesystem.js +178 -0
- package/lib/evidence-filesystem.js.map +1 -0
- package/lib/evidence-ledger.d.ts +33 -0
- package/lib/evidence-ledger.d.ts.map +1 -0
- package/lib/evidence-ledger.js +216 -0
- package/lib/evidence-ledger.js.map +1 -0
- package/lib/evidence-runtime.d.ts +28 -0
- package/lib/evidence-runtime.d.ts.map +1 -0
- package/lib/evidence-runtime.js +114 -0
- package/lib/evidence-runtime.js.map +1 -0
- package/lib/evidence-service.d.ts +50 -0
- package/lib/evidence-service.d.ts.map +1 -0
- package/lib/evidence-service.js +212 -0
- package/lib/evidence-service.js.map +1 -0
- package/lib/index.d.ts +10 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +11 -0
- package/lib/index.js.map +1 -0
- package/lib/knowledge.d.ts +6 -0
- package/lib/knowledge.d.ts.map +1 -0
- package/lib/knowledge.js +55 -0
- package/lib/knowledge.js.map +1 -0
- package/lib/learning-adoptions.d.ts +102 -0
- package/lib/learning-adoptions.d.ts.map +1 -0
- package/lib/learning-adoptions.js +92 -0
- package/lib/learning-adoptions.js.map +1 -0
- package/lib/learning-service.d.ts +38 -0
- package/lib/learning-service.d.ts.map +1 -0
- package/lib/learning-service.js +329 -0
- package/lib/learning-service.js.map +1 -0
- package/lib/promotion.d.ts +24 -0
- package/lib/promotion.d.ts.map +1 -0
- package/lib/promotion.js +147 -0
- package/lib/promotion.js.map +1 -0
- package/lib/proposals.d.ts +42 -0
- package/lib/proposals.d.ts.map +1 -0
- package/lib/proposals.js +386 -0
- package/lib/proposals.js.map +1 -0
- package/lib/service.d.ts +193 -0
- package/lib/service.d.ts.map +1 -0
- package/lib/service.js +900 -0
- package/lib/service.js.map +1 -0
- package/lib/sqlite.d.ts +9 -0
- package/lib/sqlite.d.ts.map +1 -0
- package/lib/sqlite.js +565 -0
- package/lib/sqlite.js.map +1 -0
- package/lib/store.d.ts +161 -0
- package/lib/store.d.ts.map +1 -0
- package/lib/store.js +2125 -0
- package/lib/store.js.map +1 -0
- package/lib/tokenize.d.ts +2 -0
- package/lib/tokenize.d.ts.map +1 -0
- package/lib/tokenize.js +22 -0
- package/lib/tokenize.js.map +1 -0
- package/lib/tools.d.ts +4 -0
- package/lib/tools.d.ts.map +1 -0
- package/lib/tools.js +313 -0
- package/lib/tools.js.map +1 -0
- package/lib/types.d.ts +256 -0
- package/lib/types.d.ts.map +1 -0
- package/lib/types.js +2 -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 +114 -4
package/lib/types.d.ts
ADDED
|
@@ -0,0 +1,256 @@
|
|
|
1
|
+
import type { ApprovalDispatchRoute } from '@dsh-ray/assistant-policy';
|
|
2
|
+
export type { MemoryLearningAdoptionAvailability, MemoryLearningAdoptionCommit, MemoryLearningAdoptionGrant, MemoryLearningAdoptionResult, MemoryLearningManagedSource, MemoryLearningReviewReceipt, MemoryLearningSourceInvalidation, MemoryLearningTarget, MemoryLearningTargetInput, MemoryLearningTargetSummary, MemoryLearningValidatedRef, } from './learning-adoptions.js';
|
|
3
|
+
import type { PreferenceMemoryPromotionCancellationReceipt, PreferenceMemoryPromotionCancellationRequest } from '@dsh-ray/assistant-growth-contract';
|
|
4
|
+
export type MemoryOwner = 'agent' | 'user';
|
|
5
|
+
export type MemoryScope = 'user-global' | 'workspace';
|
|
6
|
+
export type MemoryKind = 'experience' | 'fact' | 'instruction' | 'preference';
|
|
7
|
+
export type MemorySensitivity = 'private' | 'sensitive';
|
|
8
|
+
export type MemoryTrust = 'agent-observed' | 'external' | 'user-confirmed';
|
|
9
|
+
export type MemoryStatus = 'active' | 'removed';
|
|
10
|
+
/**
|
|
11
|
+
* Host-attested durable owner identity. This value is deliberately separate
|
|
12
|
+
* from MemoryIdentity: models may choose a semantic memory domain, but never
|
|
13
|
+
* the principal lineage that owns it.
|
|
14
|
+
*/
|
|
15
|
+
export type MemoryOwnerNamespace = Readonly<{
|
|
16
|
+
mode: 'delivery';
|
|
17
|
+
/** SHA-256 of Delivery's canonical external principal id. */
|
|
18
|
+
principalDigest: string;
|
|
19
|
+
/** Immutable Delivery principal-row identity. */
|
|
20
|
+
principalRecordId: string;
|
|
21
|
+
/** Exact Delivery principal-row version. */
|
|
22
|
+
principalVersion: number;
|
|
23
|
+
}> | Readonly<{
|
|
24
|
+
mode: 'headless';
|
|
25
|
+
/** SHA-256 of the trusted Host principal, never supplied by a model. */
|
|
26
|
+
principalDigest: string;
|
|
27
|
+
/** Host-controlled durable lineage, disjoint from Delivery identities. */
|
|
28
|
+
lineageId: string;
|
|
29
|
+
lineageVersion: number;
|
|
30
|
+
}>;
|
|
31
|
+
export interface MemoryIdentity {
|
|
32
|
+
owner: MemoryOwner;
|
|
33
|
+
scope: MemoryScope;
|
|
34
|
+
workspace?: string;
|
|
35
|
+
agentPreset?: string;
|
|
36
|
+
}
|
|
37
|
+
export interface MemoryProvenance {
|
|
38
|
+
source: string;
|
|
39
|
+
observedAt: number;
|
|
40
|
+
uri?: string;
|
|
41
|
+
}
|
|
42
|
+
/** Approval-bound applicability metadata; it is not independently verified truth. */
|
|
43
|
+
export interface MemoryKnowledge {
|
|
44
|
+
applicability?: readonly string[];
|
|
45
|
+
counterexamples?: readonly string[];
|
|
46
|
+
claim?: {
|
|
47
|
+
key: string;
|
|
48
|
+
value: string;
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
export interface MemoryEntryInput {
|
|
52
|
+
kind: MemoryKind;
|
|
53
|
+
content: string;
|
|
54
|
+
sensitivity: MemorySensitivity;
|
|
55
|
+
trust: MemoryTrust;
|
|
56
|
+
confidence: number;
|
|
57
|
+
provenance: MemoryProvenance;
|
|
58
|
+
expiresAt?: number;
|
|
59
|
+
supersedes?: string;
|
|
60
|
+
knowledge?: MemoryKnowledge;
|
|
61
|
+
}
|
|
62
|
+
export interface MemoryRecord extends MemoryEntryInput, MemoryIdentity {
|
|
63
|
+
namespace: MemoryOwnerNamespace;
|
|
64
|
+
id: string;
|
|
65
|
+
contentHash: string;
|
|
66
|
+
status: MemoryStatus;
|
|
67
|
+
createdAt: number;
|
|
68
|
+
updatedAt: number;
|
|
69
|
+
version: number;
|
|
70
|
+
}
|
|
71
|
+
export interface MemoryAgentContext {
|
|
72
|
+
workspace: string;
|
|
73
|
+
agentPreset: string;
|
|
74
|
+
namespace: MemoryOwnerNamespace;
|
|
75
|
+
}
|
|
76
|
+
export interface MemorySearchRequest {
|
|
77
|
+
context: MemoryAgentContext;
|
|
78
|
+
query: string;
|
|
79
|
+
limit?: number;
|
|
80
|
+
/** Optional Host-side filters. Model-facing callers cannot choose these. */
|
|
81
|
+
kinds?: readonly MemoryKind[];
|
|
82
|
+
trusts?: readonly MemoryTrust[];
|
|
83
|
+
sensitivities?: readonly MemorySensitivity[];
|
|
84
|
+
}
|
|
85
|
+
export interface MemorySearchHit {
|
|
86
|
+
record: MemoryRecord;
|
|
87
|
+
score: number;
|
|
88
|
+
matchedTokens: readonly string[];
|
|
89
|
+
/** Different explicit values among records visible to this search, before query/top-K. */
|
|
90
|
+
disagreement?: {
|
|
91
|
+
key: string;
|
|
92
|
+
recordCount: number;
|
|
93
|
+
recordIds: readonly string[];
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
export interface MemorySnapshotRequest {
|
|
97
|
+
context: MemoryAgentContext;
|
|
98
|
+
/** Current task text. Relevant records precede confirmed standing preferences. */
|
|
99
|
+
query?: string;
|
|
100
|
+
/** Host-attested active Goal context; never contains a caller-selected namespace. */
|
|
101
|
+
task?: {
|
|
102
|
+
objective: string;
|
|
103
|
+
nextStep: string;
|
|
104
|
+
query: string;
|
|
105
|
+
};
|
|
106
|
+
/**
|
|
107
|
+
* When true, omit keyword recall `hits` and return only confirmed standing
|
|
108
|
+
* `preference`/`instruction` records (including on Step 1 before session
|
|
109
|
+
* messages exist).
|
|
110
|
+
*/
|
|
111
|
+
readonly standingOnly?: boolean;
|
|
112
|
+
limit: number;
|
|
113
|
+
maxBytes: number;
|
|
114
|
+
maxTokens: number;
|
|
115
|
+
}
|
|
116
|
+
export interface MemorySnapshot {
|
|
117
|
+
records: readonly MemoryRecord[];
|
|
118
|
+
text: string;
|
|
119
|
+
bytes: number;
|
|
120
|
+
tokens: number;
|
|
121
|
+
}
|
|
122
|
+
export interface MemoryRecordChangeEvent {
|
|
123
|
+
readonly op: 'add' | 'replace' | 'remove';
|
|
124
|
+
readonly record: Readonly<MemoryRecord>;
|
|
125
|
+
readonly auditSequence?: number;
|
|
126
|
+
readonly reason?: 'withdrawn' | 'source-changed' | 'mutation';
|
|
127
|
+
}
|
|
128
|
+
export type MemoryMutation = {
|
|
129
|
+
op: 'add';
|
|
130
|
+
identity: MemoryIdentity;
|
|
131
|
+
entry: MemoryEntryInput;
|
|
132
|
+
} | {
|
|
133
|
+
op: 'replace';
|
|
134
|
+
identity: MemoryIdentity;
|
|
135
|
+
id: string;
|
|
136
|
+
expectedVersion: number;
|
|
137
|
+
entry: MemoryEntryInput;
|
|
138
|
+
} | {
|
|
139
|
+
op: 'remove';
|
|
140
|
+
identity: MemoryIdentity;
|
|
141
|
+
id: string;
|
|
142
|
+
expectedVersion: number;
|
|
143
|
+
};
|
|
144
|
+
export type ApprovedMemoryMutation = MemoryMutation & {
|
|
145
|
+
idempotencyKey: string;
|
|
146
|
+
namespace: MemoryOwnerNamespace;
|
|
147
|
+
};
|
|
148
|
+
export type MemoryProposalStatus = 'approved' | 'conflicted' | 'expired' | 'pending' | 'rejected';
|
|
149
|
+
export interface MemoryPromotionReference {
|
|
150
|
+
promotionId: string;
|
|
151
|
+
promotionGeneration: number;
|
|
152
|
+
requestDigest: string;
|
|
153
|
+
scope: Readonly<{
|
|
154
|
+
workspace: string;
|
|
155
|
+
preset: string;
|
|
156
|
+
}>;
|
|
157
|
+
/** Approval-time fence; deliberately not part of the durable Memory namespace. */
|
|
158
|
+
ownerGeneration: number;
|
|
159
|
+
/** Durable marker for a request rejected before a Policy row could be created. */
|
|
160
|
+
prePolicyStatus?: 'expired' | 'stale-owner';
|
|
161
|
+
}
|
|
162
|
+
export interface MemoryProposalInput {
|
|
163
|
+
idempotencyKey: string;
|
|
164
|
+
requester: string;
|
|
165
|
+
principal: string;
|
|
166
|
+
namespace: MemoryOwnerNamespace;
|
|
167
|
+
dispatch?: Readonly<ApprovalDispatchRoute>;
|
|
168
|
+
ttlMs: number;
|
|
169
|
+
/** Absolute deadline fixed before durable proposal identity is derived. */
|
|
170
|
+
notAfter?: number;
|
|
171
|
+
/** Trusted Host correlation; never accepted from a model-facing mutation. */
|
|
172
|
+
promotion?: Readonly<MemoryPromotionReference>;
|
|
173
|
+
mutation: MemoryMutation;
|
|
174
|
+
}
|
|
175
|
+
export interface MemoryProposalDecisionInput {
|
|
176
|
+
proposalId: string;
|
|
177
|
+
principal: string;
|
|
178
|
+
expectedVersion: number;
|
|
179
|
+
decision: 'approved' | 'rejected';
|
|
180
|
+
reason: string;
|
|
181
|
+
}
|
|
182
|
+
export interface MemoryProposalResult {
|
|
183
|
+
proposalId: string;
|
|
184
|
+
policyProposalId: string;
|
|
185
|
+
status: MemoryProposalStatus;
|
|
186
|
+
version: number;
|
|
187
|
+
expiresAt: number;
|
|
188
|
+
mutation: MemoryMutation;
|
|
189
|
+
diff: string;
|
|
190
|
+
summary: string;
|
|
191
|
+
replayed: boolean;
|
|
192
|
+
record?: MemoryRecord;
|
|
193
|
+
}
|
|
194
|
+
export interface StoredMemoryProposal {
|
|
195
|
+
proposalId: string;
|
|
196
|
+
policyProposalId: string;
|
|
197
|
+
idempotencyKey: string;
|
|
198
|
+
requester: string;
|
|
199
|
+
principal: string;
|
|
200
|
+
namespace: MemoryOwnerNamespace;
|
|
201
|
+
mutationHash: string;
|
|
202
|
+
mutation: MemoryMutation;
|
|
203
|
+
status: MemoryProposalStatus;
|
|
204
|
+
notAfter: number;
|
|
205
|
+
expiresAt: number;
|
|
206
|
+
version: number;
|
|
207
|
+
resultMemoryId?: string;
|
|
208
|
+
promotion?: Readonly<MemoryPromotionReference>;
|
|
209
|
+
}
|
|
210
|
+
export interface StoredMemoryProposalIntent extends Omit<MemoryProposalInput, 'notAfter'> {
|
|
211
|
+
proposalId: string;
|
|
212
|
+
mutationHash: string;
|
|
213
|
+
notAfter: number;
|
|
214
|
+
createdAt: number;
|
|
215
|
+
updatedAt: number;
|
|
216
|
+
}
|
|
217
|
+
export type MemoryPromotionResultStatus = 'confirmed' | 'conflicted' | 'expired' | 'rejected' | 'stale-owner';
|
|
218
|
+
export interface MemoryPromotionSettlement extends MemoryPromotionReference {
|
|
219
|
+
/** Used only when an owner-lineage fence terminally conflicts the proposal. */
|
|
220
|
+
statusOverride?: 'expired' | 'stale-owner';
|
|
221
|
+
}
|
|
222
|
+
/** Durable terminal projection consumed by the Preference promotion bridge. */
|
|
223
|
+
export interface StoredMemoryPromotionResult extends MemoryPromotionSettlement {
|
|
224
|
+
contractVersion: 1;
|
|
225
|
+
namespace: MemoryOwnerNamespace;
|
|
226
|
+
resultVersion: number;
|
|
227
|
+
status: MemoryPromotionResultStatus;
|
|
228
|
+
memoryProposalId: string;
|
|
229
|
+
memoryProposalVersion: number;
|
|
230
|
+
occurredAt: number;
|
|
231
|
+
receiptDigest: string;
|
|
232
|
+
memoryRecordId?: string;
|
|
233
|
+
memoryRecordVersion?: number;
|
|
234
|
+
memoryRecordDigest?: string;
|
|
235
|
+
state: 'completed' | 'pending';
|
|
236
|
+
attemptCount: number;
|
|
237
|
+
updatedAt: number;
|
|
238
|
+
}
|
|
239
|
+
export interface MemoryPromotionCancellationResult {
|
|
240
|
+
outcome: PreferenceMemoryPromotionCancellationReceipt['outcome'];
|
|
241
|
+
receipt: Readonly<PreferenceMemoryPromotionCancellationReceipt>;
|
|
242
|
+
}
|
|
243
|
+
export type MemoryPromotionCancellationInput = Readonly<PreferenceMemoryPromotionCancellationRequest>;
|
|
244
|
+
export interface MemoryExportRecord {
|
|
245
|
+
identity: MemoryIdentity;
|
|
246
|
+
entry: MemoryEntryInput;
|
|
247
|
+
}
|
|
248
|
+
export interface MemoryExportDocument {
|
|
249
|
+
format: 'dsh-personal-memory';
|
|
250
|
+
version: 1 | 2;
|
|
251
|
+
records: readonly MemoryExportRecord[];
|
|
252
|
+
}
|
|
253
|
+
export interface MemoryImportBatchResult {
|
|
254
|
+
proposals: readonly MemoryProposalResult[];
|
|
255
|
+
}
|
|
256
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAA;AACtE,YAAY,EACV,kCAAkC,EAAE,4BAA4B,EAAE,2BAA2B,EAAE,4BAA4B,EAC3H,2BAA2B,EAAE,2BAA2B,EAAE,gCAAgC,EAC1F,oBAAoB,EAAE,yBAAyB,EAAE,2BAA2B,EAAE,0BAA0B,GACzG,MAAM,yBAAyB,CAAA;AAChC,OAAO,KAAK,EACV,4CAA4C,EAC5C,4CAA4C,EAC7C,MAAM,oCAAoC,CAAA;AAE3C,MAAM,MAAM,WAAW,GAAG,OAAO,GAAG,MAAM,CAAA;AAC1C,MAAM,MAAM,WAAW,GAAG,aAAa,GAAG,WAAW,CAAA;AACrD,MAAM,MAAM,UAAU,GAAG,YAAY,GAAG,MAAM,GAAG,aAAa,GAAG,YAAY,CAAA;AAC7E,MAAM,MAAM,iBAAiB,GAAG,SAAS,GAAG,WAAW,CAAA;AACvD,MAAM,MAAM,WAAW,GAAG,gBAAgB,GAAG,UAAU,GAA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,CAAA;IAC/B,aAAa,EAAE,MAAM,CAAA;IACrB,MAAM,EAAE,2BAA2B,CAAA;IACnC,gBAAgB,EAAE,MAAM,CAAA;IACxB,qBAAqB,EAAE,MAAM,CAAA;IAC7B,UAAU,EAAE,MAAM,CAAA;IAClB,aAAa,EAAE,MAAM,CAAA;IACrB,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,mBAAmB,CAAC,EAAE,MAAM,CAAA;IAC5B,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3B,KAAK,EAAE,WAAW,GAAG,SAAS,CAAA;IAC9B,YAAY,EAAE,MAAM,CAAA;IACpB,SAAS,EAAE,MAAM,CAAA;CAClB;AAED,MAAM,WAAW,iCAAiC;IAChD,OAAO,EAAE,4CAA4C,CAAC,SAAS,CAAC,CAAA;IAChE,OAAO,EAAE,QAAQ,CAAC,4CAA4C,CAAC,CAAA;CAChE;AAED,MAAM,MAAM,gCAAgC,GAC1C,QAAQ,CAAC,4CAA4C,CAAC,CAAA;AAExD,MAAM,WAAW,kBAAkB;IACjC,QAAQ,EAAE,cAAc,CAAA;IACxB,KAAK,EAAE,gBAAgB,CAAA;CACxB;AAED,MAAM,WAAW,oBAAoB;IACnC,MAAM,EAAE,qBAAqB,CAAA;IAC7B,OAAO,EAAE,CAAC,GAAG,CAAC,CAAA;IACd,OAAO,EAAE,SAAS,kBAAkB,EAAE,CAAA;CACvC;AAED,MAAM,WAAW,uBAAuB;IACtC,SAAS,EAAE,SAAS,oBAAoB,EAAE,CAAA;CAC3C"}
|
package/lib/types.js
ADDED
package/lib/types.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":""}
|
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,124 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dsh-ray/personal-memory",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "Scoped, bounded, approval-gated long-term memory for DeepSeek Harness agents.",
|
|
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
|
+
"./cordis.patch.yml": "./cordis.patch.yml",
|
|
15
|
+
"./package.json": "./package.json"
|
|
16
|
+
},
|
|
17
|
+
"files": [
|
|
18
|
+
"lib",
|
|
19
|
+
"cordis.patch.yml",
|
|
20
|
+
"README.md",
|
|
21
|
+
"LICENSE"
|
|
22
|
+
],
|
|
23
|
+
"engines": {
|
|
24
|
+
"node": ">=24.9.0"
|
|
25
|
+
},
|
|
26
|
+
"publishConfig": {
|
|
27
|
+
"access": "public"
|
|
28
|
+
},
|
|
6
29
|
"repository": {
|
|
7
30
|
"type": "git",
|
|
8
31
|
"url": "git+https://github.com/22-ai-00/dsh-ray.git",
|
|
9
32
|
"directory": "plugins/personal-memory"
|
|
10
33
|
},
|
|
11
|
-
"
|
|
12
|
-
"
|
|
34
|
+
"keywords": [
|
|
35
|
+
"deepseek",
|
|
36
|
+
"deepseek-harness",
|
|
37
|
+
"dsh-plugin"
|
|
38
|
+
],
|
|
39
|
+
"dsh": {
|
|
40
|
+
"bundle": {
|
|
41
|
+
"patch": "./cordis.patch.yml"
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
"dependencies": {
|
|
45
|
+
"@deepseek-ai/schemastery": "3.19.0",
|
|
46
|
+
"@dsh-ray/assistant-growth-contract": "0.2.0"
|
|
47
|
+
},
|
|
48
|
+
"peerDependencies": {
|
|
49
|
+
"@deepseek-ai/cordis": "^4.1.0",
|
|
50
|
+
"@deepseek-ai/dsh-agent": ">=0.2.2-rc.5 <0.3.0",
|
|
51
|
+
"@deepseek-ai/dsh-fs": ">=0.2.2-rc.5 <0.3.0",
|
|
52
|
+
"@deepseek-ai/dsh-llm": ">=0.2.2-rc.5 <0.3.0",
|
|
53
|
+
"@deepseek-ai/dsh-session": ">=0.2.2-rc.5 <0.3.0",
|
|
54
|
+
"@deepseek-ai/dsh-system-prompt": ">=0.2.2-rc.5 <0.3.0",
|
|
55
|
+
"@deepseek-ai/dsh-tools": ">=0.2.2-rc.5 <0.3.0",
|
|
56
|
+
"@dsh-ray/assistant-delivery": ">=0.1.0 <0.3.0",
|
|
57
|
+
"@dsh-ray/assistant-goals": ">=0.1.0 <0.3.0",
|
|
58
|
+
"@dsh-ray/assistant-policy": ">=0.1.0 <0.3.0",
|
|
59
|
+
"@dsh-ray/assistant-evaluation": ">=0.1.0 <0.3.0",
|
|
60
|
+
"@dsh-ray/assistant-verifier": ">=0.1.0 <0.3.0"
|
|
61
|
+
},
|
|
62
|
+
"peerDependenciesMeta": {
|
|
63
|
+
"@deepseek-ai/cordis": {
|
|
64
|
+
"optional": true
|
|
65
|
+
},
|
|
66
|
+
"@deepseek-ai/dsh-agent": {
|
|
67
|
+
"optional": true
|
|
68
|
+
},
|
|
69
|
+
"@deepseek-ai/dsh-llm": {
|
|
70
|
+
"optional": true
|
|
71
|
+
},
|
|
72
|
+
"@deepseek-ai/dsh-session": {
|
|
73
|
+
"optional": true
|
|
74
|
+
},
|
|
75
|
+
"@deepseek-ai/dsh-system-prompt": {
|
|
76
|
+
"optional": true
|
|
77
|
+
},
|
|
78
|
+
"@deepseek-ai/dsh-tools": {
|
|
79
|
+
"optional": true
|
|
80
|
+
},
|
|
81
|
+
"@dsh-ray/assistant-delivery": {
|
|
82
|
+
"optional": true
|
|
83
|
+
},
|
|
84
|
+
"@dsh-ray/assistant-policy": {
|
|
85
|
+
"optional": true
|
|
86
|
+
},
|
|
87
|
+
"@dsh-ray/assistant-goals": {
|
|
88
|
+
"optional": true
|
|
89
|
+
},
|
|
90
|
+
"@deepseek-ai/dsh-fs": {
|
|
91
|
+
"optional": true
|
|
92
|
+
},
|
|
93
|
+
"@dsh-ray/assistant-evaluation": {
|
|
94
|
+
"optional": true
|
|
95
|
+
},
|
|
96
|
+
"@dsh-ray/assistant-verifier": {
|
|
97
|
+
"optional": true
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
"devDependencies": {
|
|
101
|
+
"@deepseek-ai/cordis": "4.1.0",
|
|
102
|
+
"@deepseek-ai/dsh-agent": "0.2.2-rc.5",
|
|
103
|
+
"@deepseek-ai/dsh-agent-loop-testkit": "0.2.2-rc.5",
|
|
104
|
+
"@deepseek-ai/dsh-fs": "0.2.2-rc.5",
|
|
105
|
+
"@deepseek-ai/dsh-llm": "0.2.2-rc.5",
|
|
106
|
+
"@deepseek-ai/dsh-session": "0.2.2-rc.5",
|
|
107
|
+
"@deepseek-ai/dsh-system-prompt": "0.2.2-rc.5",
|
|
108
|
+
"@deepseek-ai/dsh-tools": "0.2.2-rc.5",
|
|
109
|
+
"@types/node": "22.20.0",
|
|
110
|
+
"typescript": "6.0.3",
|
|
111
|
+
"vitest": "4.1.8",
|
|
112
|
+
"@deepseek-ai/dsh-tool-executor-native": "0.2.2-rc.5",
|
|
113
|
+
"@dsh-ray/assistant-policy": "0.2.0",
|
|
114
|
+
"@dsh-ray/assistant-evaluation": "0.2.0",
|
|
115
|
+
"@dsh-ray/assistant-delivery": "0.2.0",
|
|
116
|
+
"@dsh-ray/assistant-verifier": "0.2.0",
|
|
117
|
+
"@dsh-ray/assistant-goals": "0.2.0"
|
|
118
|
+
},
|
|
119
|
+
"scripts": {
|
|
120
|
+
"build": "tsc -p tsconfig.build.json",
|
|
121
|
+
"test": "vitest run",
|
|
122
|
+
"typecheck": "tsc -p tsconfig.json --noEmit"
|
|
13
123
|
}
|
|
14
|
-
}
|
|
124
|
+
}
|