t3code-cli 0.14.1 → 0.14.2
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/README.md +1 -0
- package/dist/application.d.ts +2 -2
- package/dist/application.js +1 -1
- package/dist/auth.d.ts +1 -1
- package/dist/auth.js +1 -1
- package/dist/bin.js +544 -262
- package/dist/cli.d.ts +1 -1
- package/dist/cli.js +1 -1
- package/dist/client-runtime/authorization.d.ts +1 -1
- package/dist/client-runtime/authorization.js +1 -1
- package/dist/client-runtime/connection.d.ts +1 -1
- package/dist/client-runtime/connection.js +1 -1
- package/dist/client-runtime/environment.d.ts +5 -1
- package/dist/client-runtime/environment.js +1 -1
- package/dist/client-runtime/errors.js +1 -1
- package/dist/client-runtime/operations/projects.d.ts +2 -2
- package/dist/client-runtime/operations/projects.js +2 -2
- package/dist/client-runtime/operations.d.ts +2 -2
- package/dist/client-runtime/operations.js +2 -2
- package/dist/client-runtime/platform.d.ts +1 -1
- package/dist/client-runtime/platform.js +1 -1
- package/dist/client-runtime/relay.d.ts +5 -1
- package/dist/client-runtime/relay.js +1 -1
- package/dist/client-runtime/rpc.d.ts +2 -2
- package/dist/client-runtime/rpc.js +2 -2
- package/dist/client-runtime/state/assets.d.ts +17 -11
- package/dist/client-runtime/state/assets.js +1 -1
- package/dist/client-runtime/state/auth.d.ts +1 -1
- package/dist/client-runtime/state/auth.js +1 -1
- package/dist/client-runtime/state/connections.js +1 -1
- package/dist/client-runtime/state/entities.d.ts +1 -1
- package/dist/client-runtime/state/entities.js +1 -1
- package/dist/client-runtime/state/filesystem.d.ts +1 -1
- package/dist/client-runtime/state/filesystem.js +1 -1
- package/dist/client-runtime/state/git.d.ts +5 -5
- package/dist/client-runtime/state/git.js +1 -1
- package/dist/client-runtime/state/models.d.ts +1 -1
- package/dist/client-runtime/state/models.js +1 -1
- package/dist/client-runtime/state/orchestration.d.ts +42 -2
- package/dist/client-runtime/state/orchestration.js +13 -1
- package/dist/client-runtime/state/presentation.d.ts +9 -3
- package/dist/client-runtime/state/presentation.js +1 -1
- package/dist/client-runtime/state/preview.d.ts +55 -48
- package/dist/client-runtime/state/preview.js +1 -1
- package/dist/client-runtime/state/project-grouping.d.ts +26 -2
- package/dist/client-runtime/state/project-grouping.js +83 -3
- package/dist/client-runtime/state/projects.d.ts +24 -18
- package/dist/client-runtime/state/projects.js +1 -1
- package/dist/client-runtime/state/relay.d.ts +1 -1
- package/dist/client-runtime/state/relay.js +1 -1
- package/dist/client-runtime/state/review.d.ts +16 -1
- package/dist/client-runtime/state/review.js +27 -6
- package/dist/client-runtime/state/runtime.d.ts +2 -2
- package/dist/client-runtime/state/runtime.js +2 -2
- package/dist/client-runtime/state/server.d.ts +299 -172
- package/dist/client-runtime/state/server.js +192 -16
- package/dist/client-runtime/state/session.d.ts +65 -7
- package/dist/client-runtime/state/session.js +32 -3
- package/dist/client-runtime/state/shell.d.ts +41 -7
- package/dist/client-runtime/state/shell.js +1 -1
- package/dist/client-runtime/state/source-control.d.ts +2 -2
- package/dist/client-runtime/state/source-control.js +1 -1
- package/dist/client-runtime/state/subagentRuntime.d.ts +145 -0
- package/dist/client-runtime/state/subagentRuntime.js +521 -0
- package/dist/client-runtime/state/terminal.d.ts +17 -17
- package/dist/client-runtime/state/terminal.js +1 -1
- package/dist/client-runtime/state/thread-search.d.ts +23 -0
- package/dist/client-runtime/state/thread-search.js +38 -0
- package/dist/client-runtime/state/thread-settled.d.ts +28 -3
- package/dist/client-runtime/state/thread-settled.js +74 -2
- package/dist/client-runtime/state/thread-sort.d.ts +59 -2
- package/dist/client-runtime/state/thread-sort.js +128 -2
- package/dist/client-runtime/state/threads.d.ts +115 -3
- package/dist/client-runtime/state/threads.js +309 -28
- package/dist/client-runtime/state/vcs.d.ts +14 -14
- package/dist/client-runtime/state/vcs.js +1 -1
- package/dist/config.d.ts +1 -1
- package/dist/config.js +1 -1
- package/dist/connection.d.ts +1 -1
- package/dist/connection.js +1 -1
- package/dist/contracts.d.ts +1 -1
- package/dist/contracts.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/node.d.ts +1 -1
- package/dist/node.js +1 -1
- package/dist/orchestration.d.ts +144 -1
- package/dist/orchestration.js +1 -1
- package/dist/preview.d.ts +1 -1
- package/dist/preview.js +1 -1
- package/dist/rpc.d.ts +883 -351
- package/dist/rpc.js +1 -1
- package/dist/runtime.d.ts +1 -1
- package/dist/runtime.js +1 -1
- package/dist/shared/DrainableWorker.js +1 -1
- package/dist/shared/KeyedCoalescingWorker.js +1 -1
- package/dist/shared/Net.js +1 -1
- package/dist/shared/advertisedEndpoint.d.ts +1 -1
- package/dist/shared/advertisedEndpoint.js +1 -1
- package/dist/shared/agentAwareness.d.ts +1 -1
- package/dist/shared/backgroundActivitySettings.d.ts +1 -1
- package/dist/shared/composerInlineTokens.js +1 -1
- package/dist/shared/connectAuth.js +1 -1
- package/dist/shared/devHome.js +1 -1
- package/dist/shared/dpop.js +1 -1
- package/dist/shared/git.d.ts +1 -1
- package/dist/shared/httpObservability.js +1 -1
- package/dist/shared/httpReadiness.js +1 -1
- package/dist/shared/keybindings.d.ts +2 -2
- package/dist/shared/keybindings.js +15 -1
- package/dist/shared/model.d.ts +1 -1
- package/dist/shared/oauthScope.js +1 -1
- package/dist/shared/observability.d.ts +8 -1
- package/dist/shared/observability.js +49 -5
- package/dist/shared/path.js +1 -1
- package/dist/shared/preview.js +1 -1
- package/dist/shared/previewViewport.d.ts +1 -1
- package/dist/shared/previewViewport.js +1 -1
- package/dist/shared/projectFavicon.d.ts +2 -1
- package/dist/shared/projectFavicon.js +13 -1
- package/dist/shared/projectScripts.d.ts +1 -1
- package/dist/shared/relayAuth.js +1 -1
- package/dist/shared/relayClient.d.ts +1 -1
- package/dist/shared/relayClient.js +1 -1
- package/dist/shared/relayJwt.js +1 -1
- package/dist/shared/relayTracing.js +1 -1
- package/dist/shared/relayUrl.js +1 -1
- package/dist/shared/remote.js +1 -1
- package/dist/shared/schemaYaml.js +3 -3
- package/dist/shared/semver.js +1 -1
- package/dist/shared/serverSettings.d.ts +1 -1
- package/dist/shared/serverSettings.js +1 -1
- package/dist/shared/shell.d.ts +6 -1
- package/dist/shared/shell.js +42 -4
- package/dist/shared/sourceControl.d.ts +1 -1
- package/dist/shared/t3ProjectFile.d.ts +9 -1
- package/dist/shared/t3ProjectFile.js +12 -2
- package/dist/shared/terminalLabels.d.ts +1 -1
- package/dist/shared/threadEnvMode.d.ts +29 -0
- package/dist/shared/threadEnvMode.js +24 -0
- package/dist/shared/toolActivity.d.ts +1 -1
- package/dist/shared/usageFormat.d.ts +21 -0
- package/dist/shared/usageFormat.js +90 -0
- package/dist/shared/usageMerge.d.ts +67 -0
- package/dist/shared/usageMerge.js +218 -0
- package/dist/shared.d.ts +4472 -668
- package/dist/shared.js +16867 -16273
- package/dist/t3tools.d.ts +2 -2
- package/dist/t3tools.js +2 -2
- package/package.json +5 -5
- package/src/application/index.ts +1 -0
- package/src/application/service.ts +5 -1
- package/src/application/threads.ts +43 -1
- package/src/cli/app.ts +2 -0
- package/src/cli/format/thread.ts +23 -1
- package/src/cli/search.ts +48 -0
- package/src/config/persist/schema.ts +1 -1
- package/src/orchestration/layer.ts +6 -0
- package/src/orchestration/service.ts +5 -0
- package/src/rpc/error.ts +2 -0
- package/src/rpc/operation.ts +2 -0
- package/src/rpc/ws-group.ts +2 -0
|
@@ -1,10 +1,83 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CD as EnvironmentId, Da as EnvironmentSupervisor, Dd as KeybindingsConfigError, Eu as ServerLifecycleWelcomePayload, Ku as ServerProviderUpdateError, Na as EnvironmentCacheStore, Ta as EnvironmentRegistry, Td as KeybindingWhenNode, ad as ServerSelfUpdateProgressEvent, an as EnvironmentRpcInput, du as ServerConfig, f as AtomCommand, gu as ServerConfigStreamEvent, iD as EnvironmentAuthorizationError, mn as EnvironmentRpcUnavailableError, sd as ServerSelfUpdateResult, tl as UsageReadError, vs as WS_METHODS, wa as EnvironmentNotRegisteredError, wu as ServerLifecycleStreamReadyEvent, yv as ServerSettingsError } from "../../shared.js";
|
|
2
2
|
import * as Effect from "effect/Effect";
|
|
3
3
|
import * as Stream from "effect/Stream";
|
|
4
|
+
import * as Schema from "effect/Schema";
|
|
5
|
+
import * as Duration from "effect/Duration";
|
|
4
6
|
import * as Option from "effect/Option";
|
|
5
7
|
import * as SubscriptionRef from "effect/SubscriptionRef";
|
|
8
|
+
import * as Cause from "effect/Cause";
|
|
6
9
|
import { AsyncResult, Atom } from "effect/unstable/reactivity";
|
|
10
|
+
import * as Exit from "effect/Exit";
|
|
7
11
|
//#region upstream-t3code/packages/client-runtime/src/state/server.d.ts
|
|
12
|
+
type ServerUpdateStage = "downloading" | "installing" | "resuming";
|
|
13
|
+
type ServerUpdateState = {
|
|
14
|
+
readonly status: "idle";
|
|
15
|
+
} | {
|
|
16
|
+
readonly status: "running";
|
|
17
|
+
readonly stage: ServerUpdateStage;
|
|
18
|
+
readonly fromVersion: string;
|
|
19
|
+
readonly targetVersion: string;
|
|
20
|
+
} | {
|
|
21
|
+
readonly status: "failed";
|
|
22
|
+
readonly stage: ServerUpdateStage;
|
|
23
|
+
readonly fromVersion: string;
|
|
24
|
+
readonly targetVersion: string;
|
|
25
|
+
readonly message: string;
|
|
26
|
+
};
|
|
27
|
+
interface ServerUpdateTarget {
|
|
28
|
+
readonly environmentId: EnvironmentId;
|
|
29
|
+
readonly input: EnvironmentRpcInput<typeof WS_METHODS.serverUpdateServer>;
|
|
30
|
+
}
|
|
31
|
+
declare const ServerUpdateResumeTimeoutError_base: Schema.Class<ServerUpdateResumeTimeoutError, Schema.TaggedStruct<"ServerUpdateResumeTimeoutError", {
|
|
32
|
+
readonly environmentId: Schema.String;
|
|
33
|
+
readonly targetVersion: Schema.String;
|
|
34
|
+
}>, Cause.YieldableError>;
|
|
35
|
+
declare class ServerUpdateResumeTimeoutError extends ServerUpdateResumeTimeoutError_base {
|
|
36
|
+
get message(): string;
|
|
37
|
+
}
|
|
38
|
+
declare const ServerUpdateProgressIncompleteError_base: Schema.Class<ServerUpdateProgressIncompleteError, Schema.TaggedStruct<"ServerUpdateProgressIncompleteError", {
|
|
39
|
+
readonly targetVersion: Schema.String;
|
|
40
|
+
}>, Cause.YieldableError>;
|
|
41
|
+
declare class ServerUpdateProgressIncompleteError extends ServerUpdateProgressIncompleteError_base {
|
|
42
|
+
get message(): string;
|
|
43
|
+
}
|
|
44
|
+
declare const ServerUpdateTerminalError_base: Schema.Class<ServerUpdateTerminalError, Schema.TaggedStruct<"ServerUpdateTerminalError", {
|
|
45
|
+
readonly targetVersion: Schema.String;
|
|
46
|
+
readonly status: Schema.Literals<readonly ["committed", "rolled-back", "failed"]>;
|
|
47
|
+
readonly reason: Schema.optional<Schema.String>;
|
|
48
|
+
}>, Cause.YieldableError>;
|
|
49
|
+
declare class ServerUpdateTerminalError extends ServerUpdateTerminalError_base {
|
|
50
|
+
get message(): string;
|
|
51
|
+
}
|
|
52
|
+
declare function matchesServerUpdateReadyEvent(result: ServerSelfUpdateResult, event: ServerLifecycleStreamReadyEvent): boolean;
|
|
53
|
+
declare function validateServerUpdateReadyEvent(result: ServerSelfUpdateResult, event: ServerLifecycleStreamReadyEvent): Effect.Effect<void, ServerUpdateTerminalError>;
|
|
54
|
+
/**
|
|
55
|
+
* Keeps reconnect attempts ~1s apart for the whole update restart.
|
|
56
|
+
*
|
|
57
|
+
* A restart takes the server down for ~15 seconds, but the supervisor's normal
|
|
58
|
+
* backoff ladder (1/2/4/8/16s) assumes an unexpected failure and lands attempts
|
|
59
|
+
* at ~3, 5, 9, 17 and 33 seconds — so a 15-second restart is observed as a
|
|
60
|
+
* 33-second "Resuming". Nudging on every backoff entry (not just the first)
|
|
61
|
+
* holds the retry cadence flat until the server answers again. The sleep before
|
|
62
|
+
* each nudge is the pacer: a connection that fails instantly re-enters backoff
|
|
63
|
+
* immediately and would otherwise spin a tight retry loop.
|
|
64
|
+
*
|
|
65
|
+
* Callers fork this as a child of the update command so it is interrupted as
|
|
66
|
+
* soon as the update settles, whether it succeeds, fails, or times out.
|
|
67
|
+
*/
|
|
68
|
+
declare function nudgeReconnectDuringUpdateRestart(input: {
|
|
69
|
+
readonly stateChanges: Stream.Stream<{
|
|
70
|
+
readonly phase: string;
|
|
71
|
+
}, unknown>;
|
|
72
|
+
readonly retryNow: Effect.Effect<void>;
|
|
73
|
+
readonly interval?: Duration.Duration;
|
|
74
|
+
}): Effect.Effect<void>;
|
|
75
|
+
declare function serverUpdateStateForProgressEvent(fromVersion: string, targetVersion: string, event: ServerSelfUpdateProgressEvent): Extract<ServerUpdateState, {
|
|
76
|
+
status: "running";
|
|
77
|
+
}>;
|
|
78
|
+
declare function serverUpdateStateForServerVersion(state: ServerUpdateState, serverVersion: string | null): ServerUpdateState;
|
|
79
|
+
declare function isLegacyUpdateHandoffLoss(cause: Cause.Cause<unknown>): boolean;
|
|
80
|
+
declare function resolveServerUpdateProgressResult<E>(targetVersion: string, terminal: Option.Option<ServerSelfUpdateResult>, streamExit: Exit.Exit<void, E>): Effect.Effect<ServerSelfUpdateResult, E | ServerUpdateProgressIncompleteError>;
|
|
8
81
|
interface ServerConfigProjection {
|
|
9
82
|
readonly config: ServerConfig;
|
|
10
83
|
readonly latestEvent: ServerConfigStreamEvent;
|
|
@@ -41,7 +114,11 @@ declare function createServerEnvironmentAtoms<R, E>(runtime: Atom.AtomRuntime<En
|
|
|
41
114
|
readonly connectionProbe?: boolean;
|
|
42
115
|
readonly threadSettlement?: boolean;
|
|
43
116
|
readonly threadSnooze?: boolean;
|
|
117
|
+
readonly threadPinning?: boolean;
|
|
118
|
+
readonly threadPinReorder?: boolean;
|
|
119
|
+
readonly threadTitleRegeneration?: boolean;
|
|
44
120
|
readonly serverSelfUpdate?: "boot-service" | "desktop-managed" | "respawn";
|
|
121
|
+
readonly serverSelfUpdateProgress?: boolean;
|
|
45
122
|
};
|
|
46
123
|
};
|
|
47
124
|
readonly auth: {
|
|
@@ -53,7 +130,7 @@ declare function createServerEnvironmentAtoms<R, E>(runtime: Atom.AtomRuntime<En
|
|
|
53
130
|
readonly cwd: string;
|
|
54
131
|
readonly keybindingsConfigPath: string;
|
|
55
132
|
readonly keybindings: readonly {
|
|
56
|
-
readonly command: "chat.new" | "chat.newLocal" | "commandPalette.toggle" | "composer.stash" | "diff.toggle" | "editor.openFavorite" | "modelPicker.jump.1" | "modelPicker.jump.2" | "modelPicker.jump.3" | "modelPicker.jump.4" | "modelPicker.jump.5" | "modelPicker.jump.6" | "modelPicker.jump.7" | "modelPicker.jump.8" | "modelPicker.jump.9" | "modelPicker.toggle" | "preview.focusUrl" | "preview.refresh" | "preview.resetZoom" | "preview.toggle" | "preview.zoomIn" | "preview.zoomOut" | "rightPanel.toggle" | "sidebar.toggle" | "terminal.close" | "terminal.new" | "terminal.split" | "terminal.splitVertical" | "terminal.toggle" | "thread.jump.1" | "thread.jump.2" | "thread.jump.3" | "thread.jump.4" | "thread.jump.5" | "thread.jump.6" | "thread.jump.7" | "thread.jump.8" | "thread.jump.9" | "thread.next" | "thread.previous" | `script.${string}.run`;
|
|
133
|
+
readonly command: "chat.new" | "chat.newLocal" | "commandPalette.toggle" | "composer.stash" | "diff.toggle" | "editor.openFavorite" | "filePicker.toggle" | "modelPicker.jump.1" | "modelPicker.jump.2" | "modelPicker.jump.3" | "modelPicker.jump.4" | "modelPicker.jump.5" | "modelPicker.jump.6" | "modelPicker.jump.7" | "modelPicker.jump.8" | "modelPicker.jump.9" | "modelPicker.toggle" | "preview.focusUrl" | "preview.refresh" | "preview.resetZoom" | "preview.toggle" | "preview.zoomIn" | "preview.zoomOut" | "projectSearch.toggle" | "rightPanel.toggle" | "sidebar.toggle" | "terminal.close" | "terminal.new" | "terminal.split" | "terminal.splitVertical" | "terminal.toggle" | "themeEditor.toggle" | "thread.jump.1" | "thread.jump.2" | "thread.jump.3" | "thread.jump.4" | "thread.jump.5" | "thread.jump.6" | "thread.jump.7" | "thread.jump.8" | "thread.jump.9" | "thread.next" | "thread.previous" | `script.${string}.run`;
|
|
57
134
|
readonly shortcut: {
|
|
58
135
|
readonly key: string;
|
|
59
136
|
readonly metaKey: boolean;
|
|
@@ -118,6 +195,7 @@ declare function createServerEnvironmentAtoms<R, E>(runtime: Atom.AtomRuntime<En
|
|
|
118
195
|
readonly subProvider?: string | undefined;
|
|
119
196
|
readonly isCustom: boolean;
|
|
120
197
|
readonly isDefault?: boolean | undefined;
|
|
198
|
+
readonly isLegacy?: boolean | undefined;
|
|
121
199
|
readonly capabilities: {
|
|
122
200
|
readonly optionDescriptors?: readonly ({
|
|
123
201
|
readonly id: string;
|
|
@@ -184,26 +262,26 @@ declare function createServerEnvironmentAtoms<R, E>(runtime: Atom.AtomRuntime<En
|
|
|
184
262
|
readonly otlpMetricsEnabled: boolean;
|
|
185
263
|
};
|
|
186
264
|
readonly settings: {
|
|
187
|
-
readonly
|
|
265
|
+
readonly enableLegacyTokenStreaming: boolean;
|
|
188
266
|
readonly enableProviderUpdateChecks: boolean;
|
|
189
267
|
readonly backgroundActivity: {
|
|
190
268
|
readonly schemaVersion: 1;
|
|
191
269
|
readonly profile: "balanced" | "battery-saver" | "custom" | "performance";
|
|
192
270
|
readonly baseProfile?: "balanced" | "battery-saver" | "performance";
|
|
193
271
|
readonly overrides: {
|
|
194
|
-
readonly automaticGitFetchInterval?:
|
|
195
|
-
readonly providerHealthRefreshInterval?:
|
|
196
|
-
readonly hostPowerMonitorActiveInterval?:
|
|
197
|
-
readonly hostPowerMonitorIdleInterval?:
|
|
198
|
-
readonly idleClientTtl?:
|
|
272
|
+
readonly automaticGitFetchInterval?: Duration.Duration;
|
|
273
|
+
readonly providerHealthRefreshInterval?: Duration.Duration;
|
|
274
|
+
readonly hostPowerMonitorActiveInterval?: Duration.Duration;
|
|
275
|
+
readonly hostPowerMonitorIdleInterval?: Duration.Duration;
|
|
276
|
+
readonly idleClientTtl?: Duration.Duration;
|
|
199
277
|
readonly pauseWhenHostLocked?: boolean;
|
|
200
278
|
readonly pauseWhenHostLowPower?: boolean;
|
|
201
279
|
readonly pauseWhenClientLowPower?: boolean;
|
|
202
280
|
readonly pauseWhenOnBattery?: boolean;
|
|
203
281
|
};
|
|
204
282
|
};
|
|
205
|
-
readonly automaticGitFetchInterval:
|
|
206
|
-
readonly providerHealthRefreshInterval:
|
|
283
|
+
readonly automaticGitFetchInterval: Duration.Duration;
|
|
284
|
+
readonly providerHealthRefreshInterval: Duration.Duration;
|
|
207
285
|
readonly backgroundActivityProfile: "balanced" | "battery-saver" | "performance";
|
|
208
286
|
readonly defaultThreadEnvMode: "local" | "worktree";
|
|
209
287
|
readonly newWorktreesStartFromOrigin: boolean;
|
|
@@ -286,28 +364,30 @@ declare function createServerEnvironmentAtoms<R, E>(runtime: Atom.AtomRuntime<En
|
|
|
286
364
|
};
|
|
287
365
|
readonly shellResumeCompletionMarker?: boolean;
|
|
288
366
|
readonly threadResumeCompletionMarker?: boolean;
|
|
367
|
+
readonly threadSnapshotPagination?: boolean;
|
|
289
368
|
} | null>;
|
|
369
|
+
updateStateAtom: (environmentId: EnvironmentId | null) => Atom.Atom<ServerUpdateState>;
|
|
290
370
|
settingsValueAtom: (arg: string & import("effect/Brand").Brand<"EnvironmentId">) => Atom.Atom<{
|
|
291
|
-
readonly
|
|
371
|
+
readonly enableLegacyTokenStreaming: boolean;
|
|
292
372
|
readonly enableProviderUpdateChecks: boolean;
|
|
293
373
|
readonly backgroundActivity: {
|
|
294
374
|
readonly schemaVersion: 1;
|
|
295
375
|
readonly profile: "balanced" | "battery-saver" | "custom" | "performance";
|
|
296
376
|
readonly baseProfile?: "balanced" | "battery-saver" | "performance";
|
|
297
377
|
readonly overrides: {
|
|
298
|
-
readonly automaticGitFetchInterval?:
|
|
299
|
-
readonly providerHealthRefreshInterval?:
|
|
300
|
-
readonly hostPowerMonitorActiveInterval?:
|
|
301
|
-
readonly hostPowerMonitorIdleInterval?:
|
|
302
|
-
readonly idleClientTtl?:
|
|
378
|
+
readonly automaticGitFetchInterval?: Duration.Duration;
|
|
379
|
+
readonly providerHealthRefreshInterval?: Duration.Duration;
|
|
380
|
+
readonly hostPowerMonitorActiveInterval?: Duration.Duration;
|
|
381
|
+
readonly hostPowerMonitorIdleInterval?: Duration.Duration;
|
|
382
|
+
readonly idleClientTtl?: Duration.Duration;
|
|
303
383
|
readonly pauseWhenHostLocked?: boolean;
|
|
304
384
|
readonly pauseWhenHostLowPower?: boolean;
|
|
305
385
|
readonly pauseWhenClientLowPower?: boolean;
|
|
306
386
|
readonly pauseWhenOnBattery?: boolean;
|
|
307
387
|
};
|
|
308
388
|
};
|
|
309
|
-
readonly automaticGitFetchInterval:
|
|
310
|
-
readonly providerHealthRefreshInterval:
|
|
389
|
+
readonly automaticGitFetchInterval: Duration.Duration;
|
|
390
|
+
readonly providerHealthRefreshInterval: Duration.Duration;
|
|
311
391
|
readonly backgroundActivityProfile: "balanced" | "battery-saver" | "performance";
|
|
312
392
|
readonly defaultThreadEnvMode: "local" | "worktree";
|
|
313
393
|
readonly newWorktreesStartFromOrigin: boolean;
|
|
@@ -420,6 +500,7 @@ declare function createServerEnvironmentAtoms<R, E>(runtime: Atom.AtomRuntime<En
|
|
|
420
500
|
readonly subProvider?: string | undefined;
|
|
421
501
|
readonly isCustom: boolean;
|
|
422
502
|
readonly isDefault?: boolean | undefined;
|
|
503
|
+
readonly isLegacy?: boolean | undefined;
|
|
423
504
|
readonly capabilities: {
|
|
424
505
|
readonly optionDescriptors?: readonly ({
|
|
425
506
|
readonly id: string;
|
|
@@ -478,7 +559,7 @@ declare function createServerEnvironmentAtoms<R, E>(runtime: Atom.AtomRuntime<En
|
|
|
478
559
|
}[] | null>;
|
|
479
560
|
traceDiagnostics: (target: {
|
|
480
561
|
readonly environmentId: EnvironmentId;
|
|
481
|
-
readonly input:
|
|
562
|
+
readonly input: {};
|
|
482
563
|
}) => Atom.Atom<AsyncResult.AsyncResult<{
|
|
483
564
|
readonly traceFilePath: string;
|
|
484
565
|
readonly scannedFilePaths: readonly string[];
|
|
@@ -541,7 +622,7 @@ declare function createServerEnvironmentAtoms<R, E>(runtime: Atom.AtomRuntime<En
|
|
|
541
622
|
}, E | EnvironmentAuthorizationError | EnvironmentRpcUnavailableError | Error | import("effect/unstable/rpc/RpcClientError").RpcClientError>>;
|
|
542
623
|
processDiagnostics: (target: {
|
|
543
624
|
readonly environmentId: EnvironmentId;
|
|
544
|
-
readonly input:
|
|
625
|
+
readonly input: {};
|
|
545
626
|
}) => Atom.Atom<AsyncResult.AsyncResult<{
|
|
546
627
|
readonly serverPid: number;
|
|
547
628
|
readonly readAt: import("effect/DateTime").Utc;
|
|
@@ -567,10 +648,10 @@ declare function createServerEnvironmentAtoms<R, E>(runtime: Atom.AtomRuntime<En
|
|
|
567
648
|
}, E | EnvironmentAuthorizationError | EnvironmentRpcUnavailableError | Error | import("effect/unstable/rpc/RpcClientError").RpcClientError>>;
|
|
568
649
|
processResourceHistory: (target: {
|
|
569
650
|
readonly environmentId: EnvironmentId;
|
|
570
|
-
readonly input:
|
|
571
|
-
readonly windowMs:
|
|
572
|
-
readonly bucketMs:
|
|
573
|
-
}
|
|
651
|
+
readonly input: {
|
|
652
|
+
readonly windowMs: number;
|
|
653
|
+
readonly bucketMs: number;
|
|
654
|
+
};
|
|
574
655
|
}) => Atom.Atom<AsyncResult.AsyncResult<{
|
|
575
656
|
readonly readAt: import("effect/DateTime").Utc;
|
|
576
657
|
readonly windowMs: number;
|
|
@@ -610,7 +691,7 @@ declare function createServerEnvironmentAtoms<R, E>(runtime: Atom.AtomRuntime<En
|
|
|
610
691
|
}, E | EnvironmentAuthorizationError | EnvironmentRpcUnavailableError | Error | import("effect/unstable/rpc/RpcClientError").RpcClientError>>;
|
|
611
692
|
resourceTelemetry: (target: {
|
|
612
693
|
readonly environmentId: EnvironmentId;
|
|
613
|
-
readonly input:
|
|
694
|
+
readonly input: {};
|
|
614
695
|
}) => Atom.Atom<AsyncResult.AsyncResult<{
|
|
615
696
|
readonly readAt: import("effect/DateTime").Utc;
|
|
616
697
|
readonly sampleIntervalMs: number;
|
|
@@ -740,13 +821,13 @@ declare function createServerEnvironmentAtoms<R, E>(runtime: Atom.AtomRuntime<En
|
|
|
740
821
|
readonly retainedProcessCount: number;
|
|
741
822
|
readonly inaccessibleProcessCount: number;
|
|
742
823
|
};
|
|
743
|
-
}, E | EnvironmentAuthorizationError |
|
|
824
|
+
}, E | EnvironmentAuthorizationError | Cause.NoSuchElementError | import("effect/unstable/rpc/RpcClientError").RpcClientError>>;
|
|
744
825
|
resourceTelemetryHistory: (target: {
|
|
745
826
|
readonly environmentId: EnvironmentId;
|
|
746
|
-
readonly input:
|
|
747
|
-
readonly windowMs:
|
|
748
|
-
readonly bucketMs:
|
|
749
|
-
}
|
|
827
|
+
readonly input: {
|
|
828
|
+
readonly windowMs: number;
|
|
829
|
+
readonly bucketMs: number;
|
|
830
|
+
};
|
|
750
831
|
}) => Atom.Atom<AsyncResult.AsyncResult<{
|
|
751
832
|
readonly readAt: import("effect/DateTime").Utc;
|
|
752
833
|
readonly windowMs: number;
|
|
@@ -806,13 +887,66 @@ declare function createServerEnvironmentAtoms<R, E>(runtime: Atom.AtomRuntime<En
|
|
|
806
887
|
readonly inaccessibleProcessCount: number;
|
|
807
888
|
};
|
|
808
889
|
}, E | EnvironmentAuthorizationError | EnvironmentRpcUnavailableError | Error | import("effect/unstable/rpc/RpcClientError").RpcClientError>>;
|
|
890
|
+
usageSummary: (target: {
|
|
891
|
+
readonly environmentId: EnvironmentId;
|
|
892
|
+
readonly input: {
|
|
893
|
+
readonly sinceDay: string & import("effect/Brand").Brand<"UsageDay">;
|
|
894
|
+
readonly untilDay: string & import("effect/Brand").Brand<"UsageDay">;
|
|
895
|
+
readonly timeZone: string;
|
|
896
|
+
};
|
|
897
|
+
}) => Atom.Atom<AsyncResult.AsyncResult<{
|
|
898
|
+
readonly contractVersion: number;
|
|
899
|
+
readonly readAt: string;
|
|
900
|
+
readonly timeZone: string;
|
|
901
|
+
readonly sinceDay: string & import("effect/Brand").Brand<"UsageDay">;
|
|
902
|
+
readonly untilDay: string & import("effect/Brand").Brand<"UsageDay">;
|
|
903
|
+
readonly buckets: readonly {
|
|
904
|
+
readonly day: string & import("effect/Brand").Brand<"UsageDay">;
|
|
905
|
+
readonly provider: "claude" | "codex";
|
|
906
|
+
readonly model: string;
|
|
907
|
+
readonly totals: {
|
|
908
|
+
readonly uncachedInputTokens: number;
|
|
909
|
+
readonly cachedInputTokens: number;
|
|
910
|
+
readonly cacheCreationTokens: number;
|
|
911
|
+
readonly outputTokens: number;
|
|
912
|
+
readonly reasoningTokens: number;
|
|
913
|
+
};
|
|
914
|
+
readonly costUsd: number;
|
|
915
|
+
readonly cacheSavingsUsd: number;
|
|
916
|
+
readonly costSource: "modelPriced" | "providerReported" | "unpriced";
|
|
917
|
+
readonly records: number;
|
|
918
|
+
readonly unpricedRecords: number;
|
|
919
|
+
readonly sessions: number;
|
|
920
|
+
}[];
|
|
921
|
+
readonly sources: readonly {
|
|
922
|
+
readonly fingerprint: {
|
|
923
|
+
readonly hostId: string;
|
|
924
|
+
readonly provider: "claude" | "codex";
|
|
925
|
+
readonly resolvedHomePath: string;
|
|
926
|
+
readonly volumeId: string;
|
|
927
|
+
};
|
|
928
|
+
readonly status: "failed" | "missing" | "ok" | "partial";
|
|
929
|
+
readonly scannedFiles: number;
|
|
930
|
+
readonly skippedFiles: number;
|
|
931
|
+
readonly malformedRecords: number;
|
|
932
|
+
readonly distinctSessions: number;
|
|
933
|
+
readonly message: string | null;
|
|
934
|
+
}[];
|
|
935
|
+
readonly pricing: {
|
|
936
|
+
readonly status: "cached" | "fresh" | "unavailable";
|
|
937
|
+
readonly source: string;
|
|
938
|
+
readonly fetchedAt: string | null;
|
|
939
|
+
readonly knownModels: number;
|
|
940
|
+
};
|
|
941
|
+
readonly scanDurationMs: number;
|
|
942
|
+
}, E | EnvironmentAuthorizationError | EnvironmentRpcUnavailableError | Error | import("effect/unstable/rpc/RpcClientError").RpcClientError | UsageReadError>>;
|
|
809
943
|
configProjection: (target: {
|
|
810
944
|
readonly environmentId: EnvironmentId;
|
|
811
945
|
readonly input: EnvironmentRpcInput<typeof WS_METHODS.subscribeServerConfig>;
|
|
812
|
-
}) => Atom.Atom<AsyncResult.AsyncResult<ServerConfigProjection, E |
|
|
946
|
+
}) => Atom.Atom<AsyncResult.AsyncResult<ServerConfigProjection, E | Cause.NoSuchElementError>>;
|
|
813
947
|
welcome: (target: {
|
|
814
948
|
readonly environmentId: EnvironmentId;
|
|
815
|
-
readonly input:
|
|
949
|
+
readonly input: {};
|
|
816
950
|
}) => Atom.Atom<AsyncResult.AsyncResult<{
|
|
817
951
|
readonly environment: {
|
|
818
952
|
readonly environmentId: string & import("effect/Brand").Brand<"EnvironmentId">;
|
|
@@ -827,14 +961,18 @@ declare function createServerEnvironmentAtoms<R, E>(runtime: Atom.AtomRuntime<En
|
|
|
827
961
|
readonly connectionProbe?: boolean;
|
|
828
962
|
readonly threadSettlement?: boolean;
|
|
829
963
|
readonly threadSnooze?: boolean;
|
|
964
|
+
readonly threadPinning?: boolean;
|
|
965
|
+
readonly threadPinReorder?: boolean;
|
|
966
|
+
readonly threadTitleRegeneration?: boolean;
|
|
830
967
|
readonly serverSelfUpdate?: "boot-service" | "desktop-managed" | "respawn";
|
|
968
|
+
readonly serverSelfUpdateProgress?: boolean;
|
|
831
969
|
};
|
|
832
970
|
};
|
|
833
971
|
readonly cwd: string;
|
|
834
972
|
readonly projectName: string;
|
|
835
973
|
readonly bootstrapProjectId?: (string & import("effect/Brand").Brand<"ProjectId">) | undefined;
|
|
836
974
|
readonly bootstrapThreadId?: (string & import("effect/Brand").Brand<"ThreadId">) | undefined;
|
|
837
|
-
}, E | EnvironmentAuthorizationError |
|
|
975
|
+
}, E | EnvironmentAuthorizationError | Cause.NoSuchElementError | import("effect/unstable/rpc/RpcClientError").RpcClientError>>;
|
|
838
976
|
refreshProviders: AtomCommand<{
|
|
839
977
|
readonly environmentId: EnvironmentId;
|
|
840
978
|
readonly input: {
|
|
@@ -873,6 +1011,7 @@ declare function createServerEnvironmentAtoms<R, E>(runtime: Atom.AtomRuntime<En
|
|
|
873
1011
|
readonly subProvider?: string | undefined;
|
|
874
1012
|
readonly isCustom: boolean;
|
|
875
1013
|
readonly isDefault?: boolean | undefined;
|
|
1014
|
+
readonly isLegacy?: boolean | undefined;
|
|
876
1015
|
readonly capabilities: {
|
|
877
1016
|
readonly optionDescriptors?: readonly ({
|
|
878
1017
|
readonly id: string;
|
|
@@ -969,6 +1108,7 @@ declare function createServerEnvironmentAtoms<R, E>(runtime: Atom.AtomRuntime<En
|
|
|
969
1108
|
readonly subProvider?: string | undefined;
|
|
970
1109
|
readonly isCustom: boolean;
|
|
971
1110
|
readonly isDefault?: boolean | undefined;
|
|
1111
|
+
readonly isLegacy?: boolean | undefined;
|
|
972
1112
|
readonly capabilities: {
|
|
973
1113
|
readonly optionDescriptors?: readonly ({
|
|
974
1114
|
readonly id: string;
|
|
@@ -1026,30 +1166,26 @@ declare function createServerEnvironmentAtoms<R, E>(runtime: Atom.AtomRuntime<En
|
|
|
1026
1166
|
};
|
|
1027
1167
|
}[];
|
|
1028
1168
|
}, E | EnvironmentAuthorizationError | EnvironmentNotRegisteredError | EnvironmentRpcUnavailableError | import("effect/unstable/rpc/RpcClientError").RpcClientError | ServerProviderUpdateError>;
|
|
1029
|
-
updateServer: AtomCommand<{
|
|
1030
|
-
readonly environmentId: EnvironmentId;
|
|
1031
|
-
readonly input: import("effect/Schema").Struct.ReadonlyMakeIn<{
|
|
1032
|
-
readonly targetVersion: import("effect/Schema").decodeTo<import("effect/Schema").String, import("effect/Schema").String, never, never>;
|
|
1033
|
-
}>;
|
|
1034
|
-
}, {
|
|
1169
|
+
updateServer: AtomCommand<ServerUpdateTarget, {
|
|
1035
1170
|
readonly targetVersion: string;
|
|
1036
1171
|
readonly method: "boot-service" | "respawn";
|
|
1037
|
-
|
|
1172
|
+
readonly updateId?: string;
|
|
1173
|
+
}, unknown>;
|
|
1038
1174
|
upsertKeybinding: AtomCommand<{
|
|
1039
1175
|
readonly environmentId: EnvironmentId;
|
|
1040
1176
|
readonly input: {
|
|
1041
1177
|
readonly key: string;
|
|
1042
|
-
readonly command: "chat.new" | "chat.newLocal" | "commandPalette.toggle" | "composer.stash" | "diff.toggle" | "editor.openFavorite" | "modelPicker.jump.1" | "modelPicker.jump.2" | "modelPicker.jump.3" | "modelPicker.jump.4" | "modelPicker.jump.5" | "modelPicker.jump.6" | "modelPicker.jump.7" | "modelPicker.jump.8" | "modelPicker.jump.9" | "modelPicker.toggle" | "preview.focusUrl" | "preview.refresh" | "preview.resetZoom" | "preview.toggle" | "preview.zoomIn" | "preview.zoomOut" | "rightPanel.toggle" | "sidebar.toggle" | "terminal.close" | "terminal.new" | "terminal.split" | "terminal.splitVertical" | "terminal.toggle" | "thread.jump.1" | "thread.jump.2" | "thread.jump.3" | "thread.jump.4" | "thread.jump.5" | "thread.jump.6" | "thread.jump.7" | "thread.jump.8" | "thread.jump.9" | "thread.next" | "thread.previous" | `script.${string}.run`;
|
|
1178
|
+
readonly command: "chat.new" | "chat.newLocal" | "commandPalette.toggle" | "composer.stash" | "diff.toggle" | "editor.openFavorite" | "filePicker.toggle" | "modelPicker.jump.1" | "modelPicker.jump.2" | "modelPicker.jump.3" | "modelPicker.jump.4" | "modelPicker.jump.5" | "modelPicker.jump.6" | "modelPicker.jump.7" | "modelPicker.jump.8" | "modelPicker.jump.9" | "modelPicker.toggle" | "preview.focusUrl" | "preview.refresh" | "preview.resetZoom" | "preview.toggle" | "preview.zoomIn" | "preview.zoomOut" | "projectSearch.toggle" | "rightPanel.toggle" | "sidebar.toggle" | "terminal.close" | "terminal.new" | "terminal.split" | "terminal.splitVertical" | "terminal.toggle" | "themeEditor.toggle" | "thread.jump.1" | "thread.jump.2" | "thread.jump.3" | "thread.jump.4" | "thread.jump.5" | "thread.jump.6" | "thread.jump.7" | "thread.jump.8" | "thread.jump.9" | "thread.next" | "thread.previous" | `script.${string}.run`;
|
|
1043
1179
|
readonly when?: string | undefined;
|
|
1044
1180
|
readonly replace?: {
|
|
1045
1181
|
readonly key: string;
|
|
1046
|
-
readonly command: "chat.new" | "chat.newLocal" | "commandPalette.toggle" | "composer.stash" | "diff.toggle" | "editor.openFavorite" | "modelPicker.jump.1" | "modelPicker.jump.2" | "modelPicker.jump.3" | "modelPicker.jump.4" | "modelPicker.jump.5" | "modelPicker.jump.6" | "modelPicker.jump.7" | "modelPicker.jump.8" | "modelPicker.jump.9" | "modelPicker.toggle" | "preview.focusUrl" | "preview.refresh" | "preview.resetZoom" | "preview.toggle" | "preview.zoomIn" | "preview.zoomOut" | "rightPanel.toggle" | "sidebar.toggle" | "terminal.close" | "terminal.new" | "terminal.split" | "terminal.splitVertical" | "terminal.toggle" | "thread.jump.1" | "thread.jump.2" | "thread.jump.3" | "thread.jump.4" | "thread.jump.5" | "thread.jump.6" | "thread.jump.7" | "thread.jump.8" | "thread.jump.9" | "thread.next" | "thread.previous" | `script.${string}.run`;
|
|
1182
|
+
readonly command: "chat.new" | "chat.newLocal" | "commandPalette.toggle" | "composer.stash" | "diff.toggle" | "editor.openFavorite" | "filePicker.toggle" | "modelPicker.jump.1" | "modelPicker.jump.2" | "modelPicker.jump.3" | "modelPicker.jump.4" | "modelPicker.jump.5" | "modelPicker.jump.6" | "modelPicker.jump.7" | "modelPicker.jump.8" | "modelPicker.jump.9" | "modelPicker.toggle" | "preview.focusUrl" | "preview.refresh" | "preview.resetZoom" | "preview.toggle" | "preview.zoomIn" | "preview.zoomOut" | "projectSearch.toggle" | "rightPanel.toggle" | "sidebar.toggle" | "terminal.close" | "terminal.new" | "terminal.split" | "terminal.splitVertical" | "terminal.toggle" | "themeEditor.toggle" | "thread.jump.1" | "thread.jump.2" | "thread.jump.3" | "thread.jump.4" | "thread.jump.5" | "thread.jump.6" | "thread.jump.7" | "thread.jump.8" | "thread.jump.9" | "thread.next" | "thread.previous" | `script.${string}.run`;
|
|
1047
1183
|
readonly when?: string | undefined;
|
|
1048
1184
|
} | undefined;
|
|
1049
1185
|
};
|
|
1050
1186
|
}, {
|
|
1051
1187
|
readonly keybindings: readonly {
|
|
1052
|
-
readonly command: "chat.new" | "chat.newLocal" | "commandPalette.toggle" | "composer.stash" | "diff.toggle" | "editor.openFavorite" | "modelPicker.jump.1" | "modelPicker.jump.2" | "modelPicker.jump.3" | "modelPicker.jump.4" | "modelPicker.jump.5" | "modelPicker.jump.6" | "modelPicker.jump.7" | "modelPicker.jump.8" | "modelPicker.jump.9" | "modelPicker.toggle" | "preview.focusUrl" | "preview.refresh" | "preview.resetZoom" | "preview.toggle" | "preview.zoomIn" | "preview.zoomOut" | "rightPanel.toggle" | "sidebar.toggle" | "terminal.close" | "terminal.new" | "terminal.split" | "terminal.splitVertical" | "terminal.toggle" | "thread.jump.1" | "thread.jump.2" | "thread.jump.3" | "thread.jump.4" | "thread.jump.5" | "thread.jump.6" | "thread.jump.7" | "thread.jump.8" | "thread.jump.9" | "thread.next" | "thread.previous" | `script.${string}.run`;
|
|
1188
|
+
readonly command: "chat.new" | "chat.newLocal" | "commandPalette.toggle" | "composer.stash" | "diff.toggle" | "editor.openFavorite" | "filePicker.toggle" | "modelPicker.jump.1" | "modelPicker.jump.2" | "modelPicker.jump.3" | "modelPicker.jump.4" | "modelPicker.jump.5" | "modelPicker.jump.6" | "modelPicker.jump.7" | "modelPicker.jump.8" | "modelPicker.jump.9" | "modelPicker.toggle" | "preview.focusUrl" | "preview.refresh" | "preview.resetZoom" | "preview.toggle" | "preview.zoomIn" | "preview.zoomOut" | "projectSearch.toggle" | "rightPanel.toggle" | "sidebar.toggle" | "terminal.close" | "terminal.new" | "terminal.split" | "terminal.splitVertical" | "terminal.toggle" | "themeEditor.toggle" | "thread.jump.1" | "thread.jump.2" | "thread.jump.3" | "thread.jump.4" | "thread.jump.5" | "thread.jump.6" | "thread.jump.7" | "thread.jump.8" | "thread.jump.9" | "thread.next" | "thread.previous" | `script.${string}.run`;
|
|
1053
1189
|
readonly shortcut: {
|
|
1054
1190
|
readonly key: string;
|
|
1055
1191
|
readonly metaKey: boolean;
|
|
@@ -1087,12 +1223,12 @@ declare function createServerEnvironmentAtoms<R, E>(runtime: Atom.AtomRuntime<En
|
|
|
1087
1223
|
readonly environmentId: EnvironmentId;
|
|
1088
1224
|
readonly input: {
|
|
1089
1225
|
readonly key: string;
|
|
1090
|
-
readonly command: "chat.new" | "chat.newLocal" | "commandPalette.toggle" | "composer.stash" | "diff.toggle" | "editor.openFavorite" | "modelPicker.jump.1" | "modelPicker.jump.2" | "modelPicker.jump.3" | "modelPicker.jump.4" | "modelPicker.jump.5" | "modelPicker.jump.6" | "modelPicker.jump.7" | "modelPicker.jump.8" | "modelPicker.jump.9" | "modelPicker.toggle" | "preview.focusUrl" | "preview.refresh" | "preview.resetZoom" | "preview.toggle" | "preview.zoomIn" | "preview.zoomOut" | "rightPanel.toggle" | "sidebar.toggle" | "terminal.close" | "terminal.new" | "terminal.split" | "terminal.splitVertical" | "terminal.toggle" | "thread.jump.1" | "thread.jump.2" | "thread.jump.3" | "thread.jump.4" | "thread.jump.5" | "thread.jump.6" | "thread.jump.7" | "thread.jump.8" | "thread.jump.9" | "thread.next" | "thread.previous" | `script.${string}.run`;
|
|
1226
|
+
readonly command: "chat.new" | "chat.newLocal" | "commandPalette.toggle" | "composer.stash" | "diff.toggle" | "editor.openFavorite" | "filePicker.toggle" | "modelPicker.jump.1" | "modelPicker.jump.2" | "modelPicker.jump.3" | "modelPicker.jump.4" | "modelPicker.jump.5" | "modelPicker.jump.6" | "modelPicker.jump.7" | "modelPicker.jump.8" | "modelPicker.jump.9" | "modelPicker.toggle" | "preview.focusUrl" | "preview.refresh" | "preview.resetZoom" | "preview.toggle" | "preview.zoomIn" | "preview.zoomOut" | "projectSearch.toggle" | "rightPanel.toggle" | "sidebar.toggle" | "terminal.close" | "terminal.new" | "terminal.split" | "terminal.splitVertical" | "terminal.toggle" | "themeEditor.toggle" | "thread.jump.1" | "thread.jump.2" | "thread.jump.3" | "thread.jump.4" | "thread.jump.5" | "thread.jump.6" | "thread.jump.7" | "thread.jump.8" | "thread.jump.9" | "thread.next" | "thread.previous" | `script.${string}.run`;
|
|
1091
1227
|
readonly when?: string | undefined;
|
|
1092
1228
|
};
|
|
1093
1229
|
}, {
|
|
1094
1230
|
readonly keybindings: readonly {
|
|
1095
|
-
readonly command: "chat.new" | "chat.newLocal" | "commandPalette.toggle" | "composer.stash" | "diff.toggle" | "editor.openFavorite" | "modelPicker.jump.1" | "modelPicker.jump.2" | "modelPicker.jump.3" | "modelPicker.jump.4" | "modelPicker.jump.5" | "modelPicker.jump.6" | "modelPicker.jump.7" | "modelPicker.jump.8" | "modelPicker.jump.9" | "modelPicker.toggle" | "preview.focusUrl" | "preview.refresh" | "preview.resetZoom" | "preview.toggle" | "preview.zoomIn" | "preview.zoomOut" | "rightPanel.toggle" | "sidebar.toggle" | "terminal.close" | "terminal.new" | "terminal.split" | "terminal.splitVertical" | "terminal.toggle" | "thread.jump.1" | "thread.jump.2" | "thread.jump.3" | "thread.jump.4" | "thread.jump.5" | "thread.jump.6" | "thread.jump.7" | "thread.jump.8" | "thread.jump.9" | "thread.next" | "thread.previous" | `script.${string}.run`;
|
|
1231
|
+
readonly command: "chat.new" | "chat.newLocal" | "commandPalette.toggle" | "composer.stash" | "diff.toggle" | "editor.openFavorite" | "filePicker.toggle" | "modelPicker.jump.1" | "modelPicker.jump.2" | "modelPicker.jump.3" | "modelPicker.jump.4" | "modelPicker.jump.5" | "modelPicker.jump.6" | "modelPicker.jump.7" | "modelPicker.jump.8" | "modelPicker.jump.9" | "modelPicker.toggle" | "preview.focusUrl" | "preview.refresh" | "preview.resetZoom" | "preview.toggle" | "preview.zoomIn" | "preview.zoomOut" | "projectSearch.toggle" | "rightPanel.toggle" | "sidebar.toggle" | "terminal.close" | "terminal.new" | "terminal.split" | "terminal.splitVertical" | "terminal.toggle" | "themeEditor.toggle" | "thread.jump.1" | "thread.jump.2" | "thread.jump.3" | "thread.jump.4" | "thread.jump.5" | "thread.jump.6" | "thread.jump.7" | "thread.jump.8" | "thread.jump.9" | "thread.next" | "thread.previous" | `script.${string}.run`;
|
|
1096
1232
|
readonly shortcut: {
|
|
1097
1233
|
readonly key: string;
|
|
1098
1234
|
readonly metaKey: boolean;
|
|
@@ -1128,139 +1264,130 @@ declare function createServerEnvironmentAtoms<R, E>(runtime: Atom.AtomRuntime<En
|
|
|
1128
1264
|
}, E | EnvironmentAuthorizationError | EnvironmentNotRegisteredError | EnvironmentRpcUnavailableError | KeybindingsConfigError | import("effect/unstable/rpc/RpcClientError").RpcClientError>;
|
|
1129
1265
|
updateSettings: AtomCommand<{
|
|
1130
1266
|
readonly environmentId: EnvironmentId;
|
|
1131
|
-
readonly input:
|
|
1132
|
-
readonly patch:
|
|
1133
|
-
readonly
|
|
1134
|
-
readonly enableProviderUpdateChecks
|
|
1135
|
-
readonly backgroundActivity
|
|
1136
|
-
readonly schemaVersion
|
|
1137
|
-
readonly profile
|
|
1138
|
-
readonly baseProfile
|
|
1139
|
-
readonly overrides
|
|
1140
|
-
readonly automaticGitFetchInterval
|
|
1141
|
-
readonly providerHealthRefreshInterval
|
|
1142
|
-
readonly hostPowerMonitorActiveInterval
|
|
1143
|
-
readonly hostPowerMonitorIdleInterval
|
|
1144
|
-
readonly idleClientTtl
|
|
1145
|
-
readonly pauseWhenHostLocked
|
|
1146
|
-
readonly pauseWhenHostLowPower
|
|
1147
|
-
readonly pauseWhenClientLowPower
|
|
1148
|
-
readonly pauseWhenOnBattery
|
|
1149
|
-
}
|
|
1150
|
-
}
|
|
1151
|
-
readonly automaticGitFetchInterval
|
|
1152
|
-
readonly providerHealthRefreshInterval
|
|
1153
|
-
readonly backgroundActivityProfile
|
|
1154
|
-
readonly defaultThreadEnvMode
|
|
1155
|
-
readonly newWorktreesStartFromOrigin
|
|
1156
|
-
readonly addProjectBaseDirectory
|
|
1157
|
-
readonly textGenerationModelSelection
|
|
1158
|
-
readonly instanceId
|
|
1159
|
-
readonly model
|
|
1160
|
-
readonly options
|
|
1161
|
-
readonly id:
|
|
1162
|
-
readonly value:
|
|
1163
|
-
}
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
readonly
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
readonly
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
readonly
|
|
1196
|
-
readonly
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
readonly
|
|
1200
|
-
readonly
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
readonly
|
|
1206
|
-
readonly
|
|
1207
|
-
readonly
|
|
1208
|
-
}
|
|
1209
|
-
readonly
|
|
1210
|
-
readonly enabled
|
|
1211
|
-
readonly binaryPath
|
|
1212
|
-
readonly
|
|
1213
|
-
readonly
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
readonly
|
|
1222
|
-
readonly
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
readonly value: import("effect/Schema").withDecodingDefault<import("effect/Schema").String, never>;
|
|
1235
|
-
readonly sensitive: import("effect/Schema").withDecodingDefault<import("effect/Schema").Boolean, never>;
|
|
1236
|
-
readonly valueRedacted: import("effect/Schema").optionalKey<import("effect/Schema").Boolean>;
|
|
1237
|
-
}>>>;
|
|
1238
|
-
readonly enabled: import("effect/Schema").optionalKey<import("effect/Schema").Boolean>;
|
|
1239
|
-
readonly config: import("effect/Schema").optionalKey<import("effect/Schema").Unknown>;
|
|
1240
|
-
}>>>;
|
|
1241
|
-
}>;
|
|
1242
|
-
}>;
|
|
1267
|
+
readonly input: {
|
|
1268
|
+
readonly patch: {
|
|
1269
|
+
readonly enableLegacyTokenStreaming?: boolean;
|
|
1270
|
+
readonly enableProviderUpdateChecks?: boolean;
|
|
1271
|
+
readonly backgroundActivity?: {
|
|
1272
|
+
readonly schemaVersion?: 1;
|
|
1273
|
+
readonly profile?: "balanced" | "battery-saver" | "custom" | "performance";
|
|
1274
|
+
readonly baseProfile?: "balanced" | "battery-saver" | "performance";
|
|
1275
|
+
readonly overrides?: {
|
|
1276
|
+
readonly automaticGitFetchInterval?: Duration.Duration;
|
|
1277
|
+
readonly providerHealthRefreshInterval?: Duration.Duration;
|
|
1278
|
+
readonly hostPowerMonitorActiveInterval?: Duration.Duration;
|
|
1279
|
+
readonly hostPowerMonitorIdleInterval?: Duration.Duration;
|
|
1280
|
+
readonly idleClientTtl?: Duration.Duration;
|
|
1281
|
+
readonly pauseWhenHostLocked?: boolean;
|
|
1282
|
+
readonly pauseWhenHostLowPower?: boolean;
|
|
1283
|
+
readonly pauseWhenClientLowPower?: boolean;
|
|
1284
|
+
readonly pauseWhenOnBattery?: boolean;
|
|
1285
|
+
};
|
|
1286
|
+
};
|
|
1287
|
+
readonly automaticGitFetchInterval?: Duration.Duration;
|
|
1288
|
+
readonly providerHealthRefreshInterval?: Duration.Duration;
|
|
1289
|
+
readonly backgroundActivityProfile?: "balanced" | "battery-saver" | "performance";
|
|
1290
|
+
readonly defaultThreadEnvMode?: "local" | "worktree";
|
|
1291
|
+
readonly newWorktreesStartFromOrigin?: boolean;
|
|
1292
|
+
readonly addProjectBaseDirectory?: string;
|
|
1293
|
+
readonly textGenerationModelSelection?: {
|
|
1294
|
+
readonly instanceId?: string & import("effect/Brand").Brand<"ProviderInstanceId">;
|
|
1295
|
+
readonly model?: string;
|
|
1296
|
+
readonly options?: readonly {
|
|
1297
|
+
readonly id: string;
|
|
1298
|
+
readonly value: string | boolean;
|
|
1299
|
+
}[];
|
|
1300
|
+
};
|
|
1301
|
+
readonly sourceControlWritingStyle?: {
|
|
1302
|
+
readonly mode?: "conventional_commits" | "custom" | "repo_conventions";
|
|
1303
|
+
readonly customInstructions?: string;
|
|
1304
|
+
readonly followChangeRequestTemplates?: boolean;
|
|
1305
|
+
};
|
|
1306
|
+
readonly sourceControlWriterModelSelection?: {
|
|
1307
|
+
readonly instanceId: string & import("effect/Brand").Brand<"ProviderInstanceId">;
|
|
1308
|
+
readonly model: string;
|
|
1309
|
+
readonly options?: readonly {
|
|
1310
|
+
readonly id: string;
|
|
1311
|
+
readonly value: string | boolean;
|
|
1312
|
+
}[];
|
|
1313
|
+
} | null;
|
|
1314
|
+
readonly observability?: {
|
|
1315
|
+
readonly otlpTracesUrl?: string;
|
|
1316
|
+
readonly otlpMetricsUrl?: string;
|
|
1317
|
+
};
|
|
1318
|
+
readonly providers?: {
|
|
1319
|
+
readonly codex?: {
|
|
1320
|
+
readonly enabled?: boolean;
|
|
1321
|
+
readonly binaryPath?: string;
|
|
1322
|
+
readonly homePath?: string;
|
|
1323
|
+
readonly shadowHomePath?: string;
|
|
1324
|
+
readonly launchArgs?: string;
|
|
1325
|
+
readonly customModels?: readonly string[];
|
|
1326
|
+
};
|
|
1327
|
+
readonly claudeAgent?: {
|
|
1328
|
+
readonly enabled?: boolean;
|
|
1329
|
+
readonly binaryPath?: string;
|
|
1330
|
+
readonly homePath?: string;
|
|
1331
|
+
readonly customModels?: readonly string[];
|
|
1332
|
+
readonly launchArgs?: string;
|
|
1333
|
+
};
|
|
1334
|
+
readonly cursor?: {
|
|
1335
|
+
readonly enabled?: boolean;
|
|
1336
|
+
readonly binaryPath?: string;
|
|
1337
|
+
readonly apiEndpoint?: string;
|
|
1338
|
+
readonly customModels?: readonly string[];
|
|
1339
|
+
};
|
|
1340
|
+
readonly grok?: {
|
|
1341
|
+
readonly enabled?: boolean;
|
|
1342
|
+
readonly binaryPath?: string;
|
|
1343
|
+
readonly customModels?: readonly string[];
|
|
1344
|
+
};
|
|
1345
|
+
readonly opencode?: {
|
|
1346
|
+
readonly enabled?: boolean;
|
|
1347
|
+
readonly binaryPath?: string;
|
|
1348
|
+
readonly serverUrl?: string;
|
|
1349
|
+
readonly serverPassword?: string;
|
|
1350
|
+
readonly customModels?: readonly string[];
|
|
1351
|
+
};
|
|
1352
|
+
};
|
|
1353
|
+
readonly providerInstances?: {
|
|
1354
|
+
readonly [x: string & import("effect/Brand").Brand<"ProviderInstanceId">]: {
|
|
1355
|
+
readonly driver: string & import("effect/Brand").Brand<"ProviderDriverKind">;
|
|
1356
|
+
readonly displayName?: string | undefined;
|
|
1357
|
+
readonly accentColor?: string | undefined;
|
|
1358
|
+
readonly environment?: readonly {
|
|
1359
|
+
readonly name: string;
|
|
1360
|
+
readonly value: string;
|
|
1361
|
+
readonly sensitive: boolean;
|
|
1362
|
+
readonly valueRedacted?: boolean;
|
|
1363
|
+
}[];
|
|
1364
|
+
readonly enabled?: boolean;
|
|
1365
|
+
readonly config?: unknown;
|
|
1366
|
+
};
|
|
1367
|
+
};
|
|
1368
|
+
};
|
|
1369
|
+
};
|
|
1243
1370
|
}, {
|
|
1244
|
-
readonly
|
|
1371
|
+
readonly enableLegacyTokenStreaming: boolean;
|
|
1245
1372
|
readonly enableProviderUpdateChecks: boolean;
|
|
1246
1373
|
readonly backgroundActivity: {
|
|
1247
1374
|
readonly schemaVersion: 1;
|
|
1248
1375
|
readonly profile: "balanced" | "battery-saver" | "custom" | "performance";
|
|
1249
1376
|
readonly baseProfile?: "balanced" | "battery-saver" | "performance";
|
|
1250
1377
|
readonly overrides: {
|
|
1251
|
-
readonly automaticGitFetchInterval?:
|
|
1252
|
-
readonly providerHealthRefreshInterval?:
|
|
1253
|
-
readonly hostPowerMonitorActiveInterval?:
|
|
1254
|
-
readonly hostPowerMonitorIdleInterval?:
|
|
1255
|
-
readonly idleClientTtl?:
|
|
1378
|
+
readonly automaticGitFetchInterval?: Duration.Duration;
|
|
1379
|
+
readonly providerHealthRefreshInterval?: Duration.Duration;
|
|
1380
|
+
readonly hostPowerMonitorActiveInterval?: Duration.Duration;
|
|
1381
|
+
readonly hostPowerMonitorIdleInterval?: Duration.Duration;
|
|
1382
|
+
readonly idleClientTtl?: Duration.Duration;
|
|
1256
1383
|
readonly pauseWhenHostLocked?: boolean;
|
|
1257
1384
|
readonly pauseWhenHostLowPower?: boolean;
|
|
1258
1385
|
readonly pauseWhenClientLowPower?: boolean;
|
|
1259
1386
|
readonly pauseWhenOnBattery?: boolean;
|
|
1260
1387
|
};
|
|
1261
1388
|
};
|
|
1262
|
-
readonly automaticGitFetchInterval:
|
|
1263
|
-
readonly providerHealthRefreshInterval:
|
|
1389
|
+
readonly automaticGitFetchInterval: Duration.Duration;
|
|
1390
|
+
readonly providerHealthRefreshInterval: Duration.Duration;
|
|
1264
1391
|
readonly backgroundActivityProfile: "balanced" | "battery-saver" | "performance";
|
|
1265
1392
|
readonly defaultThreadEnvMode: "local" | "worktree";
|
|
1266
1393
|
readonly newWorktreesStartFromOrigin: boolean;
|
|
@@ -1343,11 +1470,11 @@ declare function createServerEnvironmentAtoms<R, E>(runtime: Atom.AtomRuntime<En
|
|
|
1343
1470
|
}, E | EnvironmentAuthorizationError | EnvironmentNotRegisteredError | EnvironmentRpcUnavailableError | import("effect/unstable/rpc/RpcClientError").RpcClientError | ServerSettingsError>;
|
|
1344
1471
|
signalProcess: AtomCommand<{
|
|
1345
1472
|
readonly environmentId: EnvironmentId;
|
|
1346
|
-
readonly input:
|
|
1347
|
-
readonly pid:
|
|
1348
|
-
readonly startTimeMs:
|
|
1349
|
-
readonly signal:
|
|
1350
|
-
}
|
|
1473
|
+
readonly input: {
|
|
1474
|
+
readonly pid: number;
|
|
1475
|
+
readonly startTimeMs: number;
|
|
1476
|
+
readonly signal: "SIGINT" | "SIGKILL";
|
|
1477
|
+
};
|
|
1351
1478
|
}, {
|
|
1352
1479
|
readonly pid: number;
|
|
1353
1480
|
readonly signal: "SIGINT" | "SIGKILL";
|
|
@@ -1356,7 +1483,7 @@ declare function createServerEnvironmentAtoms<R, E>(runtime: Atom.AtomRuntime<En
|
|
|
1356
1483
|
}, E | EnvironmentAuthorizationError | EnvironmentNotRegisteredError | EnvironmentRpcUnavailableError | import("effect/unstable/rpc/RpcClientError").RpcClientError>;
|
|
1357
1484
|
retryResourceTelemetry: AtomCommand<{
|
|
1358
1485
|
readonly environmentId: EnvironmentId;
|
|
1359
|
-
readonly input:
|
|
1486
|
+
readonly input: {};
|
|
1360
1487
|
}, {
|
|
1361
1488
|
readonly accepted: boolean;
|
|
1362
1489
|
readonly snapshot: {
|
|
@@ -1492,4 +1619,4 @@ declare function createServerEnvironmentAtoms<R, E>(runtime: Atom.AtomRuntime<En
|
|
|
1492
1619
|
}, E | EnvironmentAuthorizationError | EnvironmentNotRegisteredError | EnvironmentRpcUnavailableError | import("effect/unstable/rpc/RpcClientError").RpcClientError>;
|
|
1493
1620
|
};
|
|
1494
1621
|
//#endregion
|
|
1495
|
-
export { ServerConfigProjection, applyServerConfigProjection, createServerEnvironmentAtoms, makeEnvironmentServerConfigState, projectServerConfig, projectServerWelcome, resolveServerConfigValue, serverConfigStateChanges };
|
|
1622
|
+
export { ServerConfigProjection, ServerUpdateProgressIncompleteError, ServerUpdateResumeTimeoutError, ServerUpdateStage, ServerUpdateState, ServerUpdateTarget, ServerUpdateTerminalError, applyServerConfigProjection, createServerEnvironmentAtoms, isLegacyUpdateHandoffLoss, makeEnvironmentServerConfigState, matchesServerUpdateReadyEvent, nudgeReconnectDuringUpdateRestart, projectServerConfig, projectServerWelcome, resolveServerConfigValue, resolveServerUpdateProgressResult, serverConfigStateChanges, serverUpdateStateForProgressEvent, serverUpdateStateForServerVersion, validateServerUpdateReadyEvent };
|