dsh-openwrite 0.2.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/README.md +107 -0
- package/THIRD_PARTY_NOTICES.md +33 -0
- package/assets/logo-dark.svg +31 -0
- package/assets/logo-light.svg +31 -0
- package/cordis.patch.yml +11 -0
- package/docs/BENCHMARK_TASKS.md +54 -0
- package/docs/COST_MEASUREMENT.md +39 -0
- package/docs/DEVELOPMENT.md +65 -0
- package/docs/DSH_STORE.md +58 -0
- package/docs/FRAMEWORK_ADVANTAGES.md +288 -0
- package/docs/IMPROVEMENT_PLAN.md +252 -0
- package/docs/INSTALL.md +99 -0
- package/docs/LEARNING.md +68 -0
- package/docs/OPEN_SOURCE_NOVEL_AUDIT.md +191 -0
- package/docs/PLUGIN_MAINTENANCE.md +54 -0
- package/docs/PLUGIN_MAINTENANCE_RC7.md +157 -0
- package/docs/QA_20260908.md +103 -0
- package/docs/QA_20260909_BENCHMARK.md +24 -0
- package/docs/RELEASE_ACCEPTANCE.md +116 -0
- package/docs/REVIEW_DAG_FRAMEWORK.md +82 -0
- package/docs/TARGETED_NOVEL_PROJECT_REVIEW.md +167 -0
- package/docs/WORKFLOWS.md +74 -0
- package/docs/WORKSPACE_CONTEXT_CONTRACT.md +125 -0
- package/docs/WORKSPACE_INTEGRATION_GOAL.md +278 -0
- package/docs/research/autosave-race-repro.mjs +133 -0
- package/docs/research/framework-stats-2026-09-05.json +116 -0
- package/dog-tools.mjs +11 -0
- package/package.json +132 -0
- package/packages/openwrite-bridge/LICENSE +201 -0
- package/packages/openwrite-bridge/cordis.patch.yml +10 -0
- package/packages/openwrite-bridge/lib/client.d.ts +95 -0
- package/packages/openwrite-bridge/lib/client.js +193 -0
- package/packages/openwrite-bridge/lib/contracts-generated.d.ts +367 -0
- package/packages/openwrite-bridge/lib/contracts-generated.js +1764 -0
- package/packages/openwrite-bridge/lib/dog-delivery.d.ts +12 -0
- package/packages/openwrite-bridge/lib/dog-delivery.js +362 -0
- package/packages/openwrite-bridge/lib/dog-review.d.ts +50 -0
- package/packages/openwrite-bridge/lib/dog-review.js +470 -0
- package/packages/openwrite-bridge/lib/domain.d.ts +70 -0
- package/packages/openwrite-bridge/lib/domain.js +496 -0
- package/packages/openwrite-bridge/lib/index.d.ts +17 -0
- package/packages/openwrite-bridge/lib/index.js +89 -0
- package/packages/openwrite-bridge/lib/managed-runtime.d.ts +95 -0
- package/packages/openwrite-bridge/lib/managed-runtime.js +510 -0
- package/packages/openwrite-bridge/lib/preset-tools.d.ts +13 -0
- package/packages/openwrite-bridge/lib/preset-tools.js +18 -0
- package/packages/openwrite-bridge/lib/tool-policy.d.ts +6 -0
- package/packages/openwrite-bridge/lib/tool-policy.js +56 -0
- package/packages/openwrite-bridge/lib/tools.d.ts +24 -0
- package/packages/openwrite-bridge/lib/tools.js +2404 -0
- package/packages/openwrite-bridge/package.json +67 -0
- package/packages/studio-panel/LICENSE +21 -0
- package/packages/studio-panel/README.md +51 -0
- package/packages/studio-panel/cordis.patch.yml +5 -0
- package/packages/studio-panel/lib/client.js +158087 -0
- package/packages/studio-panel/lib/client.js.map +1 -0
- package/packages/studio-panel/lib/index.js +50 -0
- package/packages/studio-panel/lib/types/client/AssetEditor.d.ts +122 -0
- package/packages/studio-panel/lib/types/client/AssetsView.d.ts +43 -0
- package/packages/studio-panel/lib/types/client/BenchmarkView.d.ts +9 -0
- package/packages/studio-panel/lib/types/client/ContinuousReader.d.ts +13 -0
- package/packages/studio-panel/lib/types/client/CreationView.d.ts +6 -0
- package/packages/studio-panel/lib/types/client/DagCanvas.d.ts +11 -0
- package/packages/studio-panel/lib/types/client/DiscardDraftDialog.d.ts +8 -0
- package/packages/studio-panel/lib/types/client/DomainToolCard.d.ts +9 -0
- package/packages/studio-panel/lib/types/client/GraphView.d.ts +46 -0
- package/packages/studio-panel/lib/types/client/HeaderChrome.d.ts +18 -0
- package/packages/studio-panel/lib/types/client/LaunchOpenWrite.d.ts +13 -0
- package/packages/studio-panel/lib/types/client/LibraryView.d.ts +6 -0
- package/packages/studio-panel/lib/types/client/MarkdownText.d.ts +3 -0
- package/packages/studio-panel/lib/types/client/ModelView.d.ts +9 -0
- package/packages/studio-panel/lib/types/client/OperationsView.d.ts +6 -0
- package/packages/studio-panel/lib/types/client/OutlinePlans.d.ts +37 -0
- package/packages/studio-panel/lib/types/client/OutlineView.d.ts +29 -0
- package/packages/studio-panel/lib/types/client/ResearchView.d.ts +7 -0
- package/packages/studio-panel/lib/types/client/ReviewCard.d.ts +28 -0
- package/packages/studio-panel/lib/types/client/SceneWorkbench.d.ts +55 -0
- package/packages/studio-panel/lib/types/client/SearchView.d.ts +33 -0
- package/packages/studio-panel/lib/types/client/TasksView.d.ts +11 -0
- package/packages/studio-panel/lib/types/client/TransferWorkspaces.d.ts +19 -0
- package/packages/studio-panel/lib/types/client/TurnMutationSummary.d.ts +62 -0
- package/packages/studio-panel/lib/types/client/VditorBody.d.ts +55 -0
- package/packages/studio-panel/lib/types/client/WorkbenchStore.d.ts +121 -0
- package/packages/studio-panel/lib/types/client/api.d.ts +72 -0
- package/packages/studio-panel/lib/types/client/asset-drafts.d.ts +20 -0
- package/packages/studio-panel/lib/types/client/benchmark-options.d.ts +43 -0
- package/packages/studio-panel/lib/types/client/draft-store.d.ts +26 -0
- package/packages/studio-panel/lib/types/client/dto.d.ts +517 -0
- package/packages/studio-panel/lib/types/client/index.d.ts +4 -0
- package/packages/studio-panel/lib/types/client/locales.d.ts +15 -0
- package/packages/studio-panel/lib/types/client/manuscript-annotations.d.ts +59 -0
- package/packages/studio-panel/lib/types/client/manuscript-markers.d.ts +61 -0
- package/packages/studio-panel/lib/types/client/manuscript-mentions.d.ts +30 -0
- package/packages/studio-panel/lib/types/client/manuscript-overlay-dom.d.ts +7 -0
- package/packages/studio-panel/lib/types/client/manuscript-overlay.d.ts +42 -0
- package/packages/studio-panel/lib/types/client/manuscript-selection.d.ts +59 -0
- package/packages/studio-panel/lib/types/client/model-view-memory.d.ts +17 -0
- package/packages/studio-panel/lib/types/client/storage.d.ts +8 -0
- package/packages/studio-panel/lib/types/client/workbench-epochs.d.ts +16 -0
- package/packages/studio-panel/lib/types/client/workspace-context.d.ts +52 -0
- package/packages/studio-panel/lib/types/client/writing-scope.d.ts +7 -0
- package/packages/studio-panel/lib/types/index.d.ts +5 -0
- package/packages/studio-panel/package.json +105 -0
- package/packages/studio-panel/vendor/vditor/LICENSE +21 -0
- package/packages/studio-panel/vendor/vditor/dist/css/content-theme/dark.css +123 -0
- package/packages/studio-panel/vendor/vditor/dist/css/content-theme/light.css +101 -0
- package/packages/studio-panel/vendor/vditor/dist/index.css +1823 -0
- package/packages/studio-panel/vendor/vditor/dist/index.min.js +1 -0
- package/packages/studio-panel/vendor/vditor/dist/js/i18n/zh_CN.js +86 -0
- package/packages/studio-panel/vendor/vditor/dist/js/icons/ant.js +174 -0
- package/packages/studio-panel/vendor/vditor/dist/js/lute/lute.min.js +72 -0
- package/plugin.d.ts +3 -0
- package/plugin.mjs +80 -0
- package/presets/README.md +32 -0
- package/presets/openwrite/agent.cordis.yml +317 -0
- package/presets/openwrite/preset.yml +3 -0
- package/presets/openwrite/skills/canon/SKILL.md +15 -0
- package/presets/openwrite/skills/dialoguequality/SKILL.md +166 -0
- package/presets/openwrite/skills/dog-delivery-query/SKILL.md +40 -0
- package/presets/openwrite/skills/dog-import-query/SKILL.md +27 -0
- package/presets/openwrite/skills/dog-review-query/SKILL.md +40 -0
- package/presets/openwrite/skills/export-book/SKILL.md +14 -0
- package/presets/openwrite/skills/foreshadow/SKILL.md +14 -0
- package/presets/openwrite/skills/foreshadowing-system/SKILL.md +125 -0
- package/presets/openwrite/skills/learn/SKILL.md +24 -0
- package/presets/openwrite/skills/novel-creator/SKILL.md +88 -0
- package/presets/openwrite/skills/novel-creator/templates/beat_templates.yaml +179 -0
- package/presets/openwrite/skills/novel-creator/templates/example_usage.yaml +74 -0
- package/presets/openwrite/skills/novel-reviewer/SKILL.md +85 -0
- package/presets/openwrite/skills/oh-story-deslop/LICENSE +21 -0
- package/presets/openwrite/skills/oh-story-deslop/SKILL.md +36 -0
- package/presets/openwrite/skills/oh-story-deslop/agents/openai.yaml +4 -0
- package/presets/openwrite/skills/oh-story-deslop/references/method.md +22 -0
- package/presets/openwrite/skills/oh-story-long-analyze/LICENSE +21 -0
- package/presets/openwrite/skills/oh-story-long-analyze/SKILL.md +37 -0
- package/presets/openwrite/skills/oh-story-long-analyze/agents/openai.yaml +4 -0
- package/presets/openwrite/skills/oh-story-long-analyze/references/method.md +22 -0
- package/presets/openwrite/skills/oh-story-long-scan/LICENSE +21 -0
- package/presets/openwrite/skills/oh-story-long-scan/SKILL.md +36 -0
- package/presets/openwrite/skills/oh-story-long-scan/agents/openai.yaml +4 -0
- package/presets/openwrite/skills/oh-story-long-scan/references/method.md +21 -0
- package/presets/openwrite/skills/oh-story-long-write/LICENSE +21 -0
- package/presets/openwrite/skills/oh-story-long-write/SKILL.md +37 -0
- package/presets/openwrite/skills/oh-story-long-write/agents/openai.yaml +4 -0
- package/presets/openwrite/skills/oh-story-long-write/references/method.md +33 -0
- package/presets/openwrite/skills/oh-story-review/LICENSE +21 -0
- package/presets/openwrite/skills/oh-story-review/SKILL.md +36 -0
- package/presets/openwrite/skills/oh-story-review/agents/openai.yaml +4 -0
- package/presets/openwrite/skills/oh-story-review/references/method.md +25 -0
- package/presets/openwrite/skills/progress/SKILL.md +16 -0
- package/presets/openwrite/skills/review-chapter/SKILL.md +17 -0
- package/presets/openwrite/skills/revise-span/SKILL.md +16 -0
- package/presets/openwrite/skills/style-system/SKILL.md +135 -0
- package/presets/openwrite/skills/style-system/prompts/analyze_style.md +214 -0
- package/presets/openwrite/skills/style-system/prompts/batch_extract_style.md +66 -0
- package/presets/openwrite/skills/style-system/prompts/compose_style.md +83 -0
- package/presets/openwrite/skills/style-system/prompts/extract_style.md +84 -0
- package/presets/openwrite/skills/style-system/prompts/initialize_style.md +52 -0
- package/presets/openwrite/skills/style-system/templates/analysis_report.yaml +78 -0
- package/presets/openwrite/skills/style-system/templates/composed_style.md +96 -0
- package/presets/openwrite/skills/style-system/templates/extraction_report.yaml +80 -0
- package/presets/openwrite/skills/style-system/templates/fingerprint.yaml +61 -0
- package/presets/openwrite/skills/style-system/tools/README.md +33 -0
- package/presets/openwrite/skills/truth-validation/SKILL.md +119 -0
- package/presets/openwrite/skills/workflow-manager/SKILL.md +81 -0
- package/presets/openwrite/skills/world-query/SKILL.md +45 -0
- package/presets/openwrite/skills/write-next/SKILL.md +17 -0
- package/release/core-requirements.in +12 -0
- package/release/licenses/@deepseek-ai__cosmokit@1.8.3/LICENSE +21 -0
- package/release/licenses/@deepseek-ai__schemastery@3.18.2/LICENSE +21 -0
- package/release/licenses/@isaacs__fs-minipass@4.0.1/LICENSE +15 -0
- package/release/licenses/@standard-schema__spec@1.1.0/LICENSE +21 -0
- package/release/licenses/@types__d3-color@3.1.3/LICENSE +21 -0
- package/release/licenses/@types__d3-drag@3.0.7/LICENSE +21 -0
- package/release/licenses/@types__d3-interpolate@3.0.4/LICENSE +21 -0
- package/release/licenses/@types__d3-selection@3.0.11/LICENSE +21 -0
- package/release/licenses/@types__d3-transition@3.0.9/LICENSE +21 -0
- package/release/licenses/@types__d3-zoom@3.0.8/LICENSE +21 -0
- package/release/licenses/@xyflow__react@12.11.6/LICENSE +21 -0
- package/release/licenses/@xyflow__system@0.0.82/LICENSE +21 -0
- package/release/licenses/ajv-formats@3.0.1/LICENSE +21 -0
- package/release/licenses/ajv@8.20.0/LICENSE +22 -0
- package/release/licenses/chownr@3.0.0/LICENSE.md +63 -0
- package/release/licenses/classcat@5.0.5/LICENSE.md +7 -0
- package/release/licenses/commander@7.2.0/LICENSE +22 -0
- package/release/licenses/d3-array@3.2.4/LICENSE +13 -0
- package/release/licenses/d3-axis@3.0.0/LICENSE +13 -0
- package/release/licenses/d3-brush@3.0.0/LICENSE +13 -0
- package/release/licenses/d3-chord@3.0.1/LICENSE +13 -0
- package/release/licenses/d3-color@3.1.0/LICENSE +13 -0
- package/release/licenses/d3-contour@4.0.2/LICENSE +13 -0
- package/release/licenses/d3-delaunay@6.0.4/LICENSE +14 -0
- package/release/licenses/d3-dispatch@3.0.1/LICENSE +13 -0
- package/release/licenses/d3-drag@3.0.0/LICENSE +13 -0
- package/release/licenses/d3-dsv@3.0.1/LICENSE +13 -0
- package/release/licenses/d3-ease@3.0.1/LICENSE +28 -0
- package/release/licenses/d3-fetch@3.0.1/LICENSE +13 -0
- package/release/licenses/d3-force@3.0.0/LICENSE +13 -0
- package/release/licenses/d3-format@3.1.2/LICENSE +13 -0
- package/release/licenses/d3-geo@3.1.1/LICENSE +34 -0
- package/release/licenses/d3-hierarchy@3.1.2/LICENSE +13 -0
- package/release/licenses/d3-interpolate@3.0.1/LICENSE +13 -0
- package/release/licenses/d3-path@3.1.0/LICENSE +13 -0
- package/release/licenses/d3-polygon@3.0.1/LICENSE +13 -0
- package/release/licenses/d3-quadtree@3.0.1/LICENSE +13 -0
- package/release/licenses/d3-random@3.0.1/LICENSE +13 -0
- package/release/licenses/d3-scale-chromatic@3.1.0/LICENSE +28 -0
- package/release/licenses/d3-scale@4.0.2/LICENSE +13 -0
- package/release/licenses/d3-selection@3.0.0/LICENSE +13 -0
- package/release/licenses/d3-shape@3.2.0/LICENSE +13 -0
- package/release/licenses/d3-time-format@4.1.0/LICENSE +13 -0
- package/release/licenses/d3-time@3.1.0/LICENSE +13 -0
- package/release/licenses/d3-timer@3.0.1/LICENSE +13 -0
- package/release/licenses/d3-transition@3.0.1/LICENSE +13 -0
- package/release/licenses/d3-zoom@3.0.0/LICENSE +13 -0
- package/release/licenses/d3@7.9.0/LICENSE +13 -0
- package/release/licenses/delaunator@5.1.0/LICENSE +15 -0
- package/release/licenses/elkjs@0.12.0/LICENSE.md +263 -0
- package/release/licenses/fast-deep-equal@3.1.3/LICENSE +21 -0
- package/release/licenses/fast-uri@3.1.7/LICENSE +30 -0
- package/release/licenses/fflate@0.8.2/LICENSE +21 -0
- package/release/licenses/graceful-fs@4.2.11/LICENSE +15 -0
- package/release/licenses/iconv-lite@0.6.3/LICENSE +21 -0
- package/release/licenses/internmap@2.0.3/LICENSE +13 -0
- package/release/licenses/json-schema-traverse@1.0.0/LICENSE +21 -0
- package/release/licenses/lucide-react@0.468.0/LICENSE +15 -0
- package/release/licenses/minipass@7.1.3/LICENSE.md +55 -0
- package/release/licenses/minizlib@3.1.0/LICENSE +26 -0
- package/release/licenses/proper-lockfile@4.1.2/LICENSE +21 -0
- package/release/licenses/require-from-string@2.0.2/license +21 -0
- package/release/licenses/retry@0.12.0/License +21 -0
- package/release/licenses/robust-predicates@3.0.3/LICENSE +24 -0
- package/release/licenses/rw@1.3.3/LICENSE +26 -0
- package/release/licenses/safer-buffer@2.1.2/LICENSE +21 -0
- package/release/licenses/signal-exit@3.0.7/LICENSE.txt +16 -0
- package/release/licenses/tar@7.5.7/LICENSE.md +55 -0
- package/release/licenses/use-sync-external-store@1.6.0/LICENSE +21 -0
- package/release/licenses/yallist@5.0.0/LICENSE.md +63 -0
- package/release/licenses/zustand@4.5.7/LICENSE +21 -0
- package/release/openwrite-5.8.1-py3-none-any.whl +0 -0
- package/release/platform-overrides.in +5 -0
- package/release/python-constraints.in +96 -0
- package/release/requirements.lock +2927 -0
- package/release/runtime-manifest.json +98 -0
- package/release/sdk-compatibility.json +240 -0
- package/release/source.json +859 -0
- package/release/wheels/cryptography-50.0.1-cp312-abi3-macosx_13_0_x86_64.whl +0 -0
- package/release/wheels/licenses/LICENSE.txt +177 -0
- package/release/wheels/provenance.json +15 -0
- package/scripts/dog/delivery-stage.js +32 -0
- package/scripts/dog/import-chapter.js +20 -0
- package/scripts/dog/import-record.js +35 -0
- package/scripts/dog/review-dimension.js +41 -0
- package/scripts/dog/review-record.js +42 -0
- package/scripts/maintenance.mjs +179 -0
- package/scripts/prepare.mjs +21 -0
- package/vendor/dsh-dog/LICENSE +29 -0
- package/vendor/dsh-dog/README.md +114 -0
- package/vendor/dsh-dog/UPSTREAM.md +22 -0
- package/vendor/dsh-dog/cordis.patch.yml +14 -0
- package/vendor/dsh-dog/lib/client.js +2898 -0
- package/vendor/dsh-dog/lib/client.js.map +1 -0
- package/vendor/dsh-dog/lib/core-BiEBMLz3.d.ts +495 -0
- package/vendor/dsh-dog/lib/core-DdfMcrB4.js +2074 -0
- package/vendor/dsh-dog/lib/core.d.ts +2 -0
- package/vendor/dsh-dog/lib/core.js +2 -0
- package/vendor/dsh-dog/lib/index.d.ts +133 -0
- package/vendor/dsh-dog/lib/index.js +967 -0
- package/vendor/dsh-dog/package.json +97 -0
- package/vendor/dsh-dog/schemas/schema-0.2/graph.schema.json +139 -0
- package/vendor/dsh-dog/schemas/schema-0.2/report.schema.json +87 -0
- package/vendor/dsh-dog/schemas/schema-0.2/run.schema.json +259 -0
- package/vendor/dsh-dog/schemas/schema-0.2/runtime-event.schema.json +105 -0
- package/vendor/dsh-dog/schemas/schema-0.2/verification.schema.json +40 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { a as DogRunOptions, i as DogEngineOptions, n as DogBindAgentOptions, o as resolveScriptPath, r as DogEngine, t as DogAgentDelegationOptions } from "./core-BiEBMLz3.js";
|
|
2
|
+
export { DogAgentDelegationOptions, DogBindAgentOptions, DogEngine, DogEngineOptions, DogRunOptions, resolveScriptPath };
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
import { $ as VerifierShape, A as FailurePolicy, B as GoalRuntimeTrace, C as ConstraintKind, D as DogConfig, E as DependencyEdge, F as GoalNodeInput, G as JsonPrimitive, H as GoalState, I as GoalResult, J as NotExpr, K as JsonValue, L as GoalRuntimeError, M as GoalAgentSessionRef, N as GoalId, O as DogGraphInput, P as GoalKind, Q as VerificationRecord, R as GoalRuntimeEvent, S as CompiledGraph, T as DOG_SCHEMA_VERSION, U as GraphLimits, V as GoalRuntimeVerifier, W as GraphValidationReport, X as RootTerminalState, Y as RefExpr, Z as RunInvocationContext, _ as AtLeastExpr, b as CiGoalReport, c as AgenticRunner, d as runPlan, et as isJsonValue, f as DogRepository, g as AnyExpr, h as AllExpr, j as GoalAgentRole, k as DogRun, l as ProgrammaticRunner, m as AcceptancePlan, p as loadSchemaSet, q as JudgmentIdentity, r as DogEngine, s as WorkspaceManager, u as Verdict, v as BoolExpr, w as ContainsEdge, x as CiReport, y as CapturedInput, z as GoalRuntimePhase } from "./core-BiEBMLz3.js";
|
|
2
|
+
import z from "@deepseek-ai/schemastery";
|
|
3
|
+
import { ToolDefinition } from "@deepseek-ai/dsh-tools";
|
|
4
|
+
import { Agent } from "@deepseek-ai/dsh-agent";
|
|
5
|
+
import { Context } from "@deepseek-ai/cordis";
|
|
6
|
+
import { ConnectionRpcHandler } from "@deepseek-ai/dsh-client-connection";
|
|
7
|
+
import { SessionId } from "@deepseek-ai/dsh-session";
|
|
8
|
+
import { JobRegistry } from "@deepseek-ai/dsh-jobs";
|
|
9
|
+
//#region src/debug-contract.d.ts
|
|
10
|
+
declare const DOG_DEBUG_RPC_CHANNEL = "/dog-rpc";
|
|
11
|
+
declare const DOG_DEBUG_SNAPSHOT_ENDPOINT = "snapshot";
|
|
12
|
+
declare const DOG_RUNTIME_TRACE_ENDPOINT = "goal-runtime";
|
|
13
|
+
/** One immutable graph revision and every run bound to that exact digest. */
|
|
14
|
+
interface DogDebugGraphRevision {
|
|
15
|
+
readonly graph: CompiledGraph;
|
|
16
|
+
readonly current: boolean;
|
|
17
|
+
readonly runs: readonly DogRun[];
|
|
18
|
+
}
|
|
19
|
+
/** Complete, point-in-time view exposed to the debugger. */
|
|
20
|
+
interface DogDebugSnapshot {
|
|
21
|
+
readonly schemaVersion: '0.1';
|
|
22
|
+
readonly generatedAt: string;
|
|
23
|
+
readonly graphs: readonly DogDebugGraphRevision[];
|
|
24
|
+
}
|
|
25
|
+
//#endregion
|
|
26
|
+
//#region src/debug.d.ts
|
|
27
|
+
/** Build a digest-safe view: an old run is never shown against a newer graph revision. */
|
|
28
|
+
declare function buildDogDebugSnapshot(repository: DogRepository, now?: () => Date): Promise<DogDebugSnapshot>;
|
|
29
|
+
/** Build one bounded node trace without loading any DSH transcript or artifact bytes. */
|
|
30
|
+
declare function buildGoalRuntimeTrace(repository: DogRepository, runId: string, goalId: string): Promise<GoalRuntimeTrace>;
|
|
31
|
+
/** Register this handler on the trusted-host Connection channel, never as an unauthenticated raw HTTP route. */
|
|
32
|
+
declare function createDogDebugRpcHandler(repository: DogRepository): ConnectionRpcHandler;
|
|
33
|
+
//#endregion
|
|
34
|
+
//#region src/graph.d.ts
|
|
35
|
+
/** Structured validation failure at the model-to-core boundary. */
|
|
36
|
+
declare class DogValidationError extends Error {
|
|
37
|
+
readonly errors: readonly string[];
|
|
38
|
+
constructor(errors: readonly string[]);
|
|
39
|
+
}
|
|
40
|
+
/** Parse an untrusted graph value into a normalized, acyclic DoG graph. */
|
|
41
|
+
declare function parseGraph(value: unknown, limits: GraphLimits): DogGraphInput;
|
|
42
|
+
//#endregion
|
|
43
|
+
//#region src/logic.d.ts
|
|
44
|
+
type TruthValue = true | false | 'unknown';
|
|
45
|
+
interface ExpressionLimits {
|
|
46
|
+
readonly maxNodes: number;
|
|
47
|
+
readonly maxDepth: number;
|
|
48
|
+
}
|
|
49
|
+
interface ParsedExpression {
|
|
50
|
+
readonly expression?: BoolExpr;
|
|
51
|
+
readonly errors: readonly string[];
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Parse and type-check the only expression language accepted by DoG.
|
|
55
|
+
* @param value - untrusted JSON value from a graph draft.
|
|
56
|
+
* @param allowedRefs - child IDs that the enclosing composite may reference.
|
|
57
|
+
* @param limits - expression size limits.
|
|
58
|
+
* @returns a typed AST or validation errors; never evaluates source text.
|
|
59
|
+
*/
|
|
60
|
+
declare function parseBoolExpr(value: unknown, allowedRefs: ReadonlySet<string>, limits: ExpressionLimits): ParsedExpression;
|
|
61
|
+
/**
|
|
62
|
+
* Evaluate a typed AST against settled child truth values.
|
|
63
|
+
* @param expression - validated DoG Boolean AST.
|
|
64
|
+
* @param values - child success values; missing values are unresolved.
|
|
65
|
+
* @returns three-valued result so pending work cannot be mistaken for failure.
|
|
66
|
+
*/
|
|
67
|
+
declare function evaluateBoolExpr(expression: BoolExpr, values: ReadonlyMap<string, boolean | undefined>): TruthValue;
|
|
68
|
+
//#endregion
|
|
69
|
+
//#region src/tools.d.ts
|
|
70
|
+
declare module '@deepseek-ai/dsh-jobs' {
|
|
71
|
+
interface JobKindMap {
|
|
72
|
+
dog: 'dog';
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
interface DogAgentLauncher {
|
|
76
|
+
launch(input: {
|
|
77
|
+
readonly label: string;
|
|
78
|
+
readonly prompt: string;
|
|
79
|
+
readonly parent: Agent;
|
|
80
|
+
readonly signal: AbortSignal;
|
|
81
|
+
}): Promise<{
|
|
82
|
+
readonly sessionId: SessionId;
|
|
83
|
+
}>;
|
|
84
|
+
interrupt?(sessionId: SessionId, parent: Agent): void | Promise<void>;
|
|
85
|
+
}
|
|
86
|
+
declare const DOG_VALIDATE_TOOL = "dog_validate";
|
|
87
|
+
declare const DOG_CREATE_TOOL = "dog_create";
|
|
88
|
+
declare const DOG_RUN_TOOL = "dog_run";
|
|
89
|
+
declare const DOG_BIND_AGENT_TOOL = "dog_bind_agent";
|
|
90
|
+
declare const DOG_DELEGATE_AGENT_TOOL = "dog_delegate_agent";
|
|
91
|
+
declare const DOG_STATUS_TOOL = "dog_status";
|
|
92
|
+
declare const DOG_WAIT_TOOL = "dog_wait";
|
|
93
|
+
/** Build the complete DoG v0.1 tool surface around one engine instance. */
|
|
94
|
+
declare function createDogTools(engine: () => DogEngine, hostJobs?: () => JobRegistry | undefined): readonly ToolDefinition[];
|
|
95
|
+
/** Build the DoG-aware continuable Agent launcher once the host subagent service is available. */
|
|
96
|
+
declare function createDogDelegateAgentTool(engine: () => DogEngine, launcher: DogAgentLauncher): ToolDefinition;
|
|
97
|
+
//#endregion
|
|
98
|
+
//#region src/index.d.ts
|
|
99
|
+
/** Cordis plugin name. */
|
|
100
|
+
declare const name = "dsh-dog";
|
|
101
|
+
/** Required Harness services. */
|
|
102
|
+
declare const inject: string[];
|
|
103
|
+
declare module '@deepseek-ai/cordis' {
|
|
104
|
+
interface Context {
|
|
105
|
+
openwriteDog: {
|
|
106
|
+
tools: ToolDefinition[];
|
|
107
|
+
};
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
/** Host-owned deployment configuration. */
|
|
111
|
+
interface Config {
|
|
112
|
+
storageDirectory: string;
|
|
113
|
+
/** Verifier workspace root (WorkspaceManager.baseDir): verifiers only read files inside this tree. */
|
|
114
|
+
workspaceRoot: string;
|
|
115
|
+
/** Host-registered programmatic script library (relative to DSH_HOME, or absolute). */
|
|
116
|
+
scriptsDirectory: string;
|
|
117
|
+
maxGraphNodes: number;
|
|
118
|
+
maxExpressionNodes: number;
|
|
119
|
+
maxExpressionDepth: number;
|
|
120
|
+
maxSandboxBytes: number;
|
|
121
|
+
allowPartialRoot: boolean;
|
|
122
|
+
maxConcurrentVerifications: number;
|
|
123
|
+
revalidateThreshold: number;
|
|
124
|
+
gmDigestAlgo: string;
|
|
125
|
+
subagentProvider: string;
|
|
126
|
+
subagentMaxDepth: number;
|
|
127
|
+
}
|
|
128
|
+
/** Loader-validated DoG deployment configuration. */
|
|
129
|
+
declare const Config: z<Config>;
|
|
130
|
+
/** Register all DoG tools as Cordis-owned effects so fiber disposal removes them. */
|
|
131
|
+
declare function apply(ctx: Context, config: Config): Promise<void>;
|
|
132
|
+
//#endregion
|
|
133
|
+
export { type AcceptancePlan, type AgenticRunner, type AllExpr, type AnyExpr, type AtLeastExpr, type BoolExpr, type CapturedInput, type CiGoalReport, type CiReport, type CompiledGraph, Config, type ConstraintKind, type ContainsEdge, DOG_BIND_AGENT_TOOL, DOG_CREATE_TOOL, DOG_DEBUG_RPC_CHANNEL, DOG_DEBUG_SNAPSHOT_ENDPOINT, DOG_DELEGATE_AGENT_TOOL, DOG_RUNTIME_TRACE_ENDPOINT, DOG_RUN_TOOL, type DOG_SCHEMA_VERSION, DOG_STATUS_TOOL, DOG_VALIDATE_TOOL, DOG_WAIT_TOOL, type DependencyEdge, type DogConfig, type DogDebugGraphRevision, type DogDebugSnapshot, DogEngine, type DogGraphInput, type DogRun, DogValidationError, type FailurePolicy, type GoalAgentRole, type GoalAgentSessionRef, type GoalId, type GoalKind, type GoalNodeInput, type GoalResult, type GoalRuntimeError, type GoalRuntimeEvent, type GoalRuntimePhase, type GoalRuntimeTrace, type GoalRuntimeVerifier, type GoalState, type GraphLimits, type GraphValidationReport, type JsonPrimitive, type JsonValue, type JudgmentIdentity, type NotExpr, type ProgrammaticRunner, type RefExpr, type RootTerminalState, type RunInvocationContext, type Verdict, type VerificationRecord, type VerifierShape, WorkspaceManager, apply, buildDogDebugSnapshot, buildGoalRuntimeTrace, createDogDebugRpcHandler, createDogDelegateAgentTool, createDogTools, evaluateBoolExpr, inject, type isJsonValue, loadSchemaSet, name, parseBoolExpr, parseGraph, runPlan };
|