@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
package/dist/author.d.ts
CHANGED
|
@@ -1,10 +1,31 @@
|
|
|
1
|
-
|
|
1
|
+
export { ClaudeStreamLogFormatter, CodexStreamLogFormatter, GeminiStreamLogFormatter } from './agent-log.js';
|
|
2
|
+
import { type CaptureAuthMode } from './capture-auth.js';
|
|
3
|
+
import { type ScreenCaptureProvider } from './screen-capture-provider.js';
|
|
4
|
+
import type { AgentName, AgentUsage, ApplicationConfig, DocumentationBrief, DocumentationPlan, DocumentationPlanPage, DoxloopProject, GeneratorName, SourceBinding } from './types.js';
|
|
2
5
|
export type AuthorMode = 'create' | 'update' | 'review';
|
|
3
6
|
export type ScreenshotIntent = 'auto' | 'enabled' | 'disabled';
|
|
4
7
|
export declare function resolveScreenshotIntent(enabled: boolean, disabled: boolean): ScreenshotIntent;
|
|
5
|
-
declare const REASONING_LEVELS: readonly ["minimal", "low", "medium", "high", "xhigh"];
|
|
8
|
+
declare const REASONING_LEVELS: readonly ["none", "minimal", "low", "medium", "high", "xhigh", "max"];
|
|
6
9
|
export type ReasoningLevel = (typeof REASONING_LEVELS)[number];
|
|
10
|
+
declare const CLAUDE_EFFORT_LEVELS: readonly ["low", "medium", "high", "xhigh", "max"];
|
|
11
|
+
export type ClaudeEffortLevel = (typeof CLAUDE_EFFORT_LEVELS)[number];
|
|
7
12
|
export declare function parseReasoning(value: string | undefined): ReasoningLevel | undefined;
|
|
13
|
+
/** A per-session reasoning level: Claude's effort names or Codex's reasoning names. */
|
|
14
|
+
export type SessionEffort = ReasoningLevel | ClaudeEffortLevel;
|
|
15
|
+
export declare function sessionEffortFromEnvironment(name: string, env?: NodeJS.ProcessEnv): SessionEffort | undefined;
|
|
16
|
+
/**
|
|
17
|
+
* The agent-specific reasoning options for one session. Claude takes the
|
|
18
|
+
* effort names; Codex takes the reasoning names, with Claude-only levels
|
|
19
|
+
* mapped to its nearest ("low" is common to both). Gemini has no switch.
|
|
20
|
+
*/
|
|
21
|
+
export declare function sessionEffortOptions(agent: string, effort: SessionEffort | undefined, run: {
|
|
22
|
+
reasoning?: ReasoningLevel;
|
|
23
|
+
effort?: ClaudeEffortLevel;
|
|
24
|
+
}): {
|
|
25
|
+
reasoning?: ReasoningLevel;
|
|
26
|
+
effort?: ClaudeEffortLevel;
|
|
27
|
+
};
|
|
28
|
+
export declare function parseClaudeEffort(value: string | undefined): ClaudeEffortLevel | undefined;
|
|
8
29
|
export declare function runAuthor(options: {
|
|
9
30
|
root: string;
|
|
10
31
|
mode: AuthorMode;
|
|
@@ -13,20 +34,201 @@ export declare function runAuthor(options: {
|
|
|
13
34
|
request?: string;
|
|
14
35
|
model?: string;
|
|
15
36
|
reasoning?: ReasoningLevel;
|
|
37
|
+
effort?: ClaudeEffortLevel;
|
|
16
38
|
screenshots?: ScreenshotIntent;
|
|
17
39
|
changeSummary?: string;
|
|
40
|
+
nonInteractive?: boolean;
|
|
41
|
+
timeoutMinutes?: number;
|
|
42
|
+
/** Claude turn cap for an unattended run; derived from the approved plan when omitted. */
|
|
43
|
+
maxTurns?: number;
|
|
44
|
+
/** Claude spending cap in US dollars for an unattended run. Codex and Gemini have no equivalent. */
|
|
45
|
+
maxBudgetUsd?: number;
|
|
46
|
+
/** Pages the run is expected to write, for the "N of M" stage counter. Read from the plan when omitted. */
|
|
47
|
+
plannedPages?: number;
|
|
48
|
+
/** Stage copy for the page-writing stage, such as "Editing selected pages". */
|
|
49
|
+
progressLabel?: string;
|
|
50
|
+
/**
|
|
51
|
+
* Proposal workspaces are throwaway copies of the project. They must not open
|
|
52
|
+
* a history database of their own; the real project records the run instead.
|
|
53
|
+
*/
|
|
54
|
+
recordHistory?: boolean;
|
|
55
|
+
/**
|
|
56
|
+
* Scoped page-edit workspaces must not rewrite source-sync metadata. That
|
|
57
|
+
* metadata is neither part of the requested page change nor an indication
|
|
58
|
+
* that product-source drift has been reconciled.
|
|
59
|
+
*/
|
|
60
|
+
recordOperationalState?: boolean;
|
|
61
|
+
/** Keep a proposal workspace reviewable so validation errors can be fixed
|
|
62
|
+
* with a follow-up instruction instead of discarding the agent's work. */
|
|
63
|
+
onFailure?: (detail: string) => void;
|
|
64
|
+
tolerateValidationErrors?: boolean;
|
|
65
|
+
/**
|
|
66
|
+
* Project whose saved sign-in material the capture browser should use.
|
|
67
|
+
* Proposal workspaces are throwaway copies under `.doxloop/runs`, and the
|
|
68
|
+
* material is keyed by project path, so a workspace root would find nothing.
|
|
69
|
+
*/
|
|
70
|
+
captureAuthRoot?: string;
|
|
71
|
+
/**
|
|
72
|
+
* Write the approved plan in short batches of fresh agent sessions, with
|
|
73
|
+
* Doxloop's repairs and validation between them, instead of one long
|
|
74
|
+
* session. Only unattended runs with a staged plan qualify.
|
|
75
|
+
*/
|
|
76
|
+
planBatches?: boolean;
|
|
77
|
+
/** Token usage summed over every agent session of the run. */
|
|
78
|
+
onUsage?: (usage: AgentUsage) => void;
|
|
18
79
|
}): Promise<number>;
|
|
80
|
+
/**
|
|
81
|
+
* A create plan often puts a starter page's replacement at a new path
|
|
82
|
+
* ("getting-started/quickstart" for the scaffold's "quickstart.mdx") with
|
|
83
|
+
* action "update". Read together with "update existing pages in place", that
|
|
84
|
+
* left the writer keeping the root file while every link pointed at the
|
|
85
|
+
* planned path, and the run failed on broken links twice in a row. Say which
|
|
86
|
+
* file each such page replaces and where it belongs, so nothing is left to
|
|
87
|
+
* interpretation. The site root's landing page is the one exception: a
|
|
88
|
+
* Doxbrix site needs its index, so that page is written where the index is.
|
|
89
|
+
*/
|
|
90
|
+
export declare function starterReplacements(root: string, plan: Pick<DocumentationPlan, 'pages'>, existing: readonly string[]): Promise<string>;
|
|
19
91
|
export declare function prepareAgentPrompt(root: string, prompt: string, platform?: NodeJS.Platform): Promise<{
|
|
20
92
|
argument: string;
|
|
21
93
|
path: string | undefined;
|
|
22
94
|
}>;
|
|
95
|
+
/**
|
|
96
|
+
* Turn caps for Claude in non-interactive runs. A planning run reads sources
|
|
97
|
+
* and inspects the application; an authoring run writes every approved page
|
|
98
|
+
* and captures every planned screenshot, so its cap scales with the plan. The
|
|
99
|
+
* previous fixed cap of 60 stopped a 44-page, 85-screenshot run while it was
|
|
100
|
+
* still exploring the application, before it had written a single page.
|
|
101
|
+
*/
|
|
102
|
+
export declare const PLANNING_MAX_TURNS = 100;
|
|
103
|
+
/** Tools a planning run must never use: planning proposes, it does not write or run anything. */
|
|
104
|
+
export declare const CLAUDE_PLANNING_DISALLOWED_TOOLS: readonly ["Bash", "Edit", "Write", "MultiEdit", "NotebookEdit"];
|
|
105
|
+
/** Environment for a spawned agent. Claude Code's own reply cap stays in force: a plan that needs more than it is not converging, and a longer cap only makes that failure slower. */
|
|
106
|
+
/**
|
|
107
|
+
* The environment an unattended agent runs in. `NODE_USE_SYSTEM_CA` makes
|
|
108
|
+
* every Node process read the macOS Keychain trust store at startup; inside
|
|
109
|
+
* the agent's sandbox that read is denied and Node dies with
|
|
110
|
+
* "SecItemCopyMatching failed -67674" before printing anything — so the
|
|
111
|
+
* writer could never run `doxloop test`, never saw its thin-page warnings,
|
|
112
|
+
* and either built substitute checks or left the warnings for the reviewer.
|
|
113
|
+
* The agent's own commands only ever reach the local documentation project,
|
|
114
|
+
* so the system trust store buys them nothing.
|
|
115
|
+
*/
|
|
116
|
+
export declare function agentEnvironment(_name: AgentName, env?: NodeJS.ProcessEnv): NodeJS.ProcessEnv;
|
|
117
|
+
export declare const MIN_AUTHORING_MAX_TURNS = 400;
|
|
118
|
+
export declare const EDIT_MIN_MAX_TURNS = 80;
|
|
119
|
+
export declare const EDIT_TURNS_PER_PAGE = 30;
|
|
120
|
+
export declare function authoringTurnBudget(plan: Pick<DocumentationPlan, 'pages'> | undefined): number;
|
|
121
|
+
export interface EditPromptInput {
|
|
122
|
+
pages: Array<{
|
|
123
|
+
path: string;
|
|
124
|
+
title: string;
|
|
125
|
+
}>;
|
|
126
|
+
instruction: string;
|
|
127
|
+
allowRelated: boolean;
|
|
128
|
+
followUps?: Array<{
|
|
129
|
+
instruction: string;
|
|
130
|
+
}>;
|
|
131
|
+
}
|
|
132
|
+
/** Focus the general update prompt on a reviewer-selected set of existing pages. */
|
|
133
|
+
export declare function editPrompt(input: EditPromptInput): string;
|
|
134
|
+
/**
|
|
135
|
+
* How many times an unattended Claude run resumes its session after a
|
|
136
|
+
* transient API failure before the run is reported as failed.
|
|
137
|
+
*/
|
|
138
|
+
export declare const DEFAULT_AGENT_API_RESUMES = 2;
|
|
139
|
+
export declare function agentApiResumeLimit(): number;
|
|
140
|
+
/** A short, growing pause before resuming, so a struggling API gets a moment to recover. */
|
|
141
|
+
export declare function agentApiResumeDelayMs(attempt: number): number;
|
|
142
|
+
/** The prompt that continues a Claude session cut off by an API failure. */
|
|
143
|
+
export declare function resumedSessionPrompt(failureDetail: string | undefined): string;
|
|
144
|
+
/** The failure message for a non-zero agent exit, with the reason when Claude reported one. */
|
|
145
|
+
export declare function agentExitMessage(exitCode: number, detail?: string): string;
|
|
146
|
+
/** Shell invocations an unattended Gemini run may make without confirmation. */
|
|
147
|
+
export declare const GEMINI_ALLOWED_TOOLS: readonly ["run_shell_command(doxloop)", "run_shell_command(npx doxloop)", "run_shell_command(pnpm exec doxloop)", "run_shell_command(npm exec doxloop)"];
|
|
23
148
|
export declare function agentArguments(name: AgentName, prompt: string, options?: {
|
|
24
149
|
model?: string;
|
|
25
150
|
reasoning?: ReasoningLevel;
|
|
151
|
+
effort?: ClaudeEffortLevel;
|
|
26
152
|
mode?: AuthorMode;
|
|
153
|
+
nonInteractive?: boolean;
|
|
154
|
+
sourceDirectories?: readonly string[];
|
|
155
|
+
captureProvider?: ScreenCaptureProvider;
|
|
156
|
+
captureRequired?: boolean;
|
|
157
|
+
maxTurns?: number;
|
|
158
|
+
maxBudgetUsd?: number;
|
|
159
|
+
/** Claude session to continue instead of starting a new one. */
|
|
160
|
+
resumeSession?: string;
|
|
161
|
+
/**
|
|
162
|
+
* MCP servers from the user's own Codex config, switched off for an
|
|
163
|
+
* unattended session so it runs with Doxloop's tools only.
|
|
164
|
+
*/
|
|
165
|
+
userMcpServers?: readonly string[];
|
|
27
166
|
}): string[];
|
|
167
|
+
/**
|
|
168
|
+
* Resolve the configured evidence locations that an agent launched from the
|
|
169
|
+
* documentation project must be allowed to read. Local OpenAPI files grant
|
|
170
|
+
* only their containing directory; remote specifications need no filesystem
|
|
171
|
+
* access. Paths already inside the documentation project are omitted.
|
|
172
|
+
*/
|
|
173
|
+
export declare function sourceAccessDirectories(root: string, sources: SourceBinding[]): string[];
|
|
174
|
+
/**
|
|
175
|
+
* How the writer treats an existing documentation site next to product
|
|
176
|
+
* sources: product code decides facts, the old documentation decides what
|
|
177
|
+
* readers were told and where they went to read it. Without code the rewrite
|
|
178
|
+
* may reorganize and clarify but must not manufacture facts.
|
|
179
|
+
*/
|
|
180
|
+
export declare function existingDocumentationGuidance(sources: SourceBinding[]): string;
|
|
28
181
|
export declare function authorPrompt(mode: AuthorMode, sources: SourceBinding[], request?: string, generator?: GeneratorName, documentation?: DocumentationBrief, designReferences?: Array<{
|
|
29
182
|
url: string;
|
|
30
|
-
}>, changeSummary?: string, screenshots?: ScreenshotIntent, application?: ApplicationConfig): string;
|
|
31
|
-
|
|
183
|
+
}>, changeSummary?: string, screenshots?: ScreenshotIntent, application?: ApplicationConfig, cliCommand?: string, captureAuth?: CaptureAuthMode, specCopies?: Record<string, string>): string;
|
|
184
|
+
/** Fix rounds Doxloop runs on a batch before leaving remaining issues to the reviewer. */
|
|
185
|
+
export declare const MAX_FIX_ROUNDS: number;
|
|
186
|
+
/**
|
|
187
|
+
* The skill references every writer batch reads before writing, inlined once
|
|
188
|
+
* so they arrive as a stable, cacheable prompt prefix instead of six to eight
|
|
189
|
+
* file reads per session (a real run spent ~70 turns on those reads). Type
|
|
190
|
+
* playbooks vary by batch and stay with the agent.
|
|
191
|
+
*/
|
|
192
|
+
export declare function skillReferencePrefix(generator: string, screenshots: boolean, root?: string): Promise<{
|
|
193
|
+
text: string;
|
|
194
|
+
names: string[];
|
|
195
|
+
}>;
|
|
196
|
+
/** Title and icon from a page's frontmatter, for the batch contract's written-pages summary. */
|
|
197
|
+
export declare function frontmatterSummary(root: string, file: string): Promise<{
|
|
198
|
+
title?: string;
|
|
199
|
+
icon?: string;
|
|
200
|
+
}>;
|
|
201
|
+
export declare function sessionPreamble(project: DoxloopProject, sources: SourceBinding[], cliCommand?: string, capture?: string): string;
|
|
202
|
+
/**
|
|
203
|
+
* What every batched session must know about the capture browser. The
|
|
204
|
+
* single-session prompt carried this; batched sessions had only the manifest
|
|
205
|
+
* slice, so a run with saved credentials still gave up at the sign-in page
|
|
206
|
+
* and recorded every authenticated step as text-only.
|
|
207
|
+
*/
|
|
208
|
+
export declare function batchCaptureText(application: ApplicationConfig, captureAuth: CaptureAuthMode): string;
|
|
209
|
+
/** The task for a session that retakes the screenshots Doxloop found wanting. */
|
|
210
|
+
export declare function retakeContract(defects: string[], progress: string[]): string;
|
|
211
|
+
/** Project-relative page files for planned pages that exist in the workspace. */
|
|
212
|
+
/** What each planned page's file holds before a session, so a session's writes can be told from files that were already there. */
|
|
213
|
+
export declare function snapshotPlanPages(root: string, plan: DocumentationPlan, pages: DocumentationPlanPage[]): Promise<Map<string, string | undefined>>;
|
|
214
|
+
/**
|
|
215
|
+
* The planned pages of `pages` that no session has written yet: no file in
|
|
216
|
+
* the workspace, or — given the snapshot taken before the session — a file
|
|
217
|
+
* (a starter page, an existing page awaiting its update) whose content is
|
|
218
|
+
* exactly what it was.
|
|
219
|
+
*/
|
|
220
|
+
export declare function unwrittenPlanPages(root: string, plan: DocumentationPlan, pages: DocumentationPlanPage[], before?: Map<string, string | undefined>): Promise<DocumentationPlanPage[]>;
|
|
221
|
+
export declare function planPageFiles(root: string, plan: DocumentationPlan, pages: DocumentationPlanPage[]): Promise<string[]>;
|
|
222
|
+
/**
|
|
223
|
+
* Planned pages already finished in this workspace — present, no longer
|
|
224
|
+
* starter content, and free of validation errors — so a resumed or retried
|
|
225
|
+
* run writes only what is missing instead of everything again.
|
|
226
|
+
*/
|
|
227
|
+
export declare function completedPlanPages(root: string, plan: DocumentationPlan, pages: DocumentationPlanPage[]): Promise<Set<string>>;
|
|
228
|
+
/**
|
|
229
|
+
* The agent is told how sign-in is handled, never the values. A recorded
|
|
230
|
+
* session is preloaded into the capture browser; saved credentials are typed
|
|
231
|
+
* by secret name, which the capture server substitutes and redacts.
|
|
232
|
+
*/
|
|
233
|
+
export declare function captureAuthPrompt(mode: CaptureAuthMode): string;
|
|
32
234
|
//# sourceMappingURL=author.d.ts.map
|