@doxbrix/doxloop 0.1.5 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1145 -0
- package/README.md +422 -227
- package/assets/doxbrix-preview.css +77 -15
- package/contracts/agent-events-v1.schema.json +1 -0
- package/contracts/coverage-v1.schema.json +59 -0
- package/contracts/drift-v1.schema.json +1 -0
- package/contracts/evaluation-v1.schema.json +62 -0
- package/contracts/quality-codes-v1.json +1 -0
- package/contracts/quality-report-v1.schema.json +1 -0
- package/contracts/validation-v1.schema.json +1 -0
- package/dist/agent-failure.d.ts +36 -0
- package/dist/agent-failure.js +98 -0
- package/dist/agent-isolation.d.ts +17 -0
- package/dist/agent-isolation.js +94 -0
- package/dist/agent-log.d.ts +197 -0
- package/dist/agent-log.js +1094 -0
- package/dist/agent-process.d.ts +63 -0
- package/dist/agent-process.js +128 -0
- package/dist/agent-reply.d.ts +47 -0
- package/dist/agent-reply.js +315 -0
- package/dist/agents.d.ts +24 -5
- package/dist/agents.js +60 -9
- package/dist/api-coverage.d.ts +11 -0
- package/dist/api-coverage.js +72 -0
- package/dist/application-probe.d.ts +28 -0
- package/dist/application-probe.js +93 -0
- package/dist/application-url.d.ts +14 -0
- package/dist/application-url.js +26 -0
- package/dist/args.js +15 -0
- package/dist/artifact-deploy.d.ts +9 -0
- package/dist/artifact-deploy.js +28 -8
- package/dist/assets.d.ts +72 -0
- package/dist/assets.js +382 -0
- package/dist/auth.d.ts +10 -0
- package/dist/auth.js +38 -9
- package/dist/author.d.ts +206 -4
- package/dist/author.js +1650 -52
- package/dist/authoring-batches.d.ts +190 -0
- package/dist/authoring-batches.js +489 -0
- package/dist/authoring-postpass.d.ts +79 -0
- package/dist/authoring-postpass.js +1289 -0
- package/dist/authoring-progress.d.ts +95 -0
- package/dist/authoring-progress.js +269 -0
- package/dist/autosync.d.ts +56 -0
- package/dist/autosync.js +442 -0
- package/dist/batch-artifacts.d.ts +81 -0
- package/dist/batch-artifacts.js +412 -0
- package/dist/batch-limits.d.ts +37 -0
- package/dist/batch-limits.js +80 -0
- package/dist/branding.d.ts +41 -0
- package/dist/branding.js +229 -0
- package/dist/bundle-upload.d.ts +26 -0
- package/dist/bundle-upload.js +99 -0
- package/dist/capture-auth.d.ts +95 -0
- package/dist/capture-auth.js +204 -0
- package/dist/capture.d.ts +48 -0
- package/dist/capture.js +20 -1
- package/dist/cli.js +839 -32
- package/dist/content-links.d.ts +10 -0
- package/dist/content-links.js +49 -0
- package/dist/contract-validation.d.ts +4 -0
- package/dist/contract-validation.js +25 -0
- package/dist/coverage-actions.d.ts +8 -0
- package/dist/coverage-actions.js +71 -0
- package/dist/coverage-resolutions.d.ts +16 -0
- package/dist/coverage-resolutions.js +58 -0
- package/dist/db.d.ts +37 -0
- package/dist/db.js +288 -0
- package/dist/demo.d.ts +12 -0
- package/dist/demo.js +122 -0
- package/dist/deploy-credentials.d.ts +7 -0
- package/dist/deploy-credentials.js +76 -0
- package/dist/deploy-targets/github-pages.d.ts +3 -0
- package/dist/deploy-targets/github-pages.js +100 -0
- package/dist/deploy-targets/index.d.ts +8 -0
- package/dist/deploy-targets/index.js +78 -0
- package/dist/deploy-targets/netlify.d.ts +3 -0
- package/dist/deploy-targets/netlify.js +49 -0
- package/dist/deploy-targets/types.d.ts +32 -0
- package/dist/deploy-targets/types.js +2 -0
- package/dist/deploy-targets/vercel.d.ts +3 -0
- package/dist/deploy-targets/vercel.js +95 -0
- package/dist/deploy.d.ts +9 -0
- package/dist/deploy.js +87 -13
- package/dist/deterministic-capture.d.ts +90 -0
- package/dist/deterministic-capture.js +435 -0
- package/dist/direct-edit.d.ts +40 -0
- package/dist/direct-edit.js +159 -0
- package/dist/docs-crawl.d.ts +86 -0
- package/dist/docs-crawl.js +536 -0
- package/dist/docs-site.d.ts +49 -0
- package/dist/docs-site.js +233 -0
- package/dist/doctor.js +8 -0
- package/dist/documentation-collections.d.ts +23 -0
- package/dist/documentation-collections.js +191 -0
- package/dist/documentation-plan.d.ts +253 -0
- package/dist/documentation-plan.js +2563 -0
- package/dist/doxbrix-build.d.ts +19 -0
- package/dist/doxbrix-build.js +167 -0
- package/dist/doxbrix-markdown.d.ts +9 -0
- package/dist/doxbrix-markdown.js +115 -14
- package/dist/drift.d.ts +10 -0
- package/dist/drift.js +164 -0
- package/dist/evaluation.d.ts +46 -0
- package/dist/evaluation.js +113 -0
- package/dist/evidence-pack.d.ts +47 -0
- package/dist/evidence-pack.js +358 -0
- package/dist/evidence.d.ts +25 -0
- package/dist/evidence.js +175 -0
- package/dist/fs.d.ts +8 -2
- package/dist/fs.js +41 -11
- package/dist/generator-api.d.ts +89 -0
- package/dist/generator-preflight.d.ts +27 -0
- package/dist/generator-preflight.js +105 -0
- package/dist/generator-runtime.d.ts +7 -0
- package/dist/generator-runtime.js +17 -1
- package/dist/generators.d.ts +24 -2
- package/dist/generators.js +54 -1
- package/dist/git-delivery.d.ts +17 -0
- package/dist/git-delivery.js +123 -0
- package/dist/globs.d.ts +16 -0
- package/dist/globs.js +65 -0
- package/dist/glossary.d.ts +26 -0
- package/dist/glossary.js +179 -0
- package/dist/history.d.ts +106 -0
- package/dist/history.js +600 -0
- package/dist/html-markdown.d.ts +46 -0
- package/dist/html-markdown.js +423 -0
- package/dist/interactive.js +3 -0
- package/dist/job-events.d.ts +74 -0
- package/dist/job-events.js +377 -0
- package/dist/keep-awake.d.ts +50 -0
- package/dist/keep-awake.js +123 -0
- package/dist/local-source-snapshot.d.ts +20 -0
- package/dist/local-source-snapshot.js +61 -0
- package/dist/mintlify-detect.d.ts +3 -0
- package/dist/mintlify-detect.js +18 -0
- package/dist/mintlify-import.d.ts +75 -0
- package/dist/mintlify-import.js +190 -0
- package/dist/navigation.d.ts +98 -0
- package/dist/navigation.js +310 -0
- package/dist/openapi.d.ts +60 -0
- package/dist/openapi.js +439 -0
- package/dist/page-editor-bridge.d.ts +3 -0
- package/dist/page-editor-bridge.js +109 -0
- package/dist/page-editor-preview.d.ts +10 -0
- package/dist/page-editor-preview.js +55 -0
- package/dist/page-extension.d.ts +9 -0
- package/dist/page-extension.js +15 -0
- package/dist/page-metadata.d.ts +28 -0
- package/dist/page-metadata.js +166 -0
- package/dist/page-operations.d.ts +34 -0
- package/dist/page-operations.js +215 -0
- package/dist/page-routes.d.ts +4 -0
- package/dist/page-routes.js +61 -0
- package/dist/pages.d.ts +20 -0
- package/dist/pages.js +184 -0
- package/dist/plan-generator.d.ts +3 -0
- package/dist/plan-generator.js +21 -0
- package/dist/plan-navigation.d.ts +11 -0
- package/dist/plan-navigation.js +30 -0
- package/dist/planning-captures.d.ts +20 -0
- package/dist/planning-captures.js +143 -0
- package/dist/planning-research.d.ts +135 -0
- package/dist/planning-research.js +472 -0
- package/dist/planning-triage.d.ts +23 -0
- package/dist/planning-triage.js +131 -0
- package/dist/preview.d.ts +24 -0
- package/dist/preview.js +280 -29
- package/dist/project-detect.d.ts +36 -0
- package/dist/project-detect.js +251 -0
- package/dist/project-import.d.ts +54 -0
- package/dist/project-import.js +157 -0
- package/dist/project-lock.d.ts +6 -0
- package/dist/project-lock.js +96 -0
- package/dist/project-registry.d.ts +25 -0
- package/dist/project-registry.js +79 -0
- package/dist/project.d.ts +35 -3
- package/dist/project.js +388 -38
- package/dist/prompts.d.ts +9 -0
- package/dist/prompts.js +25 -0
- package/dist/proposal-replay.d.ts +32 -0
- package/dist/proposal-replay.js +99 -0
- package/dist/quality-claims.d.ts +8 -0
- package/dist/quality-claims.js +168 -0
- package/dist/quality-config.d.ts +5 -0
- package/dist/quality-config.js +84 -0
- package/dist/quality-contract.d.ts +37 -0
- package/dist/quality-contract.js +46 -0
- package/dist/quality-examples.d.ts +4 -0
- package/dist/quality-examples.js +233 -0
- package/dist/quality-gates.d.ts +16 -0
- package/dist/quality-gates.js +192 -0
- package/dist/quality-links.d.ts +7 -0
- package/dist/quality-links.js +149 -0
- package/dist/quality-lint.d.ts +6 -0
- package/dist/quality-lint.js +124 -0
- package/dist/quality-rendered.d.ts +11 -0
- package/dist/quality-rendered.js +222 -0
- package/dist/quality-schema.d.ts +3 -0
- package/dist/quality-schema.js +71 -0
- package/dist/release-notes.d.ts +44 -0
- package/dist/release-notes.js +183 -0
- package/dist/remote-monitor.d.ts +16 -0
- package/dist/remote-monitor.js +74 -0
- package/dist/remote-source.d.ts +34 -0
- package/dist/remote-source.js +426 -0
- package/dist/review-diff.d.ts +82 -0
- package/dist/review-diff.js +400 -0
- package/dist/review-learning.d.ts +11 -0
- package/dist/review-learning.js +60 -0
- package/dist/review-render.d.ts +38 -0
- package/dist/review-render.js +224 -0
- package/dist/review-report.d.ts +9 -0
- package/dist/review-report.js +89 -0
- package/dist/review-ui.d.ts +14 -0
- package/dist/review-ui.js +1248 -0
- package/dist/schedule.d.ts +78 -0
- package/dist/schedule.js +480 -0
- package/dist/screen-capture-provider.d.ts +52 -0
- package/dist/screen-capture-provider.js +218 -0
- package/dist/screenshot-workflow.d.ts +167 -0
- package/dist/screenshot-workflow.js +1237 -0
- package/dist/settings.d.ts +1 -1
- package/dist/settings.js +95 -7
- package/dist/site-export.d.ts +18 -0
- package/dist/site-export.js +87 -0
- package/dist/source-connectors.d.ts +33 -0
- package/dist/source-connectors.js +268 -0
- package/dist/source-discovery.d.ts +132 -0
- package/dist/source-discovery.js +823 -0
- package/dist/source-intelligence.d.ts +9 -0
- package/dist/source-intelligence.js +306 -0
- package/dist/sync-review.d.ts +28 -0
- package/dist/sync-review.js +264 -0
- package/dist/sync-runs.d.ts +192 -0
- package/dist/sync-runs.js +2244 -0
- package/dist/sync.d.ts +35 -0
- package/dist/sync.js +298 -32
- package/dist/text-diff.d.ts +9 -0
- package/dist/text-diff.js +59 -0
- package/dist/types.d.ts +946 -1
- package/dist/ui/assets/doxloop-logo-light-De7Nx7j7.png +0 -0
- package/dist/ui/assets/index-BHBYU2aG.css +1 -0
- package/dist/ui/assets/index-Cq3RPQiC.js +33 -0
- package/dist/ui/index.html +18 -0
- package/dist/ui-server.d.ts +83 -0
- package/dist/ui-server.js +3532 -0
- package/dist/usage-budget.d.ts +28 -0
- package/dist/usage-budget.js +90 -0
- package/dist/validation.d.ts +25 -1
- package/dist/validation.js +312 -26
- package/dist/workspace-tools.d.ts +54 -0
- package/dist/workspace-tools.js +123 -0
- package/docs/agent-compatibility.md +49 -32
- package/docs/ci-and-automation.md +105 -66
- package/docs/doxbrix-http-api.md +8 -1
- package/docs/existing-documentation.md +80 -0
- package/docs/generation-performance.md +108 -0
- package/docs/generator-authoring.md +68 -5
- package/docs/generator-selection.md +50 -13
- package/docs/mintlify-import.md +71 -0
- package/docs/openapi-security.md +25 -0
- package/docs/project-format.md +331 -36
- package/docs/release-quality.md +158 -0
- package/docs/releasing.md +72 -0
- package/docs/review-workflows.md +51 -0
- package/docs/security-model.md +102 -39
- package/docs/troubleshooting.md +226 -93
- package/package.json +46 -15
- package/scripts/test-auto-screenshot.mjs +172 -0
- package/skills/doxloop-authoring/SKILL.md +242 -361
- package/skills/doxloop-authoring/references/existing-documentation.md +94 -0
- package/skills/doxloop-authoring/references/navigation-architecture.md +18 -7
- package/skills/doxloop-authoring/references/page-depth.md +169 -0
- package/skills/doxloop-authoring/references/project-format.md +106 -7
- package/skills/doxloop-authoring/references/quality.md +10 -0
- package/skills/doxloop-authoring/references/screenshot-manifest.md +113 -0
- package/skills/doxloop-authoring/references/screenshots.md +149 -235
- package/skills/doxloop-authoring/references/workflows.md +76 -0
- package/skills/doxloop-doxbrix/SKILL.md +38 -22
- package/skills/doxloop-doxbrix/references/api-endpoints.md +15 -14
- package/skills/doxloop-doxbrix/references/components.md +30 -3
- package/skills/doxloop-doxbrix/references/manifest.md +3 -2
- package/vendor/doxbrix-import/LICENSE +202 -0
- package/vendor/doxbrix-import/README.md +17 -0
- package/vendor/doxbrix-import/UPSTREAM.json +47 -0
- package/vendor/doxbrix-import/dist/docs/frontmatter.d.ts +13 -0
- package/vendor/doxbrix-import/dist/docs/frontmatter.js +83 -0
- package/vendor/doxbrix-import/dist/docs/import.d.ts +21 -0
- package/vendor/doxbrix-import/dist/docs/import.js +147 -0
- package/vendor/doxbrix-import/dist/docs/manifest.d.ts +163 -0
- package/vendor/doxbrix-import/dist/docs/manifest.js +64 -0
- package/vendor/doxbrix-import/dist/docs/project.d.ts +25 -0
- package/vendor/doxbrix-import/dist/docs/project.js +77 -0
- package/vendor/doxbrix-import/dist/docs/starter.d.ts +4 -0
- package/vendor/doxbrix-import/dist/docs/starter.js +11 -0
- package/vendor/doxbrix-import/dist/importer.d.ts +227 -0
- package/vendor/doxbrix-import/dist/importer.js +1567 -0
- package/vendor/doxbrix-import/dist/mintlify-openapi.d.ts +37 -0
- package/vendor/doxbrix-import/dist/mintlify-openapi.js +305 -0
- package/vendor/doxbrix-import/dist/safe-path.d.ts +9 -0
- package/vendor/doxbrix-import/dist/safe-path.js +47 -0
- package/dist/agents.d.ts.map +0 -1
- package/dist/agents.js.map +0 -1
- package/dist/args.d.ts.map +0 -1
- package/dist/args.js.map +0 -1
- package/dist/artifact-deploy.d.ts.map +0 -1
- package/dist/artifact-deploy.js.map +0 -1
- package/dist/auth.d.ts.map +0 -1
- package/dist/auth.js.map +0 -1
- package/dist/author.d.ts.map +0 -1
- package/dist/author.js.map +0 -1
- package/dist/capture.d.ts.map +0 -1
- package/dist/capture.js.map +0 -1
- package/dist/cli.d.ts.map +0 -1
- package/dist/cli.js.map +0 -1
- package/dist/deploy.d.ts.map +0 -1
- package/dist/deploy.js.map +0 -1
- package/dist/deployment-visibility.d.ts.map +0 -1
- package/dist/deployment-visibility.js.map +0 -1
- package/dist/doctor.d.ts.map +0 -1
- package/dist/doctor.js.map +0 -1
- package/dist/doxbrix-markdown.d.ts.map +0 -1
- package/dist/doxbrix-markdown.js.map +0 -1
- package/dist/errors.d.ts.map +0 -1
- package/dist/errors.js.map +0 -1
- package/dist/fs.d.ts.map +0 -1
- package/dist/fs.js.map +0 -1
- package/dist/generator-api.d.ts.map +0 -1
- package/dist/generator-api.js.map +0 -1
- package/dist/generator-manager.d.ts.map +0 -1
- package/dist/generator-manager.js.map +0 -1
- package/dist/generator-runtime.d.ts.map +0 -1
- package/dist/generator-runtime.js.map +0 -1
- package/dist/generators.d.ts.map +0 -1
- package/dist/generators.js.map +0 -1
- package/dist/interactive.d.ts.map +0 -1
- package/dist/interactive.js.map +0 -1
- package/dist/preview.d.ts.map +0 -1
- package/dist/preview.js.map +0 -1
- package/dist/progress.d.ts.map +0 -1
- package/dist/progress.js.map +0 -1
- package/dist/project.d.ts.map +0 -1
- package/dist/project.js.map +0 -1
- package/dist/prompts.d.ts.map +0 -1
- package/dist/prompts.js.map +0 -1
- package/dist/settings.d.ts.map +0 -1
- package/dist/settings.js.map +0 -1
- package/dist/sync.d.ts.map +0 -1
- package/dist/sync.js.map +0 -1
- package/dist/types.d.ts.map +0 -1
- package/dist/types.js.map +0 -1
- package/dist/validation.d.ts.map +0 -1
- package/dist/validation.js.map +0 -1
- package/dist/version.d.ts.map +0 -1
- package/dist/version.js.map +0 -1
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
import { runAuthor, type ClaudeEffortLevel, type ReasoningLevel, type ScreenshotIntent } from './author.js';
|
|
2
|
+
import type { ValidationIssue, AgentName, DocumentationPlan, DoxloopProject, DriftResult, SourceChange, SyncRun, SyncRunTrigger, SyncState } from './types.js';
|
|
3
|
+
export declare const SYNC_RUNS_DIRECTORY: string;
|
|
4
|
+
export interface CreateSyncRunOptions {
|
|
5
|
+
id?: string;
|
|
6
|
+
root: string;
|
|
7
|
+
project: DoxloopProject;
|
|
8
|
+
drift: DriftResult;
|
|
9
|
+
sourceChanges: SourceChange[];
|
|
10
|
+
/** Isolated evidence paths used only inside the proposal workspace. */
|
|
11
|
+
authoringSources?: DoxloopProject['sources'];
|
|
12
|
+
trigger?: SyncRunTrigger;
|
|
13
|
+
author?: typeof runAuthor;
|
|
14
|
+
/** Baseline to place in the proposal and apply only after approval. */
|
|
15
|
+
nextSyncState?: SyncState;
|
|
16
|
+
/** Approved plan that originated this proposal, when generation is plan-first. */
|
|
17
|
+
plan?: DocumentationPlan;
|
|
18
|
+
/** Existing proposal whose isolated workspace seeds a targeted revision. */
|
|
19
|
+
revisionOf?: string;
|
|
20
|
+
revisionRequest?: {
|
|
21
|
+
instruction: string;
|
|
22
|
+
changeIds: string[];
|
|
23
|
+
hunkIds?: string[];
|
|
24
|
+
};
|
|
25
|
+
editRequest?: SyncRun['editRequest'];
|
|
26
|
+
/** User-selected authoring controls for a manual workspace update. */
|
|
27
|
+
authoring?: {
|
|
28
|
+
mode?: 'create' | 'update';
|
|
29
|
+
/** The user-facing instruction saved in history when the agent prompt is generated internally. */
|
|
30
|
+
historyRequest?: string;
|
|
31
|
+
request?: string;
|
|
32
|
+
agent?: AgentName;
|
|
33
|
+
model?: string;
|
|
34
|
+
reasoning?: ReasoningLevel;
|
|
35
|
+
effort?: ClaudeEffortLevel;
|
|
36
|
+
screenshots?: ScreenshotIntent;
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
export interface AcceptSelection {
|
|
40
|
+
changeId: string;
|
|
41
|
+
hunkIds?: string[];
|
|
42
|
+
}
|
|
43
|
+
export interface AcceptOptions {
|
|
44
|
+
/**
|
|
45
|
+
* Apply changes flagged `changedDuringRun` even though they replace an
|
|
46
|
+
* edit made in the project while the agent ran.
|
|
47
|
+
*/
|
|
48
|
+
confirmChangedDuringRun?: boolean;
|
|
49
|
+
}
|
|
50
|
+
export interface ReviseSyncRunInput {
|
|
51
|
+
instruction: string;
|
|
52
|
+
changeIds: string[];
|
|
53
|
+
hunkIds?: string[];
|
|
54
|
+
author?: typeof runAuthor;
|
|
55
|
+
trigger?: SyncRunTrigger;
|
|
56
|
+
}
|
|
57
|
+
/** Generate and validate a proposal without changing the real documentation. */
|
|
58
|
+
export declare function createSyncRun(options: CreateSyncRunOptions): Promise<SyncRun>;
|
|
59
|
+
/** The inputs a proposal's agent run was started with, persisted beside the run. */
|
|
60
|
+
export interface RunAuthoringRecord {
|
|
61
|
+
schemaVersion: 1;
|
|
62
|
+
mode: 'create' | 'update';
|
|
63
|
+
trigger: SyncRunTrigger;
|
|
64
|
+
screenshots: ScreenshotIntent;
|
|
65
|
+
request?: string;
|
|
66
|
+
historyRequest?: string;
|
|
67
|
+
agent?: AgentName;
|
|
68
|
+
model?: string;
|
|
69
|
+
reasoning?: ReasoningLevel;
|
|
70
|
+
effort?: ClaudeEffortLevel;
|
|
71
|
+
timeoutMinutes?: number;
|
|
72
|
+
changeSummary?: string;
|
|
73
|
+
authoringSources?: DoxloopProject['sources'];
|
|
74
|
+
nextSyncState?: SyncState;
|
|
75
|
+
editRequest?: SyncRun['editRequest'];
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* Doxloop's deterministic repairs over a finished workspace: navigation and
|
|
79
|
+
* frontmatter, links to pages that exist, embeds of images that do not, and
|
|
80
|
+
* the generated starter pages the plan superseded. No agent session.
|
|
81
|
+
*/
|
|
82
|
+
export declare function repairWorkspaceBeforeReview(workspace: string, project: DoxloopProject, plan: DocumentationPlan, issues: ValidationIssue[]): Promise<string[]>;
|
|
83
|
+
export interface RecoverSyncRunOptions {
|
|
84
|
+
/**
|
|
85
|
+
* Accept the preserved output even though its screenshots do not satisfy
|
|
86
|
+
* the run's requirement. Each problem is recorded on the affected step and
|
|
87
|
+
* on the proposal so the reviewer can see exactly what was skipped.
|
|
88
|
+
*/
|
|
89
|
+
ignoreScreenshotProblems?: boolean;
|
|
90
|
+
/**
|
|
91
|
+
* Repair a finished proposal that validation errors keep from being
|
|
92
|
+
* applied: run Doxloop's deterministic post-pass over its workspace
|
|
93
|
+
* (navigation placement, broken links turned into plain text, evidence
|
|
94
|
+
* entries) and collect the proposal again. No agent session is started.
|
|
95
|
+
*/
|
|
96
|
+
repair?: boolean;
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* Re-run the post-agent finalization pipeline on a failed run's preserved
|
|
100
|
+
* workspace and promote it to review. This recovers completed agent work when
|
|
101
|
+
* the failure happened after authoring — for example a screenshot-manifest
|
|
102
|
+
* validation defect — without paying for another full agent run.
|
|
103
|
+
*/
|
|
104
|
+
export declare function recoverSyncRun(root: string, id: string, options?: RecoverSyncRunOptions): Promise<SyncRun>;
|
|
105
|
+
export interface ResumeSyncRunOptions {
|
|
106
|
+
author?: typeof runAuthor;
|
|
107
|
+
/**
|
|
108
|
+
* Instructions to continue with when the run predates the recorded
|
|
109
|
+
* authoring inputs. A plan-first run can rebuild them from its approved plan.
|
|
110
|
+
*/
|
|
111
|
+
fallbackAuthoring?: Omit<RunAuthoringRecord, 'schemaVersion'>;
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* Continue a failed or interrupted run's agent inside its preserved workspace.
|
|
115
|
+
*
|
|
116
|
+
* The agent is started with the same instructions as before plus a brief of
|
|
117
|
+
* what already exists — verified screenshots, finished guides, the reason the
|
|
118
|
+
* run stopped — so it completes only the unfinished part instead of writing
|
|
119
|
+
* every page and capturing every image again. The run keeps its id, so the
|
|
120
|
+
* plan that started it and its review history stay attached.
|
|
121
|
+
*/
|
|
122
|
+
export declare function resumeSyncRun(root: string, id: string, options?: ResumeSyncRunOptions): Promise<SyncRun>;
|
|
123
|
+
export declare function listSyncRuns(root: string): Promise<SyncRun[]>;
|
|
124
|
+
export declare function readSyncRun(root: string, id: string): Promise<SyncRun>;
|
|
125
|
+
export declare function rejectSyncRun(root: string, id: string): Promise<SyncRun>;
|
|
126
|
+
export declare function rejectSyncChanges(root: string, id: string, selections?: AcceptSelection[], reason?: string): Promise<SyncRun>;
|
|
127
|
+
export declare function reviseSyncRun(root: string, id: string, input: ReviseSyncRunInput): Promise<SyncRun>;
|
|
128
|
+
export declare function readSyncRunChangeContent(root: string, id: string, changeId: string): Promise<{
|
|
129
|
+
content: string;
|
|
130
|
+
path: string;
|
|
131
|
+
fingerprint: string;
|
|
132
|
+
evidenceDisposition: 'preserved' | 'needs-review';
|
|
133
|
+
}>;
|
|
134
|
+
export declare function editSyncRunChange(root: string, id: string, changeId: string, content: string, evidenceDisposition: 'preserved' | 'needs-review', fingerprint?: string): Promise<SyncRun>;
|
|
135
|
+
export declare function undoSyncRun(root: string, id: string): Promise<SyncRun>;
|
|
136
|
+
export declare function archiveSyncRun(root: string, id: string): Promise<SyncRun>;
|
|
137
|
+
export declare function pruneSyncRuns(root: string, now?: Date): Promise<string[]>;
|
|
138
|
+
export declare function acceptSyncChanges(root: string, id: string, selections: AcceptSelection[], options?: AcceptOptions): Promise<SyncRun>;
|
|
139
|
+
/** Project-relative paths of the proposal's changes that still have hunks neither accepted nor rejected. */
|
|
140
|
+
export declare function pendingProposalPaths(changes: Array<{
|
|
141
|
+
path: string;
|
|
142
|
+
hunks: Array<{
|
|
143
|
+
acceptedAt?: string;
|
|
144
|
+
rejectedAt?: string;
|
|
145
|
+
}>;
|
|
146
|
+
}>): Set<string>;
|
|
147
|
+
/**
|
|
148
|
+
* Whether a validation error is one the not-yet-accepted part of the same
|
|
149
|
+
* proposal takes care of: an error on a file the proposal still replaces,
|
|
150
|
+
* or a page missing from a navigation the proposal still updates. Such an
|
|
151
|
+
* error is real for the workspace as it stands and gone once the reviewer
|
|
152
|
+
* accepts the rest, so it must not block accepting one file at a time.
|
|
153
|
+
*/
|
|
154
|
+
export declare function resolvedByPendingChanges(issue: {
|
|
155
|
+
code: string;
|
|
156
|
+
file?: string;
|
|
157
|
+
message?: string;
|
|
158
|
+
}, pending: Set<string>): boolean;
|
|
159
|
+
export declare function formatSyncRunHistory(runs: SyncRun[]): string;
|
|
160
|
+
export declare function pendingRunCount(runs: SyncRun[]): number;
|
|
161
|
+
export declare function runWorkspace(root: string, id: string): string;
|
|
162
|
+
export declare function runBeforeRoot(root: string, id: string): string;
|
|
163
|
+
/**
|
|
164
|
+
* Where a file moved since the run started: only in the agent's workspace,
|
|
165
|
+
* only in the project, or in both. Hashes are enough — the live content is
|
|
166
|
+
* the "before" side either way, and a file the agent never touched is not a
|
|
167
|
+
* proposal change no matter what happened to it in the project.
|
|
168
|
+
*/
|
|
169
|
+
export declare function compareWithBaseline(baselineHash: string | undefined, live: Buffer | undefined, proposed: Buffer | undefined): 'agent-only' | 'project-only' | 'both';
|
|
170
|
+
export interface RevisionScope {
|
|
171
|
+
selectedPaths: Set<string>;
|
|
172
|
+
supportingPaths: Set<string>;
|
|
173
|
+
/** Related assets may be newly created below these page-slug prefixes. */
|
|
174
|
+
supportingPrefixes?: Set<string>;
|
|
175
|
+
/** Page-shaped files never qualify as related assets. */
|
|
176
|
+
pageExtensions?: Set<string>;
|
|
177
|
+
wholeProposal: boolean;
|
|
178
|
+
hunkRanges: Map<string, Array<{
|
|
179
|
+
start: number;
|
|
180
|
+
end: number;
|
|
181
|
+
}>>;
|
|
182
|
+
}
|
|
183
|
+
export declare function assertRevisionStayedInScope(workspace: string, baseline: Map<string, Buffer>, scope: RevisionScope, edit?: boolean): Promise<void>;
|
|
184
|
+
/**
|
|
185
|
+
* A run left at "generating" by a process that is gone (cancelled, killed, or
|
|
186
|
+
* the UI server restarted) is marked failed so Review offers Resume instead
|
|
187
|
+
* of showing it as still being written. Only runs created after `since`
|
|
188
|
+
* are touched, so an older interrupted run keeps whatever it recorded.
|
|
189
|
+
*/
|
|
190
|
+
export declare function markInterruptedSyncRuns(root: string, since: string, message: string): Promise<string[]>;
|
|
191
|
+
export declare function createRunId(): string;
|
|
192
|
+
//# sourceMappingURL=sync-runs.d.ts.map
|