dsh-charter 0.2.1 → 0.3.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/CHANGELOG.md +62 -1
- package/CHANGELOG.zh.md +53 -1
- package/README.md +64 -33
- package/README.zh.md +49 -27
- package/docs/README.md +7 -3
- package/docs/README.zh.md +7 -3
- package/docs/assets/charter-graph-0.3.0.zh.png +0 -0
- package/docs/assets/charter-pane-0.3.0.png +0 -0
- package/docs/assets/charter-pane-0.3.0.zh.png +0 -0
- package/docs/assets/charter-pane.zh.png +0 -0
- package/docs/design/charter-dependency-graph-v1.zh.md +1101 -0
- package/docs/design/charter-design-v1.md +2 -2
- package/docs/design/charter-design-v1.zh.md +2 -2
- package/docs/design/charter-gui-v1.zh.md +868 -0
- package/docs/design/charter-workspace-v2.zh.md +29 -1
- package/docs/design/compatibility.md +22 -6
- package/docs/design/compatibility.zh.md +21 -6
- package/docs/design/mockups/README.md +29 -0
- package/docs/design/mockups/mockup-graph.html +152 -0
- package/docs/design/mockups/mockup-home-clean.html +146 -0
- package/docs/design/mockups/mockup-home-dirty.html +191 -0
- package/docs/design/mockups/mockup.css +425 -0
- package/docs/design/mockups/style-tile.html +146 -0
- package/docs/design/mockups/tokens.css +670 -0
- package/docs/design/version-roadmap.md +28 -11
- package/docs/design/version-roadmap.zh.md +38 -8
- package/docs/release-notes/0.2.1.md +8 -6
- package/docs/release-notes/0.2.2.md +60 -0
- package/docs/release-notes/0.3.0.md +66 -0
- package/docs/release-notes/README.md +1 -2
- package/docs/releasing.md +7 -8
- package/docs/releasing.zh.md +7 -8
- package/docs/user-guide.md +36 -16
- package/docs/user-guide.zh.md +33 -14
- package/docs/verification.md +105 -32
- package/docs/verification.zh.md +90 -28
- package/lib/client/ChangeSetPanel.d.ts +24 -0
- package/lib/client/DependencyGraph.d.ts +19 -0
- package/lib/client/DiagnosticsPage.d.ts +5 -0
- package/lib/client/ReviewCenterPage.d.ts +5 -0
- package/lib/client/SectionNav.d.ts +14 -0
- package/lib/client/WorkspacePage.d.ts +5 -0
- package/lib/client/change-set-model.d.ts +55 -0
- package/lib/client/draft-store.d.ts +1 -1
- package/lib/client/locales.d.ts +94 -7
- package/lib/client/page-order.d.ts +26 -0
- package/lib/client/pane-format.d.ts +48 -0
- package/lib/client/pane-scope.d.ts +382 -0
- package/lib/client/pane-ui.d.ts +39 -0
- package/lib/client/relation-graph.d.ts +135 -0
- package/lib/client/section-routing.d.ts +12 -0
- package/lib/client/use-change-set-sheet.d.ts +13 -0
- package/lib/client.js +4589 -2413
- package/lib/core/change-set.d.ts +7 -0
- package/lib/core/dependencies.d.ts +29 -0
- package/lib/core.js +1 -1
- package/lib/{fork-D5HVDV1i.js → fork-KSL6sovw.js} +70 -1
- package/lib/host/types.d.ts +8 -1
- package/lib/index.js +2 -2
- package/lib/remote/wire.d.ts +37 -3
- package/lib/remote.js +23 -3
- package/lib/{service-CNjnvioR.js → service-DO3Q9uB2.js} +10 -5
- package/lib/version.d.ts +1 -1
- package/package.json +23 -18
package/lib/core/change-set.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { applyOps, type ApplyOpsInput } from './commands.js';
|
|
2
|
+
import { type DependencyConflictDiff } from './dependencies.js';
|
|
2
3
|
import type { CharterEditRequest, CharterOp } from './schemas.js';
|
|
3
4
|
export interface ChangeSetSide {
|
|
4
5
|
readonly revision: number;
|
|
@@ -15,6 +16,12 @@ export interface PlannedChangeSet {
|
|
|
15
16
|
readonly summaryDigest: `sha256:${string}`;
|
|
16
17
|
readonly promptChanged: boolean;
|
|
17
18
|
readonly metadataOnly: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Design §6.5: readiness conflicts this Change Set introduces or worsens.
|
|
21
|
+
* Deliberately NOT part of `summaryDigest` (which binds revisions, prompt
|
|
22
|
+
* digests and changes) so adding it cannot invalidate an existing preview.
|
|
23
|
+
*/
|
|
24
|
+
readonly dependencyConflicts: DependencyConflictDiff;
|
|
18
25
|
}
|
|
19
26
|
/**
|
|
20
27
|
* Canonical client-side Change Set projection. The Host remains the authority;
|
|
@@ -21,3 +21,32 @@ export declare function validateDependencyGraph(items: readonly CharterItem[]):
|
|
|
21
21
|
export declare function prerequisiteStatus(item: DeliverableItem, items: readonly CharterItem[]): PrerequisiteStatus;
|
|
22
22
|
export declare function executionDisplay(item: DeliverableItem, items: readonly CharterItem[]): ExecutionDisplay;
|
|
23
23
|
export declare function dependencyProjection(items: readonly CharterItem[]): readonly DependencyProjection[];
|
|
24
|
+
/**
|
|
25
|
+
* Prerequisite ids that make `item` conflict right now: a cancelled prerequisite,
|
|
26
|
+
* or a prerequisite that is not `done` while the dependent already started.
|
|
27
|
+
* Mirrors `prerequisiteStatus` rules 1–2, but returns the causes so a Change Set
|
|
28
|
+
* can tell "new conflict" from "worsened conflict".
|
|
29
|
+
*/
|
|
30
|
+
export declare function conflictingPrerequisites(item: DeliverableItem, items: readonly CharterItem[]): readonly string[];
|
|
31
|
+
export interface DependencyConflictRef {
|
|
32
|
+
readonly itemId: string;
|
|
33
|
+
/** `absent` when the item was not an active deliverable before this Change Set. */
|
|
34
|
+
readonly before: PrerequisiteStatus | 'absent';
|
|
35
|
+
readonly after: PrerequisiteStatus;
|
|
36
|
+
readonly beforeConflicts: number;
|
|
37
|
+
readonly afterConflicts: number;
|
|
38
|
+
}
|
|
39
|
+
export interface DependencyConflictDiff {
|
|
40
|
+
readonly added: readonly DependencyConflictRef[];
|
|
41
|
+
readonly worsened: readonly DependencyConflictRef[];
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Design §6.5: a Change Set must prominently mark newly introduced or worsened
|
|
45
|
+
* readiness conflicts and require explicit user confirmation. This is the shared
|
|
46
|
+
* before/after comparison used by the planner (Host authority) and the Pane
|
|
47
|
+
* (immediate feedback), so both sides cannot drift.
|
|
48
|
+
*
|
|
49
|
+
* Structural illegality (cycles, dangling or inactive endpoints) is *not* part of
|
|
50
|
+
* this diff: `validateDependencyGraph` rejects those outright.
|
|
51
|
+
*/
|
|
52
|
+
export declare function dependencyConflictDiff(before: readonly CharterItem[], after: readonly CharterItem[]): DependencyConflictDiff;
|
package/lib/core.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as
|
|
1
|
+
import { $ as charterItemSchema, $t as recordMaintenanceAvailable, At as proposalSourceSchema, Bt as sha256Json, C as buildRecordArchive, Ct as mutationIdSchema, D as validateArchiveEnvelope, Dt as proposalBatchSchema, E as recordDigestOf, Et as objectiveProposalSchema, F as buildSnapshotUnchecked, Ft as compareCodeUnits, G as CHARTER_RECORD_SCHEMA_VERSION, Gt as DEFAULT_CHARTER_LIMITS, H as inspectUserText, I as emptySnapshot, It as compareOrderedItems, J as charterChangeSchema, Jt as MIN_RECORD_BYTES, K as charterActorSchema, Kt as MIN_HISTORY_BYTES, L as assertStateQuota, Lt as isDeliverable, Mt as encodePromptText, N as applyOps, Nt as renderCharterPrompt, O as withPayloadDigest, Ot as proposalCandidateRefSchema, P as buildSnapshot, Pt as canonicalItems, Q as charterInitializeRequestSchema, Qt as jsonBytes, R as validateState, Rt as isInvariant, S as assertRestorableArchive, St as maintenanceKindSchema, T as payloadDigestOf, Tt as newItemInputSchema, U as normalizeEditRequest, Ut as bootstrapFromEvents, V as clientRefsOf, Vt as sha256Text, W as normalizeUserText, Wt as bootstrapFromSummary, X as charterEvidenceSchema, Xt as RECOVERY_HEADROOM, Y as charterEditRequestSchema, Yt as RECOVERY_HARD_CEILING, Z as charterIdentitySchema, Zt as clampCharterLimits, _ as migrateRecordV1ToV2, _t as deliverableProgressSchema, a as appendMaintenanceReceipt, at as charterRecordArchiveSchema, b as assertArchiveAdmission, bt as invariantInputSchema, c as assertRecoveryRecordAdmission, ct as charterRecordV1Schema, d as createEmptyRecord, dt as charterSnapshotSchema, en as recoveryWithinBudget, et as charterLifecycleSchema, f as emptyStateDigest, ft as charterValiditySchema, g as maintenanceRequestDigestOf, gt as deliverableItemSchema, h as legacyValidityFor, ht as deliverableInputSchema, i as RevisionConflict, it as charterReceiptSchema, jt as CHARTER_PROMPT_PREFIX, kt as proposalSourceKindSchema, l as assertSnapshotAdmission, lt as charterRestoreRequestSchema, m as isRecordOverBudget, mt as clientRefSchema, n as MAX_PROPOSAL_BATCHES, nn as CharterError, nt as charterObjectiveSchema, o as assertRecordAdmission, ot as charterRecordArchiveSourceSchema, p as isExpectedControlError, pt as charterVerificationSchema, q as charterBootstrapApplyRequestSchema, qt as MIN_PROMPT_BYTES, r as MutationReplay, rn as charterError, rt as charterOpSchema, s as assertRecordConsistency, st as charterRecordSchema, t as forkRecord, tn as utf8Bytes, tt as charterMaintenanceReceiptSchema, u as commitRecord, ut as charterReviewSchema, v as requestDigestOf, vt as digestSchema, w as maintenanceSemanticCheck, wt as mutationReceiptSchema, x as assertRecoveryRequestAdmission, xt as invariantItemSchema, y as restoredRecord, yt as identifierSchema, zt as isStandingItem } from "./fork-KSL6sovw.js";
|
|
2
2
|
export { CHARTER_PROMPT_PREFIX, CHARTER_RECORD_SCHEMA_VERSION, CharterError, DEFAULT_CHARTER_LIMITS, MAX_PROPOSAL_BATCHES, MIN_HISTORY_BYTES, MIN_PROMPT_BYTES, MIN_RECORD_BYTES, MutationReplay, RECOVERY_HARD_CEILING, RECOVERY_HEADROOM, RevisionConflict, appendMaintenanceReceipt, applyOps, assertArchiveAdmission, assertRecordAdmission, assertRecordConsistency, assertRecoveryRecordAdmission, assertRecoveryRequestAdmission, assertRestorableArchive, assertSnapshotAdmission, assertStateQuota, bootstrapFromEvents, bootstrapFromSummary, buildRecordArchive, buildSnapshot, buildSnapshotUnchecked, canonicalItems, charterActorSchema, charterBootstrapApplyRequestSchema, charterChangeSchema, charterEditRequestSchema, charterError, charterEvidenceSchema, charterIdentitySchema, charterInitializeRequestSchema, charterItemSchema, charterLifecycleSchema, charterMaintenanceReceiptSchema, charterObjectiveSchema, charterOpSchema, charterReceiptSchema, charterRecordArchiveSchema, charterRecordArchiveSourceSchema, charterRecordSchema, charterRecordV1Schema, charterRestoreRequestSchema, charterReviewSchema, charterSnapshotSchema, charterValiditySchema, charterVerificationSchema, clampCharterLimits, clientRefSchema, clientRefsOf, commitRecord, compareCodeUnits, compareOrderedItems as compareItems, createEmptyRecord, deliverableInputSchema, deliverableItemSchema, deliverableProgressSchema, digestSchema, emptySnapshot, emptyStateDigest, encodePromptText, forkRecord, identifierSchema, inspectUserText, invariantInputSchema, invariantItemSchema, isDeliverable, isExpectedControlError, isInvariant, isRecordOverBudget, isStandingItem, jsonBytes, legacyValidityFor, maintenanceKindSchema, maintenanceRequestDigestOf, maintenanceSemanticCheck, migrateRecordV1ToV2, mutationIdSchema, mutationReceiptSchema, newItemInputSchema, normalizeEditRequest, normalizeUserText, objectiveProposalSchema, payloadDigestOf, proposalBatchSchema, proposalCandidateRefSchema, proposalSourceKindSchema, proposalSourceSchema, recordDigestOf, recordMaintenanceAvailable, recoveryWithinBudget, renderCharterPrompt, renderCharterPrompt as renderPrompt, requestDigestOf, restoredRecord, sha256Json, sha256Text, utf8Bytes, validateArchiveEnvelope, validateState, withPayloadDigest };
|
|
@@ -1241,6 +1241,75 @@ function dependencyProjection(items) {
|
|
|
1241
1241
|
executionDisplay: executionDisplay(item, items)
|
|
1242
1242
|
}));
|
|
1243
1243
|
}
|
|
1244
|
+
/**
|
|
1245
|
+
* Prerequisite ids that make `item` conflict right now: a cancelled prerequisite,
|
|
1246
|
+
* or a prerequisite that is not `done` while the dependent already started.
|
|
1247
|
+
* Mirrors `prerequisiteStatus` rules 1–2, but returns the causes so a Change Set
|
|
1248
|
+
* can tell "new conflict" from "worsened conflict".
|
|
1249
|
+
*/
|
|
1250
|
+
function conflictingPrerequisites(item, items) {
|
|
1251
|
+
const byId = new Map(items.map((candidate) => [candidate.id, candidate]));
|
|
1252
|
+
const causes = [];
|
|
1253
|
+
for (const id of item.requires ?? []) {
|
|
1254
|
+
const prerequisite = byId.get(id);
|
|
1255
|
+
if (prerequisite === void 0 || prerequisite.kind !== "deliverable") continue;
|
|
1256
|
+
if (prerequisite.progress === "cancelled") {
|
|
1257
|
+
causes.push(id);
|
|
1258
|
+
continue;
|
|
1259
|
+
}
|
|
1260
|
+
if (prerequisite.progress !== "done" && (item.progress === "in-progress" || item.progress === "done")) causes.push(id);
|
|
1261
|
+
}
|
|
1262
|
+
return causes;
|
|
1263
|
+
}
|
|
1264
|
+
/**
|
|
1265
|
+
* Design §6.5: a Change Set must prominently mark newly introduced or worsened
|
|
1266
|
+
* readiness conflicts and require explicit user confirmation. This is the shared
|
|
1267
|
+
* before/after comparison used by the planner (Host authority) and the Pane
|
|
1268
|
+
* (immediate feedback), so both sides cannot drift.
|
|
1269
|
+
*
|
|
1270
|
+
* Structural illegality (cycles, dangling or inactive endpoints) is *not* part of
|
|
1271
|
+
* this diff: `validateDependencyGraph` rejects those outright.
|
|
1272
|
+
*/
|
|
1273
|
+
function dependencyConflictDiff(before, after) {
|
|
1274
|
+
const snapshot = (items) => {
|
|
1275
|
+
const out = /* @__PURE__ */ new Map();
|
|
1276
|
+
for (const item of standingDeliverables(items)) out.set(item.id, {
|
|
1277
|
+
status: prerequisiteStatus(item, items),
|
|
1278
|
+
conflicts: conflictingPrerequisites(item, items).length
|
|
1279
|
+
});
|
|
1280
|
+
return out;
|
|
1281
|
+
};
|
|
1282
|
+
const beforeState = snapshot(before);
|
|
1283
|
+
const afterState = snapshot(after);
|
|
1284
|
+
const added = [];
|
|
1285
|
+
const worsened = [];
|
|
1286
|
+
for (const [itemId, next] of afterState) {
|
|
1287
|
+
if (next.status !== "dependency-conflict") continue;
|
|
1288
|
+
const previous = beforeState.get(itemId);
|
|
1289
|
+
if (previous === void 0 || previous.status !== "dependency-conflict") {
|
|
1290
|
+
added.push({
|
|
1291
|
+
itemId,
|
|
1292
|
+
before: previous?.status ?? "absent",
|
|
1293
|
+
after: next.status,
|
|
1294
|
+
beforeConflicts: previous?.conflicts ?? 0,
|
|
1295
|
+
afterConflicts: next.conflicts
|
|
1296
|
+
});
|
|
1297
|
+
continue;
|
|
1298
|
+
}
|
|
1299
|
+
if (next.conflicts > previous.conflicts) worsened.push({
|
|
1300
|
+
itemId,
|
|
1301
|
+
before: previous.status,
|
|
1302
|
+
after: next.status,
|
|
1303
|
+
beforeConflicts: previous.conflicts,
|
|
1304
|
+
afterConflicts: next.conflicts
|
|
1305
|
+
});
|
|
1306
|
+
}
|
|
1307
|
+
const byItemId = (left, right) => left.itemId < right.itemId ? -1 : left.itemId > right.itemId ? 1 : 0;
|
|
1308
|
+
return {
|
|
1309
|
+
added: added.sort(byItemId),
|
|
1310
|
+
worsened: worsened.sort(byItemId)
|
|
1311
|
+
};
|
|
1312
|
+
}
|
|
1244
1313
|
//#endregion
|
|
1245
1314
|
//#region .build-ts/core/state.js
|
|
1246
1315
|
function assertCanonicalText(value, field) {
|
|
@@ -2665,4 +2734,4 @@ function forkRecord(input) {
|
|
|
2665
2734
|
return child;
|
|
2666
2735
|
}
|
|
2667
2736
|
//#endregion
|
|
2668
|
-
export {
|
|
2737
|
+
export { charterItemSchema as $, recordMaintenanceAvailable as $t, compactionProjectionDigest as A, proposalSourceSchema as At, dependencyProjection as B, sha256Json as Bt, buildRecordArchive as C, mutationIdSchema as Ct, validateArchiveEnvelope as D, proposalBatchSchema as Dt, recordDigestOf as E, objectiveProposalSchema as Et, buildSnapshotUnchecked as F, compareCodeUnits as Ft, CHARTER_RECORD_SCHEMA_VERSION as G, DEFAULT_CHARTER_LIMITS as Gt, inspectUserText as H, assertEditAuthorized as Ht, emptySnapshot as I, compareOrderedItems as It, charterChangeSchema as J, MIN_RECORD_BYTES as Jt, charterActorSchema as K, MIN_HISTORY_BYTES as Kt, assertStateQuota as L, isDeliverable$1 as Lt, verifySourceProjection as M, encodePromptText as Mt, applyOps as N, renderCharterPrompt as Nt, withPayloadDigest as O, proposalCandidateRefSchema as Ot, buildSnapshot as P, canonicalItems as Pt, charterInitializeRequestSchema as Q, jsonBytes as Qt, validateState as R, isInvariant$1 as Rt, assertRestorableArchive as S, maintenanceKindSchema as St, payloadDigestOf as T, newItemInputSchema as Tt, normalizeEditRequest as U, bootstrapFromEvents as Ut, clientRefsOf as V, sha256Text as Vt, normalizeUserText as W, bootstrapFromSummary as Wt, charterEvidenceSchema as X, RECOVERY_HEADROOM as Xt, charterEditRequestSchema as Y, RECOVERY_HARD_CEILING as Yt, charterIdentitySchema as Z, clampCharterLimits as Zt, migrateRecordV1ToV2 as _, deliverableProgressSchema as _t, appendMaintenanceReceipt as a, charterRecordArchiveSchema as at, assertArchiveAdmission as b, invariantInputSchema as bt, assertRecoveryRecordAdmission as c, charterRecordV1Schema as ct, createEmptyRecord as d, charterSnapshotSchema as dt, recoveryWithinBudget as en, charterLifecycleSchema as et, emptyStateDigest as f, charterValiditySchema as ft, maintenanceRequestDigestOf as g, deliverableItemSchema as gt, legacyValidityFor as h, deliverableInputSchema as ht, RevisionConflict as i, charterReceiptSchema as it, messageProjectionDigest as j, CHARTER_PROMPT_PREFIX as jt, agentProjectionDigest as k, proposalSourceKindSchema as kt, assertSnapshotAdmission as l, charterRestoreRequestSchema as lt, isRecordOverBudget as m, clientRefSchema as mt, MAX_PROPOSAL_BATCHES as n, CharterError as nn, charterObjectiveSchema as nt, assertRecordAdmission as o, charterRecordArchiveSourceSchema as ot, isExpectedControlError as p, charterVerificationSchema as pt, charterBootstrapApplyRequestSchema as q, MIN_PROMPT_BYTES as qt, MutationReplay as r, charterError as rn, charterOpSchema as rt, assertRecordConsistency as s, charterRecordSchema as st, forkRecord as t, utf8Bytes as tn, charterMaintenanceReceiptSchema as tt, commitRecord as u, charterReviewSchema as ut, requestDigestOf as v, digestSchema as vt, maintenanceSemanticCheck as w, mutationReceiptSchema as wt, assertRecoveryRequestAdmission as x, invariantItemSchema as xt, restoredRecord as y, identifierSchema as yt, dependencyConflictDiff as z, isStandingItem as zt };
|
package/lib/host/types.d.ts
CHANGED
|
@@ -226,7 +226,12 @@ export type CharterBootstrapResult = {
|
|
|
226
226
|
readonly message?: string;
|
|
227
227
|
};
|
|
228
228
|
export interface CharterToolItem {
|
|
229
|
-
/**
|
|
229
|
+
/**
|
|
230
|
+
* Always present in the bounded `all` debugging view. In the `standing` view
|
|
231
|
+
* it is present on deliverables only: it is the reference space
|
|
232
|
+
* `charter_propose.requires` validates against, and an invariant can never be
|
|
233
|
+
* a prerequisite.
|
|
234
|
+
*/
|
|
230
235
|
readonly id?: string;
|
|
231
236
|
readonly kind: CharterItem['kind'];
|
|
232
237
|
readonly text: string;
|
|
@@ -400,6 +405,8 @@ export type CharterChangeSetPreviewResult = {
|
|
|
400
405
|
readonly changes: readonly import('../core/schemas.js').CharterChange[];
|
|
401
406
|
readonly promptChanged: boolean;
|
|
402
407
|
readonly metadataOnly: boolean;
|
|
408
|
+
/** Optional so a Host predating §6.5 still decodes; absent means "not reported". */
|
|
409
|
+
readonly dependencyConflicts?: import('../core/dependencies.js').DependencyConflictDiff;
|
|
403
410
|
} | {
|
|
404
411
|
readonly ok: false;
|
|
405
412
|
readonly code: CharterErrorCode;
|
package/lib/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as
|
|
2
|
-
import { a as CHARTER_DOMAIN_NAME, n as Config, o as CHARTER_DOMAIN_VERSION, r as DEFAULT_CHARTER_CONFIG, s as charterDomainSpec, t as CharterService } from "./service-
|
|
1
|
+
import { $ as charterItemSchema, $t as recordMaintenanceAvailable, At as proposalSourceSchema, Bt as sha256Json, C as buildRecordArchive, Ct as mutationIdSchema, D as validateArchiveEnvelope, Dt as proposalBatchSchema, E as recordDigestOf, Et as objectiveProposalSchema, F as buildSnapshotUnchecked, Ft as compareCodeUnits, G as CHARTER_RECORD_SCHEMA_VERSION, Gt as DEFAULT_CHARTER_LIMITS, H as inspectUserText, I as emptySnapshot, It as compareOrderedItems, J as charterChangeSchema, Jt as MIN_RECORD_BYTES, K as charterActorSchema, Kt as MIN_HISTORY_BYTES, L as assertStateQuota, Lt as isDeliverable, Mt as encodePromptText, N as applyOps, Nt as renderCharterPrompt, O as withPayloadDigest, Ot as proposalCandidateRefSchema, P as buildSnapshot, Pt as canonicalItems, Q as charterInitializeRequestSchema, Qt as jsonBytes, R as validateState, Rt as isInvariant, S as assertRestorableArchive, St as maintenanceKindSchema, T as payloadDigestOf, Tt as newItemInputSchema, U as normalizeEditRequest, Ut as bootstrapFromEvents, V as clientRefsOf, Vt as sha256Text, W as normalizeUserText, Wt as bootstrapFromSummary, X as charterEvidenceSchema, Xt as RECOVERY_HEADROOM, Y as charterEditRequestSchema, Yt as RECOVERY_HARD_CEILING, Z as charterIdentitySchema, Zt as clampCharterLimits, _ as migrateRecordV1ToV2, _t as deliverableProgressSchema, a as appendMaintenanceReceipt, at as charterRecordArchiveSchema, b as assertArchiveAdmission, bt as invariantInputSchema, c as assertRecoveryRecordAdmission, ct as charterRecordV1Schema, d as createEmptyRecord, dt as charterSnapshotSchema, en as recoveryWithinBudget, et as charterLifecycleSchema, f as emptyStateDigest, ft as charterValiditySchema, g as maintenanceRequestDigestOf, gt as deliverableItemSchema, h as legacyValidityFor, ht as deliverableInputSchema, i as RevisionConflict, it as charterReceiptSchema, jt as CHARTER_PROMPT_PREFIX, kt as proposalSourceKindSchema, l as assertSnapshotAdmission, lt as charterRestoreRequestSchema, m as isRecordOverBudget, mt as clientRefSchema, n as MAX_PROPOSAL_BATCHES, nn as CharterError, nt as charterObjectiveSchema, o as assertRecordAdmission, ot as charterRecordArchiveSourceSchema, p as isExpectedControlError, pt as charterVerificationSchema, q as charterBootstrapApplyRequestSchema, qt as MIN_PROMPT_BYTES, r as MutationReplay, rn as charterError, rt as charterOpSchema, s as assertRecordConsistency, st as charterRecordSchema, t as forkRecord, tn as utf8Bytes, tt as charterMaintenanceReceiptSchema, u as commitRecord, ut as charterReviewSchema, v as requestDigestOf, vt as digestSchema, w as maintenanceSemanticCheck, wt as mutationReceiptSchema, x as assertRecoveryRequestAdmission, xt as invariantItemSchema, y as restoredRecord, yt as identifierSchema, zt as isStandingItem } from "./fork-KSL6sovw.js";
|
|
2
|
+
import { a as CHARTER_DOMAIN_NAME, n as Config, o as CHARTER_DOMAIN_VERSION, r as DEFAULT_CHARTER_CONFIG, s as charterDomainSpec, t as CharterService } from "./service-DO3Q9uB2.js";
|
|
3
3
|
import "./core.js";
|
|
4
4
|
export { CHARTER_DOMAIN_NAME, CHARTER_DOMAIN_VERSION, CHARTER_PROMPT_PREFIX, CHARTER_RECORD_SCHEMA_VERSION, CharterError, CharterService, CharterService as default, Config, DEFAULT_CHARTER_CONFIG, DEFAULT_CHARTER_LIMITS, MAX_PROPOSAL_BATCHES, MIN_HISTORY_BYTES, MIN_PROMPT_BYTES, MIN_RECORD_BYTES, MutationReplay, RECOVERY_HARD_CEILING, RECOVERY_HEADROOM, RevisionConflict, appendMaintenanceReceipt, applyOps, assertArchiveAdmission, assertRecordAdmission, assertRecordConsistency, assertRecoveryRecordAdmission, assertRecoveryRequestAdmission, assertRestorableArchive, assertSnapshotAdmission, assertStateQuota, bootstrapFromEvents, bootstrapFromSummary, buildRecordArchive, buildSnapshot, buildSnapshotUnchecked, canonicalItems, charterActorSchema, charterBootstrapApplyRequestSchema, charterChangeSchema, charterDomainSpec, charterEditRequestSchema, charterError, charterEvidenceSchema, charterIdentitySchema, charterInitializeRequestSchema, charterItemSchema, charterLifecycleSchema, charterMaintenanceReceiptSchema, charterObjectiveSchema, charterOpSchema, charterReceiptSchema, charterRecordArchiveSchema, charterRecordArchiveSourceSchema, charterRecordSchema, charterRecordV1Schema, charterRestoreRequestSchema, charterReviewSchema, charterSnapshotSchema, charterValiditySchema, charterVerificationSchema, clampCharterLimits, clientRefSchema, clientRefsOf, commitRecord, compareCodeUnits, compareOrderedItems as compareItems, createEmptyRecord, deliverableInputSchema, deliverableItemSchema, deliverableProgressSchema, digestSchema, emptySnapshot, emptyStateDigest, encodePromptText, forkRecord, identifierSchema, inspectUserText, invariantInputSchema, invariantItemSchema, isDeliverable, isExpectedControlError, isInvariant, isRecordOverBudget, isStandingItem, jsonBytes, legacyValidityFor, maintenanceKindSchema, maintenanceRequestDigestOf, maintenanceSemanticCheck, migrateRecordV1ToV2, mutationIdSchema, mutationReceiptSchema, newItemInputSchema, normalizeEditRequest, normalizeUserText, objectiveProposalSchema, payloadDigestOf, proposalBatchSchema, proposalCandidateRefSchema, proposalSourceKindSchema, proposalSourceSchema, recordDigestOf, recordMaintenanceAvailable, recoveryWithinBudget, renderCharterPrompt, renderCharterPrompt as renderPrompt, requestDigestOf, restoredRecord, sha256Json, sha256Text, utf8Bytes, validateArchiveEnvelope, validateState, withPayloadDigest };
|
package/lib/remote/wire.d.ts
CHANGED
|
@@ -489,8 +489,8 @@ export declare const charterSummarySchema: z.ZodObject<{
|
|
|
489
489
|
unknown: "unknown";
|
|
490
490
|
invalid: "invalid";
|
|
491
491
|
healthy: "healthy";
|
|
492
|
-
"write-uncertain": "write-uncertain";
|
|
493
492
|
absent: "absent";
|
|
493
|
+
"write-uncertain": "write-uncertain";
|
|
494
494
|
}>;
|
|
495
495
|
capabilities: z.ZodObject<{
|
|
496
496
|
recordMaintenance: z.ZodBoolean;
|
|
@@ -592,8 +592,8 @@ export declare const charterSummaryFrameSchema: z.ZodUnion<readonly [z.ZodObject
|
|
|
592
592
|
unknown: "unknown";
|
|
593
593
|
invalid: "invalid";
|
|
594
594
|
healthy: "healthy";
|
|
595
|
-
"write-uncertain": "write-uncertain";
|
|
596
595
|
absent: "absent";
|
|
596
|
+
"write-uncertain": "write-uncertain";
|
|
597
597
|
}>;
|
|
598
598
|
capabilities: z.ZodObject<{
|
|
599
599
|
recordMaintenance: z.ZodBoolean;
|
|
@@ -695,8 +695,8 @@ export declare const charterSummaryFrameSchema: z.ZodUnion<readonly [z.ZodObject
|
|
|
695
695
|
unknown: "unknown";
|
|
696
696
|
invalid: "invalid";
|
|
697
697
|
healthy: "healthy";
|
|
698
|
-
"write-uncertain": "write-uncertain";
|
|
699
698
|
absent: "absent";
|
|
699
|
+
"write-uncertain": "write-uncertain";
|
|
700
700
|
}>;
|
|
701
701
|
capabilities: z.ZodObject<{
|
|
702
702
|
recordMaintenance: z.ZodBoolean;
|
|
@@ -1551,6 +1551,40 @@ export declare const charterChangeSetPreviewResultSchema: z.ZodDiscriminatedUnio
|
|
|
1551
1551
|
}, z.core.$strict>], "type">>;
|
|
1552
1552
|
promptChanged: z.ZodBoolean;
|
|
1553
1553
|
metadataOnly: z.ZodBoolean;
|
|
1554
|
+
dependencyConflicts: z.ZodOptional<z.ZodObject<{
|
|
1555
|
+
added: z.ZodArray<z.ZodObject<{
|
|
1556
|
+
itemId: z.ZodString;
|
|
1557
|
+
before: z.ZodEnum<{
|
|
1558
|
+
satisfied: "satisfied";
|
|
1559
|
+
waiting: "waiting";
|
|
1560
|
+
"dependency-conflict": "dependency-conflict";
|
|
1561
|
+
absent: "absent";
|
|
1562
|
+
}>;
|
|
1563
|
+
after: z.ZodEnum<{
|
|
1564
|
+
satisfied: "satisfied";
|
|
1565
|
+
waiting: "waiting";
|
|
1566
|
+
"dependency-conflict": "dependency-conflict";
|
|
1567
|
+
}>;
|
|
1568
|
+
beforeConflicts: z.ZodNumber;
|
|
1569
|
+
afterConflicts: z.ZodNumber;
|
|
1570
|
+
}, z.core.$strict>>;
|
|
1571
|
+
worsened: z.ZodArray<z.ZodObject<{
|
|
1572
|
+
itemId: z.ZodString;
|
|
1573
|
+
before: z.ZodEnum<{
|
|
1574
|
+
satisfied: "satisfied";
|
|
1575
|
+
waiting: "waiting";
|
|
1576
|
+
"dependency-conflict": "dependency-conflict";
|
|
1577
|
+
absent: "absent";
|
|
1578
|
+
}>;
|
|
1579
|
+
after: z.ZodEnum<{
|
|
1580
|
+
satisfied: "satisfied";
|
|
1581
|
+
waiting: "waiting";
|
|
1582
|
+
"dependency-conflict": "dependency-conflict";
|
|
1583
|
+
}>;
|
|
1584
|
+
beforeConflicts: z.ZodNumber;
|
|
1585
|
+
afterConflicts: z.ZodNumber;
|
|
1586
|
+
}, z.core.$strict>>;
|
|
1587
|
+
}, z.core.$strict>>;
|
|
1554
1588
|
}, z.core.$strict>, z.ZodObject<{
|
|
1555
1589
|
ok: z.ZodLiteral<false>;
|
|
1556
1590
|
code: z.ZodEnum<{
|
package/lib/remote.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { c as peerPrincipalRequired, i as resolveActor, l as remoteMethod } from "./service-
|
|
1
|
+
import { $ as charterItemSchema, Et as objectiveProposalSchema, J as charterChangeSchema, K as charterActorSchema, Ot as proposalCandidateRefSchema, Q as charterInitializeRequestSchema, Y as charterEditRequestSchema, at as charterRecordArchiveSchema, lt as charterRestoreRequestSchema, nn as CharterError, nt as charterObjectiveSchema, q as charterBootstrapApplyRequestSchema } from "./fork-KSL6sovw.js";
|
|
2
|
+
import { c as peerPrincipalRequired, i as resolveActor, l as remoteMethod } from "./service-DO3Q9uB2.js";
|
|
3
3
|
import "@deepseek-ai/cordis";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
import { TypertRemoteService } from "@deepseek-ai/dsh-typert-protocol";
|
|
@@ -1141,6 +1141,22 @@ const charterValidatorRunResultSchema = z.discriminatedUnion("ok", [z.object({
|
|
|
1141
1141
|
code: charterErrorCodeSchema,
|
|
1142
1142
|
message: z.string()
|
|
1143
1143
|
}).strict()]);
|
|
1144
|
+
const charterDependencyConflictRefSchema = z.object({
|
|
1145
|
+
itemId: z.string(),
|
|
1146
|
+
before: z.enum([
|
|
1147
|
+
"satisfied",
|
|
1148
|
+
"waiting",
|
|
1149
|
+
"dependency-conflict",
|
|
1150
|
+
"absent"
|
|
1151
|
+
]),
|
|
1152
|
+
after: z.enum([
|
|
1153
|
+
"satisfied",
|
|
1154
|
+
"waiting",
|
|
1155
|
+
"dependency-conflict"
|
|
1156
|
+
]),
|
|
1157
|
+
beforeConflicts: z.number().int().nonnegative(),
|
|
1158
|
+
afterConflicts: z.number().int().nonnegative()
|
|
1159
|
+
}).strict();
|
|
1144
1160
|
const charterChangeSetPreviewResultSchema = z.discriminatedUnion("ok", [z.object({
|
|
1145
1161
|
ok: z.literal(true),
|
|
1146
1162
|
previewDigest: z.string(),
|
|
@@ -1158,7 +1174,11 @@ const charterChangeSetPreviewResultSchema = z.discriminatedUnion("ok", [z.object
|
|
|
1158
1174
|
}).strict(),
|
|
1159
1175
|
changes: z.array(charterChangeSchema),
|
|
1160
1176
|
promptChanged: z.boolean(),
|
|
1161
|
-
metadataOnly: z.boolean()
|
|
1177
|
+
metadataOnly: z.boolean(),
|
|
1178
|
+
dependencyConflicts: z.object({
|
|
1179
|
+
added: z.array(charterDependencyConflictRefSchema),
|
|
1180
|
+
worsened: z.array(charterDependencyConflictRefSchema)
|
|
1181
|
+
}).strict().optional()
|
|
1162
1182
|
}).strict(), z.object({
|
|
1163
1183
|
ok: z.literal(false),
|
|
1164
1184
|
code: charterErrorCodeSchema,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as compactionProjectionDigest, B as
|
|
1
|
+
import { $t as recordMaintenanceAvailable, A as compactionProjectionDigest, B as dependencyProjection, Bt as sha256Json, C as buildRecordArchive, D as validateArchiveEnvelope, E as recordDigestOf, Gt as DEFAULT_CHARTER_LIMITS, Ht as assertEditAuthorized, It as compareOrderedItems, M as verifySourceProjection, N as applyOps, Q as charterInitializeRequestSchema, S as assertRestorableArchive, U as normalizeEditRequest, Ut as bootstrapFromEvents, V as clientRefsOf, Vt as sha256Text, Z as charterIdentitySchema, Zt as clampCharterLimits, _ as migrateRecordV1ToV2, a as appendMaintenanceReceipt, at as charterRecordArchiveSchema, b as assertArchiveAdmission, c as assertRecoveryRecordAdmission, ct as charterRecordV1Schema, d as createEmptyRecord, g as maintenanceRequestDigestOf, h as legacyValidityFor, i as RevisionConflict, j as messageProjectionDigest, k as agentProjectionDigest, lt as charterRestoreRequestSchema, m as isRecordOverBudget, nn as CharterError, q as charterBootstrapApplyRequestSchema, r as MutationReplay, rn as charterError, s as assertRecordConsistency, st as charterRecordSchema, t as forkRecord, u as commitRecord, v as requestDigestOf, x as assertRecoveryRequestAdmission, y as restoredRecord, z as dependencyConflictDiff, zt as isStandingItem } from "./fork-KSL6sovw.js";
|
|
2
2
|
import { createHash, randomUUID } from "node:crypto";
|
|
3
3
|
import { Service } from "@deepseek-ai/cordis";
|
|
4
4
|
import Schema from "@deepseek-ai/schemastery";
|
|
@@ -147,6 +147,7 @@ function planChangeSet(input) {
|
|
|
147
147
|
const after = side(applied.snapshot);
|
|
148
148
|
const promptChanged = applied.snapshot.promptText !== input.snapshot.promptText;
|
|
149
149
|
const metadataOnly = applied.changes.every((change) => change.type === "item.accepted" || change.type === "item.rejected" || change.type === "item.archived" || change.type === "item.restored" || change.type === "item.superseded" || change.type === "item.purged" || change.type === "item.verification.changed") && !promptChanged;
|
|
150
|
+
const dependencyConflicts = dependencyConflictDiff(input.snapshot.items, applied.snapshot.items);
|
|
150
151
|
const summaryDigest = sha256Json({
|
|
151
152
|
version: 1,
|
|
152
153
|
baseRevision: input.snapshot.revision,
|
|
@@ -169,7 +170,8 @@ function planChangeSet(input) {
|
|
|
169
170
|
changes: [...applied.changes],
|
|
170
171
|
summaryDigest,
|
|
171
172
|
promptChanged,
|
|
172
|
-
metadataOnly
|
|
173
|
+
metadataOnly,
|
|
174
|
+
dependencyConflicts
|
|
173
175
|
};
|
|
174
176
|
}
|
|
175
177
|
/** Digest of the reviewed request, bound to the authoritative snapshot. */
|
|
@@ -499,7 +501,7 @@ function archiveCacheKey(sessionId, revision) {
|
|
|
499
501
|
function defineCharterReadTool(charter) {
|
|
500
502
|
return defineTool({
|
|
501
503
|
name: "charter_read",
|
|
502
|
-
description: "Read the current user-authored session charter (read-only). The standing charter is normally present in runtime context when automatic injection is available; do not call standing merely to restate that context. Call it when the context may be absent or stale,
|
|
504
|
+
description: "Read the current user-authored session charter (read-only). The standing charter is normally present in runtime context when automatic injection is available; do not call standing merely to restate that context. Call it when the context may be absent or stale, when revision/verification details are needed, or when you need deliverable ids: charter_propose.requires references those ids and the injected context does not expose them. standing fails explicitly with LIMIT_EXCEEDED rather than returning a partial working set; use all with cursor/limit for inactive/history entries (64 items / 32 KiB per page).",
|
|
503
505
|
parameters: {
|
|
504
506
|
view: {
|
|
505
507
|
type: "string",
|
|
@@ -573,7 +575,7 @@ function defineCharterReadTool(charter) {
|
|
|
573
575
|
function defineCharterProposeTool(charter) {
|
|
574
576
|
return defineTool({
|
|
575
577
|
name: "charter_propose",
|
|
576
|
-
description: "Create pending proposals for the current Session charter. This tool is not a write path: the user must review and accept proposals in the Review Center. Only invariants and deliverables are allowed; objectives, acceptance, archival, purge, and progress changes are not. At most 16 items
|
|
578
|
+
description: "Create pending proposals for the current Session charter. This tool is not a write path: the user must review and accept proposals in the Review Center. Only invariants and deliverables are allowed; objectives, acceptance, archival, purge, and progress changes are not. At most 16 items. A deliverable may carry requires: ids of current active deliverables that must finish first, exactly as returned by charter_read. Display keys such as \"D1\" are labels, not valid references, and items within one call cannot reference each other. requires is stored as pending proposed prerequisites and resolved on acceptance.",
|
|
577
579
|
parameters: { items: {
|
|
578
580
|
type: "array",
|
|
579
581
|
description: "Pending invariant/deliverable proposals; max 16 items.",
|
|
@@ -592,6 +594,7 @@ function defineCharterProposeTool(charter) {
|
|
|
592
594
|
},
|
|
593
595
|
requires: {
|
|
594
596
|
type: "array",
|
|
597
|
+
description: "Optional prerequisite references for a deliverable: the `id` values of current active deliverables exactly as returned by charter_read (ids look like \"item-<uuid>\"). Not \"D1\"-style display keys.",
|
|
595
598
|
items: { type: "string" }
|
|
596
599
|
}
|
|
597
600
|
}
|
|
@@ -1874,6 +1877,7 @@ var CharterService = class extends Service {
|
|
|
1874
1877
|
verification: item.verification.state,
|
|
1875
1878
|
progress: item.kind === "deliverable" ? item.progress : null,
|
|
1876
1879
|
...item.kind === "deliverable" ? {
|
|
1880
|
+
id: item.id,
|
|
1877
1881
|
key: keyById.get(item.id)?.localKey ?? null,
|
|
1878
1882
|
requires: keyById.get(item.id)?.requires ?? []
|
|
1879
1883
|
} : {}
|
|
@@ -2139,7 +2143,8 @@ var CharterService = class extends Service {
|
|
|
2139
2143
|
after: planned.after,
|
|
2140
2144
|
changes: [...planned.changes],
|
|
2141
2145
|
promptChanged: planned.promptChanged,
|
|
2142
|
-
metadataOnly: planned.metadataOnly
|
|
2146
|
+
metadataOnly: planned.metadataOnly,
|
|
2147
|
+
dependencyConflicts: planned.dependencyConflicts
|
|
2143
2148
|
};
|
|
2144
2149
|
} catch (error) {
|
|
2145
2150
|
return {
|
package/lib/version.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-charter",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "A durable, user-owned session charter for DeepSeek Harness, designed to survive context compaction.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
],
|
|
63
63
|
"engines": {
|
|
64
64
|
"node": "^22.19.0 || >=24.0.0",
|
|
65
|
-
"dsh": "0.1.7-rc.2 || 0.2.0-rc.1
|
|
65
|
+
"dsh": "0.1.7-rc.2 || >=0.2.0-rc.1 <0.3.0-0"
|
|
66
66
|
},
|
|
67
67
|
"keywords": [
|
|
68
68
|
"dsh",
|
|
@@ -88,9 +88,11 @@
|
|
|
88
88
|
"smoke:remote": "node scripts/verify/remote-smoke.mjs",
|
|
89
89
|
"smoke:client": "node scripts/verify/client-smoke.mjs",
|
|
90
90
|
"verify:compaction": "node scripts/verify/compaction-e2e.mjs",
|
|
91
|
-
"
|
|
91
|
+
"verify:ui-metrics": "node scripts/verify/ui-metrics.mjs",
|
|
92
|
+
"check": "npm run typecheck && npm test && npm run verify:tokens",
|
|
92
93
|
"prepack": "npm run build",
|
|
93
|
-
"smoke:package": "node scripts/verify/package-smoke.mjs"
|
|
94
|
+
"smoke:package": "node scripts/verify/package-smoke.mjs",
|
|
95
|
+
"verify:tokens": "node scripts/verify/token-coverage.mjs"
|
|
94
96
|
},
|
|
95
97
|
"dsh": {
|
|
96
98
|
"bundle": {
|
|
@@ -120,7 +122,8 @@
|
|
|
120
122
|
"0.2.1-rc.3": "compatible",
|
|
121
123
|
"0.2.1-rc.4": "compatible",
|
|
122
124
|
"0.2.1-rc.5": "compatible",
|
|
123
|
-
"0.2.2-rc.1": "compatible"
|
|
125
|
+
"0.2.2-rc.1": "compatible",
|
|
126
|
+
"0.2.2-rc.2": "compatible"
|
|
124
127
|
}
|
|
125
128
|
}
|
|
126
129
|
},
|
|
@@ -133,18 +136,18 @@
|
|
|
133
136
|
},
|
|
134
137
|
"peerDependencies": {
|
|
135
138
|
"@deepseek-ai/cordis": "^4.0.4",
|
|
136
|
-
"@deepseek-ai/dsh-agent": "0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-rc.1 || 0.2.1-rc.2 || 0.2.1-rc.3 || 0.2.1-rc.4 || 0.2.1-rc.5 || 0.2.2-rc.1",
|
|
137
|
-
"@deepseek-ai/dsh-api-gateway": "0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-rc.1 || 0.2.1-rc.2 || 0.2.1-rc.3 || 0.2.1-rc.4 || 0.2.1-rc.5 || 0.2.2-rc.1",
|
|
138
|
-
"@deepseek-ai/dsh-client-locale": "0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-rc.1 || 0.2.1-rc.2 || 0.2.1-rc.3 || 0.2.1-rc.4 || 0.2.1-rc.5 || 0.2.2-rc.1",
|
|
139
|
-
"@deepseek-ai/dsh-client-ui-conversation": "0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-rc.1 || 0.2.1-rc.2 || 0.2.1-rc.3 || 0.2.1-rc.4 || 0.2.1-rc.5 || 0.2.2-rc.1",
|
|
140
|
-
"@deepseek-ai/dsh-client-ui-renderer": "0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-rc.1 || 0.2.1-rc.2 || 0.2.1-rc.3 || 0.2.1-rc.4 || 0.2.1-rc.5 || 0.2.2-rc.1",
|
|
141
|
-
"@deepseek-ai/dsh-client-ui-session": "0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-rc.1 || 0.2.1-rc.2 || 0.2.1-rc.3 || 0.2.1-rc.4 || 0.2.1-rc.5 || 0.2.2-rc.1",
|
|
142
|
-
"@deepseek-ai/dsh-client-ui-slots": "0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-rc.1 || 0.2.1-rc.2 || 0.2.1-rc.3 || 0.2.1-rc.4 || 0.2.1-rc.5 || 0.2.2-rc.1",
|
|
143
|
-
"@deepseek-ai/dsh-session": "0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-rc.1 || 0.2.1-rc.2 || 0.2.1-rc.3 || 0.2.1-rc.4 || 0.2.1-rc.5 || 0.2.2-rc.1",
|
|
144
|
-
"@deepseek-ai/dsh-storage-domain": "0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-rc.1 || 0.2.1-rc.2 || 0.2.1-rc.3 || 0.2.1-rc.4 || 0.2.1-rc.5 || 0.2.2-rc.1",
|
|
145
|
-
"@deepseek-ai/dsh-system-prompt": "0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-rc.1 || 0.2.1-rc.2 || 0.2.1-rc.3 || 0.2.1-rc.4 || 0.2.1-rc.5 || 0.2.2-rc.1",
|
|
146
|
-
"@deepseek-ai/dsh-tools": "0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-rc.1 || 0.2.1-rc.2 || 0.2.1-rc.3 || 0.2.1-rc.4 || 0.2.1-rc.5 || 0.2.2-rc.1",
|
|
147
|
-
"@deepseek-ai/dsh-typert-protocol": "0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-rc.1 || 0.2.1-rc.2 || 0.2.1-rc.3 || 0.2.1-rc.4 || 0.2.1-rc.5 || 0.2.2-rc.1",
|
|
139
|
+
"@deepseek-ai/dsh-agent": "0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-rc.1 || 0.2.1-rc.2 || 0.2.1-rc.3 || 0.2.1-rc.4 || 0.2.1-rc.5 || 0.2.2-rc.1 || 0.2.2-rc.2",
|
|
140
|
+
"@deepseek-ai/dsh-api-gateway": "0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-rc.1 || 0.2.1-rc.2 || 0.2.1-rc.3 || 0.2.1-rc.4 || 0.2.1-rc.5 || 0.2.2-rc.1 || 0.2.2-rc.2",
|
|
141
|
+
"@deepseek-ai/dsh-client-locale": "0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-rc.1 || 0.2.1-rc.2 || 0.2.1-rc.3 || 0.2.1-rc.4 || 0.2.1-rc.5 || 0.2.2-rc.1 || 0.2.2-rc.2",
|
|
142
|
+
"@deepseek-ai/dsh-client-ui-conversation": "0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-rc.1 || 0.2.1-rc.2 || 0.2.1-rc.3 || 0.2.1-rc.4 || 0.2.1-rc.5 || 0.2.2-rc.1 || 0.2.2-rc.2",
|
|
143
|
+
"@deepseek-ai/dsh-client-ui-renderer": "0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-rc.1 || 0.2.1-rc.2 || 0.2.1-rc.3 || 0.2.1-rc.4 || 0.2.1-rc.5 || 0.2.2-rc.1 || 0.2.2-rc.2",
|
|
144
|
+
"@deepseek-ai/dsh-client-ui-session": "0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-rc.1 || 0.2.1-rc.2 || 0.2.1-rc.3 || 0.2.1-rc.4 || 0.2.1-rc.5 || 0.2.2-rc.1 || 0.2.2-rc.2",
|
|
145
|
+
"@deepseek-ai/dsh-client-ui-slots": "0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-rc.1 || 0.2.1-rc.2 || 0.2.1-rc.3 || 0.2.1-rc.4 || 0.2.1-rc.5 || 0.2.2-rc.1 || 0.2.2-rc.2",
|
|
146
|
+
"@deepseek-ai/dsh-session": "0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-rc.1 || 0.2.1-rc.2 || 0.2.1-rc.3 || 0.2.1-rc.4 || 0.2.1-rc.5 || 0.2.2-rc.1 || 0.2.2-rc.2",
|
|
147
|
+
"@deepseek-ai/dsh-storage-domain": "0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-rc.1 || 0.2.1-rc.2 || 0.2.1-rc.3 || 0.2.1-rc.4 || 0.2.1-rc.5 || 0.2.2-rc.1 || 0.2.2-rc.2",
|
|
148
|
+
"@deepseek-ai/dsh-system-prompt": "0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-rc.1 || 0.2.1-rc.2 || 0.2.1-rc.3 || 0.2.1-rc.4 || 0.2.1-rc.5 || 0.2.2-rc.1 || 0.2.2-rc.2",
|
|
149
|
+
"@deepseek-ai/dsh-tools": "0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-rc.1 || 0.2.1-rc.2 || 0.2.1-rc.3 || 0.2.1-rc.4 || 0.2.1-rc.5 || 0.2.2-rc.1 || 0.2.2-rc.2",
|
|
150
|
+
"@deepseek-ai/dsh-typert-protocol": "0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-rc.1 || 0.2.1-rc.2 || 0.2.1-rc.3 || 0.2.1-rc.4 || 0.2.1-rc.5 || 0.2.2-rc.1 || 0.2.2-rc.2",
|
|
148
151
|
"react": "^18.2.0"
|
|
149
152
|
},
|
|
150
153
|
"devDependencies": {
|
|
@@ -193,7 +196,9 @@
|
|
|
193
196
|
"react-test-renderer": "18.3.1",
|
|
194
197
|
"tsdown": "0.22.2",
|
|
195
198
|
"typescript": "5.9.3",
|
|
196
|
-
"vitest": "4.1.12"
|
|
199
|
+
"vitest": "4.1.12",
|
|
200
|
+
"semver": "7.8.6",
|
|
201
|
+
"@types/semver": "7.8.0"
|
|
197
202
|
},
|
|
198
203
|
"icon": "icon.svg",
|
|
199
204
|
"author": "dsh-charter contributors",
|