@dsmm/dsmm 0.3.0 → 0.3.2
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 +26 -40
- package/cordis.patch.yml +9 -13
- package/docs/agent-presets.md +26 -14
- package/docs/compatibility.md +24 -68
- package/docs/deferred-native-approval-risk.md +8 -12
- package/docs/design.md +25 -254
- package/docs/lsp.md +2 -2
- package/docs/migration-from-ocmm.md +38 -51
- package/docs/model-routing.md +21 -21
- package/docs/native-permissions.md +17 -7
- package/docs/profiles.md +13 -9
- package/docs/releasing.md +25 -311
- package/docs/roadmap.md +52 -241
- package/docs/runtime-recovery.md +29 -91
- package/docs/safety-guards.md +19 -16
- package/docs/settings-status.md +23 -11
- package/docs/skill-sync.md +17 -17
- package/docs/web-fetch-fakeip.md +82 -0
- package/lib/child-capture.d.ts +12 -2
- package/lib/child-capture.js +22 -5
- package/lib/client/ChildPermissions.d.ts +43 -0
- package/lib/client/ChildPermissions.js +100 -0
- package/lib/client/ChildrenPanel.d.ts +5 -5
- package/lib/client/ChildrenPanel.js +6 -18
- package/lib/client/DeploymentFields.d.ts +32 -0
- package/lib/client/DeploymentFields.js +70 -0
- package/lib/client/DeploymentPage.d.ts +21 -6
- package/lib/client/DeploymentPage.js +80 -112
- package/lib/client/HistoryContinuation.d.ts +7 -0
- package/lib/client/HistoryContinuation.js +22 -0
- package/lib/client/NativeCommandEntries.d.ts +17 -0
- package/lib/client/NativeCommandEntries.js +68 -0
- package/lib/client/PermissionPanelEntry.d.ts +8 -0
- package/lib/client/PermissionPanelEntry.js +11 -0
- package/lib/client/PermissionsPanel.d.ts +3 -1
- package/lib/client/PermissionsPanel.js +10 -9
- package/lib/client/ProfilesSection.js +8 -6
- package/lib/client/RoleAvailability.js +1 -1
- package/lib/client/RoleToolView-data.d.ts +35 -0
- package/lib/client/RoleToolView-data.js +52 -0
- package/lib/client/RoleToolView-locales.d.ts +36 -0
- package/lib/client/RoleToolView-locales.js +20 -0
- package/lib/client/RoleToolView.d.ts +10 -0
- package/lib/client/RoleToolView.js +47 -0
- package/lib/client/SessionProfiles.js +51 -24
- package/lib/client/TemporaryPermissions.d.ts +21 -0
- package/lib/client/TemporaryPermissions.js +94 -0
- package/lib/client/children-controller.d.ts +2 -8
- package/lib/client/children-controller.js +1 -26
- package/lib/client/children-locales.d.ts +27 -52
- package/lib/client/children-locales.js +8 -12
- package/lib/client/configuration-display.d.ts +5 -0
- package/lib/client/configuration-display.js +11 -0
- package/lib/client/controller.d.ts +18 -0
- package/lib/client/controller.js +118 -28
- package/lib/client/deployment-controller.d.ts +13 -1
- package/lib/client/deployment-controller.js +84 -24
- package/lib/client/deployment-data.d.ts +1 -0
- package/lib/client/deployment-data.js +4 -1
- package/lib/client/deployment-locales.d.ts +43 -0
- package/lib/client/deployment-locales.js +45 -19
- package/lib/client/deployment-modules.d.ts +9 -0
- package/lib/client/deployment-modules.js +24 -0
- package/lib/client/deployment-workspace.d.ts +48 -0
- package/lib/client/deployment-workspace.js +123 -0
- package/lib/client/history-controller.d.ts +29 -0
- package/lib/client/history-controller.js +111 -0
- package/lib/client/history-entry.d.ts +11 -0
- package/lib/client/history-entry.js +106 -0
- package/lib/client/history-locales.d.ts +95 -0
- package/lib/client/history-locales.js +41 -0
- package/lib/client/index.js +26 -76
- package/lib/client/locales.d.ts +13 -0
- package/lib/client/locales.js +104 -86
- package/lib/client/permission-controller.d.ts +1 -0
- package/lib/client/permission-controller.js +3 -2
- package/lib/client/permission-locales.d.ts +51 -0
- package/lib/client/permission-locales.js +59 -19
- package/lib/client/session-labels.js +4 -3
- package/lib/client/styles.d.ts +1 -1
- package/lib/client/styles.js +9 -8
- package/lib/client/temporary-permission-client.d.ts +20 -0
- package/lib/client/temporary-permission-client.js +52 -0
- package/lib/client/temporary-permission-entry.d.ts +6 -0
- package/lib/client/temporary-permission-entry.js +56 -0
- package/lib/client.js +5691 -3439
- package/lib/commands.js +2 -0
- package/lib/config-file-store.d.ts +3 -0
- package/lib/config-file-store.js +4 -2
- package/lib/config-revision.d.ts +5 -0
- package/lib/config-revision.js +11 -0
- package/lib/core-permission-authority.js +11 -41
- package/lib/deployment-config.d.ts +9 -2
- package/lib/deployment-config.js +35 -8
- package/lib/deployment-permission-rules.js +19 -7
- package/lib/dsh-types.d.ts +1 -1
- package/lib/history-candidates.d.ts +30 -0
- package/lib/history-candidates.js +176 -0
- package/lib/history-codec.d.ts +11 -0
- package/lib/history-codec.js +102 -0
- package/lib/history-contract.d.ts +44 -0
- package/lib/history-contract.js +2 -0
- package/lib/history-controller.d.ts +42 -0
- package/lib/history-controller.js +329 -0
- package/lib/history-policy.d.ts +4 -0
- package/lib/history-policy.js +8 -0
- package/lib/history-remote.d.ts +28 -0
- package/lib/history-remote.js +17 -0
- package/lib/history-rpc.d.ts +24 -0
- package/lib/history-rpc.js +136 -0
- package/lib/history-support.d.ts +15 -0
- package/lib/history-support.js +21 -0
- package/lib/history-types.d.ts +67 -0
- package/lib/history-types.js +2 -0
- package/lib/host-llm-startup.js +3 -3
- package/lib/host-llm.d.ts +9 -3
- package/lib/host-llm.js +48 -8
- package/lib/index.d.ts +18 -20
- package/lib/index.js +147 -415
- package/lib/lifetime.d.ts +4 -0
- package/lib/lifetime.js +22 -0
- package/lib/live-pi-ai-owner.d.ts +1 -0
- package/lib/live-pi-ai-owner.js +8 -4
- package/lib/mode.d.ts +3 -2
- package/lib/mode.js +28 -41
- package/lib/model-routing.d.ts +2 -8
- package/lib/model-routing.js +59 -175
- package/lib/native-admission.d.ts +77 -0
- package/lib/native-admission.js +503 -0
- package/lib/native-pi-ai-wire.d.ts +3 -1
- package/lib/native-pi-ai-wire.js +47 -13
- package/lib/permission-child-control.d.ts +36 -0
- package/lib/permission-child-control.js +164 -0
- package/lib/permission-control.d.ts +2 -3
- package/lib/permission-control.js +7 -0
- package/lib/permission-controller.js +2 -2
- package/lib/permission-exec-argv.d.ts +32 -0
- package/lib/permission-exec-argv.js +171 -0
- package/lib/permission-fs-search.js +2 -1
- package/lib/permission-fs.js +2 -1
- package/lib/permission-native-rules.js +3 -3
- package/lib/permission-temporary-files.d.ts +19 -0
- package/lib/permission-temporary-files.js +248 -0
- package/lib/permission-temporary-grants.d.ts +106 -0
- package/lib/permission-temporary-grants.js +198 -0
- package/lib/permission-temporary-install.d.ts +25 -0
- package/lib/permission-temporary-install.js +86 -0
- package/lib/permission-temporary-remote.d.ts +19 -0
- package/lib/permission-temporary-remote.js +75 -0
- package/lib/permission-temporary-rpc.d.ts +37 -0
- package/lib/permission-temporary-rpc.js +154 -0
- package/lib/permission-temporary-types.d.ts +47 -0
- package/lib/permission-temporary-types.js +2 -0
- package/lib/permission-temporary-web.d.ts +11 -0
- package/lib/permission-temporary-web.js +154 -0
- package/lib/permission-web.js +2 -1
- package/lib/preset-registry.js +3 -2
- package/lib/preset-skills.d.ts +3 -12
- package/lib/preset-skills.js +28 -58
- package/lib/profile-diagnostics.d.ts +1 -1
- package/lib/profile-diagnostics.js +2 -2
- package/lib/profile-remote.js +61 -22
- package/lib/profile-rpc.d.ts +4 -3
- package/lib/profile-rpc.js +35 -37
- package/lib/profile-runtime.d.ts +42 -74
- package/lib/profile-runtime.js +314 -617
- package/lib/profile-store.d.ts +20 -8
- package/lib/profile-store.js +112 -63
- package/lib/profile-types.d.ts +19 -4
- package/lib/profiles.d.ts +3 -1
- package/lib/profiles.js +9 -7
- package/lib/prompt-content.d.ts +1 -0
- package/lib/prompt-content.js +4 -1
- package/lib/prompts.d.ts +2 -12
- package/lib/prompts.js +11 -66
- package/lib/role-control-remote.d.ts +1 -4
- package/lib/role-control-remote.js +8 -36
- package/lib/role-control-rpc.d.ts +10 -36
- package/lib/role-control-rpc.js +112 -269
- package/lib/role-control-types.d.ts +3 -26
- package/lib/role-control-types.js +3 -4
- package/lib/role-identity.d.ts +5 -0
- package/lib/role-identity.js +10 -0
- package/lib/role-invocation.d.ts +3 -3
- package/lib/role-invocation.js +2 -2
- package/lib/role-llm-runtime.js +5 -11
- package/lib/role-policy.d.ts +19 -50
- package/lib/role-policy.js +136 -508
- package/lib/role-providers.d.ts +5 -8
- package/lib/role-providers.js +20 -86
- package/lib/role-routing.d.ts +1 -3
- package/lib/role-routing.js +24 -34
- package/lib/role-subagents.d.ts +5 -14
- package/lib/role-subagents.js +163 -108
- package/lib/runtime-integration.d.ts +5 -78
- package/lib/runtime-integration.js +11 -697
- package/lib/session-metadata.d.ts +13 -12
- package/lib/session-metadata.js +6 -31
- package/lib/session-scope.js +2 -1
- package/lib/settings.d.ts +5 -18
- package/lib/settings.js +19 -43
- package/lib/skills.d.ts +1 -0
- package/lib/skills.js +5 -1
- package/lib/state.d.ts +3 -2
- package/lib/state.js +26 -10
- package/lib/status.d.ts +1 -9
- package/lib/status.js +3 -55
- package/lib/web-fetch-address-policy.d.ts +24 -0
- package/lib/web-fetch-address-policy.js +189 -0
- package/lib/web-fetch-fakeip.d.ts +25 -0
- package/lib/web-fetch-fakeip.js +107 -0
- package/package.json +124 -106
- package/patches/dsh-approval-settlement/@deepseek-ai__dsh-api-gateway@0.2.1-rc.2.patch +13291 -0
- package/patches/dsh-approval-settlement/@deepseek-ai__dsh-api-remotes@0.2.1-rc.2.patch +9133 -0
- package/patches/dsh-approval-settlement/@deepseek-ai__dsh-client-ui-approval@0.2.1-rc.2.patch +156 -0
- package/patches/dsh-approval-settlement/@deepseek-ai__dsh-subagent@0.2.1-rc.2.patch +3546 -0
- package/patches/dsh-approval-settlement/@deepseek-ai__dsh-user-approval@0.2.1-rc.2.patch +431 -0
- package/patches/dsh-approval-settlement/@deepseek-ai__dsh-web@0.2.1-rc.2.patch +119 -0
- package/patches/dsh-approval-settlement/README.md +41 -0
- package/patches/dsh-approval-settlement/metadata.json +10 -0
- package/patches/dsh-session-activation/@deepseek-ai__dsh-agent-loop@0.2.1-rc.2.patch +383 -0
- package/patches/dsh-session-activation/@deepseek-ai__dsh-agent-preset-registry@0.2.1-rc.2.patch +55 -0
- package/patches/dsh-session-activation/@deepseek-ai__dsh-api-session-controller@0.2.1-rc.2.patch +16673 -0
- package/patches/dsh-session-activation/@deepseek-ai__dsh-client-ui-subagent@0.2.1-rc.2.patch +29 -0
- package/patches/dsh-session-activation/@deepseek-ai__dsh-client-ui-workspace@0.2.1-rc.2.patch +196 -0
- package/patches/dsh-session-activation/@deepseek-ai__dsh-session-persistence-jsonl@0.2.1-rc.2.patch +35 -0
- package/patches/dsh-session-activation/@deepseek-ai__dsh-session-persistence@0.2.1-rc.2.patch +40 -0
- package/docs/research/deepseek-v4-pro.md +0 -74
- package/docs/research/oh-dsh.md +0 -96
- package/lib/agent-registry.d.ts +0 -36
- package/lib/agent-registry.js +0 -75
- package/lib/child-admission.d.ts +0 -40
- package/lib/child-admission.js +0 -151
- package/lib/delivery-authority.d.ts +0 -83
- package/lib/delivery-authority.js +0 -397
- package/lib/native-child-evidence.d.ts +0 -40
- package/lib/native-child-evidence.js +0 -104
- package/lib/role-runs.d.ts +0 -138
- package/lib/role-runs.js +0 -335
- package/lib/session-persistence.d.ts +0 -36
- package/lib/session-persistence.js +0 -304
- package/lib/subagent-runtime.d.ts +0 -57
- package/lib/subagent-runtime.js +0 -257
- package/prompts/deepseek-flash.md +0 -11
- package/prompts/deepseek-v4-pro.md +0 -14
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
var __runInitializers = (this && this.__runInitializers) || function (thisArg, initializers, value) {
|
|
2
|
+
var useValue = arguments.length > 2;
|
|
3
|
+
for (var i = 0; i < initializers.length; i++) {
|
|
4
|
+
value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
|
|
5
|
+
}
|
|
6
|
+
return useValue ? value : void 0;
|
|
7
|
+
};
|
|
8
|
+
var __esDecorate = (this && this.__esDecorate) || function (ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
|
|
9
|
+
function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; }
|
|
10
|
+
var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
|
|
11
|
+
var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
|
|
12
|
+
var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
|
|
13
|
+
var _, done = false;
|
|
14
|
+
for (var i = decorators.length - 1; i >= 0; i--) {
|
|
15
|
+
var context = {};
|
|
16
|
+
for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];
|
|
17
|
+
for (var p in contextIn.access) context.access[p] = contextIn.access[p];
|
|
18
|
+
context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };
|
|
19
|
+
var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
|
|
20
|
+
if (kind === "accessor") {
|
|
21
|
+
if (result === void 0) continue;
|
|
22
|
+
if (result === null || typeof result !== "object") throw new TypeError("Object expected");
|
|
23
|
+
if (_ = accept(result.get)) descriptor.get = _;
|
|
24
|
+
if (_ = accept(result.set)) descriptor.set = _;
|
|
25
|
+
if (_ = accept(result.init)) initializers.unshift(_);
|
|
26
|
+
}
|
|
27
|
+
else if (_ = accept(result)) {
|
|
28
|
+
if (kind === "field") initializers.unshift(_);
|
|
29
|
+
else descriptor[key] = _;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
if (target) Object.defineProperty(target, contextIn.name, descriptor);
|
|
33
|
+
done = true;
|
|
34
|
+
};
|
|
35
|
+
import { getTraceable, symbols } from "@deepseek-ai/cordis";
|
|
36
|
+
import { RemoteAccessService } from "@deepseek-ai/dsh-api-remote-access";
|
|
37
|
+
import { SessionId } from "@deepseek-ai/dsh-session";
|
|
38
|
+
import { Remote, RemoteError, TypertRemoteService } from "@deepseek-ai/dsh-typert-protocol";
|
|
39
|
+
import { assertLocalSettingsOperator } from "./profile-rpc.js";
|
|
40
|
+
import { scopeLifetime } from "./lifetime.js";
|
|
41
|
+
import { HistoryContinuations, HistoryRefusal, historyFailure } from "./history-controller.js";
|
|
42
|
+
import { HISTORY_HOST } from "./history-remote.js";
|
|
43
|
+
import { historySessionId, parseHistoryConfirmRequest, parseHistoryFailure, parseHistoryPreviewRequest } from "./history-codec.js";
|
|
44
|
+
/** Native authenticated local-operator RPC; browser payloads carry no admission authority. */
|
|
45
|
+
let DsmmHistoryHost = (() => {
|
|
46
|
+
let _classSuper = TypertRemoteService;
|
|
47
|
+
let _instanceExtraInitializers = [];
|
|
48
|
+
let _describe_decorators;
|
|
49
|
+
let _choices_decorators;
|
|
50
|
+
let _preview_decorators;
|
|
51
|
+
let _confirm_decorators;
|
|
52
|
+
return class DsmmHistoryHost extends _classSuper {
|
|
53
|
+
static {
|
|
54
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
55
|
+
_describe_decorators = [Remote];
|
|
56
|
+
_choices_decorators = [Remote];
|
|
57
|
+
_preview_decorators = [Remote];
|
|
58
|
+
_confirm_decorators = [Remote];
|
|
59
|
+
__esDecorate(this, null, _describe_decorators, { kind: "method", name: "describe", static: false, private: false, access: { has: obj => "describe" in obj, get: obj => obj.describe }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
60
|
+
__esDecorate(this, null, _choices_decorators, { kind: "method", name: "choices", static: false, private: false, access: { has: obj => "choices" in obj, get: obj => obj.choices }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
61
|
+
__esDecorate(this, null, _preview_decorators, { kind: "method", name: "preview", static: false, private: false, access: { has: obj => "preview" in obj, get: obj => obj.preview }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
62
|
+
__esDecorate(this, null, _confirm_decorators, { kind: "method", name: "confirm", static: false, private: false, access: { has: obj => "confirm" in obj, get: obj => obj.confirm }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
63
|
+
if (_metadata) Object.defineProperty(this, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
64
|
+
}
|
|
65
|
+
history = __runInitializers(this, _instanceExtraInitializers);
|
|
66
|
+
lifetime = new AbortController();
|
|
67
|
+
constructor(ctx, history) {
|
|
68
|
+
super(ctx, "dsmmHistory");
|
|
69
|
+
this.history = history;
|
|
70
|
+
scopeLifetime(ctx, "dsmm: close history RPC", () => this.lifetime.abort());
|
|
71
|
+
}
|
|
72
|
+
operator() {
|
|
73
|
+
try {
|
|
74
|
+
assertLocalSettingsOperator(this.ctx);
|
|
75
|
+
}
|
|
76
|
+
catch {
|
|
77
|
+
throw new HistoryRefusal("not-owned");
|
|
78
|
+
}
|
|
79
|
+
const ctx = this.ctx, invocation = ctx.invocation;
|
|
80
|
+
const connection = ctx.get("connection");
|
|
81
|
+
const owner = Reflect.get(connection, symbols.original) ?? connection;
|
|
82
|
+
const peer = invocation.peer;
|
|
83
|
+
const signal = AbortSignal.any([invocation.signal, peer.signal, this.lifetime.signal]);
|
|
84
|
+
const assertOwner = () => {
|
|
85
|
+
this.lifetime.signal.throwIfAborted();
|
|
86
|
+
peer.signal.throwIfAborted();
|
|
87
|
+
const current = ctx.get("connection");
|
|
88
|
+
if (!current || (Reflect.get(current, symbols.original) ?? current) !== owner || current.browserPeer !== peer
|
|
89
|
+
|| ctx.get("webServer")?.host !== "127.0.0.1" || ctx.get("settings")?.writable !== true)
|
|
90
|
+
throw new HistoryRefusal("not-owned");
|
|
91
|
+
};
|
|
92
|
+
return { peer, connection: owner, peerSignal: peer.signal, signal, assertOwner,
|
|
93
|
+
assertCurrent: () => { signal.throwIfAborted(); assertOwner(); },
|
|
94
|
+
assertVisible: id => {
|
|
95
|
+
assertOwner();
|
|
96
|
+
const access = ctx.get("remoteAccess");
|
|
97
|
+
if (!(access instanceof RemoteAccessService) || !access.allows({ kind: "session", id: SessionId(id) }))
|
|
98
|
+
throw new HistoryRefusal("not-owned");
|
|
99
|
+
} };
|
|
100
|
+
}
|
|
101
|
+
async invoke(operation) {
|
|
102
|
+
try {
|
|
103
|
+
return await operation(getTraceable(this.ctx, this.history), this.operator());
|
|
104
|
+
}
|
|
105
|
+
catch (error) {
|
|
106
|
+
throw new RemoteError("dsmm-history/refused", "The Host refused history continuation.", parseHistoryFailure(historyFailure(error)));
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
describe(sessionId) { return this.invoke((history, operator) => history.describe(historySessionId(sessionId), operator)); }
|
|
110
|
+
choices() { return this.invoke((history, operator) => history.choices(operator)); }
|
|
111
|
+
preview(sessionId, input) {
|
|
112
|
+
return this.invoke((history, operator) => {
|
|
113
|
+
const request = parseHistoryPreviewRequest(input);
|
|
114
|
+
if (historySessionId(sessionId) !== request.sessionId)
|
|
115
|
+
throw new HistoryRefusal("validation");
|
|
116
|
+
return history.preview(request, operator);
|
|
117
|
+
});
|
|
118
|
+
}
|
|
119
|
+
confirm(sessionId, input) {
|
|
120
|
+
return this.invoke((history, operator) => {
|
|
121
|
+
const request = parseHistoryConfirmRequest(input);
|
|
122
|
+
if (historySessionId(sessionId) !== request.sessionId)
|
|
123
|
+
throw new HistoryRefusal("validation");
|
|
124
|
+
return history.confirm(request, operator);
|
|
125
|
+
});
|
|
126
|
+
}
|
|
127
|
+
};
|
|
128
|
+
})();
|
|
129
|
+
export { DsmmHistoryHost };
|
|
130
|
+
export function registerHistoryContinuationRpc(ctx, candidates, admission) {
|
|
131
|
+
const history = new HistoryContinuations(ctx, candidates, admission);
|
|
132
|
+
const host = new DsmmHistoryHost(ctx, history);
|
|
133
|
+
ctx.typert.register(HISTORY_HOST);
|
|
134
|
+
return host;
|
|
135
|
+
}
|
|
136
|
+
//# sourceMappingURL=history-rpc.js.map
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { Context } from "@deepseek-ai/cordis";
|
|
2
|
+
/** Supply these native plugin configs before their constructors or configured restores run. */
|
|
3
|
+
export declare const DSMM_HISTORY_HOST_CONFIG: Readonly<{
|
|
4
|
+
agentLoop: Readonly<{
|
|
5
|
+
activationAdmissionRequired: true;
|
|
6
|
+
}>;
|
|
7
|
+
sessionController: Readonly<{
|
|
8
|
+
activateOnFollow: false;
|
|
9
|
+
}>;
|
|
10
|
+
}>;
|
|
11
|
+
/** Mount independently from the Core so failed configuration cannot reopen the Client gate. */
|
|
12
|
+
export declare function apply(ctx: Context): void;
|
|
13
|
+
/** A present patched loop becomes fail-closed before asynchronous DSMM configuration loading. */
|
|
14
|
+
export declare function requireHistoryAdmission(ctx: Context): void;
|
|
15
|
+
//# sourceMappingURL=history-support.d.ts.map
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/** Supply these native plugin configs before their constructors or configured restores run. */
|
|
2
|
+
export const DSMM_HISTORY_HOST_CONFIG = Object.freeze({
|
|
3
|
+
agentLoop: Object.freeze({ activationAdmissionRequired: true }),
|
|
4
|
+
sessionController: Object.freeze({ activateOnFollow: false }),
|
|
5
|
+
});
|
|
6
|
+
/** Mount independently from the Core so failed configuration cannot reopen the Client gate. */
|
|
7
|
+
export function apply(ctx) {
|
|
8
|
+
requireHistoryAdmission(ctx);
|
|
9
|
+
ctx.events.on("webserver/index-inject", (rows) => {
|
|
10
|
+
rows.push({ kind: "global", name: "__DSMM_HISTORY_REQUIRED__", value: true });
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
/** A present patched loop becomes fail-closed before asynchronous DSMM configuration loading. */
|
|
14
|
+
export function requireHistoryAdmission(ctx) {
|
|
15
|
+
ctx.inject(["agentLoop"], scope => {
|
|
16
|
+
const loop = scope.agentLoop;
|
|
17
|
+
if (typeof loop.requireActivationAdmission === "function")
|
|
18
|
+
loop.requireActivationAdmission();
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=history-support.js.map
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/** History content remains on the native list/page/follow and presentation surfaces. */
|
|
2
|
+
export type HistoryExecution = "authorization-required" | "activating" | "active" | "unavailable";
|
|
3
|
+
export type HistoryFailureCode = "validation" | "not-owned" | "not-found" | "unsupported-host" | "unsupported-backend" | "unavailable" | "busy" | "stale" | "cancelled" | "authorization-required" | "child-owner-required" | "format-unavailable" | "initialization-failed";
|
|
4
|
+
export interface HistoryFailure {
|
|
5
|
+
code: HistoryFailureCode;
|
|
6
|
+
storageEffects: "none" | "may-have-committed";
|
|
7
|
+
}
|
|
8
|
+
export interface HistoryStatus {
|
|
9
|
+
sessionId: string;
|
|
10
|
+
readable: "readable" | "unavailable";
|
|
11
|
+
execution: HistoryExecution;
|
|
12
|
+
compatibleHost: boolean;
|
|
13
|
+
reason?: HistoryFailureCode;
|
|
14
|
+
}
|
|
15
|
+
export interface HistoryChoice {
|
|
16
|
+
id: string;
|
|
17
|
+
label: string;
|
|
18
|
+
}
|
|
19
|
+
export interface HistoryChoices {
|
|
20
|
+
presets: HistoryChoice[];
|
|
21
|
+
profiles: HistoryChoice[];
|
|
22
|
+
}
|
|
23
|
+
export interface HistoryPreviewRequest {
|
|
24
|
+
sessionId: string;
|
|
25
|
+
preset: string;
|
|
26
|
+
/** null selects the deployment baseline, not a historical session selection. */
|
|
27
|
+
profileId: string | null;
|
|
28
|
+
}
|
|
29
|
+
export interface HistoryConfirmRequest {
|
|
30
|
+
sessionId: string;
|
|
31
|
+
intentId: string;
|
|
32
|
+
processPending: boolean;
|
|
33
|
+
acceptMigration: boolean;
|
|
34
|
+
}
|
|
35
|
+
export type HistoryJson = null | boolean | number | string | HistoryJson[] | {
|
|
36
|
+
[key: string]: HistoryJson;
|
|
37
|
+
};
|
|
38
|
+
export interface HistoryCandidateView {
|
|
39
|
+
preset: HistoryChoice;
|
|
40
|
+
profile: HistoryChoice | null;
|
|
41
|
+
model: {
|
|
42
|
+
provider: string;
|
|
43
|
+
model: string;
|
|
44
|
+
reasoningEffort?: string;
|
|
45
|
+
};
|
|
46
|
+
roles: HistoryChoice[];
|
|
47
|
+
/** Current, effective restrictions from the trusted policy provider. */
|
|
48
|
+
restrictions: string[];
|
|
49
|
+
differences: string[];
|
|
50
|
+
}
|
|
51
|
+
export interface HistoryPreview {
|
|
52
|
+
sessionId: string;
|
|
53
|
+
intentId: string;
|
|
54
|
+
cwd: string;
|
|
55
|
+
candidate: HistoryCandidateView;
|
|
56
|
+
migrationRequired: boolean;
|
|
57
|
+
/** Native inbox projection, displayed as untrusted input and never replayed by DSMM. */
|
|
58
|
+
pending: {
|
|
59
|
+
nextTurn: HistoryJson[];
|
|
60
|
+
nextStep: HistoryJson[];
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
export interface HistoryContinuationResult {
|
|
64
|
+
sessionId: string;
|
|
65
|
+
execution: "active";
|
|
66
|
+
}
|
|
67
|
+
//# sourceMappingURL=history-types.d.ts.map
|
package/lib/host-llm-startup.js
CHANGED
|
@@ -12,7 +12,7 @@ export function createDsmmLlmColdStartup(options) {
|
|
|
12
12
|
let failure;
|
|
13
13
|
let mounted;
|
|
14
14
|
let provider;
|
|
15
|
-
const dependencies = [...AgentLoop.inject, "dsmmProfileRuntime", "
|
|
15
|
+
const dependencies = [...AgentLoop.inject, "dsmmProfileRuntime", "dsmmNativeAdmission", "sessionPersistence", "dsmmLlmProviderOwner"];
|
|
16
16
|
const builtin = "dsmm-llm-provider-owner";
|
|
17
17
|
return {
|
|
18
18
|
patches: [{ id: "agent-loop", disabled: true }, { insert: [{ id: options.provider.settingsNamespace, name: `cordis:${builtin}`, config: options.provider.config }] }],
|
|
@@ -33,8 +33,8 @@ export function createDsmmLlmColdStartup(options) {
|
|
|
33
33
|
try {
|
|
34
34
|
if (scope.get("agentLoop") !== undefined || provider === undefined)
|
|
35
35
|
throw new Error("DSMM LLM cold ownership was not established before AgentLoop");
|
|
36
|
-
const
|
|
37
|
-
if (
|
|
36
|
+
const admission = scope.get("dsmmNativeAdmission");
|
|
37
|
+
if (admission === undefined || admission.lifetime.signal.aborted)
|
|
38
38
|
throw new Error("DSMM admission guards are not ready");
|
|
39
39
|
const original = scope.llm;
|
|
40
40
|
const stock = Reflect.get(original, symbols.original) ?? original;
|
package/lib/host-llm.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { Context } from "@deepseek-ai/cordis";
|
|
|
2
2
|
import type { Events } from "@deepseek-ai/cordis";
|
|
3
3
|
import type { Agent } from "@deepseek-ai/dsh-agent";
|
|
4
4
|
import { LlmRuntime } from "@deepseek-ai/dsh-llm";
|
|
5
|
-
import type { GenerateOptions, LlmCallConfig, PreparedLlmCall, PreparedAdapterCall, ResolvedRetryPolicy, StreamChunk } from "@deepseek-ai/dsh-llm";
|
|
5
|
+
import type { ConfigureCall, GenerateOptions, LlmCallConfig, PreparedLlmCall, PreparedAdapterCall, ResolvedRetryPolicy, StreamChunk } from "@deepseek-ai/dsh-llm";
|
|
6
6
|
export type DsmmJson = null | boolean | number | string | readonly DsmmJson[] | {
|
|
7
7
|
readonly [key: string]: DsmmJson;
|
|
8
8
|
};
|
|
@@ -12,7 +12,10 @@ export interface DsmmLlmCallConfig extends LlmCallConfig {
|
|
|
12
12
|
}
|
|
13
13
|
export interface DsmmLlmCallClassifier {
|
|
14
14
|
requiresRaw?(config: DsmmLlmCallConfig): boolean;
|
|
15
|
+
supportsNativeStop?(provider: string): boolean;
|
|
15
16
|
}
|
|
17
|
+
export type DsmmEffortSource = "native" | "dsmm-config";
|
|
18
|
+
export declare function captureDsmmEffortSource(agent: Agent): DsmmEffortSource;
|
|
16
19
|
/** Use the live provider owner and this call's complete frozen parameters, not envelope presence alone. */
|
|
17
20
|
export declare function requiresDsmmCallAdmission(config: DsmmLlmCallConfig, classifier?: DsmmLlmCallClassifier, uncapturedAgent?: Agent): boolean;
|
|
18
21
|
/** A Host-held admission, not a credential or a value accepted from serialized configuration. */
|
|
@@ -30,7 +33,7 @@ export interface DsmmLlmGeneration {
|
|
|
30
33
|
readonly retryPolicy: ResolvedRetryPolicy;
|
|
31
34
|
readonly defaultReasoningEffort?: LlmCallConfig["reasoningEffort"];
|
|
32
35
|
assertCurrent(): void;
|
|
33
|
-
prepareCall(provider: string, model: string, signal: AbortSignal, assertAdmission?: () => void): Promise<PreparedAdapterCall>;
|
|
36
|
+
prepareCall(provider: string, model: string, signal: AbortSignal, assertAdmission?: () => void, effortSource?: () => DsmmEffortSource): Promise<PreparedAdapterCall>;
|
|
34
37
|
}
|
|
35
38
|
export interface DsmmLlmHostOwner {
|
|
36
39
|
/** Classification must reject lost DSMM evidence instead of returning native. */
|
|
@@ -40,11 +43,13 @@ export interface DsmmLlmHostOwner {
|
|
|
40
43
|
readonly kind: "stock";
|
|
41
44
|
readonly admission: DsmmLlmAdmission;
|
|
42
45
|
readonly config: LlmCallConfig;
|
|
46
|
+
readonly effortSource?: DsmmEffortSource;
|
|
43
47
|
} | {
|
|
44
48
|
readonly kind: "dsmm";
|
|
45
49
|
readonly admission: DsmmLlmAdmission;
|
|
46
50
|
readonly generation: DsmmLlmGeneration;
|
|
47
51
|
readonly config: DsmmLlmCallConfig;
|
|
52
|
+
readonly effortSource?: DsmmEffortSource;
|
|
48
53
|
}>;
|
|
49
54
|
}
|
|
50
55
|
export declare function freezeDsmmJson<T>(value: T): T;
|
|
@@ -71,7 +76,8 @@ export declare class DsmmAwareLlmRuntime extends LlmRuntime {
|
|
|
71
76
|
private assertCaptured;
|
|
72
77
|
private finishCaptured;
|
|
73
78
|
private uncapturedNativeConfig;
|
|
74
|
-
prepareCall(proposal: LlmCallConfig, signal?: AbortSignal): Promise<PreparedLlmCall>;
|
|
79
|
+
prepareCall(proposal: LlmCallConfig, signal?: AbortSignal, configure?: ConfigureCall): Promise<PreparedLlmCall>;
|
|
80
|
+
private prepareNativeCall;
|
|
75
81
|
private prepareAdmittedCall;
|
|
76
82
|
private bindPrepared;
|
|
77
83
|
private adapterStreamFor;
|
package/lib/host-llm.js
CHANGED
|
@@ -5,6 +5,17 @@ import { isDeepStrictEqual } from "node:util";
|
|
|
5
5
|
import { copyRouteJson } from "./route-json.js";
|
|
6
6
|
import { modelRouteFromCall } from "./role-llm.js";
|
|
7
7
|
import { classifyDsmmAgent } from "./runtime-integration.js";
|
|
8
|
+
import { latestNativeModelSelection } from "./role-routing.js";
|
|
9
|
+
import { resolveSelectedAgentPreset } from "./session-scope.js";
|
|
10
|
+
import { capturedRoleInvocation } from "./role-invocation.js";
|
|
11
|
+
export function captureDsmmEffortSource(agent) {
|
|
12
|
+
const current = agent;
|
|
13
|
+
const invocation = capturedRoleInvocation(current);
|
|
14
|
+
if (latestNativeModelSelection(current) !== undefined
|
|
15
|
+
|| agent.session.header.origin !== "subagent" && !resolveSelectedAgentPreset(current.session)?.startsWith("dsmm-"))
|
|
16
|
+
return "native";
|
|
17
|
+
return invocation?.effortSource ?? (invocation?.routeSource === "inherited" ? "native" : "dsmm-config");
|
|
18
|
+
}
|
|
8
19
|
/** Use the live provider owner and this call's complete frozen parameters, not envelope presence alone. */
|
|
9
20
|
export function requiresDsmmCallAdmission(config, classifier, uncapturedAgent) {
|
|
10
21
|
return uncapturedAgent !== undefined && classifyDsmmAgent(uncapturedAgent) === "dsmm"
|
|
@@ -107,7 +118,7 @@ export class DsmmAwareLlmRuntime extends LlmRuntime {
|
|
|
107
118
|
if (result.admission.agent !== frame.agent)
|
|
108
119
|
throw new LlmError("LLM admission belongs to another Agent", "INVALID_PREPARED_CALL");
|
|
109
120
|
this.active.get(frame.agent)?.revocation.abort();
|
|
110
|
-
const captured = { frame: Object.freeze({ ...frame }), admission: result.admission,
|
|
121
|
+
const captured = { frame: Object.freeze({ ...frame }), admission: result.admission, effortSource: result.effortSource ?? captureDsmmEffortSource(frame.agent),
|
|
111
122
|
...(result.kind === "dsmm" ? { generation: result.generation } : {}), revocation: new AbortController() };
|
|
112
123
|
this.active.set(frame.agent, captured);
|
|
113
124
|
const retire = () => {
|
|
@@ -167,7 +178,7 @@ export class DsmmAwareLlmRuntime extends LlmRuntime {
|
|
|
167
178
|
throw new LlmError("Enhanced requests require their exact Host proposal", "INVALID_PREPARED_CALL");
|
|
168
179
|
return config;
|
|
169
180
|
}
|
|
170
|
-
async prepareCall(proposal, signal) {
|
|
181
|
+
async prepareCall(proposal, signal, configure) {
|
|
171
182
|
const initiator = this.ctx.get("agents")?.currentInitiator();
|
|
172
183
|
if (initiator !== undefined && this.pending.has(initiator) && this.pending.get(initiator) !== proposal)
|
|
173
184
|
throw new LlmError("DSMM request lost its exact proposal identity", "INVALID_PREPARED_CALL");
|
|
@@ -176,14 +187,17 @@ export class DsmmAwareLlmRuntime extends LlmRuntime {
|
|
|
176
187
|
if (this.admitted.has(proposal))
|
|
177
188
|
throw new LlmError("DSMM proposal was already consumed", "INVALID_PREPARED_CALL");
|
|
178
189
|
const config = this.uncapturedNativeConfig(proposal, initiator, signal);
|
|
179
|
-
|
|
190
|
+
const prepared = await this.prepareNativeCall(config, signal, configure);
|
|
191
|
+
this.lifetime.signal.throwIfAborted();
|
|
192
|
+
signal?.throwIfAborted();
|
|
193
|
+
return prepared;
|
|
180
194
|
}
|
|
181
195
|
this.calls.delete(proposal);
|
|
182
196
|
this.pending.delete(captured.frame.agent);
|
|
183
197
|
try {
|
|
184
198
|
if (signal !== captured.frame.signal)
|
|
185
199
|
throw new LlmError("LLM request signal does not match admission", "INVALID_PREPARED_CALL");
|
|
186
|
-
return await this.prepareAdmittedCall(proposal, signal, captured);
|
|
200
|
+
return await this.prepareAdmittedCall(proposal, signal, captured, configure);
|
|
187
201
|
}
|
|
188
202
|
catch (error) {
|
|
189
203
|
// NO_ADAPTER is the official loop's signal to dispatch without a prepared call.
|
|
@@ -192,18 +206,39 @@ export class DsmmAwareLlmRuntime extends LlmRuntime {
|
|
|
192
206
|
throw error;
|
|
193
207
|
}
|
|
194
208
|
}
|
|
195
|
-
|
|
209
|
+
prepareNativeCall(config, signal, configure) {
|
|
210
|
+
const classifier = this.ctx.get("dsmmLlmRoutes");
|
|
211
|
+
const supportsStop = classifier?.supportsNativeStop?.(config.provider) ?? true;
|
|
212
|
+
const select = (controls, model) => {
|
|
213
|
+
const selected = configure === undefined ? controls : configure(controls, model);
|
|
214
|
+
const final = snapshotDsmmCall({ ...selected, provider: config.provider, model: config.model });
|
|
215
|
+
if (final.customParameters !== undefined || !supportsStop && final.stop !== undefined) {
|
|
216
|
+
throw new LlmError("Final controls require raw parameter admission before preparation", "UNSUPPORTED_ROUTE_PARAMETERS");
|
|
217
|
+
}
|
|
218
|
+
return selected;
|
|
219
|
+
};
|
|
220
|
+
return this.stock === undefined ? super.prepareCall(config, signal, select) : this.stock.prepareCall(config, signal, select);
|
|
221
|
+
}
|
|
222
|
+
async prepareAdmittedCall(proposal, signal, captured, configure) {
|
|
196
223
|
this.assertCaptured(captured);
|
|
197
224
|
if (captured.generation === undefined) {
|
|
198
225
|
const preparationSignal = AbortSignal.any([signal, captured.admission.signal, captured.revocation.signal, this.lifetime.signal]);
|
|
199
|
-
const prepared = await
|
|
226
|
+
const prepared = await this.prepareNativeCall(proposal, preparationSignal, configure);
|
|
200
227
|
this.assertCaptured(captured);
|
|
201
|
-
return this.bindPrepared(captured, signal, prepared, request => prepared.stream(request));
|
|
228
|
+
return this.bindPrepared(captured, signal, prepared, (request, providerSignal) => prepared.stream(Object.freeze({ ...request, signal: providerSignal })));
|
|
202
229
|
}
|
|
203
|
-
|
|
230
|
+
let streamEffortSource = captured.effortSource;
|
|
231
|
+
const preparationSignal = AbortSignal.any([signal, captured.admission.signal, captured.generation.signal, captured.revocation.signal, this.lifetime.signal]);
|
|
232
|
+
const bound = await captured.generation.prepareCall(proposal.provider, proposal.model, preparationSignal, () => this.assertCaptured(captured), () => streamEffortSource);
|
|
204
233
|
this.assertCaptured(captured);
|
|
205
234
|
if (bound.model.provider !== proposal.provider || bound.model.id !== proposal.model)
|
|
206
235
|
throw new LlmError("Provider resolved another model", "INVALID_ADAPTER");
|
|
236
|
+
if (configure !== undefined) {
|
|
237
|
+
const { provider, model, customParameters, ...controls } = proposal;
|
|
238
|
+
const selected = configure(freezeDsmmJson(controls), freezeDsmmJson(bound.model));
|
|
239
|
+
proposal = snapshotDsmmCall({ ...selected, provider, model, ...(customParameters === undefined ? {} : { customParameters }) });
|
|
240
|
+
this.assertCaptured(captured);
|
|
241
|
+
}
|
|
207
242
|
const customParameters = proposal.customParameters;
|
|
208
243
|
const defaultReasoningEffort = captured.generation.defaultReasoningEffort ?? bound.model.reasoning?.defaultEffort;
|
|
209
244
|
const adapterDefaults = Object.freeze({
|
|
@@ -212,6 +247,11 @@ export class DsmmAwareLlmRuntime extends LlmRuntime {
|
|
|
212
247
|
});
|
|
213
248
|
const config = snapshotDsmmCall({ ...proposal, ...(adapterDefaults.maxTokens ? { maxTokens: bound.model.defaultMaxTokens } : {}),
|
|
214
249
|
...(adapterDefaults.reasoningEffort ? { reasoningEffort: defaultReasoningEffort } : {}) });
|
|
250
|
+
if (adapterDefaults.reasoningEffort)
|
|
251
|
+
streamEffortSource = "native";
|
|
252
|
+
if (streamEffortSource === "native" && config.reasoningEffort !== undefined && !bound.model.reasoning?.efforts.some(effort => effort.id === config.reasoningEffort)) {
|
|
253
|
+
throw new LlmError("The native selection's reasoning effort is not supported by this model", "UNSUPPORTED_REASONING_EFFORT");
|
|
254
|
+
}
|
|
215
255
|
return this.bindPrepared(captured, signal, {
|
|
216
256
|
config, adapterDefaults, retryPolicy: freezeDsmmJson(captured.generation.retryPolicy),
|
|
217
257
|
...(bound.model.context === undefined ? {} : { context: freezeDsmmJson(bound.model.context) }),
|
package/lib/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { DshContext } from "./dsh-types.js";
|
|
2
|
-
import type {
|
|
2
|
+
import type { DsmmNativeConfig } from "./settings.js";
|
|
3
3
|
import type { DsmmHostStartupOptions } from "./runtime-integration.js";
|
|
4
4
|
export declare const name = "dsmm";
|
|
5
5
|
export declare const inject: readonly ["profileContext", "agents"];
|
|
6
|
-
export type Config =
|
|
7
|
-
export declare const Config: import("@deepseek-ai/schemastery").default<DsmmPluginConfig>;
|
|
6
|
+
export type Config = DsmmNativeConfig;
|
|
7
|
+
export declare const Config: import("@deepseek-ai/schemastery").default<import("./settings.js").DsmmPluginConfig>;
|
|
8
8
|
export type { DeepworkSessionEventMap } from "./dsh-events.js";
|
|
9
9
|
export type { DsmmRoleDefinition, DsmmRoleId } from "./roles.js";
|
|
10
10
|
export { DSMM_ROLE_IDS, DSMM_ROLES, isDsmmRoleId, renderAgentCordis, renderPresetMetadata } from "./roles.js";
|
|
@@ -14,46 +14,44 @@ export { DEFAULT_DSMM_LSP_SETTINGS, DSMM_LSP_SERVER_NAME, DSMM_LSP_TOOL_NAMES, p
|
|
|
14
14
|
export type { DshMcpStdioConfig, DsmmLspSettings, DsmmLspToolName, DsmmLspRuntimeState } from "./lsp.js";
|
|
15
15
|
export { classifyModelFamily } from "./model-family.js";
|
|
16
16
|
export type { DsmmModelFamily } from "./model-family.js";
|
|
17
|
-
export {
|
|
18
|
-
export type { DeepseekReasoningEffort } from "./model-routing.js";
|
|
19
|
-
export { classifyRecoveryFailure, foldAttemptedRecoveryRoutes, foldDurableRecoveryWork, selectFallbackRoute } from "./recovery-policy.js";
|
|
20
|
-
export type { DurableRecoveryWork, RecoveryFailureDecision } from "./recovery-policy.js";
|
|
21
|
-
export { registerRuntimeRecovery } from "./runtime-recovery.js";
|
|
17
|
+
export { registerModelRouting } from "./model-routing.js";
|
|
22
18
|
export { childOwnedSessionEvents, resolveEffectiveDsmmRole, resolveSelectedAgentPreset } from "./session-scope.js";
|
|
23
19
|
export { roleFromProviderName, roleProviderName, registerRoleProviders } from "./role-providers.js";
|
|
24
20
|
export { effectiveRoleFallbackRoutes } from "./role-routing.js";
|
|
25
21
|
export { DSMM_STATUS_COMMAND, registerDsmmStatusCommand } from "./commands.js";
|
|
26
22
|
export { DSMM_STATUS_VERSION, createDsmmStatusSnapshot, formatDsmmStatus } from "./status.js";
|
|
27
23
|
export type { DsmmStatusSnapshot } from "./status.js";
|
|
28
|
-
export type
|
|
29
|
-
export { DSMM_SKILL_NAMES, DEFAULT_DSMM_SETTINGS, MVP_SKILL_NAMES, isRoleEnabled, resolveConfig, resolveRoleRouting, registerSettings } from "./settings.js";
|
|
30
|
-
export type {
|
|
31
|
-
export type { DsmmSubagentSettings } from "./settings.js";
|
|
24
|
+
export type * from "./dsh-types.js";
|
|
25
|
+
export { DSMM_SKILL_NAMES, DSMM_SETTINGS_SCHEMA, DEFAULT_DSMM_SETTINGS, MVP_SKILL_NAMES, deploymentEditorSchema, isRoleEnabled, resolveConfig, resolveDeployment, resolveRoleRouting, registerSettings, validateNativeConfig } from "./settings.js";
|
|
26
|
+
export type { DsmmFinalReviewPolicy, DsmmGitWritePolicy, DsmmGuardScope, DsmmGuardSettings, DsmmPluginConfig, DsmmNativeConfig, DsmmModelRoute, DsmmRoleRoutingConfig, DsmmRoleRouting, DsmmRecoveryRoute, DsmmRuntimeRecoverySettings, DsmmSettings, DsmmSettingsGetter, DsmmSkillName, DsmmWorkflowSettings, MvpSkillName, DsmmSubagentSettings, DsmmDeploymentSnapshot } from "./settings.js";
|
|
32
27
|
export { createProfileRuntime, DsmmProfileRuntime } from "./profile-runtime.js";
|
|
28
|
+
export type { DsmmProfileRuntimeStore, DsmmProfileRuntimeOptions } from "./profile-runtime.js";
|
|
33
29
|
export { resolveDshHome } from "./dsh-home.js";
|
|
34
30
|
export { DsmmDeploymentConfig, parseGlobalConfig, editGlobalConfig } from "./deployment-config.js";
|
|
35
31
|
export type { GlobalConfigSnapshot, GlobalConfigSaveRequest, DeploymentPathEdit } from "./deployment-config.js";
|
|
36
|
-
export type { DsmmDeploymentSnapshot } from "./settings.js";
|
|
37
32
|
export { DSMM_MODULE_DESCRIPTORS, deepworkEnabled, projectDeepworkModule } from "./modules.js";
|
|
38
33
|
export type { DsmmModuleState } from "./modules.js";
|
|
39
|
-
export type { DsmmProfileRuntimeStore, DsmmProfileRuntimeOptions } from "./profile-runtime.js";
|
|
40
34
|
export { DEEPWORK_MODE_EVENT, DeepworkModeController, hasOpenTurn, isDeepworkActive } from "./state.js";
|
|
41
35
|
export type { DsmmHostStartupOptions } from "./runtime-integration.js";
|
|
42
36
|
export { DsmmNativeLlmRuntime } from "./llm-runtime.js";
|
|
43
37
|
export type { DsmmLlmAdmission, DsmmLlmCallConfig, DsmmLlmHostOwner, DsmmLlmGeneration, DsmmJson } from "./host-llm.js";
|
|
44
|
-
|
|
38
|
+
export { registerRuntimeRecovery } from "./runtime-recovery.js";
|
|
39
|
+
export { classifyRecoveryFailure, foldAttemptedRecoveryRoutes, foldDurableRecoveryWork, selectFallbackRoute } from "./recovery-policy.js";
|
|
40
|
+
export type { DurableRecoveryWork, RecoveryFailureDecision } from "./recovery-policy.js";
|
|
41
|
+
export { DSMM_HISTORY_HOST_CONFIG } from "./history-support.js";
|
|
42
|
+
export { HISTORY_REMOTE } from "./history-remote.js";
|
|
45
43
|
export declare function createDsmmHostPlugin(startup: DsmmHostStartupOptions): {
|
|
46
44
|
name: string;
|
|
47
|
-
Config: import("@deepseek-ai/schemastery").default<DsmmPluginConfig>;
|
|
45
|
+
Config: import("@deepseek-ai/schemastery").default<import("./settings.js").DsmmPluginConfig>;
|
|
48
46
|
inject: readonly ["profileContext", "agents"];
|
|
49
|
-
apply(ctx: DshContext, config?: Config):
|
|
47
|
+
apply(ctx: DshContext, config?: Config): Promise<void>;
|
|
50
48
|
};
|
|
51
|
-
export declare function apply(
|
|
49
|
+
export declare function apply(input: DshContext, config?: Config, startupOptions?: DsmmHostStartupOptions): Promise<void>;
|
|
52
50
|
declare const _default: {
|
|
53
51
|
name: string;
|
|
54
52
|
inject: readonly ["profileContext", "agents"];
|
|
55
|
-
Config: import("@deepseek-ai/schemastery").default<DsmmPluginConfig>;
|
|
56
|
-
apply
|
|
53
|
+
Config: import("@deepseek-ai/schemastery").default<import("./settings.js").DsmmPluginConfig>;
|
|
54
|
+
apply: typeof apply;
|
|
57
55
|
};
|
|
58
56
|
export default _default;
|
|
59
57
|
//# sourceMappingURL=index.d.ts.map
|