@plico-ai/cli 0.0.0-stage → 0.1.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/LICENSE +202 -0
- package/NOTICE +4 -0
- package/README.md +35 -2
- package/dist/args.d.ts +25 -0
- package/dist/args.js +58 -0
- package/dist/cli.d.ts +2 -0
- package/dist/cli.js +50 -0
- package/dist/commands/cancel.d.ts +1 -0
- package/dist/commands/cancel.js +42 -0
- package/dist/commands/eval-promote.d.ts +2 -0
- package/dist/commands/eval-promote.js +26 -0
- package/dist/commands/eval.d.ts +1 -0
- package/dist/commands/eval.js +46 -0
- package/dist/commands/events.d.ts +1 -0
- package/dist/commands/events.js +46 -0
- package/dist/commands/interrupt.d.ts +9 -0
- package/dist/commands/interrupt.js +38 -0
- package/dist/commands/live-output.d.ts +3 -0
- package/dist/commands/live-output.js +18 -0
- package/dist/commands/model-provider.d.ts +4 -0
- package/dist/commands/model-provider.js +21 -0
- package/dist/commands/readiness.d.ts +1 -0
- package/dist/commands/readiness.js +31 -0
- package/dist/commands/run.d.ts +1 -0
- package/dist/commands/run.js +152 -0
- package/dist/commands/runs.d.ts +1 -0
- package/dist/commands/runs.js +52 -0
- package/dist/commands/serve.d.ts +1 -0
- package/dist/commands/serve.js +61 -0
- package/dist/commands/usage.d.ts +1 -0
- package/dist/commands/usage.js +18 -0
- package/dist/commands/validate.d.ts +1 -0
- package/dist/commands/validate.js +38 -0
- package/dist/direct-run.d.ts +5 -0
- package/dist/direct-run.js +16 -0
- package/dist/errors.d.ts +1 -0
- package/dist/errors.js +6 -0
- package/dist/format/eval.d.ts +2 -0
- package/dist/format/eval.js +18 -0
- package/dist/format/events.d.ts +2 -0
- package/dist/format/events.js +7 -0
- package/dist/format/readiness.d.ts +2 -0
- package/dist/format/readiness.js +18 -0
- package/dist/format/run.d.ts +2 -0
- package/dist/format/run.js +69 -0
- package/dist/format/runs.d.ts +2 -0
- package/dist/format/runs.js +17 -0
- package/dist/format/values.d.ts +2 -0
- package/dist/format/values.js +6 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/paths.d.ts +5 -0
- package/dist/paths.js +35 -0
- package/dist/quiet-sqlite-warning.d.ts +6 -0
- package/dist/quiet-sqlite-warning.js +15 -0
- package/dist/script-file.d.ts +2 -0
- package/dist/script-file.js +13 -0
- package/dist/studio/THIRD_PARTY_NOTICES.txt +2319 -0
- package/dist/studio/assets/index-CAj4ULhw.js +40 -0
- package/dist/studio/assets/index-COrtYruy.css +1 -0
- package/dist/studio/assets/inter-cyrillic-ext-wght-normal-BOeWTOD4.woff2 +0 -0
- package/dist/studio/assets/inter-cyrillic-wght-normal-DqGufNeO.woff2 +0 -0
- package/dist/studio/assets/inter-greek-ext-wght-normal-DlzME5K_.woff2 +0 -0
- package/dist/studio/assets/inter-greek-wght-normal-CkhJZR-_.woff2 +0 -0
- package/dist/studio/assets/inter-latin-ext-wght-normal-DO1Apj_S.woff2 +0 -0
- package/dist/studio/assets/inter-latin-wght-normal-Dx4kXJAl.woff2 +0 -0
- package/dist/studio/assets/inter-vietnamese-wght-normal-CBcvBZtf.woff2 +0 -0
- package/dist/studio/assets/jetbrains-mono-cyrillic-wght-normal-D73BlboJ.woff2 +0 -0
- package/dist/studio/assets/jetbrains-mono-greek-wght-normal-Bw9x6K1M.woff2 +0 -0
- package/dist/studio/assets/jetbrains-mono-latin-ext-wght-normal-DBQx-q_a.woff2 +0 -0
- package/dist/studio/assets/jetbrains-mono-latin-wght-normal-B9CIFXIH.woff2 +0 -0
- package/dist/studio/assets/jetbrains-mono-vietnamese-wght-normal-Bt-aOZkq.woff2 +0 -0
- package/dist/studio/index.html +18 -0
- package/package.json +54 -3
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Hides Node's one-line "SQLite is an experimental feature" notice from the `plico` command, so
|
|
3
|
+
* the commands that open the run database do not print it. Every other warning still prints.
|
|
4
|
+
* Only the bin calls this: a host app that mounts Plico owns its own process warnings.
|
|
5
|
+
*/
|
|
6
|
+
export declare function quietSqliteWarning(): void;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Hides Node's one-line "SQLite is an experimental feature" notice from the `plico` command, so
|
|
3
|
+
* the commands that open the run database do not print it. Every other warning still prints.
|
|
4
|
+
* Only the bin calls this: a host app that mounts Plico owns its own process warnings.
|
|
5
|
+
*/
|
|
6
|
+
export function quietSqliteWarning() {
|
|
7
|
+
const emitWarning = process.emitWarning.bind(process);
|
|
8
|
+
process.emitWarning = ((warning, ...rest) => {
|
|
9
|
+
const message = typeof warning === "string" ? warning : warning.message;
|
|
10
|
+
const type = typeof rest[0] === "string" ? rest[0] : warning.name;
|
|
11
|
+
if (type === "ExperimentalWarning" && /^SQLite is an experimental feature/.test(message))
|
|
12
|
+
return;
|
|
13
|
+
emitWarning(warning, ...rest);
|
|
14
|
+
});
|
|
15
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { readFile } from "node:fs/promises";
|
|
2
|
+
import { normalizeScript } from "@plico-ai/runtime";
|
|
3
|
+
import { errorMessage } from "./errors.js";
|
|
4
|
+
export async function loadDryRunScript(scriptPath) {
|
|
5
|
+
try {
|
|
6
|
+
const raw = await readFile(scriptPath, "utf8");
|
|
7
|
+
const parsed = JSON.parse(raw);
|
|
8
|
+
return normalizeScript(parsed);
|
|
9
|
+
}
|
|
10
|
+
catch (error) {
|
|
11
|
+
throw new Error(`Unable to parse dry run script ${scriptPath}: ${errorMessage(error)}`);
|
|
12
|
+
}
|
|
13
|
+
}
|