@doriandev/devcc 0.1.2 → 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.
Files changed (136) hide show
  1. package/README.md +556 -386
  2. package/bin/devcc.mjs +50 -23
  3. package/dist/devcc/agents/agents.d.ts +112 -0
  4. package/dist/devcc/agents/agents.d.ts.map +1 -0
  5. package/dist/devcc/agents/agents.js +179 -0
  6. package/dist/devcc/agents/agents.js.map +1 -0
  7. package/dist/devcc/app/App.d.ts +15 -0
  8. package/dist/devcc/app/App.d.ts.map +1 -1
  9. package/dist/devcc/app/App.js +326 -17
  10. package/dist/devcc/app/App.js.map +1 -1
  11. package/dist/devcc/app/controlPlaneCommands.d.ts +14 -0
  12. package/dist/devcc/app/controlPlaneCommands.d.ts.map +1 -0
  13. package/dist/devcc/app/controlPlaneCommands.js +179 -0
  14. package/dist/devcc/app/controlPlaneCommands.js.map +1 -0
  15. package/dist/devcc/app/keymap.d.ts.map +1 -1
  16. package/dist/devcc/app/keymap.js +24 -3
  17. package/dist/devcc/app/keymap.js.map +1 -1
  18. package/dist/devcc/automation.d.ts +31 -0
  19. package/dist/devcc/automation.d.ts.map +1 -0
  20. package/dist/devcc/automation.js +202 -0
  21. package/dist/devcc/automation.js.map +1 -0
  22. package/dist/devcc/cli.d.ts.map +1 -1
  23. package/dist/devcc/cli.js +46 -3
  24. package/dist/devcc/cli.js.map +1 -1
  25. package/dist/devcc/components/Sidebar.d.ts.map +1 -1
  26. package/dist/devcc/components/Sidebar.js +1 -0
  27. package/dist/devcc/components/Sidebar.js.map +1 -1
  28. package/dist/devcc/components/primitives.d.ts.map +1 -1
  29. package/dist/devcc/components/primitives.js +3 -0
  30. package/dist/devcc/components/primitives.js.map +1 -1
  31. package/dist/devcc/core/commands.d.ts +25 -0
  32. package/dist/devcc/core/commands.d.ts.map +1 -1
  33. package/dist/devcc/core/commands.js.map +1 -1
  34. package/dist/devcc/core/config.d.ts +69 -3
  35. package/dist/devcc/core/config.d.ts.map +1 -1
  36. package/dist/devcc/core/config.js +185 -5
  37. package/dist/devcc/core/config.js.map +1 -1
  38. package/dist/devcc/core/state.d.ts +19 -1
  39. package/dist/devcc/core/state.d.ts.map +1 -1
  40. package/dist/devcc/core/state.js +6 -0
  41. package/dist/devcc/core/state.js.map +1 -1
  42. package/dist/devcc/environment/EnvironmentService.d.ts +58 -0
  43. package/dist/devcc/environment/EnvironmentService.d.ts.map +1 -0
  44. package/dist/devcc/environment/EnvironmentService.js +159 -0
  45. package/dist/devcc/environment/EnvironmentService.js.map +1 -0
  46. package/dist/devcc/environment/integrations.d.ts +52 -0
  47. package/dist/devcc/environment/integrations.d.ts.map +1 -0
  48. package/dist/devcc/environment/integrations.js +94 -0
  49. package/dist/devcc/environment/integrations.js.map +1 -0
  50. package/dist/devcc/environment/tools.d.ts +51 -0
  51. package/dist/devcc/environment/tools.d.ts.map +1 -0
  52. package/dist/devcc/environment/tools.js +99 -0
  53. package/dist/devcc/environment/tools.js.map +1 -0
  54. package/dist/devcc/git/GitService.d.ts +26 -0
  55. package/dist/devcc/git/GitService.d.ts.map +1 -1
  56. package/dist/devcc/git/GitService.js +71 -2
  57. package/dist/devcc/git/GitService.js.map +1 -1
  58. package/dist/devcc/git/worktrees.d.ts +88 -0
  59. package/dist/devcc/git/worktrees.d.ts.map +1 -0
  60. package/dist/devcc/git/worktrees.js +226 -0
  61. package/dist/devcc/git/worktrees.js.map +1 -0
  62. package/dist/devcc/index.d.ts +13 -3
  63. package/dist/devcc/index.d.ts.map +1 -1
  64. package/dist/devcc/index.js +11 -1
  65. package/dist/devcc/index.js.map +1 -1
  66. package/dist/devcc/platform/launch.d.ts +30 -0
  67. package/dist/devcc/platform/launch.d.ts.map +1 -0
  68. package/dist/devcc/platform/launch.js +93 -0
  69. package/dist/devcc/platform/launch.js.map +1 -0
  70. package/dist/devcc/services/ServiceManager.d.ts +10 -2
  71. package/dist/devcc/services/ServiceManager.d.ts.map +1 -1
  72. package/dist/devcc/services/ServiceManager.js +18 -4
  73. package/dist/devcc/services/ServiceManager.js.map +1 -1
  74. package/dist/devcc/services/ollama.d.ts +64 -5
  75. package/dist/devcc/services/ollama.d.ts.map +1 -1
  76. package/dist/devcc/services/ollama.js +118 -17
  77. package/dist/devcc/services/ollama.js.map +1 -1
  78. package/dist/devcc/services/remote.d.ts +90 -0
  79. package/dist/devcc/services/remote.d.ts.map +1 -0
  80. package/dist/devcc/services/remote.js +233 -0
  81. package/dist/devcc/services/remote.js.map +1 -0
  82. package/dist/devcc/services/types.d.ts +8 -1
  83. package/dist/devcc/services/types.d.ts.map +1 -1
  84. package/dist/devcc/services/types.js.map +1 -1
  85. package/dist/devcc/utils/exec.d.ts +6 -0
  86. package/dist/devcc/utils/exec.d.ts.map +1 -1
  87. package/dist/devcc/utils/exec.js +12 -2
  88. package/dist/devcc/utils/exec.js.map +1 -1
  89. package/dist/devcc/verify/verify.d.ts +107 -0
  90. package/dist/devcc/verify/verify.d.ts.map +1 -0
  91. package/dist/devcc/verify/verify.js +203 -0
  92. package/dist/devcc/verify/verify.js.map +1 -0
  93. package/dist/devcc/views/OverviewView.d.ts.map +1 -1
  94. package/dist/devcc/views/OverviewView.js +55 -1
  95. package/dist/devcc/views/OverviewView.js.map +1 -1
  96. package/dist/devcc/views/ServicesView.d.ts +2 -0
  97. package/dist/devcc/views/ServicesView.d.ts.map +1 -1
  98. package/dist/devcc/views/ServicesView.js +15 -0
  99. package/dist/devcc/views/ServicesView.js.map +1 -1
  100. package/dist/devcc/views/SystemView.d.ts +10 -1
  101. package/dist/devcc/views/SystemView.d.ts.map +1 -1
  102. package/dist/devcc/views/SystemView.js +127 -19
  103. package/dist/devcc/views/SystemView.js.map +1 -1
  104. package/dist/devcc/views/WorktreesView.d.ts +48 -0
  105. package/dist/devcc/views/WorktreesView.d.ts.map +1 -0
  106. package/dist/devcc/views/WorktreesView.js +235 -0
  107. package/dist/devcc/views/WorktreesView.js.map +1 -0
  108. package/package.json +1 -1
  109. package/src/devcc/agents/agents.ts +282 -0
  110. package/src/devcc/app/App.ts +376 -20
  111. package/src/devcc/app/controlPlaneCommands.ts +197 -0
  112. package/src/devcc/app/keymap.ts +24 -3
  113. package/src/devcc/automation.ts +242 -0
  114. package/src/devcc/cli.ts +45 -3
  115. package/src/devcc/components/Sidebar.ts +1 -0
  116. package/src/devcc/components/primitives.ts +3 -0
  117. package/src/devcc/core/commands.ts +26 -0
  118. package/src/devcc/core/config.ts +271 -11
  119. package/src/devcc/core/state.ts +25 -0
  120. package/src/devcc/environment/EnvironmentService.ts +215 -0
  121. package/src/devcc/environment/integrations.ts +133 -0
  122. package/src/devcc/environment/tools.ts +151 -0
  123. package/src/devcc/git/GitService.ts +104 -2
  124. package/src/devcc/git/worktrees.ts +256 -0
  125. package/src/devcc/index.ts +57 -2
  126. package/src/devcc/platform/launch.ts +125 -0
  127. package/src/devcc/services/ServiceManager.ts +15 -3
  128. package/src/devcc/services/ollama.ts +162 -19
  129. package/src/devcc/services/remote.ts +306 -0
  130. package/src/devcc/services/types.ts +9 -1
  131. package/src/devcc/utils/exec.ts +26 -2
  132. package/src/devcc/verify/verify.ts +316 -0
  133. package/src/devcc/views/OverviewView.ts +76 -1
  134. package/src/devcc/views/ServicesView.ts +17 -0
  135. package/src/devcc/views/SystemView.ts +144 -22
  136. package/src/devcc/views/WorktreesView.ts +270 -0
@@ -0,0 +1,88 @@
1
+ /**
2
+ * Pure helpers for `git worktree`.
3
+ *
4
+ * Parsing, argument construction and validation live here so they can be
5
+ * tested without a repository; `GitService` only runs the commands.
6
+ */
7
+ export interface GitWorktree {
8
+ /** Absolute path of the worktree's top-level directory. */
9
+ path: string;
10
+ /** Short branch name (`feature/x`), absent when detached or bare. */
11
+ branch?: string;
12
+ /** Full commit hash of HEAD; empty for a bare repository. */
13
+ head: string;
14
+ bare: boolean;
15
+ detached: boolean;
16
+ locked: boolean;
17
+ lockedReason?: string;
18
+ prunable: boolean;
19
+ prunableReason?: string;
20
+ /** The first entry git reports: the repository's main worktree. */
21
+ isMain: boolean;
22
+ /** The worktree devcc is running in. */
23
+ isCurrent: boolean;
24
+ }
25
+ /**
26
+ * Parse `git worktree list --porcelain` (optionally with `-z`).
27
+ *
28
+ * Records are separated by a blank line (a double NUL with `-z`). Unknown keys
29
+ * are ignored and records without a `worktree` line are dropped, so output from
30
+ * a newer git with extra attributes still parses.
31
+ *
32
+ * Format reference: `man git-worktree`, "Porcelain Format".
33
+ */
34
+ export declare function parseWorktreeList(output: string, currentPath?: string): GitWorktree[];
35
+ /**
36
+ * Flag the worktree containing `currentPath`. The deepest match wins, so a
37
+ * worktree nested inside the main checkout is attributed correctly.
38
+ */
39
+ export declare function markCurrent(worktrees: GitWorktree[], currentPath: string): GitWorktree[];
40
+ /** True when `path` is `parent` or somewhere below it. */
41
+ export declare function isInside(path: string, parent: string): boolean;
42
+ /** Display label: the branch, or a short hash when detached. */
43
+ export declare function worktreeLabel(worktree: GitWorktree): string;
44
+ /**
45
+ * Validate a branch name against git's ref rules (`man git-check-ref-format`),
46
+ * plus a leading-dash check so a name can never be read as an option.
47
+ * Returns a human-readable problem, or null when the name is acceptable.
48
+ */
49
+ export declare function validateBranchName(name: string): string | null;
50
+ /** A base ref is passed straight to git, so only rule out option-like or broken input. */
51
+ export declare function validateRef(ref: string): string | null;
52
+ /**
53
+ * Validate a destination directory for a new worktree. `exists` is injected
54
+ * so the check is testable; git itself refuses a non-empty existing directory,
55
+ * but refusing early gives a clearer message.
56
+ */
57
+ export declare function validateWorktreePath(path: string, exists: (path: string) => boolean): string | null;
58
+ /** Directory-safe form of a branch name: `feature/ai-agents` -> `feature-ai-agents`. */
59
+ export declare function branchSlug(branch: string): string;
60
+ /**
61
+ * Where a new worktree goes by default: `<directory>/<repo>-<branch>`, with
62
+ * `directory` relative to the main worktree (default: its parent).
63
+ */
64
+ export declare function defaultWorktreePath(mainWorktreePath: string, branch: string, directory?: string): string;
65
+ export interface CreateWorktreeRequest {
66
+ /** Absolute destination directory. */
67
+ path: string;
68
+ branch: string;
69
+ /** Start point for a new branch. Ignored when checking out an existing branch. */
70
+ base?: string;
71
+ /** True to create `branch` (`-b`); false to check out an existing one. */
72
+ createBranch: boolean;
73
+ }
74
+ /**
75
+ * Arguments for `git worktree add`. Everything user-provided comes after `--`
76
+ * or as the value of `-b`, and each value is its own argv entry, so nothing can
77
+ * be interpreted as an option or split by a shell.
78
+ */
79
+ export declare function worktreeAddArgs(request: CreateWorktreeRequest): string[];
80
+ /** Arguments for `git worktree remove`. Never `--force`: git's safety check stands. */
81
+ export declare function worktreeRemoveArgs(path: string): string[];
82
+ /**
83
+ * Decide whether a worktree may be removed before asking git. `busy` lists
84
+ * directories where devcc is still running something (agents, processes).
85
+ * Returns the reason for refusing, or null when removal may proceed.
86
+ */
87
+ export declare function removalBlocker(worktree: GitWorktree, busy?: readonly string[]): string | null;
88
+ //# sourceMappingURL=worktrees.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"worktrees.d.ts","sourceRoot":"","sources":["../../../src/devcc/git/worktrees.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AAEH,MAAM,WAAW,WAAW;IAC1B,2DAA2D;IAC3D,IAAI,EAAE,MAAM,CAAA;IACZ,qEAAqE;IACrE,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,6DAA6D;IAC7D,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,OAAO,CAAA;IACb,QAAQ,EAAE,OAAO,CAAA;IACjB,MAAM,EAAE,OAAO,CAAA;IACf,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,QAAQ,EAAE,OAAO,CAAA;IACjB,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,mEAAmE;IACnE,MAAM,EAAE,OAAO,CAAA;IACf,wCAAwC;IACxC,SAAS,EAAE,OAAO,CAAA;CACnB;AAED;;;;;;;;GAQG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,MAAM,GAAG,W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BAAgB,cAAc,CAAC,QAAQ,EAAE,WAAW,EAAE,IAAI,GAAE,SAAS,MAAM,EAAO,GAAG,MAAM,GAAG,IAAI,CAUjG"}
@@ -0,0 +1,226 @@
1
+ import { basename, isAbsolute, relative, resolve } from "node:path";
2
+ /**
3
+ * Parse `git worktree list --porcelain` (optionally with `-z`).
4
+ *
5
+ * Records are separated by a blank line (a double NUL with `-z`). Unknown keys
6
+ * are ignored and records without a `worktree` line are dropped, so output from
7
+ * a newer git with extra attributes still parses.
8
+ *
9
+ * Format reference: `man git-worktree`, "Porcelain Format".
10
+ */
11
+ export function parseWorktreeList(output, currentPath) {
12
+ const nulSeparated = output.includes("\0");
13
+ const lines = nulSeparated ? output.split("\0") : output.split("\n").map((line) => line.replace(/\r$/u, ""));
14
+ const worktrees = [];
15
+ let record = null;
16
+ const flush = () => {
17
+ if (record && record.path !== "")
18
+ worktrees.push(record);
19
+ record = null;
20
+ };
21
+ for (const line of lines) {
22
+ if (line === "") {
23
+ flush();
24
+ continue;
25
+ }
26
+ const space = line.indexOf(" ");
27
+ const key = space === -1 ? line : line.slice(0, space);
28
+ const value = space === -1 ? "" : line.slice(space + 1);
29
+ if (key === "worktree") {
30
+ flush();
31
+ record = {
32
+ path: value,
33
+ head: "",
34
+ bare: false,
35
+ detached: false,
36
+ locked: false,
37
+ prunable: false,
38
+ isMain: worktrees.length === 0,
39
+ isCurrent: false,
40
+ };
41
+ continue;
42
+ }
43
+ // Attributes before any `worktree` line are malformed; skip them.
44
+ const current = record;
45
+ if (!current)
46
+ continue;
47
+ switch (key) {
48
+ case "HEAD":
49
+ current.head = value;
50
+ break;
51
+ case "branch":
52
+ current.branch = value.replace(/^refs\/heads\//u, "");
53
+ break;
54
+ case "bare":
55
+ current.bare = true;
56
+ break;
57
+ case "detached":
58
+ current.detached = true;
59
+ break;
60
+ case "locked":
61
+ current.locked = true;
62
+ if (value)
63
+ current.lockedReason = value;
64
+ break;
65
+ case "prunable":
66
+ current.prunable = true;
67
+ if (value)
68
+ current.prunableReason = value;
69
+ break;
70
+ default:
71
+ break;
72
+ }
73
+ }
74
+ flush();
75
+ // The first record is the main worktree even if it followed malformed lines.
76
+ for (const [index, worktree] of worktrees.entries())
77
+ worktree.isMain = index === 0;
78
+ return currentPath ? markCurrent(worktrees, currentPath) : worktrees;
79
+ }
80
+ /**
81
+ * Flag the worktree containing `currentPath`. The deepest match wins, so a
82
+ * worktree nested inside the main checkout is attributed correctly.
83
+ */
84
+ export function markCurrent(worktrees, currentPath) {
85
+ let best;
86
+ for (const worktree of worktrees) {
87
+ if (worktree.bare || !isInside(currentPath, worktree.path))
88
+ continue;
89
+ if (!best || worktree.path.length > best.path.length)
90
+ best = worktree;
91
+ }
92
+ return worktrees.map((worktree) => ({ ...worktree, isCurrent: worktree === best }));
93
+ }
94
+ /** True when `path` is `parent` or somewhere below it. */
95
+ export function isInside(path, parent) {
96
+ const rel = relative(resolve(parent), resolve(path));
97
+ return rel === "" || (!rel.startsWith("..") && !isAbsolute(rel));
98
+ }
99
+ /** Display label: the branch, or a short hash when detached. */
100
+ export function worktreeLabel(worktree) {
101
+ if (worktree.bare)
102
+ return "(bare)";
103
+ if (worktree.branch)
104
+ return worktree.branch;
105
+ return worktree.head ? `detached @ ${worktree.head.slice(0, 7)}` : "(unknown)";
106
+ }
107
+ // ---------------------------------------------------------------------------
108
+ // Validation
109
+ // ---------------------------------------------------------------------------
110
+ // eslint-disable-next-line no-control-regex
111
+ const CONTROL_CHARS = /[\u0000-\u001f\u007f]/u;
112
+ /**
113
+ * Validate a branch name against git's ref rules (`man git-check-ref-format`),
114
+ * plus a leading-dash check so a name can never be read as an option.
115
+ * Returns a human-readable problem, or null when the name is acceptable.
116
+ */
117
+ export function validateBranchName(name) {
118
+ if (name.trim() === "")
119
+ return "Branch name is empty";
120
+ if (name !== name.trim() || /\s/u.test(name))
121
+ return "Branch name cannot contain whitespace";
122
+ if (CONTROL_CHARS.test(name))
123
+ return "Branch name cannot contain control characters";
124
+ if (name.startsWith("-"))
125
+ return "Branch name cannot start with '-'";
126
+ if (name === "@")
127
+ return "Branch name cannot be '@'";
128
+ if (/[~^:?*[\\]/u.test(name))
129
+ return "Branch name cannot contain ~ ^ : ? * [ or \\";
130
+ if (name.includes(".."))
131
+ return "Branch name cannot contain '..'";
132
+ if (name.includes("@{"))
133
+ return "Branch name cannot contain '@{'";
134
+ if (name.includes("//"))
135
+ return "Branch name cannot contain '//'";
136
+ if (name.startsWith("/") || name.endsWith("/"))
137
+ return "Branch name cannot start or end with '/'";
138
+ if (name.endsWith("."))
139
+ return "Branch name cannot end with '.'";
140
+ for (const segment of name.split("/")) {
141
+ if (segment.startsWith("."))
142
+ return "Branch name segments cannot start with '.'";
143
+ if (segment.endsWith(".lock"))
144
+ return "Branch name segments cannot end with '.lock'";
145
+ }
146
+ return null;
147
+ }
148
+ /** A base ref is passed straight to git, so only rule out option-like or broken input. */
149
+ export function validateRef(ref) {
150
+ if (ref.trim() === "")
151
+ return "Base ref is empty";
152
+ if (ref.startsWith("-"))
153
+ return "Base ref cannot start with '-'";
154
+ if (/\s/u.test(ref) || CONTROL_CHARS.test(ref))
155
+ return "Base ref cannot contain whitespace";
156
+ return null;
157
+ }
158
+ /**
159
+ * Validate a destination directory for a new worktree. `exists` is injected
160
+ * so the check is testable; git itself refuses a non-empty existing directory,
161
+ * but refusing early gives a clearer message.
162
+ */
163
+ export function validateWorktreePath(path, exists) {
164
+ if (path.trim() === "")
165
+ return "Worktree path is empty";
166
+ if (CONTROL_CHARS.test(path))
167
+ return "Worktree path cannot contain control characters";
168
+ if (!isAbsolute(path))
169
+ return "Worktree path must be absolute";
170
+ if (exists(path))
171
+ return `${path} already exists`;
172
+ return null;
173
+ }
174
+ /** Directory-safe form of a branch name: `feature/ai-agents` -> `feature-ai-agents`. */
175
+ export function branchSlug(branch) {
176
+ return (branch
177
+ .replace(/[^A-Za-z0-9._-]+/gu, "-")
178
+ .replace(/-+/gu, "-")
179
+ .replace(/^[-.]+|[-.]+$/gu, "") || "worktree");
180
+ }
181
+ /**
182
+ * Where a new worktree goes by default: `<directory>/<repo>-<branch>`, with
183
+ * `directory` relative to the main worktree (default: its parent).
184
+ */
185
+ export function defaultWorktreePath(mainWorktreePath, branch, directory = "..") {
186
+ return resolve(mainWorktreePath, directory, `${basename(mainWorktreePath)}-${branchSlug(branch)}`);
187
+ }
188
+ /**
189
+ * Arguments for `git worktree add`. Everything user-provided comes after `--`
190
+ * or as the value of `-b`, and each value is its own argv entry, so nothing can
191
+ * be interpreted as an option or split by a shell.
192
+ */
193
+ export function worktreeAddArgs(request) {
194
+ if (request.createBranch) {
195
+ const args = ["worktree", "add", "-b", request.branch, "--", request.path];
196
+ if (request.base)
197
+ args.push(request.base);
198
+ return args;
199
+ }
200
+ return ["worktree", "add", "--", request.path, request.branch];
201
+ }
202
+ /** Arguments for `git worktree remove`. Never `--force`: git's safety check stands. */
203
+ export function worktreeRemoveArgs(path) {
204
+ return ["worktree", "remove", "--", path];
205
+ }
206
+ /**
207
+ * Decide whether a worktree may be removed before asking git. `busy` lists
208
+ * directories where devcc is still running something (agents, processes).
209
+ * Returns the reason for refusing, or null when removal may proceed.
210
+ */
211
+ export function removalBlocker(worktree, busy = []) {
212
+ if (worktree.isMain)
213
+ return "The main worktree cannot be removed";
214
+ if (worktree.isCurrent)
215
+ return "devcc is running in this worktree; open another project first";
216
+ if (worktree.bare)
217
+ return "A bare repository is not a removable worktree";
218
+ if (worktree.locked) {
219
+ return `Worktree is locked${worktree.lockedReason ? `: ${worktree.lockedReason}` : ""}; unlock it with git first`;
220
+ }
221
+ const running = busy.find((dir) => isInside(dir, worktree.path));
222
+ if (running)
223
+ return `Something devcc started is still running in ${worktree.path}; stop it first`;
224
+ return null;
225
+ }
226
+ //# sourceMappingURL=worktrees.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"worktrees.js","sourceRoot":"","sources":["../../../src/devcc/git/worktrees.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,U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IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,QAAQ,CAAC,GAAG,EAAE,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAA;IAChE,IAAI,OAAO;QAAE,OAAO,+CAA+C,QAAQ,CAAC,IAAI,iBAAiB,CAAA;IACjG,OAAO,IAAI,CAAA;AACb,CAAC"}
@@ -6,16 +6,23 @@
6
6
  * git parsing) without the UI.
7
7
  */
8
8
  export { App, type AppOptions } from "./app/App.js";
9
+ export { createControlPlaneCommands } from "./app/controlPlaneCommands.js";
10
+ export { AgentManager, BUILTIN_AGENTS, createAgentAdapters, type AgentAdapter, type AgentConfig, type AgentLaunchOptions, type AgentSession, } from "./agents/agents.js";
11
+ export { envCommand, verifyCommand, worktreeListCommand } from "./automation.js";
9
12
  export { createBuiltinCommands, createConfigCommands, createScriptCommands } from "./app/builtinCommands.js";
10
13
  export { HELP_SECTIONS, VIEW_SHORTCUTS } from "./app/keymap.js";
11
14
  export { theme, glyphs, processStatusStyle, serviceStateStyle } from "./app/theme.js";
12
15
  export { CommandRegistry, type CommandContext, type CommandDefinition } from "./core/commands.js";
13
- export { defineConfig, loadConfig, validateConfig, findConfigFile, CONFIG_FILENAMES, DEFAULT_REFRESH, type CommandConfigEntry, type DevccConfig, type ResolvedConfig, type ServiceConfigEntry, } from "./core/config.js";
16
+ export { defineConfig, loadConfig, validateConfig, findConfigFile, CONFIG_FILENAMES, DEFAULT_REFRESH, type CommandConfigEntry, type DevccConfig, type EditorConfig, type RemoteMachineConfig, type ResolvedConfig, type ServiceConfigEntry, type TerminalConfig, type WorktreesConfig, } from "./core/config.js";
14
17
  export { TypedEmitter, Subscriptions, type Unsubscribe } from "./core/events.js";
15
18
  export { Store, VIEW_IDS, createInitialState, type AppState, type Notification, type ProjectState, type UiState, type ViewId, } from "./core/state.js";
16
19
  export { DependencyService, updateArgs, type DependencySnapshot } from "./deps/DependencyService.js";
17
20
  export { outdatedArgs, parseOutdated, severityBetween, sortOutdated, summariseOutdated, supportsOutdatedJson, type OutdatedPackage, type UpdateSeverity, } from "./deps/parse.js";
18
- export { GitService, type GitSnapshot } from "./git/GitService.js";
21
+ export { EnvironmentService, type EnvironmentSnapshot } from "./environment/EnvironmentService.js";
22
+ export { parseDirenvStatus, parseMiseLs, type DirenvStatus, type MiseStatus, type RuntimeVersion, } from "./environment/integrations.js";
23
+ export { DEFAULT_TOOLS, detectTool, findExecutable, type ToolDefinition, type ToolStatus, } from "./environment/tools.js";
24
+ export { GitService, type CreateWorktreeInput, type GitSnapshot } from "./git/GitService.js";
25
+ export { defaultWorktreePath, parseWorktreeList, removalBlocker, validateBranchName, worktreeAddArgs, worktreeRemoveArgs, type GitWorktree, } from "./git/worktrees.js";
19
26
  export { parseCommits, parsePorcelainV2, summariseStatus, summariseTracking, type GitCommit, type GitFile, type GitStatus, } from "./git/parse.js";
20
27
  export { LogBuffer, LogStore, MAX_LOG_LINES, type LogEntry, type LogSource, type LogStream, } from "./logs/LogBuffer.js";
21
28
  export { canTransition, crashBackoffDelay, shouldAutoRestart, DEFAULT_CRASH_POLICY, createManagedProcess, describeCommand, isActive, type ManagedProcess, type ProcessDefinition, type ProcessStatus, type ReadinessCheck, } from "./processes/ManagedProcess.js";
@@ -25,7 +32,9 @@ export { buildProjectList, discoverProjects, isProjectDirectory, readRecents, re
25
32
  export { ServiceManager } from "./services/ServiceManager.js";
26
33
  export { DockerService, findComposeFile, parseComposePs } from "./services/docker.js";
27
34
  export { PortService, detectNodeServices } from "./services/node.js";
28
- export { OllamaService } from "./services/ollama.js";
35
+ export { mergeOllamaModels, OllamaService, type OllamaModel } from "./services/ollama.js";
36
+ export { parseTailscaleStatus, RemoteMachineService, TailscaleService, type TailscaleStatus, } from "./services/remote.js";
37
+ export { editorCommand, launchDetached, sshCommand, terminalCommand } from "./platform/launch.js";
29
38
  export { PostgresService, parsePostgresUrl } from "./services/postgres.js";
30
39
  export { RedisService, parseRedisUrl } from "./services/redis.js";
31
40
  export type { ServiceAdapter, ServiceSnapshot, ServiceState, ServiceStatus } from "./services/types.js";
@@ -34,4 +43,5 @@ export { DevccError, errorMessage, toDevccError } from "./utils/errors.js";
34
43
  export { Logger, createLogger, type LogLevel } from "./utils/logger.js";
35
44
  export { detectPackageManager, readPackageJson, readScripts, runScriptArgs, type PackageManager, } from "./utils/packageManager.js";
36
45
  export { findProjectRoot } from "./utils/paths.js";
46
+ export { createSpawnExecutor, resolveVerifySteps, runVerification, type VerifyEntry, type VerifyReport, type VerifyStep, } from "./verify/verify.js";
37
47
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/devcc/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,GAAG,EAAE,KAAK,UAAU,EAAE,MAAM,cAAc,CAAA;AACnD,OAAO,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAA;AAC5G,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAC/D,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAA;AAErF,OAAO,EAAE,eAAe,EAAE,KAAK,cAAc,EAAE,KAAK,iBAAiB,EAAE,MAAM,oBAAoB,CAAA;AACjG,OAAO,EACL,YAAY,EACZ,UAAU,EACV,cAAc,EACd,cAAc,EACd,gBAAgB,EAChB,eAAe,EACf,KAAK,kBAAkB,EACvB,KAAK,WAAW,EAChB,KAAK,cAAc,EACnB,KAAK,kBAAkB,GACxB,MAAM,kBAAkB,CAAA;AACzB,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,KAAK,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAChF,OAAO,EACL,KAAK,EACL,QAAQ,EACR,kBAAkB,EAClB,KAAK,QAAQ,EACb,KAAK,YAAY,EACjB,KAAK,YAAY,EACjB,KAAK,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OAAO,EAAE,iBAAiB,EAAE,aAAa,EAAE,KAAK,WAAW,EAAE,MAAM,sBAAsB,CAAA;AACzF,OAAO,EACL,oBAAoB,EACpB,oBAAoB,EACpB,gBAAgB,EAChB,KAAK,eAAe,GACrB,MAAM,sBAAsB,CAAA;AAC7B,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AACjG,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAA;AAC1E,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAA;AACjE,YAAY,EAAE,cAAc,EAAE,eAAe,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAA;AAEvG,OAAO,EAAE,aAAa,EAAE,eAAe,EAAE,SAAS,EAAE,KAAK,aAAa,EAAE,MAAM,2BAA2B,CAAA;AAEzG,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAC1E,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,KAAK,QAAQ,EAAE,MAAM,mBAAmB,CAAA;AACvE,OAAO,EACL,oBAAoB,EACpB,eAAe,EACf,WAAW,EACX,aAAa,EACb,KAAK,cAAc,GACpB,MAAM,2BAA2B,CAAA;AAClC,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAA;AAClD,OAAO,EACL,mBAAmB,EACnB,kBAAkB,EAClB,eAAe,EACf,KAAK,WAAW,EAChB,KAAK,YAAY,EACjB,KAAK,UAAU,GAChB,MAAM,oBAAoB,CAAA"}
@@ -6,6 +6,9 @@
6
6
  * git parsing) without the UI.
7
7
  */
8
8
  export { App } from "./app/App.js";
9
+ export { createControlPlaneCommands } from "./app/controlPlaneCommands.js";
10
+ export { AgentManager, BUILTIN_AGENTS, createAgentAdapters, } from "./agents/agents.js";
11
+ export { envCommand, verifyCommand, worktreeListCommand } from "./automation.js";
9
12
  export { createBuiltinCommands, createConfigCommands, createScriptCommands } from "./app/builtinCommands.js";
10
13
  export { HELP_SECTIONS, VIEW_SHORTCUTS } from "./app/keymap.js";
11
14
  export { theme, glyphs, processStatusStyle, serviceStateStyle } from "./app/theme.js";
@@ -15,7 +18,11 @@ export { TypedEmitter, Subscriptions } from "./core/events.js";
15
18
  export { Store, VIEW_IDS, createInitialState, } from "./core/state.js";
16
19
  export { DependencyService, updateArgs } from "./deps/DependencyService.js";
17
20
  export { outdatedArgs, parseOutdated, severityBetween, sortOutdated, summariseOutdated, supportsOutdatedJson, } from "./deps/parse.js";
21
+ export { EnvironmentService } from "./environment/EnvironmentService.js";
22
+ export { parseDirenvStatus, parseMiseLs, } from "./environment/integrations.js";
23
+ export { DEFAULT_TOOLS, detectTool, findExecutable, } from "./environment/tools.js";
18
24
  export { GitService } from "./git/GitService.js";
25
+ export { defaultWorktreePath, parseWorktreeList, removalBlocker, validateBranchName, worktreeAddArgs, worktreeRemoveArgs, } from "./git/worktrees.js";
19
26
  export { parseCommits, parsePorcelainV2, summariseStatus, summariseTracking, } from "./git/parse.js";
20
27
  export { LogBuffer, LogStore, MAX_LOG_LINES, } from "./logs/LogBuffer.js";
21
28
  export { canTransition, crashBackoffDelay, shouldAutoRestart, DEFAULT_CRASH_POLICY, createManagedProcess, describeCommand, isActive, } from "./processes/ManagedProcess.js";
@@ -25,7 +32,9 @@ export { buildProjectList, discoverProjects, isProjectDirectory, readRecents, re
25
32
  export { ServiceManager } from "./services/ServiceManager.js";
26
33
  export { DockerService, findComposeFile, parseComposePs } from "./services/docker.js";
27
34
  export { PortService, detectNodeServices } from "./services/node.js";
28
- export { OllamaService } from "./services/ollama.js";
35
+ export { mergeOllamaModels, OllamaService } from "./services/ollama.js";
36
+ export { parseTailscaleStatus, RemoteMachineService, TailscaleService, } from "./services/remote.js";
37
+ export { editorCommand, launchDetached, sshCommand, terminalCommand } from "./platform/launch.js";
29
38
  export { PostgresService, parsePostgresUrl } from "./services/postgres.js";
30
39
  export { RedisService, parseRedisUrl } from "./services/redis.js";
31
40
  export { SystemMonitor, cpuUsageBetween, sampleCpu } from "./system/SystemMonitor.js";
@@ -33,4 +42,5 @@ export { DevccError, errorMessage, toDevccError } from "./utils/errors.js";
33
42
  export { Logger, createLogger } from "./utils/logger.js";
34
43
  export { detectPackageManager, readPackageJson, readScripts, runScriptArgs, } from "./utils/packageManager.js";
35
44
  export { findProjectRoot } from "./utils/paths.js";
45
+ export { createSpawnExecutor, resolveVerifySteps, runVerification, } from "./verify/verify.js";
36
46
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/devcc/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,GAAG,EAAmB,MAAM,cAAc,CAAA;AACnD,OAAO,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAA;AAC5G,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAC/D,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAA;AAErF,OAAO,EAAE,eAAe,EAA+C,MAAM,oBAAoB,CAAA;AACjG,OAAO,EACL,YAAY,EACZ,UAAU,EACV,cAAc,EACd,cAAc,EACd,gBAAgB,EAChB,eAAe,GAKhB,MAAM,kBAAkB,CAAA;AACzB,OAAO,EAAE,YAAY,EAAE,aAAa,EAAoB,MAAM,kBAAkB,CAAA;AAChF,OAAO,EACL,KAAK,EACL,QAAQ,EACR,kBAAkB,GAMnB,MAAM,iBAAiB,CAAA;AAExB,OAAO,EAAE,iBAAiB,EAAE,UAAU,EAA2B,MAAM,6BAA6B,CAAA;AACpG,OAAO,EACL,YAAY,EACZ,aAAa,EACb,eAAe,EACf,YAAY,EACZ,iBAAiB,EACjB,oBAAoB,GAGrB,MAAM,iBAAiB,CAAA;A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EAAE,MAAM,wBAAwB,CAAA;AAC1E,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAA;AAGjE,OAAO,EAAE,aAAa,EAAE,eAAe,EAAE,SAAS,EAAsB,MAAM,2BAA2B,CAAA;AAEzG,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAC1E,OAAO,EAAE,MAAM,EAAE,YAAY,EAAiB,MAAM,mBAAmB,CAAA;AACvE,OAAO,EACL,oBAAoB,EACpB,eAAe,EACf,WAAW,EACX,aAAa,GAEd,MAAM,2BAA2B,CAAA;AAClC,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAA;AAClD,OAAO,EACL,mBAAmB,EACnB,kBAAkB,EAClB,eAAe,GAIhB,MAAM,oBAAoB,CAAA"}
@@ -0,0 +1,30 @@
1
+ import type { EditorConfig, RemoteMachineConfig, TerminalConfig } from "../core/config.js";
2
+ /**
3
+ * Opening things outside devcc: editors, terminals, SSH sessions.
4
+ *
5
+ * Every launch is an executable plus an argv array, detached from devcc so
6
+ * closing the dashboard never closes your editor. macOS conventions (`open`,
7
+ * `open -a`) are used only when running on macOS; elsewhere a configured
8
+ * command is required.
9
+ */
10
+ export interface LaunchCommand {
11
+ command: string;
12
+ args: string[];
13
+ }
14
+ export type Platform = NodeJS.Platform;
15
+ /** Replace `{path}` inside individual arguments. Never joins arguments into a string. */
16
+ export declare function substitutePath(args: readonly string[], path: string): string[];
17
+ export declare function editorCommand(path: string, editor: EditorConfig | undefined, platform?: Platform): LaunchCommand;
18
+ export declare function terminalCommand(path: string, terminal: TerminalConfig | undefined, platform?: Platform): LaunchCommand;
19
+ /**
20
+ * An interactive SSH session needs a terminal. On macOS `open ssh://host`
21
+ * hands the URL to the default terminal, which runs `ssh` with the user's own
22
+ * config for that alias. Elsewhere the configured terminal runs `ssh`.
23
+ */
24
+ export declare function sshCommand(machine: Pick<RemoteMachineConfig, "host" | "user" | "port">, terminal: TerminalConfig | undefined, platform?: Platform): LaunchCommand;
25
+ /**
26
+ * Start a GUI or launcher process detached from devcc. Resolves once it has
27
+ * spawned (not when it exits); rejects with a readable error if it cannot start.
28
+ */
29
+ export declare function launchDetached(launch: LaunchCommand, cwd?: string): Promise<void>;
30
+ //# sourceMappingURL=launch.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"launch.d.ts","sourceRoot":"","sources":["../../../src/devcc/platform/launch.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,mBAAmB,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AAI1F;;;;;;;GAOG;AAEH,MAAM,WAAW,aAAa;IAC5B,OAAO,EAAE,MAAM,CAAA;IACf,IAAI,EAAE,MAAM,EAAE,CAAA;CACf;AAED,MAAM,MAAM,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAA;AAEtC,yFAAyF;AACzF,wBAAgB,cAAc,CAAC,IAAI,EAAE,SAAS,MAAM,EAAE,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,CAE9E;AAED,wBAAgB,aAAa,CAC3B,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,YAAY,GAAG,SAAS,EAChC,QAAQ,GAAE,QAA2B,GACpC,aAAa,CAgBf;AAED,wBAAgB,eAAe,CAC7B,IAAI,EAAE,MAAM,EACZ,QAAQ,EAAE,cAAc,GAAG,SAAS,EACpC,QAAQ,GAAE,QAA2B,GACpC,aAAa,CAaf;AAED;;;;GAIG;AACH,wBAAgB,UAAU,CACxB,OAAO,EAAE,IAAI,CAAC,mBAAmB,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC,EAC5D,QAAQ,EAAE,cAAc,GAAG,SAAS,EACpC,QAAQ,GAAE,QAA2B,GACpC,aAAa,CAkBf;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAAC,MAAM,EAAE,aAAa,EAAE,GAAG,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAejF"}
@@ -0,0 +1,93 @@
1
+ import { spawn } from "node:child_process";
2
+ import { sshDestination } from "../services/remote.js";
3
+ import { DevccError } from "../utils/errors.js";
4
+ /** Replace `{path}` inside individual arguments. Never joins arguments into a string. */
5
+ export function substitutePath(args, path) {
6
+ return args.map((arg) => arg.split("{path}").join(path));
7
+ }
8
+ export function editorCommand(path, editor, platform = process.platform) {
9
+ if (editor?.command)
10
+ return { command: editor.command, args: [...(editor.args ?? []), path] };
11
+ if (editor?.application) {
12
+ if (platform !== "darwin") {
13
+ throw new DevccError({
14
+ scope: "command",
15
+ message: `editor.application only works on macOS; set editor.command`,
16
+ });
17
+ }
18
+ return { command: "open", args: ["-a", editor.application, path] };
19
+ }
20
+ throw new DevccError({
21
+ scope: "command",
22
+ message: "No editor configured",
23
+ detail: 'Set editor: { command: "code" } (or zed, cursor, webstorm) in .devcc.ts',
24
+ });
25
+ }
26
+ export function terminalCommand(path, terminal, platform = process.platform) {
27
+ if (terminal?.command) {
28
+ const args = terminal.args ?? ["{path}"];
29
+ return { command: terminal.command, args: substitutePath(args, path) };
30
+ }
31
+ if (platform === "darwin") {
32
+ return { command: "open", args: ["-a", terminal?.application ?? "Terminal", path] };
33
+ }
34
+ throw new DevccError({
35
+ scope: "command",
36
+ message: "No terminal configured",
37
+ detail: 'Set terminal: { command: "wezterm", args: ["start", "--cwd", "{path}"] } in .devcc.ts',
38
+ });
39
+ }
40
+ /**
41
+ * An interactive SSH session needs a terminal. On macOS `open ssh://host`
42
+ * hands the URL to the default terminal, which runs `ssh` with the user's own
43
+ * config for that alias. Elsewhere the configured terminal runs `ssh`.
44
+ */
45
+ export function sshCommand(machine, terminal, platform = process.platform) {
46
+ if (terminal?.command && terminal.execArgs) {
47
+ const port = machine.port ? ["-p", String(machine.port)] : [];
48
+ return {
49
+ command: terminal.command,
50
+ args: [...terminal.execArgs, "ssh", ...port, sshDestination(machine)],
51
+ };
52
+ }
53
+ if (platform === "darwin") {
54
+ const user = machine.user ? `${encodeURIComponent(machine.user)}@` : "";
55
+ const port = machine.port ? `:${machine.port}` : "";
56
+ return { command: "open", args: [`ssh://${user}${machine.host}${port}`] };
57
+ }
58
+ throw new DevccError({
59
+ scope: "command",
60
+ message: "No terminal configured for SSH",
61
+ detail: 'Set terminal: { command: "wezterm", execArgs: ["start", "--"] } in .devcc.ts',
62
+ });
63
+ }
64
+ /**
65
+ * Start a GUI or launcher process detached from devcc. Resolves once it has
66
+ * spawned (not when it exits); rejects with a readable error if it cannot start.
67
+ */
68
+ export function launchDetached(launch, cwd) {
69
+ return new Promise((resolve, reject) => {
70
+ let child;
71
+ try {
72
+ child = spawn(launch.command, launch.args, { cwd, detached: true, stdio: "ignore", windowsHide: true });
73
+ }
74
+ catch (error) {
75
+ reject(toLaunchError(launch, error));
76
+ return;
77
+ }
78
+ child.once("error", (error) => reject(toLaunchError(launch, error)));
79
+ child.once("spawn", () => {
80
+ child.unref();
81
+ resolve();
82
+ });
83
+ });
84
+ }
85
+ function toLaunchError(launch, error) {
86
+ const code = error.code;
87
+ return new DevccError({
88
+ scope: "command",
89
+ message: code === "ENOENT" ? `\`${launch.command}\` was not found` : `Could not run ${launch.command}`,
90
+ cause: error,
91
+ });
92
+ }
93
+ //# sourceMappingURL=launch.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"launch.js","sourceRoot":"","sources":["../../../src/devcc/platform/launch.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAA;AAE1C,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAA;AACtD,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AAkB/C,yFAAyF;AACzF,MAAM,UAAU,cAAc,CAAC,IAAuB,EAAE,IAAY;IAClE,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,IAAI,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ents> {
26
26
  private readonly adapters;
27
27
  private readonly detected;
28
28
  private readonly snapshots;
29
+ /** When each adapter was last asked for its status. */
30
+ private readonly checkedAt;
29
31
  private timer;
30
32
  private refreshing;
31
33
  private readonly intervalMs;
@@ -40,8 +42,14 @@ export declare class ServiceManager extends TypedEmitter<ServiceManagerEvents> {
40
42
  detectAll(): Promise<ServiceSnapshot[]>;
41
43
  start(): void;
42
44
  stop(): void;
43
- /** Refresh all detected adapters concurrently. Overlapping calls are skipped. */
44
- refresh(): Promise<ServiceSnapshot[]>;
45
+ /**
46
+ * Refresh all detected adapters concurrently. Overlapping calls are skipped.
47
+ * A `polled` refresh (the timer) skips adapters whose `refreshIntervalMs`
48
+ * has not elapsed; an explicit refresh checks everything.
49
+ */
50
+ refresh(options?: {
51
+ polled?: boolean;
52
+ }): Promise<ServiceSnapshot[]>;
45
53
  runAction(id: string, action: "start" | "stop" | "restart", context: ServiceActionContext): Promise<void>;
46
54
  private setSnapshot;
47
55
  }
@@ -1 +1 @@
1
- {"version":3,"file":"ServiceManager.d.ts","sourceRoot":"","sources":["../../../src/devcc/services/ServiceManager.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAChD,OAAO,EAAE,UAAU,EAA8B,MAAM,oBAAoB,CAAA;AAE3E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AACtD,OAAO,KAAK,EAAE,oBAAoB,EAAE,cAAc,EAAE,eAAe,EAAiB,MAAM,YAAY,CAAA;AAEtG,MAAM,MAAM,oBAAoB,GAAG;IACjC,cAAc,EAAE,CAAC,eAAe,EAAE,CAAC,CAAA;IACnC,iBAAiB,EAAE,CAAC,eAAe,CAAC,CAAA;IACpC,eAAe,EAAE,CAAC,UAAU,CAAC,CAAA;CAC9B,CAAA;AAED,MAAM,WAAW,qBAAqB;IACpC,MAAM,EAAE,YAAY,CAAA;IACpB,0CAA0C;IAC1C,UAAU,CAAC,EAAE,MAA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