@myagentroam/node 0.9.9 → 0.9.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/capabilities.js +2 -92
- package/dist/claude-agent-sdk.js +2 -330
- package/dist/claude-channel.js +2 -44
- package/dist/codex-app-server.js +2 -503
- package/dist/config.js +2 -56
- package/dist/connector/node-connector-options.js +2 -1
- package/dist/connector/node-operation-router.js +2 -22
- package/dist/connector.js +2 -845
- package/dist/control-outbound-scheduler.js +2 -154
- package/dist/database.js +2 -1418
- package/dist/event-buffer.js +2 -19
- package/dist/fake-runner.js +2 -129
- package/dist/health.js +2 -3
- package/dist/main.js +2 -54
- package/dist/migrations/v001.js +3 -144
- package/dist/migrations/v002.js +2 -143
- package/dist/migrations/v003.js +2 -44
- package/dist/migrations/v004.js +34 -30
- package/dist/native-jsonl-reader.js +2 -186
- package/dist/native-session-history.js +2 -1119
- package/dist/opencode-runtime.js +2 -80
- package/dist/opencode-server.js +2 -263
- package/dist/operational.js +2 -122
- package/dist/process-tree.js +2 -18
- package/dist/rotating-log.js +2 -67
- package/dist/runner/abstract-runner.js +2 -232
- package/dist/runner/claude/managed-run-controller.js +2 -345
- package/dist/runner/claude-code-runner.js +2 -303
- package/dist/runner/codex/composer-image-markers.js +2 -0
- package/dist/runner/codex/conversation-parser.js +2 -861
- package/dist/runner/codex/managed-run-controller.js +2 -460
- package/dist/runner/codex-runner.js +2 -628
- package/dist/runner/fake-test-runner.js +2 -47
- package/dist/runner/opencode/conversation-parser.js +2 -221
- package/dist/runner/opencode/managed-run-controller.js +2 -537
- package/dist/runner/opencode-runner.js +2 -448
- package/dist/runner/runner-registry.js +2 -90
- package/dist/runner-command-engine.js +2 -70
- package/dist/runner-profiles.js +2 -215
- package/dist/runner-usage.js +2 -190
- package/dist/runtime-command-detector.js +2 -73
- package/dist/runtime-state.js +2 -982
- package/dist/service/attachment-domain-state.js +2 -7
- package/dist/service/conversation-history-service.js +2 -457
- package/dist/service/conversation-segment-service.js +2 -162
- package/dist/service/external-session-resume-service.js +2 -118
- package/dist/service/fake-managed-run-service.js +2 -60
- package/dist/service/managed-runner-session-service.js +2 -35
- package/dist/service/mcp-installation-verifier.js +2 -87
- package/dist/service/mcp-node-operation-service.js +2 -90
- package/dist/service/mcp-package-installer.js +2 -136
- package/dist/service/native-session-projection-service.js +2 -280
- package/dist/service/native-session-watch-service.js +2 -383
- package/dist/service/node-connection-lifecycle-service.js +2 -84
- package/dist/service/node-control-channel.js +2 -85
- package/dist/service/node-control-message-service.js +2 -107
- package/dist/service/node-request-service.js +2 -52
- package/dist/service/node-run-event-bridge.js +2 -83
- package/dist/service/node-terminal-channel.js +2 -182
- package/dist/service/node-upgrade-coordinator.js +2 -137
- package/dist/service/node-workspace-coordinator.js +2 -70
- package/dist/service/recent-run-projection-service.js +2 -78
- package/dist/service/run-attachment-service.js +2 -194
- package/dist/service/run-domain-state.js +2 -4
- package/dist/service/run-event-service.js +2 -193
- package/dist/service/run-workbench-service.js +2 -104
- package/dist/service/runner-channel-message-service.js +2 -20
- package/dist/service/runner-interaction-service.js +2 -243
- package/dist/service/runner-service.js +2 -71
- package/dist/service/session-catalog-service.js +2 -224
- package/dist/service/session-command-service.js +2 -76
- package/dist/service/session-context-service.js +2 -101
- package/dist/service/session-domain-state.js +2 -9
- package/dist/service/session-identity-service.js +2 -86
- package/dist/service/session-lifecycle-service.js +2 -240
- package/dist/service/session-message-service.js +2 -173
- package/dist/service/session-presentation-service.js +2 -43
- package/dist/service/session-query-service.js +2 -82
- package/dist/service/skill-directory-service.js +2 -238
- package/dist/service/skill-install-service.js +2 -434
- package/dist/service/skill-node-operation-service.js +2 -206
- package/dist/service/terminal-relay-state.js +2 -3
- package/dist/service/terminal-service.js +2 -52
- package/dist/service/workbench-event-service.js +2 -19
- package/dist/service/workbench-manifest-service.js +2 -69
- package/dist/service/workspace-change-service.js +2 -86
- package/dist/service/workspace-content-search-service.js +2 -477
- package/dist/service/workspace-domain-state.js +2 -41
- package/dist/service/workspace-file-service.js +2 -122
- package/dist/service/workspace-git-exclude-service.js +2 -119
- package/dist/service/workspace-queue-workbench-service.js +2 -304
- package/dist/service/workspace-service.js +2 -69
- package/dist/service/workspace-session-service.js +2 -139
- package/dist/service/workspace-upload-service.js +2 -262
- package/dist/service/workspace-watch-service.js +2 -146
- package/dist/service/workspace-workbench-service.js +2 -405
- package/dist/service.js +2 -38
- package/dist/storage.js +2 -32
- package/dist/supervisor.js +2 -136
- package/dist/terminal.js +2 -416
- package/dist/util/node-operation-parsers.js +2 -382
- package/dist/util/personal-instructions.js +2 -31
- package/dist/util/runner-error.js +2 -52
- package/dist/util/runner-native-session-parsers.js +2 -490
- package/dist/util/safe-error.js +2 -5
- package/dist/util/secret-environment.js +2 -25
- package/dist/workspace.js +2 -1519
- package/package.json +3 -3
- package/dist/capabilities.d.ts +0 -12
- package/dist/claude-agent-sdk.d.ts +0 -92
- package/dist/claude-channel.d.ts +0 -28
- package/dist/codex-app-server.d.ts +0 -133
- package/dist/config.d.ts +0 -18
- package/dist/connector/node-connector-options.d.ts +0 -27
- package/dist/connector/node-operation-router.d.ts +0 -9
- package/dist/connector.d.ts +0 -94
- package/dist/control-outbound-scheduler.d.ts +0 -29
- package/dist/database.d.ts +0 -305
- package/dist/event-buffer.d.ts +0 -9
- package/dist/fake-runner.d.ts +0 -42
- package/dist/health.d.ts +0 -4
- package/dist/main.d.ts +0 -2
- package/dist/migrations/v001.d.ts +0 -3
- package/dist/migrations/v002.d.ts +0 -4
- package/dist/migrations/v003.d.ts +0 -4
- package/dist/migrations/v004.d.ts +0 -4
- package/dist/native-jsonl-reader.d.ts +0 -35
- package/dist/native-session-history.d.ts +0 -126
- package/dist/opencode-runtime.d.ts +0 -33
- package/dist/opencode-server.d.ts +0 -49
- package/dist/operational.d.ts +0 -39
- package/dist/process-tree.d.ts +0 -9
- package/dist/rotating-log.d.ts +0 -17
- package/dist/runner/abstract-runner.d.ts +0 -172
- package/dist/runner/claude/managed-run-controller.d.ts +0 -51
- package/dist/runner/claude-code-runner.d.ts +0 -72
- package/dist/runner/codex/conversation-parser.d.ts +0 -59
- package/dist/runner/codex/managed-run-controller.d.ts +0 -90
- package/dist/runner/codex-runner.d.ts +0 -103
- package/dist/runner/fake-test-runner.d.ts +0 -26
- package/dist/runner/opencode/conversation-parser.d.ts +0 -31
- package/dist/runner/opencode/managed-run-controller.d.ts +0 -82
- package/dist/runner/opencode-runner.d.ts +0 -71
- package/dist/runner/runner-registry.d.ts +0 -19
- package/dist/runner-command-engine.d.ts +0 -28
- package/dist/runner-profiles.d.ts +0 -15
- package/dist/runner-usage.d.ts +0 -33
- package/dist/runtime-command-detector.d.ts +0 -3
- package/dist/runtime-state.d.ts +0 -171
- package/dist/service/attachment-domain-state.d.ts +0 -7
- package/dist/service/conversation-history-service.d.ts +0 -43
- package/dist/service/conversation-segment-service.d.ts +0 -20
- package/dist/service/external-session-resume-service.d.ts +0 -34
- package/dist/service/fake-managed-run-service.d.ts +0 -28
- package/dist/service/managed-runner-session-service.d.ts +0 -12
- package/dist/service/mcp-installation-verifier.d.ts +0 -9
- package/dist/service/mcp-node-operation-service.d.ts +0 -11
- package/dist/service/mcp-package-installer.d.ts +0 -8
- package/dist/service/native-session-projection-service.d.ts +0 -52
- package/dist/service/native-session-watch-service.d.ts +0 -62
- package/dist/service/node-connection-lifecycle-service.d.ts +0 -36
- package/dist/service/node-control-channel.d.ts +0 -32
- package/dist/service/node-control-message-service.d.ts +0 -27
- package/dist/service/node-request-service.d.ts +0 -14
- package/dist/service/node-run-event-bridge.d.ts +0 -40
- package/dist/service/node-terminal-channel.d.ts +0 -29
- package/dist/service/node-upgrade-coordinator.d.ts +0 -29
- package/dist/service/node-workspace-coordinator.d.ts +0 -29
- package/dist/service/recent-run-projection-service.d.ts +0 -14
- package/dist/service/run-attachment-service.d.ts +0 -38
- package/dist/service/run-domain-state.d.ts +0 -4
- package/dist/service/run-event-service.d.ts +0 -33
- package/dist/service/run-workbench-service.d.ts +0 -25
- package/dist/service/runner-channel-message-service.d.ts +0 -13
- package/dist/service/runner-interaction-service.d.ts +0 -39
- package/dist/service/runner-service.d.ts +0 -46
- package/dist/service/session-catalog-service.d.ts +0 -45
- package/dist/service/session-command-service.d.ts +0 -24
- package/dist/service/session-context-service.d.ts +0 -35
- package/dist/service/session-domain-state.d.ts +0 -9
- package/dist/service/session-identity-service.d.ts +0 -24
- package/dist/service/session-lifecycle-service.d.ts +0 -31
- package/dist/service/session-message-service.d.ts +0 -33
- package/dist/service/session-presentation-service.d.ts +0 -34
- package/dist/service/session-query-service.d.ts +0 -35
- package/dist/service/skill-directory-service.d.ts +0 -20
- package/dist/service/skill-install-service.d.ts +0 -21
- package/dist/service/skill-node-operation-service.d.ts +0 -44
- package/dist/service/terminal-relay-state.d.ts +0 -6
- package/dist/service/terminal-service.d.ts +0 -12
- package/dist/service/workbench-event-service.d.ts +0 -9
- package/dist/service/workbench-manifest-service.d.ts +0 -90
- package/dist/service/workspace-change-service.d.ts +0 -9
- package/dist/service/workspace-content-search-service.d.ts +0 -14
- package/dist/service/workspace-domain-state.d.ts +0 -79
- package/dist/service/workspace-file-service.d.ts +0 -18
- package/dist/service/workspace-git-exclude-service.d.ts +0 -4
- package/dist/service/workspace-queue-workbench-service.d.ts +0 -86
- package/dist/service/workspace-service.d.ts +0 -15
- package/dist/service/workspace-session-service.d.ts +0 -23
- package/dist/service/workspace-upload-service.d.ts +0 -39
- package/dist/service/workspace-watch-service.d.ts +0 -23
- package/dist/service/workspace-workbench-service.d.ts +0 -58
- package/dist/service.d.ts +0 -4
- package/dist/storage.d.ts +0 -2
- package/dist/supervisor.d.ts +0 -1
- package/dist/terminal.d.ts +0 -133
- package/dist/util/node-operation-parsers.d.ts +0 -92
- package/dist/util/personal-instructions.d.ts +0 -2
- package/dist/util/runner-error.d.ts +0 -6
- package/dist/util/runner-native-session-parsers.d.ts +0 -74
- package/dist/util/safe-error.d.ts +0 -2
- package/dist/util/secret-environment.d.ts +0 -1
- package/dist/workspace.d.ts +0 -217
package/dist/workspace.d.ts
DELETED
|
@@ -1,217 +0,0 @@
|
|
|
1
|
-
import type { GitSummary, WorkspaceKind } from '@myagentroam/protocol';
|
|
2
|
-
export interface WorkspaceInspection {
|
|
3
|
-
readonly path: string;
|
|
4
|
-
readonly kind: WorkspaceKind;
|
|
5
|
-
readonly gitSummary?: GitSummary;
|
|
6
|
-
}
|
|
7
|
-
export interface WorkspaceFileEntry {
|
|
8
|
-
readonly path: string;
|
|
9
|
-
readonly name: string;
|
|
10
|
-
readonly kind: 'FILE' | 'DIRECTORY';
|
|
11
|
-
readonly size: number | null;
|
|
12
|
-
readonly modifiedAt: number | null;
|
|
13
|
-
}
|
|
14
|
-
export interface WorkspaceFilePage {
|
|
15
|
-
readonly entries: readonly WorkspaceFileEntry[];
|
|
16
|
-
readonly nextCursor: string | null;
|
|
17
|
-
readonly truncated: boolean;
|
|
18
|
-
}
|
|
19
|
-
export interface WorkspaceFileSearchPage {
|
|
20
|
-
readonly entries: readonly WorkspaceFileEntry[];
|
|
21
|
-
readonly nextCursor: string | null;
|
|
22
|
-
readonly truncated: boolean;
|
|
23
|
-
}
|
|
24
|
-
export type WorkspaceUploadPreflightStatus = 'READY' | 'EXISTS_FILE' | 'EXISTS_DIRECTORY' | 'INVALID_NAME';
|
|
25
|
-
export interface WorkspaceUploadTarget {
|
|
26
|
-
readonly path: string;
|
|
27
|
-
readonly absolutePath: string;
|
|
28
|
-
readonly status: WorkspaceUploadPreflightStatus;
|
|
29
|
-
}
|
|
30
|
-
export interface WorkspaceDirectoryEntry {
|
|
31
|
-
readonly path: string;
|
|
32
|
-
readonly name: string;
|
|
33
|
-
readonly selectable: boolean;
|
|
34
|
-
}
|
|
35
|
-
export interface WorkspaceDirectoryListing {
|
|
36
|
-
readonly homePath: string;
|
|
37
|
-
readonly currentPath: string;
|
|
38
|
-
readonly parentPath: string | null;
|
|
39
|
-
readonly browseRoots: readonly string[];
|
|
40
|
-
readonly selectable: boolean;
|
|
41
|
-
readonly entries: readonly WorkspaceDirectoryEntry[];
|
|
42
|
-
readonly truncated: boolean;
|
|
43
|
-
}
|
|
44
|
-
export declare function createWorkspaceDirectory(parentPath: string, directoryName: string, allowedRoots: readonly string[]): Promise<string>;
|
|
45
|
-
/** A per-workspace, process-local index for the Quick Open file picker. */
|
|
46
|
-
export declare class WorkspaceFileIndex {
|
|
47
|
-
private readonly workspaceRoot;
|
|
48
|
-
private readonly limits;
|
|
49
|
-
private entries;
|
|
50
|
-
private truncated;
|
|
51
|
-
private root;
|
|
52
|
-
private loading;
|
|
53
|
-
private stale;
|
|
54
|
-
private watcher;
|
|
55
|
-
private expiryTimer;
|
|
56
|
-
private fallbackTimer;
|
|
57
|
-
private signature;
|
|
58
|
-
constructor(workspaceRoot: string, limits?: {
|
|
59
|
-
readonly entryLimit?: number;
|
|
60
|
-
readonly idleTtlMs?: number;
|
|
61
|
-
readonly onInvalidated?: () => void;
|
|
62
|
-
});
|
|
63
|
-
/** Starts/renews the lightweight index observer without exposing file data. */
|
|
64
|
-
observe(): Promise<void>;
|
|
65
|
-
contentCandidates(): Promise<{
|
|
66
|
-
readonly entries: readonly WorkspaceFileEntry[];
|
|
67
|
-
readonly truncated: boolean;
|
|
68
|
-
}>;
|
|
69
|
-
dispose(): void;
|
|
70
|
-
search(query: string, cursor?: string, limit?: number, includeDirectories?: boolean): Promise<WorkspaceFileSearchPage>;
|
|
71
|
-
private ensureLoaded;
|
|
72
|
-
private touch;
|
|
73
|
-
private rebuild;
|
|
74
|
-
private startFallbackPolling;
|
|
75
|
-
private pollFallback;
|
|
76
|
-
private invalidate;
|
|
77
|
-
}
|
|
78
|
-
/**
|
|
79
|
-
* Lists directory names only for the Workspace picker. Browsing begins at the
|
|
80
|
-
* first allowed root when configured, while the Node account home remains a
|
|
81
|
-
* browse boundary and terminal default.
|
|
82
|
-
*/
|
|
83
|
-
export declare function listWorkspaceDirectories(requestedPath: string | undefined, allowedRoots: readonly string[], homePath?: string): Promise<WorkspaceDirectoryListing>;
|
|
84
|
-
export declare function listWorkspaceFiles(workspaceRoot: string, requestedPath?: string, cursor?: string, limit?: number): Promise<WorkspaceFilePage>;
|
|
85
|
-
export type WorkspaceFileMutation = {
|
|
86
|
-
readonly action: 'CREATE_FILE';
|
|
87
|
-
readonly path: string;
|
|
88
|
-
} | {
|
|
89
|
-
readonly action: 'CREATE_DIRECTORY';
|
|
90
|
-
readonly path: string;
|
|
91
|
-
} | {
|
|
92
|
-
readonly action: 'MOVE';
|
|
93
|
-
readonly path: string;
|
|
94
|
-
readonly destination: string;
|
|
95
|
-
} | {
|
|
96
|
-
readonly action: 'DELETE';
|
|
97
|
-
readonly path: string;
|
|
98
|
-
};
|
|
99
|
-
export declare function mutateWorkspaceFile(workspaceRoot: string, mutation: WorkspaceFileMutation): Promise<{
|
|
100
|
-
readonly path?: string;
|
|
101
|
-
readonly deleted?: true;
|
|
102
|
-
}>;
|
|
103
|
-
/** Validates an upload destination without following an existing target symlink. */
|
|
104
|
-
export declare function preflightWorkspaceUpload(workspaceRoot: string, requestedDirectory: string, name: string): Promise<WorkspaceUploadTarget>;
|
|
105
|
-
export declare function workspaceUploadTemporaryName(uploadId: string): string;
|
|
106
|
-
export declare function readWorkspaceTextFile(workspaceRoot: string, requestedPath: string, offset?: number, limit?: number): Promise<{
|
|
107
|
-
readonly path: string;
|
|
108
|
-
readonly encoding: 'utf-8' | 'base64';
|
|
109
|
-
readonly size: number;
|
|
110
|
-
readonly content: string;
|
|
111
|
-
readonly truncated: boolean;
|
|
112
|
-
readonly nextOffset: number | null;
|
|
113
|
-
}>;
|
|
114
|
-
export declare function readWorkspaceFileContentRange(workspaceRoot: string, requestedPath: string, offset?: number, limit?: number): Promise<{
|
|
115
|
-
readonly path: string;
|
|
116
|
-
readonly size: number;
|
|
117
|
-
readonly offset: number;
|
|
118
|
-
readonly contentBase64: string;
|
|
119
|
-
readonly nextOffset: number | null;
|
|
120
|
-
}>;
|
|
121
|
-
/** Reads one absolute file only when the resolved target remains within a Node allowed root. */
|
|
122
|
-
export declare function readAllowedTextFile(requestedPath: string, allowedRoots: readonly string[], offset?: number, limit?: number): Promise<{
|
|
123
|
-
readonly path: string;
|
|
124
|
-
readonly encoding: 'utf-8' | 'base64';
|
|
125
|
-
readonly size: number;
|
|
126
|
-
readonly content: string;
|
|
127
|
-
readonly truncated: boolean;
|
|
128
|
-
readonly nextOffset: number | null;
|
|
129
|
-
}>;
|
|
130
|
-
/** Searches file names only, so an exploratory request cannot exfiltrate file contents. */
|
|
131
|
-
export declare function searchWorkspaceFiles(workspaceRoot: string, query: string, cursor?: string, limit?: number, includeDirectories?: boolean): Promise<WorkspaceFileSearchPage>;
|
|
132
|
-
export declare function normalizeWorkspacePath(input: string, platform?: NodeJS.Platform): string;
|
|
133
|
-
export declare function isWithinAllowedRoot(target: string, roots: readonly string[], platform?: NodeJS.Platform): boolean;
|
|
134
|
-
/** Resolving both candidate and roots rejects Linux symlinks which point outside a root. */
|
|
135
|
-
export declare function inspectWorkspace(requestedPath: string, allowedRoots: readonly string[]): Promise<WorkspaceInspection>;
|
|
136
|
-
export declare function readGitSummary(workspacePath: string): Promise<GitSummary>;
|
|
137
|
-
export declare function assertSafeGitRef(ref: string): void;
|
|
138
|
-
export declare function readRestrictedDiff(workspacePath: string, fromRef: string, toRef: string): Promise<{
|
|
139
|
-
readonly binary: boolean;
|
|
140
|
-
readonly text?: string;
|
|
141
|
-
readonly summary?: string;
|
|
142
|
-
readonly truncated: boolean;
|
|
143
|
-
}>;
|
|
144
|
-
export type CurrentChange = {
|
|
145
|
-
readonly path: string;
|
|
146
|
-
readonly state: 'STAGED' | 'UNSTAGED' | 'UNTRACKED';
|
|
147
|
-
readonly change: 'ADDED' | 'MODIFIED' | 'DELETED' | 'RENAMED' | 'COPIED' | 'TYPE_CHANGED';
|
|
148
|
-
};
|
|
149
|
-
export interface CurrentChangesRepository {
|
|
150
|
-
readonly repositoryPath: string;
|
|
151
|
-
readonly repositoryName: string;
|
|
152
|
-
readonly branch: string | null;
|
|
153
|
-
readonly changes: readonly CurrentChange[];
|
|
154
|
-
}
|
|
155
|
-
export declare function readCurrentChangesSummary(workspacePath: string): Promise<{
|
|
156
|
-
readonly branch: string | null;
|
|
157
|
-
readonly changes: readonly CurrentChange[];
|
|
158
|
-
}>;
|
|
159
|
-
export declare function listInitializedSubmodulePaths(workspacePath: string): Promise<readonly string[]>;
|
|
160
|
-
export declare function resolveGitRepository(workspacePath: string, repositoryPath: string): Promise<string>;
|
|
161
|
-
export interface GitHistoryRefEntry {
|
|
162
|
-
readonly name: string;
|
|
163
|
-
readonly displayName: string;
|
|
164
|
-
readonly kind: 'LOCAL' | 'REMOTE';
|
|
165
|
-
readonly hash: string;
|
|
166
|
-
readonly current: boolean;
|
|
167
|
-
}
|
|
168
|
-
export declare function listGitHistoryRefs(repository: string): Promise<readonly GitHistoryRefEntry[]>;
|
|
169
|
-
export declare function readGitHistory(repository: string, input: {
|
|
170
|
-
readonly refs?: readonly string[];
|
|
171
|
-
readonly cursor?: string;
|
|
172
|
-
readonly limit?: number;
|
|
173
|
-
}): Promise<{
|
|
174
|
-
readonly commits: readonly object[];
|
|
175
|
-
readonly nextCursor: string | null;
|
|
176
|
-
}>;
|
|
177
|
-
export declare function readGitHistoryFiles(repository: string, commit: string, refs?: readonly string[]): Promise<readonly {
|
|
178
|
-
path: string;
|
|
179
|
-
previousPath?: string;
|
|
180
|
-
change: ReturnType<typeof gitChange>;
|
|
181
|
-
}[]>;
|
|
182
|
-
export declare function readGitHistoryFileDiff(repository: string, commit: string, requestedPath: string, refs?: readonly string[], requestedPreviousPath?: string): Promise<{
|
|
183
|
-
readonly binary: boolean;
|
|
184
|
-
readonly text?: string;
|
|
185
|
-
readonly summary?: string;
|
|
186
|
-
readonly truncated: boolean;
|
|
187
|
-
}>;
|
|
188
|
-
export declare function readGitHistoryFileContentRange(repository: string, commit: string, requestedPath: string, offset: number, limit: number, refs?: readonly string[]): Promise<{
|
|
189
|
-
readonly path: string;
|
|
190
|
-
readonly size: number;
|
|
191
|
-
readonly offset: number;
|
|
192
|
-
readonly contentBase64: string;
|
|
193
|
-
readonly nextOffset: number | null;
|
|
194
|
-
}>;
|
|
195
|
-
export declare function readCurrentChanges(workspacePath: string): Promise<readonly {
|
|
196
|
-
readonly path: string;
|
|
197
|
-
readonly state: 'STAGED' | 'UNSTAGED' | 'UNTRACKED';
|
|
198
|
-
readonly change: 'ADDED' | 'MODIFIED' | 'DELETED' | 'RENAMED' | 'COPIED' | 'TYPE_CHANGED';
|
|
199
|
-
}[]>;
|
|
200
|
-
export declare function readCurrentChangeDiff(workspacePath: string, requestedPath: string): Promise<{
|
|
201
|
-
readonly binary: boolean;
|
|
202
|
-
readonly text?: string;
|
|
203
|
-
readonly summary?: string;
|
|
204
|
-
readonly truncated: boolean;
|
|
205
|
-
readonly afterText?: string;
|
|
206
|
-
readonly afterTruncated?: boolean;
|
|
207
|
-
}>;
|
|
208
|
-
/** Current Changes must not expose an external link. */
|
|
209
|
-
export declare function isWorkspaceChangeVisible(workspacePath: string, requestedPath: string): Promise<boolean>;
|
|
210
|
-
export declare function restoreCurrentChange(workspacePath: string, requestedPath: string, state: 'STAGED' | 'UNSTAGED' | 'UNTRACKED'): Promise<void>;
|
|
211
|
-
declare function gitChange(status: string): 'ADDED' | 'MODIFIED' | 'DELETED' | 'RENAMED' | 'COPIED' | 'TYPE_CHANGED';
|
|
212
|
-
export declare class GitCommandError extends Error {
|
|
213
|
-
readonly code: number;
|
|
214
|
-
readonly stderr: string;
|
|
215
|
-
constructor(code: number, stderr: string);
|
|
216
|
-
}
|
|
217
|
-
export {};
|