auto-mode 3.0.0 → 3.1.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/dist/index.d.ts CHANGED
@@ -68,6 +68,7 @@ interface TaskScopeSummary {
68
68
  interface OutputStream {
69
69
  readonly write: (text: string) => unknown;
70
70
  }
71
+ type TextFileReader = (path: string) => Promise<string>;
71
72
  interface HostEnvironment {
72
73
  readonly env: Readonly<Record<string, string | undefined>>;
73
74
  readonly home: string;
@@ -79,6 +80,7 @@ interface Runtime {
79
80
  readonly timeout: (timeoutMs: number) => AbortSignal;
80
81
  readonly fetch: (url: string, init: Readonly<RequestInit>) => Promise<Response>;
81
82
  readonly readCheckout: CheckoutReader;
83
+ readonly readTextFile: TextFileReader;
82
84
  }
83
85
  interface ClaudeRules {
84
86
  readonly environment: readonly string[];
@@ -114,7 +116,7 @@ interface ScopeSource {
114
116
  readonly paths?: readonly string[];
115
117
  }
116
118
  type ScopeSourceKind = (typeof SCOPE_SOURCE_KINDS)[number];
117
- declare const SCOPE_SOURCE_KINDS: readonly ['cwd', 'session', 'globs', 'atc'];
119
+ declare const SCOPE_SOURCE_KINDS: readonly ['cwd', 'session', 'globs', 'launcher', 'atc'];
118
120
  interface CaptureConfig {
119
121
  readonly enabled: boolean;
120
122
  readonly directory?: string | undefined;
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { b as loadConfig$1, i as classifyAction$1, n as readRuntime, r as readHostEnvironment, t as parseActionRequest } from "./parse-action-request-C55m5DlM.js";
1
+ import { b as loadConfig$1, i as classifyAction$1, n as readRuntime, r as readHostEnvironment, t as parseActionRequest } from "./parse-action-request-DySYvZxl.js";
2
2
  //#region src/index.ts
3
3
  function classifyAction(request, config, options = {}) {
4
4
  return classifyAction$1(request, config, {