@ordewell/core 0.5.4 → 0.5.6

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 (56) hide show
  1. package/dist/IFileSystem-BkPX7mLD.d.mts +76 -0
  2. package/dist/IFileSystem-C0l-4MGT.d.ts +76 -0
  3. package/dist/{ModeResolver-Dkig8ghQ.d.ts → ModeResolver--16lh7dS.d.mts} +1 -1
  4. package/dist/{ModeResolver-DVJ7HV3k.d.mts → ModeResolver-CjpG5Wli.d.ts} +1 -1
  5. package/dist/Task-Dyxp67s2.d.mts +2086 -0
  6. package/dist/Task-Dyxp67s2.d.ts +2086 -0
  7. package/dist/{chunk-T2S5O36I.mjs → chunk-C44UWIAD.mjs} +6 -6
  8. package/dist/chunk-C44UWIAD.mjs.map +1 -0
  9. package/dist/{chunk-JVMDEHRQ.mjs → chunk-EDGUFCIR.mjs} +77 -37
  10. package/dist/chunk-EDGUFCIR.mjs.map +1 -0
  11. package/dist/{chunk-XWOUIA6A.mjs → chunk-JBEFAJ2W.mjs} +2 -2
  12. package/dist/chunk-ROVYWEBI.mjs +2115 -0
  13. package/dist/chunk-ROVYWEBI.mjs.map +1 -0
  14. package/dist/index.d.mts +1647 -758
  15. package/dist/index.d.ts +1647 -758
  16. package/dist/index.js +9301 -4857
  17. package/dist/index.js.map +1 -1
  18. package/dist/index.mjs +6222 -2968
  19. package/dist/index.mjs.map +1 -1
  20. package/dist/order-labels.d.mts +3 -1
  21. package/dist/order-labels.d.ts +3 -1
  22. package/dist/{parsing-DRp4dPC0.d.mts → parsing-DPEpAszP.d.mts} +11 -3
  23. package/dist/{parsing-CF_grC29.d.ts → parsing-EcmCsF1y.d.ts} +11 -3
  24. package/dist/parsing.d.mts +5 -3
  25. package/dist/parsing.d.ts +5 -3
  26. package/dist/parsing.js.map +1 -1
  27. package/dist/parsing.mjs +2 -2
  28. package/dist/plan-utils-BAvW3hvl.d.mts +877 -0
  29. package/dist/plan-utils-BMyEiDKv.d.ts +877 -0
  30. package/dist/plan-utils.d.mts +5 -4
  31. package/dist/plan-utils.d.ts +5 -4
  32. package/dist/plan-utils.js +956 -8
  33. package/dist/plan-utils.js.map +1 -1
  34. package/dist/plan-utils.mjs +47 -7
  35. package/dist/testing.d.mts +57 -5
  36. package/dist/testing.d.ts +57 -5
  37. package/dist/testing.js +96 -2
  38. package/dist/testing.js.map +1 -1
  39. package/dist/testing.mjs +94 -2
  40. package/dist/testing.mjs.map +1 -1
  41. package/package.json +2 -1
  42. package/skills/grilling/SKILL.md +6 -16
  43. package/skills/improve-codebase-architecture/SKILL.md +1 -1
  44. package/dist/ApprovalPolicy-BVhGdECT.d.mts +0 -79
  45. package/dist/ApprovalPolicy-BVhGdECT.d.ts +0 -79
  46. package/dist/ITerminalRunner-Bd-vAJnw.d.ts +0 -561
  47. package/dist/ITerminalRunner-ByeoLF57.d.mts +0 -561
  48. package/dist/Task-BxQkPlXO.d.mts +0 -664
  49. package/dist/Task-BxQkPlXO.d.ts +0 -664
  50. package/dist/chunk-GWPIYDQW.mjs +0 -945
  51. package/dist/chunk-GWPIYDQW.mjs.map +0 -1
  52. package/dist/chunk-JVMDEHRQ.mjs.map +0 -1
  53. package/dist/chunk-T2S5O36I.mjs.map +0 -1
  54. package/dist/plan-utils-CkNbqAmS.d.ts +0 -329
  55. package/dist/plan-utils-CtB3_Ovf.d.mts +0 -329
  56. /package/dist/{chunk-XWOUIA6A.mjs.map → chunk-JBEFAJ2W.mjs.map} +0 -0
@@ -0,0 +1,76 @@
1
+ import { I as IApproval } from './Task-Dyxp67s2.mjs';
2
+
3
+ interface ToolOutcome {
4
+ success: boolean;
5
+ output: string;
6
+ truncated: boolean;
7
+ }
8
+ interface ReadFileOpts {
9
+ maxBytes?: number;
10
+ offset?: number;
11
+ limit?: number;
12
+ }
13
+ /**
14
+ * `content` returns matching lines, `files` only the paths that matched, and
15
+ * `count` a per-file tally. Cheap models otherwise grep and then read whole
16
+ * files to answer "which files touch this", burning rounds against the budget.
17
+ */
18
+ type GrepOutputMode = 'content' | 'files' | 'count';
19
+ interface GrepOptions {
20
+ /** File glob filter, e.g. `*.ts`. */
21
+ include?: string;
22
+ /** Search root. Relative to the workspace unless approved as external. */
23
+ path?: string;
24
+ outputMode?: GrepOutputMode;
25
+ /** Lines of context around each match (`content` mode only). */
26
+ contextBefore?: number;
27
+ contextAfter?: number;
28
+ /** Treat the pattern as a literal string rather than a regex. */
29
+ literal?: boolean;
30
+ caseInsensitive?: boolean;
31
+ /** Global cap on returned rows. Defaults to {@link GREP_DEFAULT_HEAD_LIMIT}. */
32
+ headLimit?: number;
33
+ }
34
+ interface GlobOptions {
35
+ /** Search root. Relative to the workspace unless approved as external. */
36
+ path?: string;
37
+ headLimit?: number;
38
+ }
39
+ interface FindSymbolOptions {
40
+ /** Language id or file extension, e.g. `typescript` or `.go`. Narrows the keyword set. */
41
+ language?: string;
42
+ /** Search root. Relative to the workspace unless approved as external. */
43
+ path?: string;
44
+ }
45
+ /** Global row cap for grep. A per-file cap is not a budget — see PoolFileSystem. */
46
+ declare const GREP_DEFAULT_HEAD_LIMIT = 100;
47
+ /**
48
+ * Directories that are never interesting to a planner and would otherwise eat
49
+ * the result budget. Applied by every search entry point, not just `glob` —
50
+ * `dist/` and `.ordewell/` are frequently not gitignored.
51
+ */
52
+ declare const SEARCH_EXCLUSIONS: string[];
53
+ interface IFileSystem {
54
+ readFile(path: string, opts?: ReadFileOpts): Promise<ToolOutcome>;
55
+ readFiles(paths: string[]): Promise<ToolOutcome>;
56
+ glob(pattern: string, opts?: GlobOptions): Promise<ToolOutcome>;
57
+ grep(pattern: string, opts?: GrepOptions): Promise<ToolOutcome>;
58
+ listDir(path: string, depth?: number): Promise<ToolOutcome>;
59
+ /**
60
+ * `signal` stops the planning turn this command belongs to: adapters kill
61
+ * the spawned child rather than let it run out its own timeout. The other
62
+ * tools here are short enough that the loop's between-call abort check is
63
+ * indistinguishable from cancelling them mid-flight; a `bash` call is not.
64
+ */
65
+ bash(command: string, signal?: AbortSignal): Promise<ToolOutcome>;
66
+ /** Definition-first lookup for one symbol. See `symbolPatterns.ts`. */
67
+ findSymbol(symbol: string, opts?: FindSymbolOptions): Promise<ToolOutcome>;
68
+ getWorkspaceRoot(): string;
69
+ /**
70
+ * Inject the human-approval channel for out-of-envelope access. Optional so
71
+ * test doubles stay small; every adapter extending `BaseFileSystem` has it.
72
+ */
73
+ setApproval?(approval: IApproval): void;
74
+ }
75
+
76
+ export { type FindSymbolOptions as F, GREP_DEFAULT_HEAD_LIMIT as G, type IFileSystem as I, type ReadFileOpts as R, SEARCH_EXCLUSIONS as S, type ToolOutcome as T, type GlobOptions as a, type GrepOptions as b, type GrepOutputMode as c };
@@ -0,0 +1,76 @@
1
+ import { I as IApproval } from './Task-Dyxp67s2.js';
2
+
3
+ interface ToolOutcome {
4
+ success: boolean;
5
+ output: string;
6
+ truncated: boolean;
7
+ }
8
+ interface ReadFileOpts {
9
+ maxBytes?: number;
10
+ offset?: number;
11
+ limit?: number;
12
+ }
13
+ /**
14
+ * `content` returns matching lines, `files` only the paths that matched, and
15
+ * `count` a per-file tally. Cheap models otherwise grep and then read whole
16
+ * files to answer "which files touch this", burning rounds against the budget.
17
+ */
18
+ type GrepOutputMode = 'content' | 'files' | 'count';
19
+ interface GrepOptions {
20
+ /** File glob filter, e.g. `*.ts`. */
21
+ include?: string;
22
+ /** Search root. Relative to the workspace unless approved as external. */
23
+ path?: string;
24
+ outputMode?: GrepOutputMode;
25
+ /** Lines of context around each match (`content` mode only). */
26
+ contextBefore?: number;
27
+ contextAfter?: number;
28
+ /** Treat the pattern as a literal string rather than a regex. */
29
+ literal?: boolean;
30
+ caseInsensitive?: boolean;
31
+ /** Global cap on returned rows. Defaults to {@link GREP_DEFAULT_HEAD_LIMIT}. */
32
+ headLimit?: number;
33
+ }
34
+ interface GlobOptions {
35
+ /** Search root. Relative to the workspace unless approved as external. */
36
+ path?: string;
37
+ headLimit?: number;
38
+ }
39
+ interface FindSymbolOptions {
40
+ /** Language id or file extension, e.g. `typescript` or `.go`. Narrows the keyword set. */
41
+ language?: string;
42
+ /** Search root. Relative to the workspace unless approved as external. */
43
+ path?: string;
44
+ }
45
+ /** Global row cap for grep. A per-file cap is not a budget — see PoolFileSystem. */
46
+ declare const GREP_DEFAULT_HEAD_LIMIT = 100;
47
+ /**
48
+ * Directories that are never interesting to a planner and would otherwise eat
49
+ * the result budget. Applied by every search entry point, not just `glob` —
50
+ * `dist/` and `.ordewell/` are frequently not gitignored.
51
+ */
52
+ declare const SEARCH_EXCLUSIONS: string[];
53
+ interface IFileSystem {
54
+ readFile(path: string, opts?: ReadFileOpts): Promise<ToolOutcome>;
55
+ readFiles(paths: string[]): Promise<ToolOutcome>;
56
+ glob(pattern: string, opts?: GlobOptions): Promise<ToolOutcome>;
57
+ grep(pattern: string, opts?: GrepOptions): Promise<ToolOutcome>;
58
+ listDir(path: string, depth?: number): Promise<ToolOutcome>;
59
+ /**
60
+ * `signal` stops the planning turn this command belongs to: adapters kill
61
+ * the spawned child rather than let it run out its own timeout. The other
62
+ * tools here are short enough that the loop's between-call abort check is
63
+ * indistinguishable from cancelling them mid-flight; a `bash` call is not.
64
+ */
65
+ bash(command: string, signal?: AbortSignal): Promise<ToolOutcome>;
66
+ /** Definition-first lookup for one symbol. See `symbolPatterns.ts`. */
67
+ findSymbol(symbol: string, opts?: FindSymbolOptions): Promise<ToolOutcome>;
68
+ getWorkspaceRoot(): string;
69
+ /**
70
+ * Inject the human-approval channel for out-of-envelope access. Optional so
71
+ * test doubles stay small; every adapter extending `BaseFileSystem` has it.
72
+ */
73
+ setApproval?(approval: IApproval): void;
74
+ }
75
+
76
+ export { type FindSymbolOptions as F, GREP_DEFAULT_HEAD_LIMIT as G, type IFileSystem as I, type ReadFileOpts as R, SEARCH_EXCLUSIONS as S, type ToolOutcome as T, type GlobOptions as a, type GrepOptions as b, type GrepOutputMode as c };
@@ -1,4 +1,4 @@
1
- import { F as RunnerId } from './Task-BxQkPlXO.js';
1
+ import { aG as RunnerId } from './Task-Dyxp67s2.mjs';
2
2
 
3
3
  interface RunnerModeInfo {
4
4
  id: string;
@@ -1,4 +1,4 @@
1
- import { F as RunnerId } from './Task-BxQkPlXO.mjs';
1
+ import { aG as RunnerId } from './Task-Dyxp67s2.js';
2
2
 
3
3
  interface RunnerModeInfo {
4
4
  id: string;