@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,189 @@
|
|
|
1
|
+
import { lookup as systemLookup } from "node:dns/promises";
|
|
2
|
+
import { isIP } from "node:net";
|
|
3
|
+
import ipaddr from "ipaddr.js";
|
|
4
|
+
import { WebError } from "@deepseek-ai/dsh-web";
|
|
5
|
+
const PREFIX_LENGTHS = [32, 40, 48, 56, 64, 96];
|
|
6
|
+
export function stripIpv6Brackets(hostname) {
|
|
7
|
+
return hostname.startsWith("[") && hostname.endsWith("]") ? hostname.slice(1, -1) : hostname;
|
|
8
|
+
}
|
|
9
|
+
function parseAddress(input) {
|
|
10
|
+
const address = stripIpv6Brackets(input);
|
|
11
|
+
const family = isIP(address);
|
|
12
|
+
if (address.includes("%") || family === 0)
|
|
13
|
+
return undefined;
|
|
14
|
+
// Preserve IPv4-compatible vs mapped bits: ipaddr's dotted-tail parser
|
|
15
|
+
// normalizes ::a.b.c.d to ::ffff:a.b.c.d, unlike the actual destination.
|
|
16
|
+
const normalized = family === 6
|
|
17
|
+
? stripIpv6Brackets(new URL(`http://[${address}]/`).hostname)
|
|
18
|
+
: address;
|
|
19
|
+
return ipaddr.parse(normalized);
|
|
20
|
+
}
|
|
21
|
+
function effectiveAddress(address) {
|
|
22
|
+
return address instanceof ipaddr.IPv6 && address.isIPv4MappedAddress()
|
|
23
|
+
? address.toIPv4Address()
|
|
24
|
+
: address;
|
|
25
|
+
}
|
|
26
|
+
export function isFakeIpAddress(input) {
|
|
27
|
+
const parsed = parseAddress(input);
|
|
28
|
+
if (parsed === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
const address = effectiveAddress(parsed);
|
|
31
|
+
const bytes = address.toByteArray();
|
|
32
|
+
return address instanceof ipaddr.IPv4 && bytes[0] === 198 && bytes[1] === 18;
|
|
33
|
+
}
|
|
34
|
+
function isPublicAddress(address) {
|
|
35
|
+
const effective = effectiveAddress(address);
|
|
36
|
+
// Deprecated IPv4-compatible IPv6 is not a pinnable IPv6 destination.
|
|
37
|
+
if (effective instanceof ipaddr.IPv6 && effective.match(ipaddr.IPv6.parse("::"), 96))
|
|
38
|
+
return false;
|
|
39
|
+
return effective.range() === "unicast";
|
|
40
|
+
}
|
|
41
|
+
function parseDeniedRange(input) {
|
|
42
|
+
const [host, length, ...extra] = input.split("/");
|
|
43
|
+
const parsed = parseAddress(host);
|
|
44
|
+
if (parsed === undefined || extra.length !== 0 || (length !== undefined && !/^\d+$/.test(length))) {
|
|
45
|
+
throw new TypeError("denyCidrs must contain IP addresses or CIDRs");
|
|
46
|
+
}
|
|
47
|
+
let bits = length === undefined ? (parsed.kind() === "ipv4" ? 32 : 128) : Number(length);
|
|
48
|
+
if (bits < 0 || bits > (parsed.kind() === "ipv4" ? 32 : 128)) {
|
|
49
|
+
throw new TypeError("invalid deny CIDR prefix length");
|
|
50
|
+
}
|
|
51
|
+
if (parsed instanceof ipaddr.IPv6 && parsed.isIPv4MappedAddress() && bits >= 96) {
|
|
52
|
+
bits -= 96;
|
|
53
|
+
return [parsed.toIPv4Address(), bits];
|
|
54
|
+
}
|
|
55
|
+
return [parsed, bits];
|
|
56
|
+
}
|
|
57
|
+
function isDenied(address, denied) {
|
|
58
|
+
const effective = effectiveAddress(address);
|
|
59
|
+
// Test both representations so mapped CIDRs and ordinary IPv4 denies agree.
|
|
60
|
+
const representations = [address, effective];
|
|
61
|
+
if (effective instanceof ipaddr.IPv4)
|
|
62
|
+
representations.push(effective.toIPv4MappedAddress());
|
|
63
|
+
return denied.some(([range, bits]) => representations.some(candidate => {
|
|
64
|
+
if (candidate instanceof ipaddr.IPv4 && range instanceof ipaddr.IPv4)
|
|
65
|
+
return candidate.match(range, bits);
|
|
66
|
+
if (candidate instanceof ipaddr.IPv6 && range instanceof ipaddr.IPv6)
|
|
67
|
+
return candidate.match(range, bits);
|
|
68
|
+
return false;
|
|
69
|
+
}));
|
|
70
|
+
}
|
|
71
|
+
/** Local policy for literals and the complete DNS answer set. */
|
|
72
|
+
export class FakeIpAddressPolicy {
|
|
73
|
+
denied;
|
|
74
|
+
constructor(options = {}) {
|
|
75
|
+
this.denied = (options.denyCidrs ?? []).map(parseDeniedRange);
|
|
76
|
+
}
|
|
77
|
+
get requiresLocalDeny() {
|
|
78
|
+
return this.denied.length !== 0;
|
|
79
|
+
}
|
|
80
|
+
allows(input) {
|
|
81
|
+
const parsed = parseAddress(input);
|
|
82
|
+
return parsed !== undefined && !isDenied(parsed, this.denied)
|
|
83
|
+
&& (isPublicAddress(parsed) || isFakeIpAddress(input));
|
|
84
|
+
}
|
|
85
|
+
/** Native transition/NAT64 destinations do not inherit the Fake-IP exception. */
|
|
86
|
+
allowsTranslatedIpv4(input) {
|
|
87
|
+
const parsed = parseAddress(input);
|
|
88
|
+
return parsed instanceof ipaddr.IPv4 && isPublicAddress(parsed) && !isDenied(parsed, this.denied);
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
/** Resolve once; the native provider pins exactly this validated, nonempty set. */
|
|
92
|
+
export function createFakeIpResolver(policy = new FakeIpAddressPolicy(), lookup = systemLookup) {
|
|
93
|
+
return async (hostname, signal) => {
|
|
94
|
+
checkAbort(signal);
|
|
95
|
+
const host = stripIpv6Brackets(hostname);
|
|
96
|
+
const family = isIP(host);
|
|
97
|
+
const resolved = family === 0
|
|
98
|
+
? await raceLookup(() => lookup(host, { all: true, order: "verbatim" }), signal)
|
|
99
|
+
: [{ address: host, family }];
|
|
100
|
+
if (resolved.length === 0)
|
|
101
|
+
throw new WebError("DNS returned no addresses", "WEB_PROVIDER_ERROR");
|
|
102
|
+
const addresses = [];
|
|
103
|
+
for (const entry of resolved) {
|
|
104
|
+
if ((entry.family !== 4 && entry.family !== 6) || isIP(entry.address) !== entry.family) {
|
|
105
|
+
throw new WebError("DNS returned an invalid address", "WEB_PROVIDER_ERROR");
|
|
106
|
+
}
|
|
107
|
+
if (!policy.allows(entry.address))
|
|
108
|
+
throw new WebError("destination address denied", "WEB_BLOCKED_URL");
|
|
109
|
+
addresses.push({ address: entry.address, family: entry.family });
|
|
110
|
+
}
|
|
111
|
+
if (addresses.some(entry => entry.family === 6)) {
|
|
112
|
+
const prefixes = await discoverNat64Prefixes(lookup, signal);
|
|
113
|
+
for (const { address, family } of addresses) {
|
|
114
|
+
if (family !== 6)
|
|
115
|
+
continue;
|
|
116
|
+
const bytes = ipaddr.parse(address).toByteArray();
|
|
117
|
+
for (const prefix of prefixes) {
|
|
118
|
+
if (!prefix.bytes.every((byte, index) => bytes[index] === byte))
|
|
119
|
+
continue;
|
|
120
|
+
const embedded = embeddedIpv4(bytes, prefix.length);
|
|
121
|
+
if (embedded === undefined || !policy.allowsTranslatedIpv4(embedded)) {
|
|
122
|
+
throw new WebError("NAT64 destination address denied", "WEB_BLOCKED_URL");
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
checkAbort(signal);
|
|
128
|
+
return addresses;
|
|
129
|
+
};
|
|
130
|
+
}
|
|
131
|
+
async function discoverNat64Prefixes(lookup, signal) {
|
|
132
|
+
const answers = await raceLookup(() => lookup("ipv4only.arpa", { all: true, order: "verbatim" }), signal);
|
|
133
|
+
if (answers.length === 0)
|
|
134
|
+
throw new WebError("NAT64 discovery returned no addresses", "WEB_PROVIDER_ERROR");
|
|
135
|
+
const prefixes = [];
|
|
136
|
+
const seen = new Set();
|
|
137
|
+
for (const entry of answers) {
|
|
138
|
+
if ((entry.family !== 4 && entry.family !== 6) || isIP(entry.address) !== entry.family) {
|
|
139
|
+
throw new WebError("NAT64 discovery returned an invalid address", "WEB_PROVIDER_ERROR");
|
|
140
|
+
}
|
|
141
|
+
if (entry.family === 4) {
|
|
142
|
+
if (entry.address !== "192.0.0.170" && entry.address !== "192.0.0.171") {
|
|
143
|
+
throw new WebError("unrecognized NAT64 discovery answer", "WEB_PROVIDER_ERROR");
|
|
144
|
+
}
|
|
145
|
+
continue;
|
|
146
|
+
}
|
|
147
|
+
const bytes = ipaddr.parse(entry.address).toByteArray();
|
|
148
|
+
let recognized = false;
|
|
149
|
+
for (const length of PREFIX_LENGTHS) {
|
|
150
|
+
const embedded = embeddedIpv4(bytes, length);
|
|
151
|
+
if (embedded !== "192.0.0.170" && embedded !== "192.0.0.171")
|
|
152
|
+
continue;
|
|
153
|
+
recognized = true;
|
|
154
|
+
const prefixBytes = bytes.slice(0, length / 8);
|
|
155
|
+
const key = `${length}:${prefixBytes.join(".")}`;
|
|
156
|
+
if (seen.has(key))
|
|
157
|
+
continue;
|
|
158
|
+
seen.add(key);
|
|
159
|
+
prefixes.push({ bytes: prefixBytes, length });
|
|
160
|
+
}
|
|
161
|
+
if (!recognized)
|
|
162
|
+
throw new WebError("unrecognized NAT64 discovery answer", "WEB_PROVIDER_ERROR");
|
|
163
|
+
}
|
|
164
|
+
return prefixes;
|
|
165
|
+
}
|
|
166
|
+
function embeddedIpv4(bytes, prefixLength) {
|
|
167
|
+
if (prefixLength === 96)
|
|
168
|
+
return bytes.slice(12, 16).join(".");
|
|
169
|
+
if (bytes[8] !== 0)
|
|
170
|
+
return undefined;
|
|
171
|
+
const start = prefixLength / 8;
|
|
172
|
+
const beforeReservedOctet = 8 - start;
|
|
173
|
+
return [...bytes.slice(start, start + beforeReservedOctet), ...bytes.slice(9, 9 + 4 - beforeReservedOctet)].join(".");
|
|
174
|
+
}
|
|
175
|
+
function checkAbort(signal) {
|
|
176
|
+
// Leave timeout classification to the native provider's deadline owner.
|
|
177
|
+
if (signal.aborted)
|
|
178
|
+
throw new Error("address resolution aborted", { cause: signal.reason });
|
|
179
|
+
}
|
|
180
|
+
function raceLookup(start, signal) {
|
|
181
|
+
checkAbort(signal);
|
|
182
|
+
return new Promise((resolve, reject) => {
|
|
183
|
+
const abort = () => reject(new Error("address resolution aborted", { cause: signal.reason }));
|
|
184
|
+
signal.addEventListener("abort", abort, { once: true });
|
|
185
|
+
const finish = () => signal.removeEventListener("abort", abort);
|
|
186
|
+
start().then(value => { finish(); resolve(value); }, error => { finish(); reject(error); });
|
|
187
|
+
});
|
|
188
|
+
}
|
|
189
|
+
//# sourceMappingURL=web-fetch-address-policy.js.map
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { Context } from "@deepseek-ai/cordis";
|
|
2
|
+
import z from "@deepseek-ai/schemastery";
|
|
3
|
+
import type { WebFetchProvider, WebFetchRequest, WebFetchResult } from "@deepseek-ai/dsh-web";
|
|
4
|
+
import type { HttpFetchLimits } from "@deepseek-ai/dsh-web-fetch-http";
|
|
5
|
+
import type { AddressLookup } from "./web-fetch-address-policy.js";
|
|
6
|
+
export declare const name = "dsmm-http-fakeip";
|
|
7
|
+
export declare const FETCH_PROVIDER_ID = "dsmm-http-fakeip";
|
|
8
|
+
export declare const inject: string[];
|
|
9
|
+
export interface Config extends Partial<HttpFetchLimits> {
|
|
10
|
+
readonly denyCidrs?: string[];
|
|
11
|
+
}
|
|
12
|
+
export declare const Config: z<Config>;
|
|
13
|
+
/** Opt-in adapter; all HTTP transport and response handling remain native. */
|
|
14
|
+
export declare class FakeIpHttpFetchProvider implements WebFetchProvider {
|
|
15
|
+
readonly id = "dsmm-http-fakeip";
|
|
16
|
+
private readonly limits;
|
|
17
|
+
private readonly policy;
|
|
18
|
+
private readonly resolver;
|
|
19
|
+
constructor(config?: Config, lookup?: AddressLookup);
|
|
20
|
+
available(): boolean;
|
|
21
|
+
fetch(request: WebFetchRequest, signal?: AbortSignal): Promise<WebFetchResult>;
|
|
22
|
+
}
|
|
23
|
+
/** Mount only when the operator has explicitly selected this adapter. */
|
|
24
|
+
export declare function apply(ctx: Context, config: Config): void;
|
|
25
|
+
//# sourceMappingURL=web-fetch-fakeip.d.ts.map
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import z from "@deepseek-ai/schemastery";
|
|
2
|
+
import { WebError } from "@deepseek-ai/dsh-web";
|
|
3
|
+
import { HttpFetchProvider, DEFAULT_USER_AGENT } from "@deepseek-ai/dsh-web-fetch-http";
|
|
4
|
+
import { proxyRouteFor } from "@deepseek-ai/dsh-http-proxy";
|
|
5
|
+
import { isIP } from "node:net";
|
|
6
|
+
import { FakeIpAddressPolicy, createFakeIpResolver, isFakeIpAddress, stripIpv6Brackets, } from "./web-fetch-address-policy.js";
|
|
7
|
+
export const name = "dsmm-http-fakeip";
|
|
8
|
+
export const FETCH_PROVIDER_ID = "dsmm-http-fakeip";
|
|
9
|
+
export const inject = ["web"];
|
|
10
|
+
export const Config = z.object({
|
|
11
|
+
maxResponseBytes: z.number().default(5_000_000),
|
|
12
|
+
maxBodyChars: z.number().default(100_000),
|
|
13
|
+
timeoutMs: z.number().default(30_000),
|
|
14
|
+
maxRedirects: z.number().default(5),
|
|
15
|
+
userAgent: z.string().default(DEFAULT_USER_AGENT),
|
|
16
|
+
denyCidrs: z.array(z.string()).default([]),
|
|
17
|
+
});
|
|
18
|
+
function resolveLimits(config) {
|
|
19
|
+
const limits = {
|
|
20
|
+
maxResponseBytes: config.maxResponseBytes ?? 5_000_000,
|
|
21
|
+
maxBodyChars: config.maxBodyChars ?? 100_000,
|
|
22
|
+
timeoutMs: config.timeoutMs ?? 30_000,
|
|
23
|
+
maxRedirects: config.maxRedirects ?? 5,
|
|
24
|
+
userAgent: config.userAgent ?? DEFAULT_USER_AGENT,
|
|
25
|
+
};
|
|
26
|
+
for (const key of ["maxResponseBytes", "maxBodyChars", "timeoutMs"]) {
|
|
27
|
+
if (!Number.isFinite(limits[key]) || limits[key] <= 0)
|
|
28
|
+
throw new TypeError(`${key} must be positive and finite`);
|
|
29
|
+
}
|
|
30
|
+
if (limits.timeoutMs > 2_147_483_647)
|
|
31
|
+
throw new TypeError("timeoutMs exceeds the Node timer range");
|
|
32
|
+
if (!Number.isInteger(limits.maxRedirects) || limits.maxRedirects < 0)
|
|
33
|
+
throw new TypeError("maxRedirects must be a nonnegative integer");
|
|
34
|
+
return limits;
|
|
35
|
+
}
|
|
36
|
+
function assertRoute(url, policy) {
|
|
37
|
+
const host = stripIpv6Brackets(url.hostname);
|
|
38
|
+
const literal = isIP(host) !== 0;
|
|
39
|
+
if (literal && !policy.allows(host))
|
|
40
|
+
throw new WebError("literal address denied", "WEB_BLOCKED_URL");
|
|
41
|
+
const route = proxyRouteFor(url);
|
|
42
|
+
if (!route.proxied)
|
|
43
|
+
return;
|
|
44
|
+
if (isFakeIpAddress(host)) {
|
|
45
|
+
throw new WebError("Fake-IP literals cannot safely use the native proxy path", "WEB_FAKEIP_PROXY_UNSUPPORTED");
|
|
46
|
+
}
|
|
47
|
+
if (policy.requiresLocalDeny && !literal) {
|
|
48
|
+
throw new WebError("proxy DNS cannot enforce local address denies", "WEB_FAKEIP_PROXY_UNSUPPORTED");
|
|
49
|
+
}
|
|
50
|
+
// The proxy branch skips RFC 7050 discovery too; do not accept an IPv6
|
|
51
|
+
// literal whose locally translated destination cannot be checked there.
|
|
52
|
+
if (isIP(host) === 6 && !host.toLowerCase().startsWith("::ffff:")) {
|
|
53
|
+
throw new WebError("proxy IPv6 literals cannot enforce local NAT64 checks", "WEB_FAKEIP_PROXY_UNSUPPORTED");
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
/** Opt-in adapter; all HTTP transport and response handling remain native. */
|
|
57
|
+
export class FakeIpHttpFetchProvider {
|
|
58
|
+
id = FETCH_PROVIDER_ID;
|
|
59
|
+
limits;
|
|
60
|
+
policy;
|
|
61
|
+
resolver;
|
|
62
|
+
constructor(config = {}, lookup) {
|
|
63
|
+
this.limits = resolveLimits(config);
|
|
64
|
+
this.policy = new FakeIpAddressPolicy(config);
|
|
65
|
+
this.resolver = createFakeIpResolver(this.policy, lookup);
|
|
66
|
+
}
|
|
67
|
+
available() {
|
|
68
|
+
return new HttpFetchProvider(this.limits, this.resolver).available();
|
|
69
|
+
}
|
|
70
|
+
fetch(request, signal) {
|
|
71
|
+
if (signal?.aborted)
|
|
72
|
+
return Promise.reject(new WebError("web fetch aborted", "WEB_ABORTED"));
|
|
73
|
+
let url;
|
|
74
|
+
try {
|
|
75
|
+
url = new URL(request.url);
|
|
76
|
+
}
|
|
77
|
+
catch {
|
|
78
|
+
return Promise.reject(new WebError("invalid fetch URL", "WEB_INVALID_URL"));
|
|
79
|
+
}
|
|
80
|
+
try {
|
|
81
|
+
assertRoute(url, this.policy);
|
|
82
|
+
}
|
|
83
|
+
catch (error) {
|
|
84
|
+
return Promise.reject(error);
|
|
85
|
+
}
|
|
86
|
+
// Same-origin redirects preserve the full routing key. Recheck inside the
|
|
87
|
+
// resolver as well: rc.2 otherwise sends proxied Fake-IP literals direct.
|
|
88
|
+
const resolve = (hostname, innerSignal) => {
|
|
89
|
+
assertRoute(url, this.policy);
|
|
90
|
+
return this.resolver(hostname, innerSignal);
|
|
91
|
+
};
|
|
92
|
+
// The public resolver seam cannot guard a later redirect's proxy branch.
|
|
93
|
+
// Local denies and native IPv6 literal NAT64 checks require zero hops to
|
|
94
|
+
// retain enforcement if process proxy policy changes during the request.
|
|
95
|
+
const host = stripIpv6Brackets(url.hostname);
|
|
96
|
+
const nativeIpv6Literal = isIP(host) === 6 && !host.toLowerCase().startsWith("::ffff:");
|
|
97
|
+
const limits = this.policy.requiresLocalDeny || nativeIpv6Literal
|
|
98
|
+
? { ...this.limits, maxRedirects: 0 }
|
|
99
|
+
: this.limits;
|
|
100
|
+
return new HttpFetchProvider(limits, resolve).fetch(request, signal);
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
/** Mount only when the operator has explicitly selected this adapter. */
|
|
104
|
+
export function apply(ctx, config) {
|
|
105
|
+
ctx.web.registerFetchProvider(new FakeIpHttpFetchProvider(config));
|
|
106
|
+
}
|
|
107
|
+
//# sourceMappingURL=web-fetch-fakeip.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dsmm/dsmm",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.2",
|
|
4
4
|
"description": "DeepSeek Harness deepwork mode bundle for ocmm-style agentic workflows.",
|
|
5
5
|
"author": "Hugefiver",
|
|
6
6
|
"license": "LicenseRef-AAAPL",
|
|
@@ -26,9 +26,9 @@
|
|
|
26
26
|
"main": "./lib/index.js",
|
|
27
27
|
"types": "./lib/index.d.ts",
|
|
28
28
|
"exports": {
|
|
29
|
-
"./
|
|
30
|
-
"types": "./lib/
|
|
31
|
-
"default": "./lib/
|
|
29
|
+
"./history-support": {
|
|
30
|
+
"types": "./lib/history-support.d.ts",
|
|
31
|
+
"default": "./lib/history-support.js"
|
|
32
32
|
},
|
|
33
33
|
"./managed-settings": {
|
|
34
34
|
"types": "./lib/managed-settings.d.ts",
|
|
@@ -58,22 +58,14 @@
|
|
|
58
58
|
"types": "./lib/permission-web.d.ts",
|
|
59
59
|
"default": "./lib/permission-web.js"
|
|
60
60
|
},
|
|
61
|
+
"./web-fetch-fakeip": {
|
|
62
|
+
"types": "./lib/web-fetch-fakeip.d.ts",
|
|
63
|
+
"default": "./lib/web-fetch-fakeip.js"
|
|
64
|
+
},
|
|
61
65
|
".": {
|
|
62
66
|
"types": "./lib/index.d.ts",
|
|
63
67
|
"default": "./lib/index.js"
|
|
64
68
|
},
|
|
65
|
-
"./preset-skills": {
|
|
66
|
-
"types": "./lib/preset-skills.d.ts",
|
|
67
|
-
"default": "./lib/preset-skills.js"
|
|
68
|
-
},
|
|
69
|
-
"./session-persistence": {
|
|
70
|
-
"types": "./lib/session-persistence.d.ts",
|
|
71
|
-
"default": "./lib/session-persistence.js"
|
|
72
|
-
},
|
|
73
|
-
"./subagent-runtime": {
|
|
74
|
-
"types": "./lib/runtime-integration.d.ts",
|
|
75
|
-
"default": "./lib/runtime-integration.js"
|
|
76
|
-
},
|
|
77
69
|
"./client": {
|
|
78
70
|
"types": "./lib/client/index.d.ts",
|
|
79
71
|
"default": "./lib/client.js"
|
|
@@ -109,12 +101,12 @@
|
|
|
109
101
|
"docs/native-permissions.md",
|
|
110
102
|
"docs/profiles.md",
|
|
111
103
|
"docs/releasing.md",
|
|
112
|
-
"docs/research",
|
|
113
104
|
"docs/roadmap.md",
|
|
114
105
|
"docs/runtime-recovery.md",
|
|
115
106
|
"docs/safety-guards.md",
|
|
116
107
|
"docs/settings-status.md",
|
|
117
108
|
"docs/skill-sync.md",
|
|
109
|
+
"docs/web-fetch-fakeip.md",
|
|
118
110
|
"patches",
|
|
119
111
|
"prompts",
|
|
120
112
|
"skills",
|
|
@@ -124,103 +116,133 @@
|
|
|
124
116
|
],
|
|
125
117
|
"engines": {
|
|
126
118
|
"node": ">=22",
|
|
127
|
-
"dsh": "
|
|
119
|
+
"dsh": "0.2.1-rc.2"
|
|
128
120
|
},
|
|
129
121
|
"dependencies": {
|
|
122
|
+
"@deepseek-ai/dsh-web-fetch-http": "0.2.1-rc.2",
|
|
130
123
|
"@deepseek-ai/schemastery": "~3.18.5",
|
|
124
|
+
"ipaddr.js": "^2.5.0",
|
|
131
125
|
"jsonc-parser": "^3.3.1"
|
|
132
126
|
},
|
|
133
127
|
"peerDependencies": {
|
|
134
128
|
"@deepseek-ai/cordis": "~4.0.5",
|
|
135
|
-
"@deepseek-ai/dsh-agent
|
|
136
|
-
"@deepseek-ai/dsh-agent-
|
|
137
|
-
"@deepseek-ai/dsh-agent-
|
|
138
|
-
"@deepseek-ai/dsh-
|
|
139
|
-
"@deepseek-ai/dsh-
|
|
140
|
-
"@deepseek-ai/dsh-
|
|
141
|
-
"@deepseek-ai/dsh-
|
|
142
|
-
"@deepseek-ai/dsh-
|
|
143
|
-
"@deepseek-ai/dsh-
|
|
144
|
-
"@deepseek-ai/dsh-
|
|
145
|
-
"@deepseek-ai/dsh-
|
|
146
|
-
"@deepseek-ai/dsh-
|
|
147
|
-
"@deepseek-ai/dsh-
|
|
148
|
-
"@deepseek-ai/dsh-
|
|
149
|
-
"@deepseek-ai/dsh-
|
|
150
|
-
"@deepseek-ai/dsh-
|
|
151
|
-
"@deepseek-ai/dsh-
|
|
152
|
-
"@deepseek-ai/dsh-
|
|
153
|
-
"@deepseek-ai/dsh-
|
|
154
|
-
"@deepseek-ai/dsh-
|
|
155
|
-
"@deepseek-ai/dsh-
|
|
156
|
-
"@deepseek-ai/dsh-
|
|
157
|
-
"@deepseek-ai/dsh-
|
|
158
|
-
"@deepseek-ai/dsh-
|
|
159
|
-
"@deepseek-ai/dsh-
|
|
160
|
-
"@deepseek-ai/dsh-
|
|
161
|
-
"@deepseek-ai/dsh-
|
|
162
|
-
"@deepseek-ai/dsh-
|
|
163
|
-
"@deepseek-ai/dsh-
|
|
164
|
-
"@deepseek-ai/dsh-tool-
|
|
165
|
-
"@deepseek-ai/dsh-tool-
|
|
166
|
-
"@deepseek-ai/dsh-
|
|
167
|
-
"@deepseek-ai/dsh-
|
|
129
|
+
"@deepseek-ai/dsh-agent": "0.2.1-rc.2",
|
|
130
|
+
"@deepseek-ai/dsh-agent-instructions": "0.2.1-rc.2",
|
|
131
|
+
"@deepseek-ai/dsh-agent-loop": "0.2.1-rc.2",
|
|
132
|
+
"@deepseek-ai/dsh-agent-preset-registry": "0.2.1-rc.2",
|
|
133
|
+
"@deepseek-ai/dsh-api-remote-access": "0.2.1-rc.2",
|
|
134
|
+
"@deepseek-ai/dsh-attachment": "0.2.1-rc.2",
|
|
135
|
+
"@deepseek-ai/dsh-brand": "0.2.1-rc.2",
|
|
136
|
+
"@deepseek-ai/dsh-client-connection": "0.2.1-rc.2",
|
|
137
|
+
"@deepseek-ai/dsh-client-store": "0.2.1-rc.2",
|
|
138
|
+
"@deepseek-ai/dsh-client-ui-approval": "0.2.1-rc.2",
|
|
139
|
+
"@deepseek-ai/dsh-command-compact": "0.2.1-rc.2",
|
|
140
|
+
"@deepseek-ai/dsh-compaction-basic": "0.2.1-rc.2",
|
|
141
|
+
"@deepseek-ai/dsh-compaction-tool-result-pruner": "0.2.1-rc.2",
|
|
142
|
+
"@deepseek-ai/dsh-fs-local": "0.2.1-rc.2",
|
|
143
|
+
"@deepseek-ai/dsh-http-proxy": "0.2.1-rc.2",
|
|
144
|
+
"@deepseek-ai/dsh-jobs": "0.2.1-rc.2",
|
|
145
|
+
"@deepseek-ai/dsh-llm": "0.2.1-rc.2",
|
|
146
|
+
"@deepseek-ai/dsh-llm-pi-ai": "0.2.1-rc.2",
|
|
147
|
+
"@deepseek-ai/dsh-persona": "0.2.1-rc.2",
|
|
148
|
+
"@deepseek-ai/dsh-plan-mode": "0.2.1-rc.2",
|
|
149
|
+
"@deepseek-ai/dsh-sandbox-policy": "0.2.1-rc.2",
|
|
150
|
+
"@deepseek-ai/dsh-session": "0.2.1-rc.2",
|
|
151
|
+
"@deepseek-ai/dsh-session-persistence": "0.2.1-rc.2",
|
|
152
|
+
"@deepseek-ai/dsh-session-persistence-jsonl": "0.2.1-rc.2",
|
|
153
|
+
"@deepseek-ai/dsh-settings": "0.2.1-rc.2",
|
|
154
|
+
"@deepseek-ai/dsh-skill-filesystem": "0.2.1-rc.2",
|
|
155
|
+
"@deepseek-ai/dsh-subagent": "0.2.1-rc.2",
|
|
156
|
+
"@deepseek-ai/dsh-subprocess-local": "0.2.1-rc.2",
|
|
157
|
+
"@deepseek-ai/dsh-timeout": "0.2.1-rc.2",
|
|
158
|
+
"@deepseek-ai/dsh-tool-ask-user": "0.2.1-rc.2",
|
|
159
|
+
"@deepseek-ai/dsh-tool-bash": "0.2.1-rc.2",
|
|
160
|
+
"@deepseek-ai/dsh-tool-fs": "0.2.1-rc.2",
|
|
161
|
+
"@deepseek-ai/dsh-tool-fs-search": "0.2.1-rc.2",
|
|
162
|
+
"@deepseek-ai/dsh-tool-jobs": "0.2.1-rc.2",
|
|
163
|
+
"@deepseek-ai/dsh-tool-pwsh": "0.2.1-rc.2",
|
|
164
|
+
"@deepseek-ai/dsh-tool-skill": "0.2.1-rc.2",
|
|
165
|
+
"@deepseek-ai/dsh-tool-subagent": "0.2.1-rc.2",
|
|
166
|
+
"@deepseek-ai/dsh-tool-todo": "0.2.1-rc.2",
|
|
167
|
+
"@deepseek-ai/dsh-tool-web": "0.2.1-rc.2",
|
|
168
|
+
"@deepseek-ai/dsh-tools": "0.2.1-rc.2",
|
|
169
|
+
"@deepseek-ai/dsh-typert-protocol": "0.2.1-rc.2",
|
|
170
|
+
"@deepseek-ai/dsh-user-approval": "0.2.1-rc.2",
|
|
171
|
+
"@deepseek-ai/dsh-web": "0.2.1-rc.2",
|
|
168
172
|
"@earendil-works/pi-ai": "^1.1.0"
|
|
169
173
|
},
|
|
170
174
|
"devDependencies": {
|
|
171
175
|
"@deepseek-ai/cordis": "~4.0.5",
|
|
172
176
|
"@deepseek-ai/cordis-plugin-group": "1.0.5",
|
|
173
177
|
"@deepseek-ai/cordis-plugin-include": "1.0.10",
|
|
174
|
-
"@deepseek-ai/dsh-agent": "0.2.1-rc.
|
|
175
|
-
"@deepseek-ai/dsh-agent-instructions": "0.2.1-rc.
|
|
176
|
-
"@deepseek-ai/dsh-agent-loop": "0.2.1-rc.
|
|
177
|
-
"@deepseek-ai/dsh-agent-preset-registry": "0.2.1-rc.
|
|
178
|
-
"@deepseek-ai/dsh-api-gateway": "0.2.1-rc.
|
|
179
|
-
"@deepseek-ai/dsh-api-
|
|
180
|
-
"@deepseek-ai/dsh-
|
|
181
|
-
"@deepseek-ai/dsh-
|
|
182
|
-
"@deepseek-ai/dsh-
|
|
183
|
-
"@deepseek-ai/dsh-
|
|
184
|
-
"@deepseek-ai/dsh-client-
|
|
185
|
-
"@deepseek-ai/dsh-client-
|
|
186
|
-
"@deepseek-ai/dsh-client-
|
|
187
|
-
"@deepseek-ai/dsh-client-ui-
|
|
188
|
-
"@deepseek-ai/dsh-client-ui-
|
|
189
|
-
"@deepseek-ai/dsh-client-ui-
|
|
190
|
-
"@deepseek-ai/dsh-client-ui-
|
|
191
|
-
"@deepseek-ai/dsh-client-ui-
|
|
192
|
-
"@deepseek-ai/dsh-
|
|
193
|
-
"@deepseek-ai/dsh-
|
|
194
|
-
"@deepseek-ai/dsh-
|
|
195
|
-
"@deepseek-ai/dsh-
|
|
196
|
-
"@deepseek-ai/dsh-
|
|
197
|
-
"@deepseek-ai/dsh-
|
|
198
|
-
"@deepseek-ai/dsh-
|
|
199
|
-
"@deepseek-ai/dsh-
|
|
200
|
-
"@deepseek-ai/dsh-
|
|
201
|
-
"@deepseek-ai/dsh-
|
|
202
|
-
"@deepseek-ai/dsh-
|
|
203
|
-
"@deepseek-ai/dsh-
|
|
204
|
-
"@deepseek-ai/dsh-
|
|
205
|
-
"@deepseek-ai/dsh-
|
|
206
|
-
"@deepseek-ai/dsh-
|
|
207
|
-
"@deepseek-ai/dsh-
|
|
208
|
-
"@deepseek-ai/dsh-
|
|
209
|
-
"@deepseek-ai/dsh-
|
|
210
|
-
"@deepseek-ai/dsh-
|
|
211
|
-
"@deepseek-ai/dsh-
|
|
212
|
-
"@deepseek-ai/dsh-
|
|
213
|
-
"@deepseek-ai/dsh-
|
|
214
|
-
"@deepseek-ai/dsh-
|
|
215
|
-
"@deepseek-ai/dsh-
|
|
216
|
-
"@deepseek-ai/dsh-
|
|
217
|
-
"@deepseek-ai/dsh-
|
|
218
|
-
"@deepseek-ai/dsh-
|
|
219
|
-
"@deepseek-ai/dsh-
|
|
220
|
-
"@deepseek-ai/dsh-
|
|
221
|
-
"@deepseek-ai/dsh-
|
|
222
|
-
"@deepseek-ai/dsh-
|
|
223
|
-
"@deepseek-ai/dsh-
|
|
178
|
+
"@deepseek-ai/dsh-agent": "0.2.1-rc.2",
|
|
179
|
+
"@deepseek-ai/dsh-agent-instructions": "0.2.1-rc.2",
|
|
180
|
+
"@deepseek-ai/dsh-agent-loop": "0.2.1-rc.2",
|
|
181
|
+
"@deepseek-ai/dsh-agent-preset-registry": "0.2.1-rc.2",
|
|
182
|
+
"@deepseek-ai/dsh-api-gateway": "0.2.1-rc.2",
|
|
183
|
+
"@deepseek-ai/dsh-api-remote-access": "0.2.1-rc.2",
|
|
184
|
+
"@deepseek-ai/dsh-api-session-controller": "0.2.1-rc.2",
|
|
185
|
+
"@deepseek-ai/dsh-attachment": "0.2.1-rc.2",
|
|
186
|
+
"@deepseek-ai/dsh-bash-sandbox": "0.2.1-rc.2",
|
|
187
|
+
"@deepseek-ai/dsh-brand": "0.2.1-rc.2",
|
|
188
|
+
"@deepseek-ai/dsh-client-connection": "0.2.1-rc.2",
|
|
189
|
+
"@deepseek-ai/dsh-client-locale": "0.2.1-rc.2",
|
|
190
|
+
"@deepseek-ai/dsh-client-store": "0.2.1-rc.2",
|
|
191
|
+
"@deepseek-ai/dsh-client-ui-approval": "0.2.1-rc.2",
|
|
192
|
+
"@deepseek-ai/dsh-client-ui-conversation": "0.2.1-rc.2",
|
|
193
|
+
"@deepseek-ai/dsh-client-ui-model-selection": "0.2.1-rc.2",
|
|
194
|
+
"@deepseek-ai/dsh-client-ui-primitives": "0.2.1-rc.2",
|
|
195
|
+
"@deepseek-ai/dsh-client-ui-renderer": "0.2.1-rc.2",
|
|
196
|
+
"@deepseek-ai/dsh-client-ui-session": "0.2.1-rc.2",
|
|
197
|
+
"@deepseek-ai/dsh-client-ui-settings": "0.2.1-rc.2",
|
|
198
|
+
"@deepseek-ai/dsh-client-ui-slots": "0.2.1-rc.2",
|
|
199
|
+
"@deepseek-ai/dsh-client-ui-tool": "0.2.1-rc.2",
|
|
200
|
+
"@deepseek-ai/dsh-command-compact": "0.2.1-rc.2",
|
|
201
|
+
"@deepseek-ai/dsh-compaction-basic": "0.2.1-rc.2",
|
|
202
|
+
"@deepseek-ai/dsh-compaction-tool-result-pruner": "0.2.1-rc.2",
|
|
203
|
+
"@deepseek-ai/dsh-fs-local": "0.2.1-rc.2",
|
|
204
|
+
"@deepseek-ai/dsh-fs-observation-policy": "0.2.1-rc.2",
|
|
205
|
+
"@deepseek-ai/dsh-http-proxy": "0.2.1-rc.2",
|
|
206
|
+
"@deepseek-ai/dsh-jobs": "0.2.1-rc.2",
|
|
207
|
+
"@deepseek-ai/dsh-jobs-local": "0.2.1-rc.2",
|
|
208
|
+
"@deepseek-ai/dsh-llm": "0.2.1-rc.2",
|
|
209
|
+
"@deepseek-ai/dsh-llm-pi-ai": "0.2.1-rc.2",
|
|
210
|
+
"@deepseek-ai/dsh-persona": "0.2.1-rc.2",
|
|
211
|
+
"@deepseek-ai/dsh-plan-mode": "0.2.1-rc.2",
|
|
212
|
+
"@deepseek-ai/dsh-pwsh-sandbox": "0.2.1-rc.2",
|
|
213
|
+
"@deepseek-ai/dsh-sandbox-local": "0.2.1-rc.2",
|
|
214
|
+
"@deepseek-ai/dsh-sandbox-policy": "0.2.1-rc.2",
|
|
215
|
+
"@deepseek-ai/dsh-scope": "0.2.1-rc.2",
|
|
216
|
+
"@deepseek-ai/dsh-session": "0.2.1-rc.2",
|
|
217
|
+
"@deepseek-ai/dsh-session-persistence": "0.2.1-rc.2",
|
|
218
|
+
"@deepseek-ai/dsh-session-persistence-jsonl": "0.2.1-rc.2",
|
|
219
|
+
"@deepseek-ai/dsh-session-projection": "0.2.1-rc.2",
|
|
220
|
+
"@deepseek-ai/dsh-settings": "0.2.1-rc.2",
|
|
221
|
+
"@deepseek-ai/dsh-shell-env": "0.2.1-rc.2",
|
|
222
|
+
"@deepseek-ai/dsh-skill-filesystem": "0.2.1-rc.2",
|
|
223
|
+
"@deepseek-ai/dsh-subagent": "0.2.1-rc.2",
|
|
224
|
+
"@deepseek-ai/dsh-subagent-spawn-in-process": "0.2.1-rc.2",
|
|
225
|
+
"@deepseek-ai/dsh-subprocess-local": "0.2.1-rc.2",
|
|
226
|
+
"@deepseek-ai/dsh-system-prompt": "0.2.1-rc.2",
|
|
227
|
+
"@deepseek-ai/dsh-timeout": "0.2.1-rc.2",
|
|
228
|
+
"@deepseek-ai/dsh-tool-ask-user": "0.2.1-rc.2",
|
|
229
|
+
"@deepseek-ai/dsh-tool-bash": "0.2.1-rc.2",
|
|
230
|
+
"@deepseek-ai/dsh-tool-fs": "0.2.1-rc.2",
|
|
231
|
+
"@deepseek-ai/dsh-tool-fs-search": "0.2.1-rc.2",
|
|
232
|
+
"@deepseek-ai/dsh-tool-jobs": "0.2.1-rc.2",
|
|
233
|
+
"@deepseek-ai/dsh-tool-pwsh": "0.2.1-rc.2",
|
|
234
|
+
"@deepseek-ai/dsh-tool-skill": "0.2.1-rc.2",
|
|
235
|
+
"@deepseek-ai/dsh-tool-subagent": "0.2.1-rc.2",
|
|
236
|
+
"@deepseek-ai/dsh-tool-subagent-control": "0.2.1-rc.2",
|
|
237
|
+
"@deepseek-ai/dsh-tool-todo": "0.2.1-rc.2",
|
|
238
|
+
"@deepseek-ai/dsh-tool-web": "0.2.1-rc.2",
|
|
239
|
+
"@deepseek-ai/dsh-tools": "0.2.1-rc.2",
|
|
240
|
+
"@deepseek-ai/dsh-typert-protocol": "0.2.1-rc.2",
|
|
241
|
+
"@deepseek-ai/dsh-typert-registry": "0.2.1-rc.2",
|
|
242
|
+
"@deepseek-ai/dsh-user-approval": "0.2.1-rc.2",
|
|
243
|
+
"@deepseek-ai/dsh-web": "0.2.1-rc.2",
|
|
244
|
+
"@deepseek-ai/dsh-web-app": "0.2.1-rc.2",
|
|
245
|
+
"@deepseek-ai/dsh-working-directory": "0.2.1-rc.2",
|
|
224
246
|
"@earendil-works/pi-ai": "1.3.0",
|
|
225
247
|
"@types/node": "^26.0.0",
|
|
226
248
|
"@types/react": "^18.3.27",
|
|
@@ -247,16 +269,12 @@
|
|
|
247
269
|
"scripts": {
|
|
248
270
|
"build": "node scripts/materialize-frontend.mjs --check && tsc -p tsconfig.json && node scripts/build-client.mjs",
|
|
249
271
|
"build:client": "node scripts/build-client.mjs",
|
|
250
|
-
"check:release": "node scripts/check-release-readiness.mjs",
|
|
251
272
|
"sync:source": "node --experimental-strip-types scripts/sync-source-assets.mjs",
|
|
252
273
|
"generate:roles": "node scripts/generate-role-assets.mjs",
|
|
253
274
|
"check:source": "node --experimental-strip-types scripts/check-source-assets.mjs",
|
|
254
275
|
"sync:frontend": "node scripts/materialize-frontend.mjs --sync",
|
|
255
276
|
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
256
277
|
"typecheck:test": "pnpm run build && tsc -p tsconfig.test.json --noEmit",
|
|
257
|
-
"test": "pnpm run build && node --test --experimental-strip-types --import ./test/prompt-source-loader.mjs --test-concurrency=1 test/*.test.ts"
|
|
258
|
-
"smoke:docker:build": "docker build --build-arg DSH_PACKAGE=@deepseek-ai/dsh@0.2.1-rc.1 -f docker/Dockerfile.smoke -t dsmm-dsh-smoke:0.2 ..",
|
|
259
|
-
"smoke:docker:run": "docker run --rm dsmm-dsh-smoke:0.2",
|
|
260
|
-
"smoke:docker": "node scripts/docker-smoke.mjs"
|
|
278
|
+
"test": "pnpm run build && node --test --experimental-strip-types --import ./test/prompt-source-loader.mjs --test-concurrency=1 test/*.test.ts"
|
|
261
279
|
}
|
|
262
280
|
}
|