@bridge4dev/runner 0.13.1 → 0.22.1
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/dist/adapters/claude.d.ts +15 -7
- package/dist/adapters/claude.js +1024 -70
- package/dist/adapters/codex.d.ts +18 -3
- package/dist/adapters/codex.js +224 -65
- package/dist/adapters/questions.d.ts +42 -0
- package/dist/adapters/questions.js +86 -0
- package/dist/adapters/types.d.ts +200 -4
- package/dist/attachments.d.ts +8 -1
- package/dist/attachments.js +22 -4
- package/dist/auto-resume.d.ts +18 -0
- package/dist/auto-resume.js +104 -0
- package/dist/commit-message.d.ts +51 -0
- package/dist/commit-message.js +224 -0
- package/dist/config.d.ts +29 -6
- package/dist/config.js +15 -0
- package/dist/crash-note.d.ts +54 -0
- package/dist/crash-note.js +105 -0
- package/dist/git.d.ts +71 -0
- package/dist/git.js +207 -10
- package/dist/gitops.d.ts +489 -12
- package/dist/gitops.js +1717 -96
- package/dist/index.js +402 -4
- package/dist/paths.d.ts +26 -0
- package/dist/paths.js +34 -0
- package/dist/policy.d.ts +63 -0
- package/dist/policy.js +412 -10
- package/dist/protocol.d.ts +382 -60
- package/dist/protocol.js +104 -1
- package/dist/recipe-schema.d.ts +310 -0
- package/dist/recipe-schema.js +103 -0
- package/dist/recipe.d.ts +94 -0
- package/dist/recipe.js +238 -0
- package/dist/self-update.d.ts +7 -0
- package/dist/self-update.js +28 -1
- package/dist/service-unit.d.ts +48 -1
- package/dist/service-unit.js +109 -4
- package/dist/supervisor.d.ts +108 -1
- package/dist/supervisor.js +1010 -56
- package/dist/verify-queue.d.ts +17 -0
- package/dist/verify-queue.js +100 -0
- package/dist/verify.d.ts +203 -0
- package/dist/verify.js +788 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
|
@@ -1,14 +1,22 @@
|
|
|
1
1
|
import { query } from '@anthropic-ai/claude-agent-sdk';
|
|
2
|
-
import { type AgentAdapter, type AgentSession, type SessionSpec } from './types.js';
|
|
2
|
+
import { type AgentAdapter, type AgentQuestion, type AgentSession, type SessionSpec } from './types.js';
|
|
3
3
|
export declare function truncate(text: string, limit?: number): string;
|
|
4
|
+
/** Exported for the one-shot commit-message run (session 14), same rules. */
|
|
5
|
+
export declare function scrubbedEnv(): Record<string, string>;
|
|
4
6
|
/**
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
+
* The whole `AskUserQuestion` payload, not just its first line.
|
|
8
|
+
*
|
|
9
|
+
* Shape (SDK 0.3.218 `AskUserQuestionInput`): up to four
|
|
10
|
+
* `{ question, header, multiSelect, options: [{ label, description, preview }] }`.
|
|
11
|
+
* Before session 12 we kept `questions[0]` and glued `label — description` into
|
|
12
|
+
* one string, so questions 2–4, every description, `header`, `multiSelect` and
|
|
13
|
+
* `preview` were dropped on the floor.
|
|
14
|
+
*
|
|
15
|
+
* `allowsCustom` is always true here: the tool's own schema says an "Other"
|
|
16
|
+
* option is the client's job ("There should be no 'Other' option, that will be
|
|
17
|
+
* provided automatically"), and we are the client.
|
|
7
18
|
*/
|
|
8
|
-
export declare function
|
|
9
|
-
text: string;
|
|
10
|
-
options: string[];
|
|
11
|
-
} | null;
|
|
19
|
+
export declare function parseAskUserQuestions(input: Record<string, unknown>): AgentQuestion[];
|
|
12
20
|
export declare function classifyRunError(message: string): string;
|
|
13
21
|
export declare class ClaudeAdapter implements AgentAdapter {
|
|
14
22
|
private readonly queryFn;
|