@celljs/ta-protocol 4.7.0 → 4.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.en.md +2 -2
- package/README.md +2 -2
- package/esm/common/access-protocol.d.ts +73 -0
- package/esm/common/access-protocol.js +9 -0
- package/esm/common/gateway-protocol.d.ts +81 -0
- package/esm/common/gateway-protocol.js +3 -0
- package/esm/common/index.d.ts +2 -0
- package/esm/common/index.js +2 -0
- package/esm/common/location.d.ts +5 -0
- package/esm/common/location.js +12 -0
- package/esm/common/package-protocol.d.ts +60 -1
- package/esm/common/package-protocol.js +12 -0
- package/esm/common/relay-protocol.d.ts +17 -0
- package/esm/common/settings-protocol.d.ts +9 -0
- package/esm/common/ta-extension-host.d.ts +40 -3
- package/esm/common/ta-extension-host.js +13 -0
- package/esm/common/ta-protocol.d.ts +115 -4
- package/esm/common/ta-protocol.js +33 -0
- package/esm/common/workspace-protocol.d.ts +28 -1
- package/esm/common/workspace-protocol.js +21 -0
- package/lib/common/access-protocol.d.ts +74 -0
- package/lib/common/access-protocol.js +12 -0
- package/lib/common/gateway-protocol.d.ts +82 -0
- package/lib/common/gateway-protocol.js +6 -0
- package/lib/common/index.d.ts +2 -0
- package/lib/common/index.js +2 -0
- package/lib/common/location.d.ts +5 -0
- package/lib/common/location.js +12 -0
- package/lib/common/package-protocol.d.ts +60 -1
- package/lib/common/package-protocol.js +13 -1
- package/lib/common/relay-protocol.d.ts +17 -0
- package/lib/common/settings-protocol.d.ts +9 -0
- package/lib/common/ta-extension-host.d.ts +40 -3
- package/lib/common/ta-extension-host.js +14 -1
- package/lib/common/ta-protocol.d.ts +115 -4
- package/lib/common/ta-protocol.js +34 -1
- package/lib/common/workspace-protocol.d.ts +28 -1
- package/lib/common/workspace-protocol.js +22 -1
- package/package.json +3 -2
- package/esm/common/auth-protocol.js.map +0 -1
- package/esm/common/index.js.map +0 -1
- package/esm/common/location.js.map +0 -1
- package/esm/common/package-protocol.js.map +0 -1
- package/esm/common/pi-types.js.map +0 -1
- package/esm/common/relay-protocol.js.map +0 -1
- package/esm/common/remote-protocol.js.map +0 -1
- package/esm/common/settings-protocol.js.map +0 -1
- package/esm/common/ta-extension-host.js.map +0 -1
- package/esm/common/ta-protocol.js.map +0 -1
- package/esm/common/workspace-protocol.js.map +0 -1
- package/lib/common/auth-protocol.d.ts.map +0 -1
- package/lib/common/auth-protocol.js.map +0 -1
- package/lib/common/index.d.ts.map +0 -1
- package/lib/common/index.js.map +0 -1
- package/lib/common/location.d.ts.map +0 -1
- package/lib/common/location.js.map +0 -1
- package/lib/common/location.spec.d.ts +0 -2
- package/lib/common/location.spec.d.ts.map +0 -1
- package/lib/common/location.spec.js +0 -58
- package/lib/common/location.spec.js.map +0 -1
- package/lib/common/package-protocol.d.ts.map +0 -1
- package/lib/common/package-protocol.js.map +0 -1
- package/lib/common/pi-types.d.ts.map +0 -1
- package/lib/common/pi-types.js.map +0 -1
- package/lib/common/relay-protocol.d.ts.map +0 -1
- package/lib/common/relay-protocol.js.map +0 -1
- package/lib/common/remote-protocol.d.ts.map +0 -1
- package/lib/common/remote-protocol.js.map +0 -1
- package/lib/common/settings-protocol.d.ts.map +0 -1
- package/lib/common/settings-protocol.js.map +0 -1
- package/lib/common/ta-extension-host.d.ts.map +0 -1
- package/lib/common/ta-extension-host.js.map +0 -1
- package/lib/common/ta-protocol.d.ts.map +0 -1
- package/lib/common/ta-protocol.js.map +0 -1
- package/lib/common/ta-protocol.spec.d.ts +0 -2
- package/lib/common/ta-protocol.spec.d.ts.map +0 -1
- package/lib/common/ta-protocol.spec.js +0 -41
- package/lib/common/ta-protocol.spec.js.map +0 -1
- package/lib/common/workspace-protocol.d.ts.map +0 -1
- package/lib/common/workspace-protocol.js.map +0 -1
- package/src/common/auth-protocol.ts +0 -56
- package/src/common/index.ts +0 -10
- package/src/common/location.spec.ts +0 -62
- package/src/common/location.ts +0 -177
- package/src/common/package-protocol.ts +0 -99
- package/src/common/pi-types.ts +0 -11
- package/src/common/relay-protocol.ts +0 -28
- package/src/common/remote-protocol.ts +0 -76
- package/src/common/settings-protocol.ts +0 -66
- package/src/common/ta-extension-host.ts +0 -54
- package/src/common/ta-protocol.spec.ts +0 -48
- package/src/common/ta-protocol.ts +0 -347
- package/src/common/workspace-protocol.ts +0 -102
|
@@ -1,6 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TA_PACKAGE_SERVICE = exports.TaPackageServer = void 0;
|
|
3
|
+
exports.TaPackageTextUtil = exports.TA_PACKAGE_SERVICE = exports.TaPackageServer = void 0;
|
|
4
4
|
exports.TaPackageServer = Symbol('TaPackageServer');
|
|
5
5
|
exports.TA_PACKAGE_SERVICE = 'TaPackageServer';
|
|
6
|
+
var TaPackageTextUtil;
|
|
7
|
+
(function (TaPackageTextUtil) {
|
|
8
|
+
/** The text in a language such as `zh-CN`: that language, else its first part (`zh`), else English, else the first there is. */
|
|
9
|
+
function pick(text, language) {
|
|
10
|
+
var _a, _b, _c, _d;
|
|
11
|
+
if (text === undefined || typeof text === 'string') {
|
|
12
|
+
return text;
|
|
13
|
+
}
|
|
14
|
+
return (_d = (_c = (_b = (_a = text[language]) !== null && _a !== void 0 ? _a : text[language.split('-')[0]]) !== null && _b !== void 0 ? _b : text.en) !== null && _c !== void 0 ? _c : text['en-US']) !== null && _d !== void 0 ? _d : Object.values(text)[0];
|
|
15
|
+
}
|
|
16
|
+
TaPackageTextUtil.pick = pick;
|
|
17
|
+
})(TaPackageTextUtil || (exports.TaPackageTextUtil = TaPackageTextUtil = {}));
|
|
6
18
|
//# sourceMappingURL=package-protocol.js.map
|
|
@@ -25,5 +25,22 @@ export interface TaRelayServer {
|
|
|
25
25
|
}>;
|
|
26
26
|
/** The device can no longer reach this ta serve, at once. */
|
|
27
27
|
unpair(deviceId: string): Promise<void>;
|
|
28
|
+
/**
|
|
29
|
+
* A link of a package of this computer (by its id of listPackages, or of one of its web extensions), for
|
|
30
|
+
* another computer to open it without installing: its files go from here to there through the relay, end to
|
|
31
|
+
* end, while this ta serve runs and the link lasts; nothing is kept on the relay. The link of before while it lasts.
|
|
32
|
+
*/
|
|
33
|
+
sharePackage(id: string): Promise<TaPackageShare>;
|
|
34
|
+
/** The links of a package no longer work. */
|
|
35
|
+
unsharePackage(id: string): Promise<void>;
|
|
36
|
+
}
|
|
37
|
+
/** A package handed on by a link (TaRelayServer.sharePackage). */
|
|
38
|
+
export interface TaPackageShare {
|
|
39
|
+
/** `https://<relay>/share#…`, the key in the fragment: what `openTemporaryPackage` takes on the other computer. */
|
|
40
|
+
link: string;
|
|
41
|
+
/** Milliseconds since the epoch. */
|
|
42
|
+
expiresAt: number;
|
|
43
|
+
/** The largest package that goes, in bytes. */
|
|
44
|
+
maxBytes: number;
|
|
28
45
|
}
|
|
29
46
|
//# sourceMappingURL=relay-protocol.d.ts.map
|
|
@@ -28,6 +28,10 @@ export interface TaSettingsSnapshot {
|
|
|
28
28
|
projectTrusted: boolean;
|
|
29
29
|
/** `<provider>/<model id>` of the models with credentials, for the model setting. */
|
|
30
30
|
models: string[];
|
|
31
|
+
/** The names of those of `models` that have one other than their id. */
|
|
32
|
+
modelNames?: Record<string, string>;
|
|
33
|
+
/** By id, the names of the providers of `models` (`Kimi For Coding` for `kimi-coding`), as the lists of models group them. */
|
|
34
|
+
providerNames?: Record<string, string>;
|
|
31
35
|
}
|
|
32
36
|
/** The settings of ta in pi's `settings.json` files, on the same WebSocket as {@link TaServer}. */
|
|
33
37
|
export interface TaSettingsServer {
|
|
@@ -39,5 +43,10 @@ export interface TaSettingsServer {
|
|
|
39
43
|
* level are for new sessions.
|
|
40
44
|
*/
|
|
41
45
|
updateSettings(scope: TaSettingsScope, changes: Record<string, unknown>, cwd?: string): Promise<TaSettingsSnapshot>;
|
|
46
|
+
/**
|
|
47
|
+
* The language the user reads (`zh-CN`, `en-US`), for what the server and the pi packages it runs say:
|
|
48
|
+
* it is `TA_LANGUAGE` of the process of ta serve, which they read. The client that set it last wins.
|
|
49
|
+
*/
|
|
50
|
+
setLanguage(language: string): Promise<void>;
|
|
42
51
|
}
|
|
43
52
|
//# sourceMappingURL=settings-protocol.d.ts.map
|
|
@@ -2,10 +2,10 @@ import type { TaPackageServer } from './package-protocol';
|
|
|
2
2
|
import type { TaServer } from './ta-protocol';
|
|
3
3
|
/**
|
|
4
4
|
* What `ta serve` gives the server side of a package: the sessions and the data of packages, in its own
|
|
5
|
-
* process, without a token. A subset of TaServer and TaPackageServer: it can open
|
|
6
|
-
*
|
|
5
|
+
* process, without a token. A subset of TaServer and TaPackageServer: it can open, drive, stop and close
|
|
6
|
+
* sessions (best those it opened: closing one takes it from every client), not remove anything.
|
|
7
7
|
*/
|
|
8
|
-
export interface TaExtensionHost extends Pick<TaServer, 'getServerInfo' | 'listSessions' | 'openSession' | 'setSessionName' | 'prompt' | 'followUp' | 'getState' | 'getLastAssistantText'>, Pick<TaPackageServer, 'getExtensionData' | 'setExtensionData' | 'listPackages'> {
|
|
8
|
+
export interface TaExtensionHost extends Pick<TaServer, 'getServerInfo' | 'listSessions' | 'openSession' | 'closeSession' | 'setSessionName' | 'prompt' | 'followUp' | 'abort' | 'getState' | 'getLastAssistantText'>, Pick<TaPackageServer, 'getExtensionData' | 'setExtensionData' | 'listPackages'> {
|
|
9
9
|
/** The agent directory of Ta (`~/.ta/agent`): its `extensions/` holds the packages of the user. */
|
|
10
10
|
readonly agentDir: string;
|
|
11
11
|
/** Where the conversation of a session file works, as clients name it (a path or an `ssh://` location), without opening it; undefined when it cannot be read. */
|
|
@@ -34,6 +34,28 @@ export type TaPackageHostFactory = (host: TaExtensionHost) => TaPackageService |
|
|
|
34
34
|
* and the extension should say its tools need `ta serve`.
|
|
35
35
|
*/
|
|
36
36
|
export declare const TA_HOST_EVENT = "ta:host";
|
|
37
|
+
/**
|
|
38
|
+
* The event of pi's `pi.events` by which an extension whose tools change files without pi's `edit` and
|
|
39
|
+
* `write` (another coding agent's own tools, ta-agents) says which, as soon as it knows and before the
|
|
40
|
+
* write if it can: `pi.events.emit(TA_FILE_WRITE_EVENT, file)`. The list of changed files (ta-changes)
|
|
41
|
+
* keeps what the file holds then.
|
|
42
|
+
*/
|
|
43
|
+
export declare const TA_FILE_WRITE_EVENT = "ta:file-write";
|
|
44
|
+
/**
|
|
45
|
+
* Where the web client keeps the session file of the double's conversation: in the data of packages
|
|
46
|
+
* (TaExtensionHost.getExtensionData), under this package name and key; a JSON string, empty before the
|
|
47
|
+
* double first opened. The server side of a package that sends to the double reads it there.
|
|
48
|
+
*/
|
|
49
|
+
export declare const TA_DOUBLE_FILE: {
|
|
50
|
+
readonly name: '@celljs/ta-web';
|
|
51
|
+
readonly key: 'assistant.file';
|
|
52
|
+
};
|
|
53
|
+
export interface TaFileWrite {
|
|
54
|
+
/** Absolute, on the machine where the session's tools work. */
|
|
55
|
+
path: string;
|
|
56
|
+
/** Its text before the change, when known (a diff of the agent); null: there was no file. */
|
|
57
|
+
before?: string | null;
|
|
58
|
+
}
|
|
37
59
|
export interface TaHostRequest {
|
|
38
60
|
/** The `name` of the package.json. */
|
|
39
61
|
name: string;
|
|
@@ -43,5 +65,20 @@ export interface TaHostAnswer {
|
|
|
43
65
|
host: TaExtensionHost;
|
|
44
66
|
/** What the module of `pi.host` of the package returned; undefined when it has none or failed. */
|
|
45
67
|
service?: TaPackageService;
|
|
68
|
+
/** The files of the session that asked, where its tools read and write. */
|
|
69
|
+
files: TaSessionFiles;
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* The files of a session where its tools work: on the machine of `ta serve`, or on the one of an
|
|
73
|
+
* `ssh://` directory (ExecEnvironment). Paths are those {@link resolve} gives.
|
|
74
|
+
*/
|
|
75
|
+
export interface TaSessionFiles {
|
|
76
|
+
/** The path a tool of the session (read, edit, write) works on for a path of its arguments. */
|
|
77
|
+
resolve(path: string): string;
|
|
78
|
+
/** The bytes of a file; undefined when there is no file there. */
|
|
79
|
+
read(path: string): Promise<Uint8Array | undefined>;
|
|
80
|
+
/** Writes a file, and the directories it needs. */
|
|
81
|
+
write(path: string, data: Uint8Array): Promise<void>;
|
|
82
|
+
remove(path: string): Promise<void>;
|
|
46
83
|
}
|
|
47
84
|
//# sourceMappingURL=ta-extension-host.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TA_HOST_EVENT = void 0;
|
|
3
|
+
exports.TA_DOUBLE_FILE = exports.TA_FILE_WRITE_EVENT = exports.TA_HOST_EVENT = void 0;
|
|
4
4
|
/**
|
|
5
5
|
* The event of pi's `pi.events` by which a pi extension asks for the host of its package:
|
|
6
6
|
* `pi.events.emit(TA_HOST_EVENT, { name, resolve })`. Under `ta serve` `resolve` is called at once, if
|
|
@@ -8,4 +8,17 @@ exports.TA_HOST_EVENT = void 0;
|
|
|
8
8
|
* and the extension should say its tools need `ta serve`.
|
|
9
9
|
*/
|
|
10
10
|
exports.TA_HOST_EVENT = 'ta:host';
|
|
11
|
+
/**
|
|
12
|
+
* The event of pi's `pi.events` by which an extension whose tools change files without pi's `edit` and
|
|
13
|
+
* `write` (another coding agent's own tools, ta-agents) says which, as soon as it knows and before the
|
|
14
|
+
* write if it can: `pi.events.emit(TA_FILE_WRITE_EVENT, file)`. The list of changed files (ta-changes)
|
|
15
|
+
* keeps what the file holds then.
|
|
16
|
+
*/
|
|
17
|
+
exports.TA_FILE_WRITE_EVENT = 'ta:file-write';
|
|
18
|
+
/**
|
|
19
|
+
* Where the web client keeps the session file of the double's conversation: in the data of packages
|
|
20
|
+
* (TaExtensionHost.getExtensionData), under this package name and key; a JSON string, empty before the
|
|
21
|
+
* double first opened. The server side of a package that sends to the double reads it there.
|
|
22
|
+
*/
|
|
23
|
+
exports.TA_DOUBLE_FILE = { name: '@celljs/ta-web', key: 'assistant.file' };
|
|
11
24
|
//# sourceMappingURL=ta-extension-host.js.map
|
|
@@ -40,10 +40,16 @@ export declare const TaErrorCode: {
|
|
|
40
40
|
readonly COMMAND_FAILED: 'CELL_TA_COMMAND_FAILED';
|
|
41
41
|
/** No provider of models is signed in for the model, or there is no model: sign in (TaAuthServer) first. */
|
|
42
42
|
readonly NOT_SIGNED_IN: 'CELL_TA_NOT_SIGNED_IN';
|
|
43
|
+
/** Behind a gateway (`ta gateway`): the environment of the tenant did not start; TaGatewayServer changes or restarts it. */
|
|
44
|
+
readonly ENVIRONMENT_FAILED: 'CELL_TA_ENVIRONMENT_FAILED';
|
|
43
45
|
/** Raised by the client, not the server: the call could not reach ta serve, or its answer was lost with the connection. */
|
|
44
46
|
readonly CONNECTION_LOST: 'CELL_TA_CONNECTION_LOST';
|
|
45
47
|
};
|
|
46
48
|
export type TaErrorCode = (typeof TaErrorCode)[keyof typeof TaErrorCode];
|
|
49
|
+
export declare namespace TaErrorUtil {
|
|
50
|
+
/** The {@link TaErrorCode} of a failure: `code` of the client's error, `data.code` of the server's own, called in its process. */
|
|
51
|
+
function code(error: unknown): string | undefined;
|
|
52
|
+
}
|
|
47
53
|
/** The JSON-RPC error code of every failure of a {@link TaServer} call; `data.code` tells them apart. */
|
|
48
54
|
export declare const TA_RPC_ERROR_CODE = -32050;
|
|
49
55
|
export interface TaErrorData {
|
|
@@ -123,6 +129,24 @@ export interface TaSessionInfo {
|
|
|
123
129
|
/** TaOpenSessionOptions.group. */
|
|
124
130
|
group?: string;
|
|
125
131
|
}
|
|
132
|
+
/**
|
|
133
|
+
* A conversation in a session file of pi that no session has open: the service closed it while idle, or
|
|
134
|
+
* before it restarted. TaServer.openSession with its `sessionFile` opens it again.
|
|
135
|
+
*/
|
|
136
|
+
export interface TaSavedSessionInfo {
|
|
137
|
+
sessionFile: string;
|
|
138
|
+
piSessionId: string;
|
|
139
|
+
cwd: string;
|
|
140
|
+
sessionName?: string;
|
|
141
|
+
/** The first line of the first message of the user. */
|
|
142
|
+
firstMessage?: string;
|
|
143
|
+
messageCount: number;
|
|
144
|
+
createdAt: number;
|
|
145
|
+
/** When the last message came; `createdAt` before the first. */
|
|
146
|
+
updatedAt: number;
|
|
147
|
+
/** The group it was opened for (TaOpenSessionOptions.group): its package opens it again, with its role. */
|
|
148
|
+
group?: string;
|
|
149
|
+
}
|
|
126
150
|
export interface TaPromptInput {
|
|
127
151
|
/** May start with a block of context for the model, which clients do not show: see {@link TaMessageContext}. */
|
|
128
152
|
message: string;
|
|
@@ -141,6 +165,22 @@ export declare namespace TaMessageContext {
|
|
|
141
165
|
/** The message without its context: what the user sees of it. */
|
|
142
166
|
function strip(message: string): string;
|
|
143
167
|
}
|
|
168
|
+
/** A skill the user ran with `/skill:name`, as pi puts it in the message: the skill's file, then what the user wrote. */
|
|
169
|
+
export interface TaSkillUse {
|
|
170
|
+
name: string;
|
|
171
|
+
/** The path of its SKILL.md. */
|
|
172
|
+
location: string;
|
|
173
|
+
/** What pi read of it, for the model. */
|
|
174
|
+
content: string;
|
|
175
|
+
/** What the user wrote after `/skill:name`. */
|
|
176
|
+
message?: string;
|
|
177
|
+
}
|
|
178
|
+
/** The `<skill>` block pi expands `/skill:name` into (its `parseSkillBlock`), which a client shows as the skill it is. */
|
|
179
|
+
export declare namespace TaSkillUse {
|
|
180
|
+
function parse(message: string): TaSkillUse | undefined;
|
|
181
|
+
/** What the user typed: `/skill:name` and what follows. */
|
|
182
|
+
function command(use: TaSkillUse): string;
|
|
183
|
+
}
|
|
144
184
|
/**
|
|
145
185
|
* The server has taken the message; it says nothing about the run. A run is finished at the
|
|
146
186
|
* `agent_settled` event, when its history is on disk.
|
|
@@ -167,13 +207,22 @@ export interface TaSessionReplaced {
|
|
|
167
207
|
type: 'session_replaced';
|
|
168
208
|
info: TaSessionInfo;
|
|
169
209
|
}
|
|
210
|
+
/**
|
|
211
|
+
* The session loaded its extensions, skills, prompts and themes again (`reload`, or an extension's
|
|
212
|
+
* `ctx.reload()`): its commands may have changed, read them again (`getCommands`).
|
|
213
|
+
*/
|
|
214
|
+
export interface TaSessionReloaded {
|
|
215
|
+
type: 'session_reloaded';
|
|
216
|
+
}
|
|
170
217
|
/** The session was closed; no more events come. */
|
|
171
218
|
export interface TaSessionClosed {
|
|
172
219
|
type: 'session_closed';
|
|
173
220
|
}
|
|
174
221
|
/**
|
|
175
|
-
* The model called a tool of `clientTools`: a client that runs it
|
|
176
|
-
*
|
|
222
|
+
* The model called a tool of `clientTools`: a client that runs it takes it with `claimClientTool`, so
|
|
223
|
+
* that one client runs it, however many are attached, and answers with `respondClientTool`. When that
|
|
224
|
+
* client leaves the session before it answers, the request comes again with the same id, for another.
|
|
225
|
+
* `client_tool_resolved` tells the others it was answered.
|
|
177
226
|
*/
|
|
178
227
|
export interface TaClientToolRequest {
|
|
179
228
|
type: 'client_tool_request';
|
|
@@ -187,21 +236,68 @@ export interface TaClientToolResolved {
|
|
|
187
236
|
type: 'client_tool_resolved';
|
|
188
237
|
id: string;
|
|
189
238
|
}
|
|
190
|
-
export type TaEvent = JsonAgentSessionEvent | RpcExtensionUIRequest | TaUiRequestResolved | TaExtensionError | TaClientToolRequest | TaClientToolResolved | TaSessionReplaced | TaSessionClosed;
|
|
239
|
+
export type TaEvent = JsonAgentSessionEvent | RpcExtensionUIRequest | TaUiRequestResolved | TaExtensionError | TaClientToolRequest | TaClientToolResolved | TaSessionReplaced | TaSessionReloaded | TaSessionClosed;
|
|
191
240
|
export interface TaEventEnvelope {
|
|
192
241
|
sessionId: string;
|
|
193
242
|
/** Increases by one per event of the session. */
|
|
194
243
|
seq: number;
|
|
195
244
|
event: TaEvent;
|
|
196
245
|
}
|
|
246
|
+
/** A message of the conversation, as `getMessages` gives it. */
|
|
247
|
+
export type TaMessage = TaCommandResult<'get_messages'>['messages'][number];
|
|
248
|
+
/** A call of a tool in the run of now, as its events left it. */
|
|
249
|
+
export interface TaToolRun {
|
|
250
|
+
toolName: string;
|
|
251
|
+
args: unknown;
|
|
252
|
+
/** The latest partial result while it runs, then the result. */
|
|
253
|
+
result?: unknown;
|
|
254
|
+
status: 'running' | 'done' | 'error';
|
|
255
|
+
/** Set for a call another tool made, such as a codemode script. */
|
|
256
|
+
parentToolCallId?: string;
|
|
257
|
+
}
|
|
258
|
+
/** The conversation as the events up to `lastSeq` left it: where a client without them starts. */
|
|
259
|
+
export interface TaConversation {
|
|
260
|
+
/** With the message the model is writing now, last: `getMessages` has it only once it is written. */
|
|
261
|
+
messages: TaMessage[];
|
|
262
|
+
/** The calls of tools of the run of now, by tool call id. */
|
|
263
|
+
tools: Record<string, TaToolRun>;
|
|
264
|
+
/**
|
|
265
|
+
* Where `messages` start in the whole conversation, when only its latest came (`recentBytes` of
|
|
266
|
+
* `attach`): those before come with `getEarlierMessages`. None or 0: all of it.
|
|
267
|
+
*/
|
|
268
|
+
start?: number;
|
|
269
|
+
}
|
|
270
|
+
export interface TaAttachOptions {
|
|
271
|
+
/**
|
|
272
|
+
* Only about this many bytes of the latest messages in `conversation` (at least one, and the start of
|
|
273
|
+
* their turn when it is not much more): a long conversation shows at once, its earlier part loaded as
|
|
274
|
+
* it is scrolled to.
|
|
275
|
+
*/
|
|
276
|
+
recentBytes?: number;
|
|
277
|
+
}
|
|
278
|
+
/** The messages of a conversation before those a client has (`getEarlierMessages`). */
|
|
279
|
+
export interface TaMessagePage {
|
|
280
|
+
messages: TaMessage[];
|
|
281
|
+
/** Where they start in the whole conversation. */
|
|
282
|
+
start: number;
|
|
283
|
+
/** False when the message given is no longer there (the conversation was compacted or moved): read it again. */
|
|
284
|
+
found: boolean;
|
|
285
|
+
}
|
|
197
286
|
export interface TaAttachResult {
|
|
198
287
|
info: TaSessionInfo;
|
|
199
288
|
/** The events after `afterSeq`. */
|
|
200
289
|
events: TaEventEnvelope[];
|
|
290
|
+
/** When there is no `afterSeq`, or a `gap`: start from this, then take the events after `lastSeq`. None from a server before it. */
|
|
291
|
+
conversation?: TaConversation;
|
|
201
292
|
/** The dialogs still waiting for an answer. */
|
|
202
293
|
pendingUi: RpcExtensionUIRequest[];
|
|
203
294
|
/** The calls of client tools still waiting for a result. */
|
|
204
295
|
pendingClientTools: TaClientToolRequest[];
|
|
296
|
+
/**
|
|
297
|
+
* What the extensions show now (`setStatus`, `setWidget`), as a terminal keeps it on screen: a client
|
|
298
|
+
* that attaches draws it, whatever it missed. None from a server before it.
|
|
299
|
+
*/
|
|
300
|
+
shownUi?: RpcExtensionUIRequest[];
|
|
205
301
|
/** Seq of the last event of the session. */
|
|
206
302
|
lastSeq: number;
|
|
207
303
|
/** Some events after `afterSeq` are gone: read the conversation again with `getMessages`. */
|
|
@@ -231,11 +327,24 @@ export interface TaServer {
|
|
|
231
327
|
openSession(options: TaOpenSessionOptions): Promise<TaSessionInfo>;
|
|
232
328
|
closeSession(sessionId: string): Promise<void>;
|
|
233
329
|
listSessions(): Promise<TaSessionInfo[]>;
|
|
330
|
+
/** The conversations in pi's session files that are not open, the latest first. */
|
|
331
|
+
listSavedSessions(): Promise<TaSavedSessionInfo[]>;
|
|
234
332
|
/** Starts sending the events of the session to this connection. */
|
|
235
|
-
attach(sessionId: string, afterSeq?: number): Promise<TaAttachResult>;
|
|
333
|
+
attach(sessionId: string, afterSeq?: number, options?: TaAttachOptions): Promise<TaAttachResult>;
|
|
334
|
+
/**
|
|
335
|
+
* About `budget` bytes of the messages just before message `before` of the conversation (at least one),
|
|
336
|
+
* `timestamp` that of the message there, to know it is still the same; without `before`, the latest.
|
|
337
|
+
*/
|
|
338
|
+
getEarlierMessages(sessionId: string, before: number | undefined, timestamp: number | undefined, budget: number): Promise<TaMessagePage>;
|
|
236
339
|
detach(sessionId: string): Promise<void>;
|
|
237
340
|
/** Answers a dialog; false when it was answered before or expired. */
|
|
238
341
|
respondUi(sessionId: string, response: RpcExtensionUIResponse): Promise<boolean>;
|
|
342
|
+
/**
|
|
343
|
+
* Takes a call of a client tool to run: true for the first client that asks, and for it again; false
|
|
344
|
+
* when another client runs it or nobody waits for it. A client runs a call only once it took it: a tool
|
|
345
|
+
* that does something (opens a session) must not run in every page.
|
|
346
|
+
*/
|
|
347
|
+
claimClientTool(sessionId: string, id: string): Promise<boolean>;
|
|
239
348
|
/** Answers a call of a client tool; false when nobody waits for it. */
|
|
240
349
|
respondClientTool(sessionId: string, result: TaClientToolResult): Promise<boolean>;
|
|
241
350
|
prompt(sessionId: string, input: TaPromptInput): Promise<TaPromptReceipt>;
|
|
@@ -243,6 +352,8 @@ export interface TaServer {
|
|
|
243
352
|
followUp(sessionId: string, input: TaPromptInput): Promise<TaPromptReceipt>;
|
|
244
353
|
abort(sessionId: string): Promise<void>;
|
|
245
354
|
clearQueue(sessionId: string): Promise<TaCommandResult<'clear_queue'>>;
|
|
355
|
+
/** Takes one waiting message out, by its place among those of its kind; false when it has gone in already. */
|
|
356
|
+
removeQueued(sessionId: string, kind: 'steering' | 'followUp', index: number): Promise<boolean>;
|
|
246
357
|
newSession(sessionId: string, parentSession?: string): Promise<TaCommandResult<'new_session'>>;
|
|
247
358
|
getState(sessionId: string): Promise<TaCommandResult<'get_state'>>;
|
|
248
359
|
setModel(sessionId: string, provider: string, modelId: string): Promise<TaCommandResult<'set_model'>>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TaMessageContext = exports.TA_RPC_ERROR_CODE = exports.TaErrorCode = exports.TA_SERVE_FILE = exports.TA_CLIENT_SERVICE = exports.TA_SERVER_SERVICE = exports.TA_WEBSOCKET_PATH = exports.TaClient = exports.TaServer = void 0;
|
|
3
|
+
exports.TaSkillUse = exports.TaMessageContext = exports.TA_RPC_ERROR_CODE = exports.TaErrorUtil = exports.TaErrorCode = exports.TA_SERVE_FILE = exports.TA_CLIENT_SERVICE = exports.TA_SERVER_SERVICE = exports.TA_WEBSOCKET_PATH = exports.TaClient = exports.TaServer = void 0;
|
|
4
4
|
exports.TaServer = Symbol('TaServer');
|
|
5
5
|
exports.TaClient = Symbol('TaClient');
|
|
6
6
|
/** Path of the WebSocket endpoint of `ta serve`, and the JSON-RPC method prefixes of both sides. */
|
|
@@ -20,9 +20,23 @@ exports.TaErrorCode = {
|
|
|
20
20
|
COMMAND_FAILED: 'CELL_TA_COMMAND_FAILED',
|
|
21
21
|
/** No provider of models is signed in for the model, or there is no model: sign in (TaAuthServer) first. */
|
|
22
22
|
NOT_SIGNED_IN: 'CELL_TA_NOT_SIGNED_IN',
|
|
23
|
+
/** Behind a gateway (`ta gateway`): the environment of the tenant did not start; TaGatewayServer changes or restarts it. */
|
|
24
|
+
ENVIRONMENT_FAILED: 'CELL_TA_ENVIRONMENT_FAILED',
|
|
23
25
|
/** Raised by the client, not the server: the call could not reach ta serve, or its answer was lost with the connection. */
|
|
24
26
|
CONNECTION_LOST: 'CELL_TA_CONNECTION_LOST',
|
|
25
27
|
};
|
|
28
|
+
var TaErrorUtil;
|
|
29
|
+
(function (TaErrorUtil) {
|
|
30
|
+
/** The {@link TaErrorCode} of a failure: `code` of the client's error, `data.code` of the server's own, called in its process. */
|
|
31
|
+
function code(error) {
|
|
32
|
+
var _a;
|
|
33
|
+
var _b;
|
|
34
|
+
const failure = error;
|
|
35
|
+
const code = (_b = failure === null || failure === void 0 ? void 0 : failure.code) !== null && _b !== void 0 ? _b : (_a = failure === null || failure === void 0 ? void 0 : failure.data) === null || _a === void 0 ? void 0 : _a.code;
|
|
36
|
+
return typeof code === 'string' ? code : undefined;
|
|
37
|
+
}
|
|
38
|
+
TaErrorUtil.code = code;
|
|
39
|
+
})(TaErrorUtil || (exports.TaErrorUtil = TaErrorUtil = {}));
|
|
26
40
|
/** The JSON-RPC error code of every failure of a {@link TaServer} call; `data.code` tells them apart. */
|
|
27
41
|
exports.TA_RPC_ERROR_CODE = -32050;
|
|
28
42
|
/**
|
|
@@ -42,4 +56,23 @@ var TaMessageContext;
|
|
|
42
56
|
}
|
|
43
57
|
TaMessageContext.strip = strip;
|
|
44
58
|
})(TaMessageContext || (exports.TaMessageContext = TaMessageContext = {}));
|
|
59
|
+
/** The `<skill>` block pi expands `/skill:name` into (its `parseSkillBlock`), which a client shows as the skill it is. */
|
|
60
|
+
var TaSkillUse;
|
|
61
|
+
(function (TaSkillUse) {
|
|
62
|
+
const BLOCK = /^<skill name="([^"]+)" location="([^"]+)">\n([\s\S]*?)\n<\/skill>(?:\n\n([\s\S]+))?$/;
|
|
63
|
+
function parse(message) {
|
|
64
|
+
var _a;
|
|
65
|
+
const match = BLOCK.exec(message);
|
|
66
|
+
if (!match) {
|
|
67
|
+
return undefined;
|
|
68
|
+
}
|
|
69
|
+
return { name: match[1], location: match[2], content: match[3], message: ((_a = match[4]) === null || _a === void 0 ? void 0 : _a.trim()) || undefined };
|
|
70
|
+
}
|
|
71
|
+
TaSkillUse.parse = parse;
|
|
72
|
+
/** What the user typed: `/skill:name` and what follows. */
|
|
73
|
+
function command(use) {
|
|
74
|
+
return use.message ? `/skill:${use.name} ${use.message}` : `/skill:${use.name}`;
|
|
75
|
+
}
|
|
76
|
+
TaSkillUse.command = command;
|
|
77
|
+
})(TaSkillUse || (exports.TaSkillUse = TaSkillUse = {}));
|
|
45
78
|
//# sourceMappingURL=ta-protocol.js.map
|
|
@@ -12,6 +12,17 @@ export interface TaDirEntry {
|
|
|
12
12
|
kind: 'file' | 'directory';
|
|
13
13
|
size?: number;
|
|
14
14
|
}
|
|
15
|
+
/**
|
|
16
|
+
* What a list of files hides unless asked, by name at any depth, as VS Code's default `files.exclude`:
|
|
17
|
+
* the data of version control and what systems leave in folders.
|
|
18
|
+
*/
|
|
19
|
+
export declare namespace TaExcludedFiles {
|
|
20
|
+
const NAMES: readonly string[];
|
|
21
|
+
function has(name: string): boolean;
|
|
22
|
+
function filter<T extends {
|
|
23
|
+
name: string;
|
|
24
|
+
}>(entries: T[]): T[];
|
|
25
|
+
}
|
|
15
26
|
export interface TaFileContent {
|
|
16
27
|
path: string;
|
|
17
28
|
size: number;
|
|
@@ -31,6 +42,17 @@ export interface TaRunCommandOptions {
|
|
|
31
42
|
/** Of each of stdout and stderr; default 1 MB, at most 8 MB. */
|
|
32
43
|
maxBytes?: number;
|
|
33
44
|
}
|
|
45
|
+
/**
|
|
46
|
+
* The most bytes of a part of {@link TaWorkspaceServer.uploadFile}: a larger file goes in parts of this size,
|
|
47
|
+
* well within what a message of the WebSocket may hold once in base64.
|
|
48
|
+
*/
|
|
49
|
+
export declare const TA_UPLOAD_PART_BYTES: number;
|
|
50
|
+
export interface TaUploadOptions {
|
|
51
|
+
/** Default: the server's directory. */
|
|
52
|
+
cwd?: string;
|
|
53
|
+
/** After what the file holds: each part of a file sent in parts but the first. */
|
|
54
|
+
append?: boolean;
|
|
55
|
+
}
|
|
34
56
|
export interface TaCommandOutput {
|
|
35
57
|
stdout: string;
|
|
36
58
|
stderr: string;
|
|
@@ -46,11 +68,16 @@ export interface TaCommandOutput {
|
|
|
46
68
|
* the work runs in the execution environment of `cwd`, as the tools of a session do.
|
|
47
69
|
*/
|
|
48
70
|
export interface TaWorkspaceServer {
|
|
49
|
-
/** Directories first, then by name; `.git`
|
|
71
|
+
/** Directories first, then by name; every entry, `.git` too: a client hides what it does not show ({@link TaExcludedFiles}). */
|
|
50
72
|
listDirectory(path: string, cwd?: string): Promise<TaDirEntry[]>;
|
|
51
73
|
readFile(path: string, cwd?: string): Promise<TaFileContent>;
|
|
52
74
|
/** Writes the text of a file; its directory must be there. */
|
|
53
75
|
writeFile(path: string, text: string, cwd?: string): Promise<void>;
|
|
76
|
+
/**
|
|
77
|
+
* Writes bytes, in base64, to a file (one uploaded): the folders on its way are made, and a file there is
|
|
78
|
+
* replaced. A file larger than {@link TA_UPLOAD_PART_BYTES} goes in parts, each after the first with `append`.
|
|
79
|
+
*/
|
|
80
|
+
uploadFile(path: string, data: string, options?: TaUploadOptions): Promise<void>;
|
|
54
81
|
/**
|
|
55
82
|
* A URL of this server, under {@link TA_FILES_PATH}, that answers the bytes of a file of `cwd`, for
|
|
56
83
|
* what the page shows as it is: an image, a video, a page with what it loads next to it. The URL needs
|
|
@@ -1,10 +1,31 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TA_TERMINAL_SERVICE = exports.TaTerminalServer = exports.TA_WORKSPACE_SERVICE = exports.TaWorkspaceServer = exports.TA_FILES_PATH = void 0;
|
|
3
|
+
exports.TA_UPLOAD_PART_BYTES = exports.TaExcludedFiles = exports.TA_TERMINAL_SERVICE = exports.TaTerminalServer = exports.TA_WORKSPACE_SERVICE = exports.TaWorkspaceServer = exports.TA_FILES_PATH = void 0;
|
|
4
4
|
/** Where the page loads the bytes of workspace files from: see {@link TaWorkspaceServer.fileUrl}. */
|
|
5
5
|
exports.TA_FILES_PATH = '/api/files';
|
|
6
6
|
exports.TaWorkspaceServer = Symbol('TaWorkspaceServer');
|
|
7
7
|
exports.TA_WORKSPACE_SERVICE = 'TaWorkspaceServer';
|
|
8
8
|
exports.TaTerminalServer = Symbol('TaTerminalServer');
|
|
9
9
|
exports.TA_TERMINAL_SERVICE = 'TaTerminalServer';
|
|
10
|
+
/**
|
|
11
|
+
* What a list of files hides unless asked, by name at any depth, as VS Code's default `files.exclude`:
|
|
12
|
+
* the data of version control and what systems leave in folders.
|
|
13
|
+
*/
|
|
14
|
+
var TaExcludedFiles;
|
|
15
|
+
(function (TaExcludedFiles) {
|
|
16
|
+
TaExcludedFiles.NAMES = ['.git', '.svn', '.hg', '.DS_Store', 'Thumbs.db'];
|
|
17
|
+
function has(name) {
|
|
18
|
+
return TaExcludedFiles.NAMES.includes(name);
|
|
19
|
+
}
|
|
20
|
+
TaExcludedFiles.has = has;
|
|
21
|
+
function filter(entries) {
|
|
22
|
+
return entries.filter(entry => !has(entry.name));
|
|
23
|
+
}
|
|
24
|
+
TaExcludedFiles.filter = filter;
|
|
25
|
+
})(TaExcludedFiles || (exports.TaExcludedFiles = TaExcludedFiles = {}));
|
|
26
|
+
/**
|
|
27
|
+
* The most bytes of a part of {@link TaWorkspaceServer.uploadFile}: a larger file goes in parts of this size,
|
|
28
|
+
* well within what a message of the WebSocket may hold once in base64.
|
|
29
|
+
*/
|
|
30
|
+
exports.TA_UPLOAD_PART_BYTES = 4 * 1024 * 1024;
|
|
10
31
|
//# sourceMappingURL=workspace-protocol.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@celljs/ta-protocol",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.9.0",
|
|
4
4
|
"description": "The protocol between ta serve and its clients",
|
|
5
5
|
"homepage": "https://github.com/cellbang/cell",
|
|
6
6
|
"bugs": {
|
|
@@ -19,7 +19,8 @@
|
|
|
19
19
|
"files": [
|
|
20
20
|
"lib",
|
|
21
21
|
"esm",
|
|
22
|
-
"
|
|
22
|
+
"!lib/**/*.spec.*",
|
|
23
|
+
"!**/*.map"
|
|
23
24
|
],
|
|
24
25
|
"scripts": {
|
|
25
26
|
"build": "tsc -b && bun ../../scripts/build-esm.ts",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"auth-protocol.js","sourceRoot":"","sources":["../../src/common/auth-protocol.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,YAAY,GAAG,MAAM,CAAC,cAAc,CAAC,CAAC;AACnD,MAAM,CAAC,MAAM,eAAe,GAAG,cAAc,CAAC"}
|
package/esm/common/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/common/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAC3B,cAAc,oBAAoB,CAAC;AACnC,cAAc,YAAY,CAAC;AAC3B,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,eAAe,CAAC;AAC9B,cAAc,sBAAsB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
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EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;IAC/E,CAAC;IAED,SAAS,SAAS,CAAC,IAAY,EAAE,IAAY;QACzC,MAAM,SAAS,GAAG,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC;QAC1E,OAAO,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,IAAI,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,GAAG,SAAS,GAAG,IAAI,CAAC;IAC5E,CAAC;IAED,+DAA+D;IAC/D,SAAS,SAAS,CAAC,IAAY;QAC3B,MAAM,QAAQ,GAAG,IAAI,IAAI,EAAE,CAAC,OAAO,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;QACjD,OAAO,QAAQ,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC;IACxE,CAAC;AACL,CAAC,EA1KgB,UAAU,KAAV,UAAU,QA0K1B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"package-protocol.js","sourceRoot":"","sources":["../../src/common/package-protocol.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,MAAM,eAAe,GAAG,MAAM,CAAC,iBAAiB,CAAC,CAAC;AACzD,MAAM,CAAC,MAAM,kBAAkB,GAAG,iBAAiB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pi-types.js","sourceRoot":"","sources":["../../src/common/pi-types.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"relay-protocol.js","sourceRoot":"","sources":["../../src/common/relay-protocol.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,aAAa,GAAG,MAAM,CAAC,eAAe,CAAC,CAAC;AACrD,MAAM,CAAC,MAAM,gBAAgB,GAAG,eAAe,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"remote-protocol.js","sourceRoot":"","sources":["../../src/common/remote-protocol.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,cAAc,GAAG,MAAM,CAAC,gBAAgB,CAAC,CAAC;AACvD,MAAM,CAAC,MAAM,iBAAiB,GAAG,gBAAgB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"settings-protocol.js","sourceRoot":"","sources":["../../src/common/settings-protocol.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,gBAAgB,GAAG,MAAM,CAAC,kBAAkB,CAAC,CAAC;AAC3D,MAAM,CAAC,MAAM,mBAAmB,GAAG,kBAAkB,CAAC;AAetD,8GAA8G;AAC9G,MAAM,CAAC,MAAM,WAAW,GAA6B;IACjD,EAAE,GAAG,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE;IAC/B,EAAE,GAAG,EAAE,sBAAsB,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,CAAC,EAAE;IAClH,EAAE,GAAG,EAAE,WAAW,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC,MAAM,EAAE,KAAK,EAAE,WAAW,EAAE,kBAAkB,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE;IAC7G,EAAE,GAAG,EAAE,cAAc,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC,eAAe,EAAE,KAAK,CAAC,EAAE,OAAO,EAAE,eAAe,EAAE;IACjG,EAAE,GAAG,EAAE,cAAc,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC,eAAe,EAAE,KAAK,CAAC,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A,KAAK,QAEpB,CAAA;AACL,CAAC,EAXgB,gBAAgB,KAAhB,gBAAgB,QAWhC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"workspace-protocol.js","sourceRoot":"","sources":["../../src/common/workspace-protocol.ts"],"names":[],"mappings":"AAEA,qGAAqG;AACrG,MAAM,CAAC,MAAM,aAAa,GAAG,YAAY,CAAC;AAE1C,MAAM,CAAC,MAAM,iBAAiB,GAAG,MAAM,CAAC,mBAAmB,CAAC,CAAC;AAC7D,MAAM,CAAC,MAAM,oBAAoB,GAAG,mBAAmB,CAAC;AACxD,MAAM,CAAC,MAAM,gBAAgB,GAAG,MAAM,CAAC,kBAAkB,CAAC,CAAC;AAC3D,MAAM,CAAC,MAAM,mBAAmB,GAAG,kBAAkB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"auth-protocol.d.ts","sourceRoot":"","sources":["../../src/common/auth-protocol.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,eAAyB,CAAC;AACnD,eAAO,MAAM,eAAe,iBAAiB,CAAC;AAE9C,8FAA8F;AAC9F,MAAM,MAAM,UAAU,GAAG,OAAO,GAAG,SAAS,CAAC;AAE7C,qHAAqH;AACrH,MAAM,WAAW,cAAc;IAC3B,iDAAiD;IACjD,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,UAAU,CAAC;IACjB,uFAAuF;IACvF,YAAY,EAAE,OAAO,CAAC;IACtB,qHAAqH;IACrH,WAAW,EAAE,OAAO,CAAC;IACrB,oIAAoI;IACpI,UAAU,CAAC,EAAE;QAAE,IAAI,EAAE,UAAU,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IACnD,wEAAwE;IACxE,MAAM,EAAE,OAAO,CAAC;CACnB;AAED,+GAA+G;AAC/G,MAAM,MAAM,YAAY,GAClB;IAAE,IAAI,EAAE,MAAM,GAAG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,WAAW,YAAY;IACzB,aAAa,IAAI,OAAO,CAAC,cAAc,EAAE,CAAC,CAAC;IAC3C,6FAA6F;IAC7F,KAAK,CAAC,UAAU,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IAC7D,8FAA8F;IAC9F,MAAM,CAAC,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IAC3E,MAAM,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACvC,qDAAqD;IACrD,MAAM,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAC7C"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"auth-protocol.js","sourceRoot":"","sources":["../../src/common/auth-protocol.ts"],"names":[],"mappings":";;;AAAa,QAAA,YAAY,GAAG,MAAM,CAAC,cAAc,CAAC,CAAC;AACtC,QAAA,eAAe,GAAG,cAAc,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/common/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAC3B,cAAc,oBAAoB,CAAC;AACnC,cAAc,YAAY,CAAC;AAC3B,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,eAAe,CAAC;AAC9B,cAAc,sBAAsB,CAAC"}
|
package/lib/common/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/common/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAAgC;AAChC,6CAA2B;AAC3B,qDAA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