@opengeni/agent-proto 0.4.0 → 0.5.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/dist/gen/opengeni_agent.d.ts +9 -0
- package/dist/index.js +17 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/gen/opengeni_agent.ts +31 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeni/agent-proto",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "Generated TypeScript wire-protocol types for the OpenGeni self-hosted agent — the control-plane side of the single-source-of-truth codegen from agent/proto/opengeni_agent.proto.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
2
|
// versions:
|
|
3
|
-
// protoc-gen-ts_proto v2.
|
|
3
|
+
// protoc-gen-ts_proto v2.12.0
|
|
4
4
|
// protoc v7.35.1
|
|
5
5
|
// source: opengeni_agent.proto
|
|
6
6
|
|
|
@@ -1258,6 +1258,15 @@ export interface PtyOpenRequest {
|
|
|
1258
1258
|
rows: number;
|
|
1259
1259
|
/** The TERM value to advertise (e.g. "xterm-256color"). */
|
|
1260
1260
|
term: string;
|
|
1261
|
+
/**
|
|
1262
|
+
* Stable caller-owned identity for an idempotent terminal. Repeating pty_open
|
|
1263
|
+
* with the same non-empty scope_id returns the existing live PTY/channel rather
|
|
1264
|
+
* than spawning another shell. Empty preserves the explicit "open a new PTY"
|
|
1265
|
+
* behavior. The control plane uses the durable OpenGeni session id here so
|
|
1266
|
+
* capability/token refreshes reattach the same terminal while separate sessions
|
|
1267
|
+
* on one machine remain isolated.
|
|
1268
|
+
*/
|
|
1269
|
+
scopeId: string;
|
|
1261
1270
|
}
|
|
1262
1271
|
|
|
1263
1272
|
export interface PtyOpenRequest_EnvEntry {
|
|
@@ -6206,7 +6215,7 @@ export const GitFileStatus: MessageFns<GitFileStatus> = {
|
|
|
6206
6215
|
};
|
|
6207
6216
|
|
|
6208
6217
|
function createBasePtyOpenRequest(): PtyOpenRequest {
|
|
6209
|
-
return { command: [], cwd: "", env: {}, cols: 0, rows: 0, term: "" };
|
|
6218
|
+
return { command: [], cwd: "", env: {}, cols: 0, rows: 0, term: "", scopeId: "" };
|
|
6210
6219
|
}
|
|
6211
6220
|
|
|
6212
6221
|
export const PtyOpenRequest: MessageFns<PtyOpenRequest> = {
|
|
@@ -6229,6 +6238,9 @@ export const PtyOpenRequest: MessageFns<PtyOpenRequest> = {
|
|
|
6229
6238
|
if (message.term !== "") {
|
|
6230
6239
|
writer.uint32(50).string(message.term);
|
|
6231
6240
|
}
|
|
6241
|
+
if (message.scopeId !== "") {
|
|
6242
|
+
writer.uint32(58).string(message.scopeId);
|
|
6243
|
+
}
|
|
6232
6244
|
return writer;
|
|
6233
6245
|
},
|
|
6234
6246
|
|
|
@@ -6290,6 +6302,14 @@ export const PtyOpenRequest: MessageFns<PtyOpenRequest> = {
|
|
|
6290
6302
|
message.term = reader.string();
|
|
6291
6303
|
continue;
|
|
6292
6304
|
}
|
|
6305
|
+
case 7: {
|
|
6306
|
+
if (tag !== 58) {
|
|
6307
|
+
break;
|
|
6308
|
+
}
|
|
6309
|
+
|
|
6310
|
+
message.scopeId = reader.string();
|
|
6311
|
+
continue;
|
|
6312
|
+
}
|
|
6293
6313
|
}
|
|
6294
6314
|
if ((tag & 7) === 4 || tag === 0) {
|
|
6295
6315
|
break;
|
|
@@ -6315,6 +6335,11 @@ export const PtyOpenRequest: MessageFns<PtyOpenRequest> = {
|
|
|
6315
6335
|
cols: isSet(object.cols) ? globalThis.Number(object.cols) : 0,
|
|
6316
6336
|
rows: isSet(object.rows) ? globalThis.Number(object.rows) : 0,
|
|
6317
6337
|
term: isSet(object.term) ? globalThis.String(object.term) : "",
|
|
6338
|
+
scopeId: isSet(object.scopeId)
|
|
6339
|
+
? globalThis.String(object.scopeId)
|
|
6340
|
+
: isSet(object.scope_id)
|
|
6341
|
+
? globalThis.String(object.scope_id)
|
|
6342
|
+
: "",
|
|
6318
6343
|
};
|
|
6319
6344
|
},
|
|
6320
6345
|
|
|
@@ -6344,6 +6369,9 @@ export const PtyOpenRequest: MessageFns<PtyOpenRequest> = {
|
|
|
6344
6369
|
if (message.term !== "") {
|
|
6345
6370
|
obj.term = message.term;
|
|
6346
6371
|
}
|
|
6372
|
+
if (message.scopeId !== "") {
|
|
6373
|
+
obj.scopeId = message.scopeId;
|
|
6374
|
+
}
|
|
6347
6375
|
return obj;
|
|
6348
6376
|
},
|
|
6349
6377
|
|
|
@@ -6366,6 +6394,7 @@ export const PtyOpenRequest: MessageFns<PtyOpenRequest> = {
|
|
|
6366
6394
|
message.cols = object.cols ?? 0;
|
|
6367
6395
|
message.rows = object.rows ?? 0;
|
|
6368
6396
|
message.term = object.term ?? "";
|
|
6397
|
+
message.scopeId = object.scopeId ?? "";
|
|
6369
6398
|
return message;
|
|
6370
6399
|
},
|
|
6371
6400
|
};
|