@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
package/lib/role-llm-runtime.js
CHANGED
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import { LlmError } from "@deepseek-ai/dsh-llm";
|
|
2
|
-
import { requiresDsmmCallAdmission, snapshotDsmmCall } from "./host-llm.js";
|
|
2
|
+
import { captureDsmmEffortSource, requiresDsmmCallAdmission, snapshotDsmmCall } from "./host-llm.js";
|
|
3
3
|
import { resolvedModelParameterPolicy } from "./model-parameter-policy.js";
|
|
4
4
|
import { modelRouteFromCall, projectModelRouteParameters } from "./role-llm.js";
|
|
5
|
-
import { capturedRoleInvocation } from "./role-invocation.js";
|
|
6
|
-
import { latestNativeModelSelection } from "./role-routing.js";
|
|
7
|
-
import { resolveSelectedAgentPreset } from "./session-scope.js";
|
|
8
5
|
/** Connect the cold Host LLM owner to the existing exact Agent/role admission authority. */
|
|
9
6
|
export function createDsmmRoleLlmOwner(ctx, providers) {
|
|
10
7
|
const nativeFallback = async (frame, proposal) => {
|
|
@@ -32,20 +29,17 @@ export function createDsmmRoleLlmOwner(ctx, providers) {
|
|
|
32
29
|
if (original !== admission.admission)
|
|
33
30
|
throw new Error("LLM policy does not own the exact admission");
|
|
34
31
|
const policy = resolvedModelParameterPolicy(original);
|
|
35
|
-
const
|
|
36
|
-
const effortSource = latestNativeModelSelection(agent) !== undefined
|
|
37
|
-
|| frame.agent.session.header.origin !== "subagent" && !resolveSelectedAgentPreset(agent.session)?.startsWith("dsmm-")
|
|
38
|
-
? "native" : invocation?.effortSource ?? (invocation?.routeSource === "inherited" ? "native" : "dsmm-config");
|
|
32
|
+
const effortSource = captureDsmmEffortSource(frame.agent);
|
|
39
33
|
const config = snapshotDsmmCall(projectModelRouteParameters(modelRouteFromCall(proposal), effortSource, policy.mode !== "native-defaults"));
|
|
40
34
|
admission.assertCurrent();
|
|
41
35
|
if (policy.mode !== "passthrough") {
|
|
42
|
-
return { kind: "stock", admission, config };
|
|
36
|
+
return { kind: "stock", admission, config, effortSource };
|
|
43
37
|
}
|
|
44
38
|
if (!requiresDsmmCallAdmission(config, providers)) {
|
|
45
39
|
try {
|
|
46
40
|
await ctx.get("llm").resolveCallConfig(config, frame.signal);
|
|
47
41
|
admission.assertCurrent();
|
|
48
|
-
return { kind: "stock", admission, config };
|
|
42
|
+
return { kind: "stock", admission, config, effortSource };
|
|
49
43
|
}
|
|
50
44
|
catch (error) {
|
|
51
45
|
if (!(error instanceof LlmError) || error.code !== "UNSUPPORTED_OPTION"
|
|
@@ -55,7 +49,7 @@ export function createDsmmRoleLlmOwner(ctx, providers) {
|
|
|
55
49
|
}
|
|
56
50
|
const generation = providers.generation(config.provider);
|
|
57
51
|
admission.assertCurrent();
|
|
58
|
-
return { kind: "dsmm", admission, config, generation };
|
|
52
|
+
return { kind: "dsmm", admission, config, generation, effortSource };
|
|
59
53
|
},
|
|
60
54
|
};
|
|
61
55
|
}
|
package/lib/role-policy.d.ts
CHANGED
|
@@ -3,8 +3,6 @@ import type { DshAgent, DshContext } from "./dsh-types.js";
|
|
|
3
3
|
export { allowedRoleChildren } from "./roles.js";
|
|
4
4
|
import type { DsmmRoleId } from "./roles.js";
|
|
5
5
|
import type { DsmmProfileAdmission, DsmmSettings, DsmmSettingsGetter } from "./settings.js";
|
|
6
|
-
import type { ChildAdmissionCompletion, ChildRoleAdmissionCandidate, ParentAdmissionTicket } from "./child-admission-contract.js";
|
|
7
|
-
import type { ChildAdmissionEvidence, PreparedChildAdmission } from "./child-capture.js";
|
|
8
6
|
import type { ResolvedRoleInvocation } from "./role-invocation.js";
|
|
9
7
|
import type { DeepworkModeController } from "./state.js";
|
|
10
8
|
export interface DsmmRoleIdentity {
|
|
@@ -16,74 +14,45 @@ export interface DsmmRoleIdentity {
|
|
|
16
14
|
readonly toolFilter?: ToolRestriction;
|
|
17
15
|
}
|
|
18
16
|
export declare const READONLY_ROLE_DENIED_TOOLS: readonly ["write", "edit", "bash", "pwsh"];
|
|
19
|
-
export declare function inheritToolFilter(parent?: ToolRestriction, requested?: ToolRestriction): ToolRestriction | undefined;
|
|
20
|
-
export declare function resolveAdmittedDsmmRole(agent: DshAgent, settings: DsmmSettings, active: boolean): DsmmRoleId | undefined;
|
|
21
17
|
export declare function roleToolName(role: DsmmRoleId): string;
|
|
22
18
|
export declare function roleFromToolName(name: string): DsmmRoleId | undefined;
|
|
23
19
|
export declare function readonlyRoleTool(name: string, settings: DsmmSettings): boolean;
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
epoch: string;
|
|
28
|
-
toolFilter?: ToolRestriction;
|
|
29
|
-
maxDepth?: number;
|
|
30
|
-
admittedChild?(agent: DshAgent): void;
|
|
31
|
-
}
|
|
32
|
-
export interface RoleAdmissionCollaborators {
|
|
33
|
-
resolveOriginalEvidence(ticket: ParentAdmissionTicket, childId: string, signal: AbortSignal): Promise<ChildAdmissionEvidence>;
|
|
34
|
-
nativeSubstrate: DsmmSettings;
|
|
35
|
-
revokeParent(agent: DshAgent, reason: string): void;
|
|
36
|
-
}
|
|
37
|
-
/** Identity admission only: native services retain every run, inbox and retry lifecycle. */
|
|
20
|
+
export declare function inheritToolFilter(parent?: ToolRestriction, requested?: ToolRestriction): ToolRestriction | undefined;
|
|
21
|
+
export declare function resolveAdmittedDsmmRole(agent: DshAgent, settings: DsmmSettings, active: boolean): DsmmRoleId | undefined;
|
|
22
|
+
/** Role and exact-call restrictions; no child creation or execution owner. */
|
|
38
23
|
export declare class DsmmRolePolicy {
|
|
39
24
|
private readonly ctx;
|
|
40
25
|
private readonly getSettings;
|
|
41
26
|
private readonly mode;
|
|
42
|
-
private readonly calls;
|
|
43
27
|
private readonly executions;
|
|
44
28
|
private readonly toolCalls;
|
|
45
|
-
private readonly providers;
|
|
46
|
-
private readonly continuableCreations;
|
|
47
|
-
private readonly preparedInvocations;
|
|
48
|
-
private readonly preparedCaptures;
|
|
49
|
-
private collaborators?;
|
|
50
29
|
constructor(ctx: DshContext, getSettings: DsmmSettingsGetter, mode: DeepworkModeController);
|
|
51
|
-
captureProvider(provider: object): void;
|
|
52
|
-
ownsProvider(provider: object): boolean;
|
|
53
|
-
revokeResidency(agent: DshAgent): void;
|
|
54
|
-
configureAdmission(collaborators: RoleAdmissionCollaborators): ChildAdmissionCompletion;
|
|
55
|
-
validateRootRole(agent: DshAgent, admission: DsmmProfileAdmission): void;
|
|
56
|
-
recordContinuableCreation(childId: string, parent: DshAgent, role: DsmmRoleId, invocation: ResolvedRoleInvocation | undefined, expectedEpoch: string, signal: AbortSignal): void;
|
|
57
|
-
prepareChildAdmission(agent: DshAgent, parent: DshAgent, ticket: ParentAdmissionTicket, signal: AbortSignal): Promise<PreparedChildAdmission>;
|
|
58
|
-
/** Used at A's single awaited completion point; old original epochs remain valid facts. */
|
|
59
|
-
validatePreparedRole(agent: DshAgent, parent: DshAgent, candidate: ChildRoleAdmissionCandidate): void;
|
|
60
|
-
assertChildDelivery(ticket: ParentAdmissionTicket, childId: string, raw: ChildAdmissionEvidence): void;
|
|
61
|
-
assertChildExecution(ticket: ParentAdmissionTicket, childId: string, raw: ChildAdmissionEvidence): void;
|
|
62
|
-
private readOnly;
|
|
63
30
|
private agents;
|
|
64
31
|
assertLive(agent: DshAgent): void;
|
|
65
|
-
private
|
|
66
|
-
|
|
67
|
-
|
|
32
|
+
private selected;
|
|
33
|
+
validateRootRole(agent: DshAgent, admission: DsmmProfileAdmission): void;
|
|
34
|
+
bindChild(agent: DshAgent, parent: DshAgent, admission: DsmmProfileAdmission, invocation: ResolvedRoleInvocation, maximum: number | undefined, toolFilter: ToolRestriction): void;
|
|
35
|
+
release(agent: DshAgent): void;
|
|
68
36
|
assertModuleAdmission(agent: DshAgent): void;
|
|
69
37
|
identity(agent: DshAgent): DsmmRoleIdentity;
|
|
70
|
-
targets(agent: DshAgent): readonly DsmmRoleId[];
|
|
71
|
-
assertDelegation(parent: DshAgent, role: DsmmRoleId): DelegationIdentity;
|
|
72
|
-
duringDelegation<T>(parent: DshAgent, role: DsmmRoleId, operation: () => T, toolFilter?: ToolRestriction, maxDepth?: number, admittedChild?: (agent: DshAgent) => void): T;
|
|
73
|
-
prepareContinuable(parent: DshAgent, role: DsmmRoleId, signal: AbortSignal): DelegationIdentity;
|
|
74
38
|
admit(agent: DshAgent): DsmmRoleIdentity;
|
|
75
|
-
private
|
|
76
|
-
|
|
77
|
-
|
|
39
|
+
private readOnly;
|
|
40
|
+
targets(agent: DshAgent): readonly DsmmRoleId[];
|
|
41
|
+
assertDelegation(parent: DshAgent, role: DsmmRoleId): {
|
|
42
|
+
parent: DshAgent;
|
|
43
|
+
role: "dsmm-orchestrator" | "dsmm-planner" | "dsmm-plan-critic" | "dsmm-builder" | "dsmm-reviewer" | "dsmm-oracle" | "dsmm-oracle-2nd" | "dsmm-creative" | "dsmm-code-search" | "dsmm-doc-search" | "dsmm-clarifier" | "dsmm-media-reader" | "dsmm-frontend" | "dsmm-hard-reasoning" | "dsmm-research" | "dsmm-quick" | "dsmm-coding" | "dsmm-normal-task" | "dsmm-complex" | "dsmm-deep" | "dsmm-documenting" | "dsmm-cross-cutting";
|
|
44
|
+
epoch: string;
|
|
45
|
+
};
|
|
46
|
+
captureTools(agent: DshAgent, tools: ToolRuntime, names?: readonly string[], reset?: boolean): void;
|
|
78
47
|
toolBlacklistDenial(agent: DshAgent, name: string, execution?: Readonly<ToolExecution>): string | undefined;
|
|
79
|
-
|
|
80
|
-
|
|
48
|
+
captureToolExecution(execution: Readonly<ToolExecution>, _full: boolean): void;
|
|
49
|
+
/** Visible native names are a narrowing ceiling, never permission to execute a definition. */
|
|
50
|
+
private visibleToolCeiling;
|
|
51
|
+
delegationToolFilter(execution: Readonly<ToolExecution>): ToolRestriction;
|
|
81
52
|
assertToolExecution(execution: Readonly<ToolExecution>): void;
|
|
82
53
|
beforeToolDecision<T>(operation: () => T): T;
|
|
83
54
|
duringToolExecution<T>(execution: Readonly<ToolExecution>, operation: () => Promise<T>): Promise<T>;
|
|
84
55
|
toolDenial(agent: DshAgent, name: string, tools?: ToolRuntime, execution?: Readonly<ToolExecution>): string | undefined;
|
|
85
56
|
preToolDenial(agent: DshAgent, name: string, tools?: ToolRuntime, execution?: Readonly<ToolExecution>): string | undefined;
|
|
86
|
-
private permissionDenial;
|
|
87
|
-
installDrain(agent: DshAgent): void;
|
|
88
57
|
}
|
|
89
58
|
//# sourceMappingURL=role-policy.d.ts.map
|