@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.
Files changed (45) hide show
  1. package/dist/adapters/claude.d.ts +15 -7
  2. package/dist/adapters/claude.js +1024 -70
  3. package/dist/adapters/codex.d.ts +18 -3
  4. package/dist/adapters/codex.js +224 -65
  5. package/dist/adapters/questions.d.ts +42 -0
  6. package/dist/adapters/questions.js +86 -0
  7. package/dist/adapters/types.d.ts +200 -4
  8. package/dist/attachments.d.ts +8 -1
  9. package/dist/attachments.js +22 -4
  10. package/dist/auto-resume.d.ts +18 -0
  11. package/dist/auto-resume.js +104 -0
  12. package/dist/commit-message.d.ts +51 -0
  13. package/dist/commit-message.js +224 -0
  14. package/dist/config.d.ts +29 -6
  15. package/dist/config.js +15 -0
  16. package/dist/crash-note.d.ts +54 -0
  17. package/dist/crash-note.js +105 -0
  18. package/dist/git.d.ts +71 -0
  19. package/dist/git.js +207 -10
  20. package/dist/gitops.d.ts +489 -12
  21. package/dist/gitops.js +1717 -96
  22. package/dist/index.js +402 -4
  23. package/dist/paths.d.ts +26 -0
  24. package/dist/paths.js +34 -0
  25. package/dist/policy.d.ts +63 -0
  26. package/dist/policy.js +412 -10
  27. package/dist/protocol.d.ts +382 -60
  28. package/dist/protocol.js +104 -1
  29. package/dist/recipe-schema.d.ts +310 -0
  30. package/dist/recipe-schema.js +103 -0
  31. package/dist/recipe.d.ts +94 -0
  32. package/dist/recipe.js +238 -0
  33. package/dist/self-update.d.ts +7 -0
  34. package/dist/self-update.js +28 -1
  35. package/dist/service-unit.d.ts +48 -1
  36. package/dist/service-unit.js +109 -4
  37. package/dist/supervisor.d.ts +108 -1
  38. package/dist/supervisor.js +1010 -56
  39. package/dist/verify-queue.d.ts +17 -0
  40. package/dist/verify-queue.js +100 -0
  41. package/dist/verify.d.ts +203 -0
  42. package/dist/verify.js +788 -0
  43. package/dist/version.d.ts +1 -1
  44. package/dist/version.js +1 -1
  45. 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
- * Flatten the AskUserQuestion payload into plain text + option labels.
6
- * Shape: `{ questions: [{ question, header, options: [{ label, description }] }] }`.
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 parseAskUserQuestion(input: Record<string, unknown>): {
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;