@lotics/cli 0.262.0 → 0.263.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/src/cli.js +16 -2
- package/dist/src/client.d.ts +5 -0
- package/dist/src/client.js +7 -0
- package/package.json +1 -1
package/dist/src/cli.js
CHANGED
|
@@ -52,7 +52,7 @@ var __toESM = (mod2, isNodeMode, target) => (target = mod2 != null ? __create(__
|
|
|
52
52
|
var define_LOTICS_KIT_VERSIONS_default;
|
|
53
53
|
var init_define_LOTICS_KIT_VERSIONS = __esm({
|
|
54
54
|
"<define:__LOTICS_KIT_VERSIONS__>"() {
|
|
55
|
-
define_LOTICS_KIT_VERSIONS_default = { runtime: "0.
|
|
55
|
+
define_LOTICS_KIT_VERSIONS_default = { runtime: "0.45.0" };
|
|
56
56
|
}
|
|
57
57
|
});
|
|
58
58
|
|
|
@@ -30145,6 +30145,13 @@ var LoticsClient = class {
|
|
|
30145
30145
|
async appWriteModel(app_id) {
|
|
30146
30146
|
return this.request("GET", `/v1/apps/${encodeURIComponent(app_id)}/write_model`);
|
|
30147
30147
|
}
|
|
30148
|
+
/**
|
|
30149
|
+
* Where the app's SDK drew a write the server then stored differently, counted by workflow, field and kind.
|
|
30150
|
+
* Mirrors POST /v1/apps/{app_id}/prediction_misses; the server checks the report's shape.
|
|
30151
|
+
*/
|
|
30152
|
+
async appPredictionMisses(app_id, report) {
|
|
30153
|
+
return this.request("POST", `/v1/apps/${encodeURIComponent(app_id)}/prediction_misses`, report);
|
|
30154
|
+
}
|
|
30148
30155
|
/**
|
|
30149
30156
|
* Execute a workflow by alias declared in package.json#lotics.workflows.
|
|
30150
30157
|
* Mirrors POST /v1/apps/{app_id}/workflows/{alias}/execute.
|
|
@@ -64304,7 +64311,7 @@ function resultSideEffects(result) {
|
|
|
64304
64311
|
|
|
64305
64312
|
// src/version.ts
|
|
64306
64313
|
init_define_LOTICS_KIT_VERSIONS();
|
|
64307
|
-
var VERSION = "0.
|
|
64314
|
+
var VERSION = "0.263.0";
|
|
64308
64315
|
|
|
64309
64316
|
// src/timezone.ts
|
|
64310
64317
|
init_define_LOTICS_KIT_VERSIONS();
|
|
@@ -86717,6 +86724,8 @@ var READ_OPS = /* @__PURE__ */ new Set([
|
|
|
86717
86724
|
"query",
|
|
86718
86725
|
"field_options",
|
|
86719
86726
|
"write_model",
|
|
86727
|
+
// A report the server logs; it writes nothing a session could be kept from.
|
|
86728
|
+
"prediction_miss",
|
|
86720
86729
|
"members",
|
|
86721
86730
|
"agentRuns",
|
|
86722
86731
|
"agentRun.get",
|
|
@@ -86750,6 +86759,7 @@ var SUPPORTED_OPS = /* @__PURE__ */ new Set([
|
|
|
86750
86759
|
"query",
|
|
86751
86760
|
"field_options",
|
|
86752
86761
|
"write_model",
|
|
86762
|
+
"prediction_miss",
|
|
86753
86763
|
"workflow",
|
|
86754
86764
|
"members",
|
|
86755
86765
|
"context",
|
|
@@ -86807,6 +86817,8 @@ async function dispatchRpc(client, body, opts) {
|
|
|
86807
86817
|
}
|
|
86808
86818
|
case "write_model":
|
|
86809
86819
|
return client.appWriteModel(body.app_id);
|
|
86820
|
+
case "prediction_miss":
|
|
86821
|
+
return client.appPredictionMisses(body.app_id, body.payload);
|
|
86810
86822
|
case "workflow": {
|
|
86811
86823
|
const p = body.payload;
|
|
86812
86824
|
if (!p || typeof p.alias !== "string") {
|
|
@@ -89260,6 +89272,8 @@ function modelAnswer(data) {
|
|
|
89260
89272
|
return typeof alias2 === "string" ? { fields: data.field_options[alias2] ?? {}, units: data.field_units[alias2] ?? {} } : { fields: {}, units: {} };
|
|
89261
89273
|
case "write_model":
|
|
89262
89274
|
return { workflows: {}, queries: {}, tables: [] };
|
|
89275
|
+
case "prediction_miss":
|
|
89276
|
+
return { ok: true };
|
|
89263
89277
|
case "query": {
|
|
89264
89278
|
if (typeof alias2 !== "string") throw new Error("a query names its alias; this call named none");
|
|
89265
89279
|
const params = stated2(payload, "params");
|
package/dist/src/client.d.ts
CHANGED
|
@@ -1432,6 +1432,11 @@ export declare class LoticsClient {
|
|
|
1432
1432
|
* the app's SDK whole, so its parts stay opaque here.
|
|
1433
1433
|
*/
|
|
1434
1434
|
appWriteModel(app_id: string): Promise<unknown>;
|
|
1435
|
+
/**
|
|
1436
|
+
* Where the app's SDK drew a write the server then stored differently, counted by workflow, field and kind.
|
|
1437
|
+
* Mirrors POST /v1/apps/{app_id}/prediction_misses; the server checks the report's shape.
|
|
1438
|
+
*/
|
|
1439
|
+
appPredictionMisses(app_id: string, report: unknown): Promise<unknown>;
|
|
1435
1440
|
/**
|
|
1436
1441
|
* Execute a workflow by alias declared in package.json#lotics.workflows.
|
|
1437
1442
|
* Mirrors POST /v1/apps/{app_id}/workflows/{alias}/execute.
|
package/dist/src/client.js
CHANGED
|
@@ -891,6 +891,13 @@ var LoticsClient = class {
|
|
|
891
891
|
async appWriteModel(app_id) {
|
|
892
892
|
return this.request("GET", `/v1/apps/${encodeURIComponent(app_id)}/write_model`);
|
|
893
893
|
}
|
|
894
|
+
/**
|
|
895
|
+
* Where the app's SDK drew a write the server then stored differently, counted by workflow, field and kind.
|
|
896
|
+
* Mirrors POST /v1/apps/{app_id}/prediction_misses; the server checks the report's shape.
|
|
897
|
+
*/
|
|
898
|
+
async appPredictionMisses(app_id, report) {
|
|
899
|
+
return this.request("POST", `/v1/apps/${encodeURIComponent(app_id)}/prediction_misses`, report);
|
|
900
|
+
}
|
|
894
901
|
/**
|
|
895
902
|
* Execute a workflow by alias declared in package.json#lotics.workflows.
|
|
896
903
|
* Mirrors POST /v1/apps/{app_id}/workflows/{alias}/execute.
|