@diafunc/cli 0.31.0 → 0.31.1
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-QX7F5YXI.js → chunk-L4XSFORF.js} +2 -2
- package/dist/{chunk-QX7F5YXI.js.map → chunk-L4XSFORF.js.map} +1 -1
- package/dist/{chunk-AH6DCAHU.js → chunk-QBPGK5OC.js} +7 -4
- package/dist/chunk-QBPGK5OC.js.map +1 -0
- package/dist/{chunk-PUTTVRZA.js → chunk-YXI42NZN.js} +2 -2
- package/dist/src/index.js +2 -2
- package/dist/update-check-2GW2RLWY.js +8 -0
- package/package.json +1 -1
- package/dist/chunk-AH6DCAHU.js.map +0 -1
- package/dist/update-check-JWT4C4O5.js +0 -8
- /package/dist/{chunk-PUTTVRZA.js.map → chunk-YXI42NZN.js.map} +0 -0
- /package/dist/{update-check-JWT4C4O5.js.map → update-check-2GW2RLWY.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-QBPGK5OC.js";
|
|
8
8
|
import {
|
|
9
9
|
getUpdateNotice
|
|
10
|
-
} from "../chunk-
|
|
10
|
+
} from "../chunk-YXI42NZN.js";
|
|
11
11
|
import {
|
|
12
12
|
package_default
|
|
13
|
-
} from "../chunk-
|
|
13
|
+
} from "../chunk-L4XSFORF.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.31.
|
|
4
|
+
version: "0.31.1",
|
|
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-L4XSFORF.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../package.json"],"sourcesContent":["{\n \"name\": \"@diafunc/cli\",\n \"version\": \"0.31.
|
|
1
|
+
{"version":3,"sources":["../package.json"],"sourcesContent":["{\n \"name\": \"@diafunc/cli\",\n \"version\": \"0.31.1\",\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-L4XSFORF.js";
|
|
4
4
|
|
|
5
5
|
// src/index.ts
|
|
6
6
|
import chalk41 from "chalk";
|
|
@@ -6843,6 +6843,9 @@ function resultText(result, resultEncoding) {
|
|
|
6843
6843
|
if (result === null || result === void 0) return null;
|
|
6844
6844
|
if (resultEncoding === "json") return typeof result === "string" ? result : JSON.stringify(result);
|
|
6845
6845
|
if (resultEncoding === "text") return String(result);
|
|
6846
|
+
if (resultEncoding !== "base64") {
|
|
6847
|
+
throw new Error(`A function result without a known encoding cannot be read (resultEncoding: ${resultEncoding})`);
|
|
6848
|
+
}
|
|
6846
6849
|
const bytes = Buffer.from(String(result), "base64");
|
|
6847
6850
|
const text2 = bytes.toString("utf-8");
|
|
6848
6851
|
return Buffer.from(text2, "utf-8").equals(bytes) ? text2 : String(result);
|
|
@@ -8469,7 +8472,7 @@ var HELP = [
|
|
|
8469
8472
|
];
|
|
8470
8473
|
async function runChatRepl(options) {
|
|
8471
8474
|
const { input: promptInput } = await import("@inquirer/prompts");
|
|
8472
|
-
const { getUpdateNotice } = await import("./update-check-
|
|
8475
|
+
const { getUpdateNotice } = await import("./update-check-2GW2RLWY.js");
|
|
8473
8476
|
let sessionId = options.session;
|
|
8474
8477
|
let lastReportedSession;
|
|
8475
8478
|
console.log(chalk21.bold("Diafunc chat") + chalk21.dim(" \xB7 /help for commands, /quit to exit"));
|
|
@@ -14151,7 +14154,7 @@ function registerShellCommand(program) {
|
|
|
14151
14154
|
});
|
|
14152
14155
|
const api = createApiClient();
|
|
14153
14156
|
const { input: promptInput } = await import("@inquirer/prompts");
|
|
14154
|
-
const { getUpdateNotice } = await import("./update-check-
|
|
14157
|
+
const { getUpdateNotice } = await import("./update-check-2GW2RLWY.js");
|
|
14155
14158
|
const resolvedLanguage = await resolveLanguage(api, fnRef.projectId, options.language);
|
|
14156
14159
|
console.log(chalk36.bold("Diafunc shell") + chalk36.dim(` \xB7 function ${fnRef.entityId} \xB7 ${resolvedLanguage}`));
|
|
14157
14160
|
console.log(chalk36.dim(`Endpoint: ${config.profiles[config.currentProfile]?.endpoint}`));
|
|
@@ -15012,4 +15015,4 @@ export {
|
|
|
15012
15015
|
PromptCanceled,
|
|
15013
15016
|
createProgram
|
|
15014
15017
|
};
|
|
15015
|
-
//# sourceMappingURL=chunk-
|
|
15018
|
+
//# sourceMappingURL=chunk-QBPGK5OC.js.map
|