@diafunc/cli 0.32.1 → 0.32.2
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/bin/diafunc.js +3 -3
- package/dist/{chunk-QALKS4CY.js → chunk-BXPKOLZA.js} +2 -2
- package/dist/{chunk-QALKS4CY.js.map → chunk-BXPKOLZA.js.map} +1 -1
- package/dist/{chunk-MRKZZ4XD.js → chunk-FERQPITK.js} +8 -6
- package/dist/{chunk-MRKZZ4XD.js.map → chunk-FERQPITK.js.map} +1 -1
- package/dist/{chunk-J3ZSLT24.js → chunk-TARRZIGI.js} +2 -2
- package/dist/src/index.js +2 -2
- package/dist/update-check-NBOU2XBP.js +8 -0
- package/package.json +1 -1
- package/dist/update-check-R7B2D7VX.js +0 -8
- /package/dist/{chunk-J3ZSLT24.js.map → chunk-TARRZIGI.js.map} +0 -0
- /package/dist/{update-check-R7B2D7VX.js.map → update-check-NBOU2XBP.js.map} +0 -0
package/dist/bin/diafunc.js
CHANGED
|
@@ -4,13 +4,13 @@ import {
|
|
|
4
4
|
PromptCanceled,
|
|
5
5
|
createProgram,
|
|
6
6
|
handleError
|
|
7
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-FERQPITK.js";
|
|
8
8
|
import {
|
|
9
9
|
getUpdateNotice
|
|
10
|
-
} from "../chunk-
|
|
10
|
+
} from "../chunk-TARRZIGI.js";
|
|
11
11
|
import {
|
|
12
12
|
package_default
|
|
13
|
-
} from "../chunk-
|
|
13
|
+
} from "../chunk-BXPKOLZA.js";
|
|
14
14
|
|
|
15
15
|
// bin/diafunc.ts
|
|
16
16
|
import chalk2 from "chalk";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// package.json
|
|
2
2
|
var package_default = {
|
|
3
3
|
name: "@diafunc/cli",
|
|
4
|
-
version: "0.32.
|
|
4
|
+
version: "0.32.2",
|
|
5
5
|
description: "Diafunc CLI: the command-line interface for the Diafunc platform",
|
|
6
6
|
type: "module",
|
|
7
7
|
bin: {
|
|
@@ -62,4 +62,4 @@ var package_default = {
|
|
|
62
62
|
export {
|
|
63
63
|
package_default
|
|
64
64
|
};
|
|
65
|
-
//# sourceMappingURL=chunk-
|
|
65
|
+
//# sourceMappingURL=chunk-BXPKOLZA.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../package.json"],"sourcesContent":["{\n \"name\": \"@diafunc/cli\",\n \"version\": \"0.32.
|
|
1
|
+
{"version":3,"sources":["../package.json"],"sourcesContent":["{\n \"name\": \"@diafunc/cli\",\n \"version\": \"0.32.2\",\n \"description\": \"Diafunc CLI: the command-line interface for the Diafunc platform\",\n \"type\": \"module\",\n \"bin\": {\n \"diafunc\": \"./dist/bin/diafunc.js\"\n },\n \"homepage\": \"https://diafunc.com\",\n \"repository\": {\n \"type\": \"git\",\n \"url\": \"git+https://gitlab.com/diafunc/cli.git\"\n },\n \"bugs\": {\n \"url\": \"https://gitlab.com/diafunc/cli/-/issues\"\n },\n \"author\": \"Markus Pollak <markus.pollak@diafunc.com>\",\n \"scripts\": {\n \"build\": \"tsup && node -e \\\"const fs=require('fs');const f='dist/bin/diafunc.js';fs.writeFileSync(f,'#!/usr/bin/env node\\\\n'+fs.readFileSync(f,'utf8'))\\\"\",\n \"dev\": \"tsup --watch\",\n \"test\": \"vitest run\",\n \"test:watch\": \"vitest\",\n \"lint\": \"tsc --noEmit\",\n \"start\": \"node dist/bin/diafunc.js\",\n \"prepublishOnly\": \"npm run lint && npm test && npm run build\"\n },\n \"files\": [\n \"dist\",\n \"LICENSE\",\n \"README.md\"\n ],\n \"keywords\": [\n \"diafunc\",\n \"cli\",\n \"data-science\",\n \"symbolic-regression\"\n ],\n \"license\": \"Apache-2.0\",\n \"publishConfig\": {\n \"access\": \"public\",\n \"registry\": \"https://registry.npmjs.org/\"\n },\n \"engines\": {\n \"node\": \">=20.0.0\"\n },\n \"dependencies\": {\n \"@inquirer/prompts\": \"^7.0.0\",\n \"chalk\": \"^5.4.0\",\n \"cli-table3\": \"^0.6.5\",\n \"commander\": \"^12.1.0\",\n \"ora\": \"^8.1.0\"\n },\n \"devDependencies\": {\n \"@types/node\": \"^22.0.0\",\n \"tsup\": \"^8.3.0\",\n \"typescript\": \"^5.6.0\",\n \"vitest\": \"^2.1.0\"\n }\n}\n"],"mappings":";AAAA;AAAA,EACE,MAAQ;AAAA,EACR,SAAW;AAAA,EACX,aAAe;AAAA,EACf,MAAQ;AAAA,EACR,KAAO;AAAA,IACL,SAAW;AAAA,EACb;AAAA,EACA,UAAY;AAAA,EACZ,YAAc;AAAA,IACZ,MAAQ;AAAA,IACR,KAAO;AAAA,EACT;AAAA,EACA,MAAQ;AAAA,IACN,KAAO;AAAA,EACT;AAAA,EACA,QAAU;AAAA,EACV,SAAW;AAAA,IACT,OAAS;AAAA,IACT,KAAO;AAAA,IACP,MAAQ;AAAA,IACR,cAAc;AAAA,IACd,MAAQ;AAAA,IACR,OAAS;AAAA,IACT,gBAAkB;AAAA,EACpB;AAAA,EACA,OAAS;AAAA,IACP;AAAA,IACA;AAAA,IACA;AAAA,EACF;AAAA,EACA,UAAY;AAAA,IACV;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF;AAAA,EACA,SAAW;AAAA,EACX,eAAiB;AAAA,IACf,QAAU;AAAA,IACV,UAAY;AAAA,EACd;AAAA,EACA,SAAW;AAAA,IACT,MAAQ;AAAA,EACV;AAAA,EACA,cAAgB;AAAA,IACd,qBAAqB;AAAA,IACrB,OAAS;AAAA,IACT,cAAc;AAAA,IACd,WAAa;AAAA,IACb,KAAO;AAAA,EACT;AAAA,EACA,iBAAmB;AAAA,IACjB,eAAe;AAAA,IACf,MAAQ;AAAA,IACR,YAAc;AAAA,IACd,QAAU;AAAA,EACZ;AACF;","names":[]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
package_default
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-BXPKOLZA.js";
|
|
4
4
|
|
|
5
5
|
// src/index.ts
|
|
6
6
|
import chalk42 from "chalk";
|
|
@@ -8555,7 +8555,7 @@ var HELP = [
|
|
|
8555
8555
|
];
|
|
8556
8556
|
async function runChatRepl(options) {
|
|
8557
8557
|
const { input: promptInput } = await import("@inquirer/prompts");
|
|
8558
|
-
const { getUpdateNotice } = await import("./update-check-
|
|
8558
|
+
const { getUpdateNotice } = await import("./update-check-NBOU2XBP.js");
|
|
8559
8559
|
let sessionId = options.session;
|
|
8560
8560
|
let lastReportedSession;
|
|
8561
8561
|
console.log(chalk21.bold("Diafunc chat") + chalk21.dim(" \xB7 /help for commands, /quit to exit"));
|
|
@@ -12850,7 +12850,9 @@ function predictionLines(deploymentId, answer) {
|
|
|
12850
12850
|
lines.push(`${level}interval ${num(c.lower)} to ${num(c.upper)}${expected}`);
|
|
12851
12851
|
}
|
|
12852
12852
|
const checks = answer.checks;
|
|
12853
|
-
if (checks &&
|
|
12853
|
+
if (checks && checks.withinRange === null) {
|
|
12854
|
+
lines.push("Inputs not checked: the analysis recorded no input ranges for this model.");
|
|
12855
|
+
} else if (checks && checks.withinRange === false) {
|
|
12854
12856
|
for (const check of checks.inputs ?? []) lines.push(`Outside what the model was found on: ${checkWords(check)}`);
|
|
12855
12857
|
}
|
|
12856
12858
|
if (checks?.distance !== null && checks?.distance !== void 0 && checks.distanceLine !== null && checks.distanceLine !== void 0 && checks.distance > checks.distanceLine) {
|
|
@@ -13006,7 +13008,7 @@ async function predictOne(deploymentId, options, cmd) {
|
|
|
13006
13008
|
const [first, ...rest] = predictionLines(deploymentId, answer);
|
|
13007
13009
|
console.log(first);
|
|
13008
13010
|
for (const line of rest) {
|
|
13009
|
-
if (line.startsWith("Outside") || line.startsWith("The row lies")) warn(line);
|
|
13011
|
+
if (line.startsWith("Outside") || line.startsWith("The row lies") || line.startsWith("Inputs not checked")) warn(line);
|
|
13010
13012
|
else detail(line);
|
|
13011
13013
|
}
|
|
13012
13014
|
}
|
|
@@ -15123,7 +15125,7 @@ function registerShellCommand(program) {
|
|
|
15123
15125
|
});
|
|
15124
15126
|
const api = createApiClient();
|
|
15125
15127
|
const { input: promptInput } = await import("@inquirer/prompts");
|
|
15126
|
-
const { getUpdateNotice } = await import("./update-check-
|
|
15128
|
+
const { getUpdateNotice } = await import("./update-check-NBOU2XBP.js");
|
|
15127
15129
|
const resolvedLanguage = await resolveLanguage(api, fnRef.projectId, options.language);
|
|
15128
15130
|
console.log(chalk37.bold("Diafunc shell") + chalk37.dim(` \xB7 function ${fnRef.entityId} \xB7 ${resolvedLanguage}`));
|
|
15129
15131
|
console.log(chalk37.dim(`Endpoint: ${config.profiles[getActiveProfileName(config)]?.endpoint}`));
|
|
@@ -15934,4 +15936,4 @@ export {
|
|
|
15934
15936
|
PromptCanceled,
|
|
15935
15937
|
createProgram
|
|
15936
15938
|
};
|
|
15937
|
-
//# sourceMappingURL=chunk-
|
|
15939
|
+
//# sourceMappingURL=chunk-FERQPITK.js.map
|