@lage-run/rpc 1.2.2 → 1.2.4

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/CHANGELOG.json CHANGED
@@ -2,7 +2,37 @@
2
2
  "name": "@lage-run/rpc",
3
3
  "entries": [
4
4
  {
5
- "date": "Wed, 02 Oct 2024 20:25:42 GMT",
5
+ "date": "Fri, 07 Feb 2025 19:44:21 GMT",
6
+ "version": "1.2.4",
7
+ "tag": "@lage-run/rpc_v1.2.4",
8
+ "comments": {
9
+ "patch": [
10
+ {
11
+ "author": "kchau@microsoft.com",
12
+ "package": "@lage-run/rpc",
13
+ "commit": "0f5a0dc74f6515366af3b53113f893b9c5ca98e0",
14
+ "comment": "adding some global inputs to be separately tracked in the protocol"
15
+ }
16
+ ]
17
+ }
18
+ },
19
+ {
20
+ "date": "Fri, 04 Oct 2024 23:41:44 GMT",
21
+ "version": "1.2.3",
22
+ "tag": "@lage-run/rpc_v1.2.3",
23
+ "comments": {
24
+ "patch": [
25
+ {
26
+ "author": "kchau@microsoft.com",
27
+ "package": "@lage-run/rpc",
28
+ "commit": "5030c3eca2e52a4b31e4246b06dea37e126aa659",
29
+ "comment": "adds support for stdout / stderr output"
30
+ }
31
+ ]
32
+ }
33
+ },
34
+ {
35
+ "date": "Wed, 02 Oct 2024 20:26:19 GMT",
6
36
  "version": "1.2.2",
7
37
  "tag": "@lage-run/rpc_v1.2.2",
8
38
  "comments": {
package/CHANGELOG.md CHANGED
@@ -1,12 +1,28 @@
1
1
  # Change Log - @lage-run/rpc
2
2
 
3
- <!-- This log was last generated on Wed, 02 Oct 2024 20:25:42 GMT and should not be manually modified. -->
3
+ <!-- This log was last generated on Fri, 07 Feb 2025 19:44:21 GMT and should not be manually modified. -->
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## 1.2.4
8
+
9
+ Fri, 07 Feb 2025 19:44:21 GMT
10
+
11
+ ### Patches
12
+
13
+ - adding some global inputs to be separately tracked in the protocol (kchau@microsoft.com)
14
+
15
+ ## 1.2.3
16
+
17
+ Fri, 04 Oct 2024 23:41:44 GMT
18
+
19
+ ### Patches
20
+
21
+ - adds support for stdout / stderr output (kchau@microsoft.com)
22
+
7
23
  ## 1.2.2
8
24
 
9
- Wed, 02 Oct 2024 20:25:42 GMT
25
+ Wed, 02 Oct 2024 20:26:19 GMT
10
26
 
11
27
  ### Patches
12
28
 
@@ -11,8 +11,8 @@ Object.defineProperty(exports, "createClient", {
11
11
  const _connect = require("@connectrpc/connect");
12
12
  const _connectnode = require("@connectrpc/connect-node");
13
13
  const _lage_connect = require("./gen/lage/v1/lage_connect.js");
14
- function createClient({ baseUrl , httpVersion }) {
15
- const transport = (0, _connectnode.createConnectTransport)({
14
+ function createClient({ baseUrl, httpVersion }) {
15
+ const transport = (0, _connectnode.createGrpcTransport)({
16
16
  httpVersion,
17
17
  baseUrl
18
18
  });
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/createClient.ts"],"sourcesContent":["import { createPromiseClient } from \"@connectrpc/connect\";\nimport { createGrpcTransport } from \"@connectrpc/connect-node\";\nimport { LageService } from \"./gen/lage/v1/lage_connect.js\";\n\nexport interface CreateClientOptions {\n baseUrl: string;\n httpVersion: \"1.1\" | \"2\";\n}\n\nexport type LageClient = ReturnType<typeof createClient>;\n\nexport function createClient({ baseUrl, httpVersion }: CreateClientOptions) {\n const transport = createGrpcTransport({\n httpVersion,\n baseUrl,\n });\n\n return createPromiseClient(LageService, transport);\n}\n"],"names":["createClient","baseUrl","httpVersion","transport","createGrpcTransport","createPromiseClient","LageService"],"mappings":";;;;+BAWgBA;;;eAAAA;;;yBAXoB;6BACA;8BACR;AASrB,SAASA,aAAa,EAAEC,OAAO,EAAEC,WAAW,EAAuB;IACxE,MAAMC,YAAYC,IAAAA,gCAAmB,EAAC;QACpCF;QACAD;IACF;IAEA,OAAOI,IAAAA,4BAAmB,EAACC,yBAAW,EAAEH;AAC1C"}
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/createRoutes.ts"],"sourcesContent":["import { type ConnectRouter } from \"@connectrpc/connect\";\nimport { LageService } from \"./gen/lage/v1/lage_connect.js\";\nimport { type ILageService } from \"./types/ILageService.js\";\n\nexport function createRoutes(serviceImpl: ILageService) {\n return (router: ConnectRouter) => {\n router.service(LageService, serviceImpl);\n };\n}\n"],"names":["createRoutes","serviceImpl","router","service","LageService"],"mappings":";;;;+BAIgBA;;;eAAAA;;;8BAHY;AAGrB,SAASA,aAAaC,WAAyB;IACpD,OAAO,CAACC;QACNA,OAAOC,OAAO,CAACC,yBAAW,EAAEH;IAC9B;AACF"}
@@ -1,4 +1,4 @@
1
1
  /// <reference types="node" />
2
2
  /// <reference types="node" />
3
3
  import type { ILageService } from "./types/ILageService.js";
4
- export declare function createServer(lageService: ILageService, abortController: AbortController): Promise<import("fastify").FastifyInstance<import("http").Server<typeof import("http").IncomingMessage, typeof import("http").ServerResponse>, import("http").IncomingMessage, import("http").ServerResponse<import("http").IncomingMessage>, import("fastify").FastifyBaseLogger, import("fastify").FastifyTypeProviderDefault>>;
4
+ export declare function createServer(lageService: ILageService, abortController: AbortController): Promise<import("fastify").FastifyInstance<import("http2").Http2Server, import("http2").Http2ServerRequest, import("http2").Http2ServerResponse, import("fastify").FastifyBaseLogger, import("fastify").FastifyTypeProviderDefault>>;
@@ -12,11 +12,14 @@ const _fastify = require("fastify");
12
12
  const _connectfastify = require("@connectrpc/connect-fastify");
13
13
  const _createRoutes = require("./createRoutes.js");
14
14
  async function createServer(lageService, abortController) {
15
- const server = (0, _fastify.fastify)();
15
+ const server = (0, _fastify.fastify)({
16
+ http2: true
17
+ });
16
18
  await server.register(_connectfastify.fastifyConnectPlugin, {
17
19
  routes: (0, _createRoutes.createRoutes)(lageService),
18
20
  shutdownSignal: abortController.signal,
19
- compressMinBytes: 512
21
+ compressMinBytes: 512,
22
+ grpc: true
20
23
  });
21
24
  server.get("/", (_, reply)=>{
22
25
  reply.type("text/plain");
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/createServer.ts"],"sourcesContent":["import { fastify } from \"fastify\";\nimport { fastifyConnectPlugin } from \"@connectrpc/connect-fastify\";\nimport { createRoutes } from \"./createRoutes.js\";\nimport type { ILageService } from \"./types/ILageService.js\";\n\nexport async function createServer(lageService: ILageService, abortController: AbortController) {\n const server = fastify({\n http2: true,\n });\n await server.register(fastifyConnectPlugin, {\n routes: createRoutes(lageService),\n shutdownSignal: abortController.signal,\n compressMinBytes: 512,\n grpc: true,\n });\n\n server.get(\"/\", (_, reply) => {\n reply.type(\"text/plain\");\n reply.send(\"lage service\");\n });\n\n return server;\n}\n"],"names":["createServer","lageService","abortController","server","fastify","http2","register","fastifyConnectPlugin","routes","createRoutes","shutdownSignal","signal","compressMinBytes","grpc","get","_","reply","type","send"],"mappings":";;;;+BAKsBA;;;eAAAA;;;yBALE;gCACa;8BACR;AAGtB,eAAeA,aAAaC,WAAyB,EAAEC,eAAgC;IAC5F,MAAMC,SAASC,IAAAA,gBAAO,EAAC;QACrBC,OAAO;IACT;IACA,MAAMF,OAAOG,QAAQ,CAACC,oCAAoB,EAAE;QAC1CC,QAAQC,IAAAA,0BAAY,EAACR;QACrBS,gBAAgBR,gBAAgBS,MAAM;QACtCC,kBAAkB;QAClBC,MAAM;IACR;IAEAV,OAAOW,GAAG,CAAC,KAAK,CAACC,GAAGC;QAClBA,MAAMC,IAAI,CAAC;QACXD,MAAME,IAAI,CAAC;IACb;IAEA,OAAOf;AACT"}
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/gen/lage/v1/lage_connect.ts"],"sourcesContent":["// @generated by protoc-gen-connect-es v1.4.0 with parameter \"target=ts\"\n// @generated from file lage/v1/lage.proto (package connectrpc.lage.v1, syntax proto3)\n/* eslint-disable */\n// @ts-nocheck\n\nimport { PingRequest, PingResponse, RunTargetRequest, RunTargetResponse } from \"./lage_pb.js\";\nimport { MethodKind } from \"@bufbuild/protobuf\";\n\n/**\n * @generated from service connectrpc.lage.v1.LageService\n */\nexport const LageService = {\n typeName: \"connectrpc.lage.v1.LageService\",\n methods: {\n /**\n * @generated from rpc connectrpc.lage.v1.LageService.RunTarget\n */\n runTarget: {\n name: \"RunTarget\",\n I: RunTargetRequest,\n O: RunTargetResponse,\n kind: MethodKind.Unary,\n },\n /**\n * a ping function to check if the server is up\n *\n * @generated from rpc connectrpc.lage.v1.LageService.Ping\n */\n ping: {\n name: \"Ping\",\n I: PingRequest,\n O: PingResponse,\n kind: MethodKind.Unary,\n },\n },\n} as const;\n"],"names":["LageService","typeName","methods","runTarget","name","I","RunTargetRequest","O","RunTargetResponse","kind","MethodKind","Unary","ping","PingRequest","PingResponse"],"mappings":"AAAA,wEAAwE;AACxE,sFAAsF;AACtF,kBAAkB,GAClB,cAAc;;;;;+BAQDA;;;eAAAA;;;yBANkE;0BACpD;AAKpB,MAAMA,cAAc;IACzBC,UAAU;IACVC,SAAS;QACP;;KAEC,GACDC,WAAW;YACTC,MAAM;YACNC,GAAGC,yBAAgB;YACnBC,GAAGC,0BAAiB;YACpBC,MAAMC,oBAAU,CAACC,KAAK;QACxB;QACA;;;;KAIC,GACDC,MAAM;YACJR,MAAM;YACNC,GAAGQ,oBAAW;YACdN,GAAGO,qBAAY;YACfL,MAAMC,oBAAU,CAACC,KAAK;QACxB;IACF;AACF"}
@@ -61,6 +61,18 @@ export declare class RunTargetResponse extends Message<RunTargetResponse> {
61
61
  * @generated from field: repeated string outputs = 6;
62
62
  */
63
63
  outputs: string[];
64
+ /**
65
+ * @generated from field: string stdout = 7;
66
+ */
67
+ stdout: string;
68
+ /**
69
+ * @generated from field: string stderr = 8;
70
+ */
71
+ stderr: string;
72
+ /**
73
+ * @generated from field: repeated string global_inputs = 9;
74
+ */
75
+ globalInputs: string[];
64
76
  constructor(data?: PartialMessage<RunTargetResponse>);
65
77
  static readonly runtime: typeof proto3;
66
78
  static readonly typeName = "connectrpc.lage.v1.RunTargetResponse";
@@ -12,17 +12,17 @@ function _export(target, all) {
12
12
  });
13
13
  }
14
14
  _export(exports, {
15
- RunTargetRequest: function() {
16
- return RunTargetRequest;
17
- },
18
- RunTargetResponse: function() {
19
- return RunTargetResponse;
20
- },
21
15
  PingRequest: function() {
22
16
  return PingRequest;
23
17
  },
24
18
  PingResponse: function() {
25
19
  return PingResponse;
20
+ },
21
+ RunTargetRequest: function() {
22
+ return RunTargetRequest;
23
+ },
24
+ RunTargetResponse: function() {
25
+ return RunTargetResponse;
26
26
  }
27
27
  });
28
28
  const _protobuf = require("@bufbuild/protobuf");
@@ -53,20 +53,15 @@ class RunTargetRequest extends _protobuf.Message {
53
53
  return _protobuf.proto3.util.equals(RunTargetRequest, a, b);
54
54
  }
55
55
  constructor(data){
56
- super();
57
- /**
56
+ super(), /**
58
57
  * @generated from field: optional string package_name = 1;
59
- */ _define_property(this, "packageName", void 0);
60
- /**
58
+ */ _define_property(this, "packageName", void 0), /**
61
59
  * @generated from field: string task = 2;
62
- */ _define_property(this, "task", "");
63
- /**
60
+ */ _define_property(this, "task", ""), /**
64
61
  * @generated from field: repeated string taskArgs = 3;
65
- */ _define_property(this, "taskArgs", []);
66
- /**
62
+ */ _define_property(this, "taskArgs", []), /**
67
63
  * @generated from field: string nodeOptions = 4;
68
- */ _define_property(this, "nodeOptions", "");
69
- /**
64
+ */ _define_property(this, "nodeOptions", ""), /**
70
65
  * @generated from field: string npmClient = 5;
71
66
  */ _define_property(this, "npmClient", "");
72
67
  _protobuf.proto3.util.initPartial(data, this);
@@ -122,25 +117,25 @@ class RunTargetResponse extends _protobuf.Message {
122
117
  return _protobuf.proto3.util.equals(RunTargetResponse, a, b);
123
118
  }
124
119
  constructor(data){
125
- super();
126
- /**
120
+ super(), /**
127
121
  * @generated from field: string id = 1;
128
- */ _define_property(this, "id", "");
129
- /**
122
+ */ _define_property(this, "id", ""), /**
130
123
  * @generated from field: optional string package_name = 2;
131
- */ _define_property(this, "packageName", void 0);
132
- /**
124
+ */ _define_property(this, "packageName", void 0), /**
133
125
  * @generated from field: string task = 3;
134
- */ _define_property(this, "task", "");
135
- /**
126
+ */ _define_property(this, "task", ""), /**
136
127
  * @generated from field: int32 exit_code = 4;
137
- */ _define_property(this, "exitCode", 0);
138
- /**
128
+ */ _define_property(this, "exitCode", 0), /**
139
129
  * @generated from field: repeated string inputs = 5;
140
- */ _define_property(this, "inputs", []);
141
- /**
130
+ */ _define_property(this, "inputs", []), /**
142
131
  * @generated from field: repeated string outputs = 6;
143
- */ _define_property(this, "outputs", []);
132
+ */ _define_property(this, "outputs", []), /**
133
+ * @generated from field: string stdout = 7;
134
+ */ _define_property(this, "stdout", ""), /**
135
+ * @generated from field: string stderr = 8;
136
+ */ _define_property(this, "stderr", ""), /**
137
+ * @generated from field: repeated string global_inputs = 9;
138
+ */ _define_property(this, "globalInputs", []);
144
139
  _protobuf.proto3.util.initPartial(data, this);
145
140
  }
146
141
  }
@@ -185,6 +180,25 @@ _define_property(RunTargetResponse, "fields", _protobuf.proto3.util.newFieldList
185
180
  kind: "scalar",
186
181
  T: 9 /* ScalarType.STRING */ ,
187
182
  repeated: true
183
+ },
184
+ {
185
+ no: 7,
186
+ name: "stdout",
187
+ kind: "scalar",
188
+ T: 9 /* ScalarType.STRING */
189
+ },
190
+ {
191
+ no: 8,
192
+ name: "stderr",
193
+ kind: "scalar",
194
+ T: 9 /* ScalarType.STRING */
195
+ },
196
+ {
197
+ no: 9,
198
+ name: "global_inputs",
199
+ kind: "scalar",
200
+ T: 9 /* ScalarType.STRING */ ,
201
+ repeated: true
188
202
  }
189
203
  ]));
190
204
  class PingRequest extends _protobuf.Message {
@@ -222,8 +236,7 @@ class PingResponse extends _protobuf.Message {
222
236
  return _protobuf.proto3.util.equals(PingResponse, a, b);
223
237
  }
224
238
  constructor(data){
225
- super();
226
- /**
239
+ super(), /**
227
240
  * @generated from field: bool pong = 1;
228
241
  */ _define_property(this, "pong", false);
229
242
  _protobuf.proto3.util.initPartial(data, this);
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/gen/lage/v1/lage_pb.ts"],"sourcesContent":["// @generated by protoc-gen-es v1.10.0 with parameter \"target=ts\"\n// @generated from file lage/v1/lage.proto (package connectrpc.lage.v1, syntax proto3)\n/* eslint-disable */\n// @ts-nocheck\n\nimport type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from \"@bufbuild/protobuf\";\nimport { Message, proto3 } from \"@bufbuild/protobuf\";\n\n/**\n * @generated from message connectrpc.lage.v1.RunTargetRequest\n */\nexport class RunTargetRequest extends Message<RunTargetRequest> {\n /**\n * @generated from field: optional string package_name = 1;\n */\n packageName?: string;\n\n /**\n * @generated from field: string task = 2;\n */\n task = \"\";\n\n /**\n * @generated from field: repeated string taskArgs = 3;\n */\n taskArgs: string[] = [];\n\n /**\n * @generated from field: string nodeOptions = 4;\n */\n nodeOptions = \"\";\n\n /**\n * @generated from field: string npmClient = 5;\n */\n npmClient = \"\";\n\n constructor(data?: PartialMessage<RunTargetRequest>) {\n super();\n proto3.util.initPartial(data, this);\n }\n\n static readonly runtime: typeof proto3 = proto3;\n static readonly typeName = \"connectrpc.lage.v1.RunTargetRequest\";\n static readonly fields: FieldList = proto3.util.newFieldList(() => [\n { no: 1, name: \"package_name\", kind: \"scalar\", T: 9 /* ScalarType.STRING */, opt: true },\n { no: 2, name: \"task\", kind: \"scalar\", T: 9 /* ScalarType.STRING */ },\n { no: 3, name: \"taskArgs\", kind: \"scalar\", T: 9 /* ScalarType.STRING */, repeated: true },\n { no: 4, name: \"nodeOptions\", kind: \"scalar\", T: 9 /* ScalarType.STRING */ },\n { no: 5, name: \"npmClient\", kind: \"scalar\", T: 9 /* ScalarType.STRING */ },\n ]);\n\n static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RunTargetRequest {\n return new RunTargetRequest().fromBinary(bytes, options);\n }\n\n static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RunTargetRequest {\n return new RunTargetRequest().fromJson(jsonValue, options);\n }\n\n static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RunTargetRequest {\n return new RunTargetRequest().fromJsonString(jsonString, options);\n }\n\n static equals(\n a: RunTargetRequest | PlainMessage<RunTargetRequest> | undefined,\n b: RunTargetRequest | PlainMessage<RunTargetRequest> | undefined\n ): boolean {\n return proto3.util.equals(RunTargetRequest, a, b);\n }\n}\n\n/**\n * @generated from message connectrpc.lage.v1.RunTargetResponse\n */\nexport class RunTargetResponse extends Message<RunTargetResponse> {\n /**\n * @generated from field: string id = 1;\n */\n id = \"\";\n\n /**\n * @generated from field: optional string package_name = 2;\n */\n packageName?: string;\n\n /**\n * @generated from field: string task = 3;\n */\n task = \"\";\n\n /**\n * @generated from field: int32 exit_code = 4;\n */\n exitCode = 0;\n\n /**\n * @generated from field: repeated string inputs = 5;\n */\n inputs: string[] = [];\n\n /**\n * @generated from field: repeated string outputs = 6;\n */\n outputs: string[] = [];\n\n /**\n * @generated from field: string stdout = 7;\n */\n stdout = \"\";\n\n /**\n * @generated from field: string stderr = 8;\n */\n stderr = \"\";\n\n /**\n * @generated from field: repeated string global_inputs = 9;\n */\n globalInputs: string[] = [];\n\n constructor(data?: PartialMessage<RunTargetResponse>) {\n super();\n proto3.util.initPartial(data, this);\n }\n\n static readonly runtime: typeof proto3 = proto3;\n static readonly typeName = \"connectrpc.lage.v1.RunTargetResponse\";\n static readonly fields: FieldList = proto3.util.newFieldList(() => [\n { no: 1, name: \"id\", kind: \"scalar\", T: 9 /* ScalarType.STRING */ },\n { no: 2, name: \"package_name\", kind: \"scalar\", T: 9 /* ScalarType.STRING */, opt: true },\n { no: 3, name: \"task\", kind: \"scalar\", T: 9 /* ScalarType.STRING */ },\n { no: 4, name: \"exit_code\", kind: \"scalar\", T: 5 /* ScalarType.INT32 */ },\n { no: 5, name: \"inputs\", kind: \"scalar\", T: 9 /* ScalarType.STRING */, repeated: true },\n { no: 6, name: \"outputs\", kind: \"scalar\", T: 9 /* ScalarType.STRING */, repeated: true },\n { no: 7, name: \"stdout\", kind: \"scalar\", T: 9 /* ScalarType.STRING */ },\n { no: 8, name: \"stderr\", kind: \"scalar\", T: 9 /* ScalarType.STRING */ },\n { no: 9, name: \"global_inputs\", kind: \"scalar\", T: 9 /* ScalarType.STRING */, repeated: true },\n ]);\n\n static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RunTargetResponse {\n return new RunTargetResponse().fromBinary(bytes, options);\n }\n\n static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RunTargetResponse {\n return new RunTargetResponse().fromJson(jsonValue, options);\n }\n\n static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RunTargetResponse {\n return new RunTargetResponse().fromJsonString(jsonString, options);\n }\n\n static equals(\n a: RunTargetResponse | PlainMessage<RunTargetResponse> | undefined,\n b: RunTargetResponse | PlainMessage<RunTargetResponse> | undefined\n ): boolean {\n return proto3.util.equals(RunTargetResponse, a, b);\n }\n}\n\n/**\n * @generated from message connectrpc.lage.v1.PingRequest\n */\nexport class PingRequest extends Message<PingRequest> {\n constructor(data?: PartialMessage<PingRequest>) {\n super();\n proto3.util.initPartial(data, this);\n }\n\n static readonly runtime: typeof proto3 = proto3;\n static readonly typeName = \"connectrpc.lage.v1.PingRequest\";\n static readonly fields: FieldList = proto3.util.newFieldList(() => []);\n\n static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PingRequest {\n return new PingRequest().fromBinary(bytes, options);\n }\n\n static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PingRequest {\n return new PingRequest().fromJson(jsonValue, options);\n }\n\n static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PingRequest {\n return new PingRequest().fromJsonString(jsonString, options);\n }\n\n static equals(a: PingRequest | PlainMessage<PingRequest> | undefined, b: PingRequest | PlainMessage<PingRequest> | undefined): boolean {\n return proto3.util.equals(PingRequest, a, b);\n }\n}\n\n/**\n * @generated from message connectrpc.lage.v1.PingResponse\n */\nexport class PingResponse extends Message<PingResponse> {\n /**\n * @generated from field: bool pong = 1;\n */\n pong = false;\n\n constructor(data?: PartialMessage<PingResponse>) {\n super();\n proto3.util.initPartial(data, this);\n }\n\n static readonly runtime: typeof proto3 = proto3;\n static readonly typeName = \"connectrpc.lage.v1.PingResponse\";\n static readonly fields: FieldList = proto3.util.newFieldList(() => [{ no: 1, name: \"pong\", kind: \"scalar\", T: 8 /* ScalarType.BOOL */ }]);\n\n static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PingResponse {\n return new PingResponse().fromBinary(bytes, options);\n }\n\n static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PingResponse {\n return new PingResponse().fromJson(jsonValue, options);\n }\n\n static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PingResponse {\n return new PingResponse().fromJsonString(jsonString, options);\n }\n\n static equals(\n a: PingResponse | PlainMessage<PingResponse> | undefined,\n b: PingResponse | PlainMessage<PingResponse> | undefined\n ): boolean {\n return proto3.util.equals(PingResponse, a, b);\n }\n}\n"],"names":["PingRequest","PingResponse","RunTargetRequest","RunTargetResponse","Message","fromBinary","bytes","options","fromJson","jsonValue","fromJsonString","jsonString","equals","a","b","proto3","util","constructor","data","packageName","task","taskArgs","nodeOptions","npmClient","initPartial","runtime","typeName","fields","newFieldList","no","name","kind","T","opt","repeated","id","exitCode","inputs","outputs","stdout","stderr","globalInputs","pong"],"mappings":"AAAA,iEAAiE;AACjE,sFAAsF;AACtF,kBAAkB,GAClB,cAAc;;;;;;;;;;;;IAgKDA,WAAW;eAAXA;;IA8BAC,YAAY;eAAZA;;IAtLAC,gBAAgB;eAAhBA;;IAgEAC,iBAAiB;eAAjBA;;;0BArEmB;;;;;;;;;;;;;;AAKzB,MAAMD,yBAAyBE,iBAAO;IAyC3C,OAAOC,WAAWC,KAAiB,EAAEC,OAAoC,EAAoB;QAC3F,OAAO,IAAIL,mBAAmBG,UAAU,CAACC,OAAOC;IAClD;IAEA,OAAOC,SAASC,SAAoB,EAA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B,YAAW;AAC3B,iBARW1B,aAQK2B,UAAoBZ,gBAAM,CAACC,IAAI,CAACY,YAAY,CAAC,IAAM,EAAE;AAsBhE,MAAM3B,qBAAqBG,iBAAO;IAevC,OAAOC,WAAWC,KAAiB,EAAEC,OAAoC,EAAgB;QACvF,OAAO,IAAIN,eAAeI,UAAU,CAACC,OAAOC;IAC9C;IAEA,OAAOC,SAASC,SAAoB,EAAEF,OAAkC,EAAgB;QACtF,OAAO,IAAIN,eAAeO,QAAQ,CAACC,WAAWF;IAChD;IAEA,OAAOG,eAAeC,UAAkB,EAAEJ,OAAkC,EAAgB;QAC1F,OAAO,IAAIN,eAAeS,cAAc,CAACC,YAAYJ;IACvD;IAEA,OAAOK,OACLC,CAAwD,EACxDC,CAAwD,EAC/C;QACT,OAAOC,gBAAM,CAACC,IAAI,CAACJ,MAAM,CAACX,cAAcY,GAAGC;IAC7C;IA1BAG,YAAYC,IAAmC,CAAE;QAC/C,KAAK,IANP;;GAEC,GACDwB,uBAAAA,QAAO;QAIL3B,gBAAM,CAACC,IAAI,CAACQ,WAAW,CAACN,MAAM,IAAI;IACpC;AAwBF;AAtBE,iBAXWjB,cAWKwB,WAAyBV,gBAAM;AAC/C,iBAZWd,cAYKyB,YAAW;AAC3B,iBAbWzB,cAaK0B,UAAoBZ,gBAAM,CAACC,IAAI,CAACY,YAAY,CAAC,IAAM;QAAC;YAAEC,IAAI;YAAGC,MAAM;YAAQC,MAAM;YAAUC,GAAG,EAAE,mBAAmB;QAAG;KAAE"}
package/lib/index.js CHANGED
@@ -9,14 +9,14 @@ function _export(target, all) {
9
9
  });
10
10
  }
11
11
  _export(exports, {
12
- createServer: function() {
13
- return _createServer.createServer;
12
+ ConnectError: function() {
13
+ return _connect.ConnectError;
14
14
  },
15
15
  createClient: function() {
16
16
  return _createClient.createClient;
17
17
  },
18
- ConnectError: function() {
19
- return _connect.ConnectError;
18
+ createServer: function() {
19
+ return _createServer.createServer;
20
20
  }
21
21
  });
22
22
  const _createServer = require("./createServer.js");
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/index.ts"],"sourcesContent":["export { createServer } from \"./createServer.js\";\nexport { createClient, type LageClient } from \"./createClient.js\";\nexport type { ILageService } from \"./types/ILageService.js\";\nexport { ConnectError } from \"@connectrpc/connect\";\n"],"names":["ConnectError","createClient","createServer"],"mappings":";;;;;;;;;;;IAGSA,YAAY;eAAZA,qBAAY;;IAFZC,YAAY;eAAZA,0BAAY;;IADZC,YAAY;eAAZA,0BAAY;;;8BAAQ;8BACiB;yBAEjB"}
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":""}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lage-run/rpc",
3
- "version": "1.2.2",
3
+ "version": "1.2.4",
4
4
  "description": "RPC server and client for Lage",
5
5
  "repository": {
6
6
  "type": "git",
@@ -17,6 +17,9 @@ message RunTargetResponse {
17
17
  int32 exit_code = 4;
18
18
  repeated string inputs = 5;
19
19
  repeated string outputs = 6;
20
+ string stdout = 7;
21
+ string stderr = 8;
22
+ repeated string global_inputs = 9;
20
23
  }
21
24
 
22
25
  message PingRequest {}