@deepraxis/cli 0.2.1-dev.2cf37ec → 0.2.1-dev.de0a917
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/praxis.js +10 -10
- package/package.json +1 -1
package/dist/praxis.js
CHANGED
|
@@ -10162,7 +10162,7 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
|
|
|
10162
10162
|
resource: "knowledge.vectorStores",
|
|
10163
10163
|
method: "create",
|
|
10164
10164
|
summary: "Create knowledge base",
|
|
10165
|
-
description: 'Create a knowledge base, optionally starting ingestion of uploaded file_ids in the same call; no separate attachment or batch is needed for those files. Use the returned id with vectorStores.files.retrieve to poll each attachment until completed, failed or cancelled; store status=completed alone does not mean every file succeeded.
|
|
10165
|
+
description: 'Create a knowledge base, optionally starting ingestion of uploaded file_ids in the same call; no separate attachment or batch is needed for those files. Use the returned id with vectorStores.files.retrieve to poll each attachment until completed, failed or cancelled; store status=completed alone does not mean every file succeeded. Each file accepts up to 52428800 bytes and 5000000 estimated tokens; each account holds up to 100 active/nondeleted stores. Minimal body: {"name":"Refund policies"}.',
|
|
10166
10166
|
http: "POST",
|
|
10167
10167
|
path: "/knowledge/v1/vector_stores",
|
|
10168
10168
|
streaming: "no",
|
|
@@ -10213,7 +10213,7 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
|
|
|
10213
10213
|
name: "models",
|
|
10214
10214
|
type: "object",
|
|
10215
10215
|
required: false,
|
|
10216
|
-
description: "Model roles to set. The model must exist in the model catalog and serve the role (embedding → openai.embeddings, rerank → cohere.rerank, query_rewrite → openai.chat.completions). The embedding model must output 1024-dimension vectors. Omitted roles stay unchanged; null restores all defaults. Unknown roles or empty IDs return 400 INVALID_PARAMS. The OpenAI-compatible API rejects this field with 400."
|
|
10216
|
+
description: "Model roles to set. The model must exist in the model catalog and serve the role (embedding → openai.embeddings, rerank → cohere.rerank, query_rewrite → openai.chat.completions, ocr → mistral.ocr or pdf_input capability, vision → vision capability). The embedding model must output 1024-dimension vectors. Omitted roles stay unchanged; null restores all defaults. Unknown roles or empty IDs return 400 INVALID_PARAMS. The OpenAI-compatible API rejects this field with 400."
|
|
10217
10217
|
}
|
|
10218
10218
|
]
|
|
10219
10219
|
}
|
|
@@ -10317,7 +10317,7 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
|
|
|
10317
10317
|
name: "models",
|
|
10318
10318
|
type: "object",
|
|
10319
10319
|
required: false,
|
|
10320
|
-
description: "Model roles to set. The model must exist in the model catalog and serve the role (embedding → openai.embeddings, rerank → cohere.rerank, query_rewrite → openai.chat.completions). The embedding model must output 1024-dimension vectors. Omitted roles stay unchanged; null restores all defaults. Unknown roles or empty IDs return 400 INVALID_PARAMS. The OpenAI-compatible API rejects this field with 400."
|
|
10320
|
+
description: "Model roles to set. The model must exist in the model catalog and serve the role (embedding → openai.embeddings, rerank → cohere.rerank, query_rewrite → openai.chat.completions, ocr → mistral.ocr or pdf_input capability, vision → vision capability). The embedding model must output 1024-dimension vectors. Omitted roles stay unchanged; null restores all defaults. Unknown roles or empty IDs return 400 INVALID_PARAMS. The OpenAI-compatible API rejects this field with 400."
|
|
10321
10321
|
}
|
|
10322
10322
|
]
|
|
10323
10323
|
}
|
|
@@ -10548,7 +10548,7 @@ The default is return=minimal: success returns HTTP 201 with an empty body. Send
|
|
|
10548
10548
|
resource: "knowledge.vectorStores.files",
|
|
10549
10549
|
method: "create",
|
|
10550
10550
|
summary: "Add file",
|
|
10551
|
-
description: "Attach an uploaded File for asynchronous ingestion, then poll this attachment until status is completed, failed or cancelled before searching.
|
|
10551
|
+
description: "Attach an uploaded File for asynchronous ingestion, then poll this attachment until status is completed, failed or cancelled before searching. Each file accepts up to 52428800 bytes and 5000000 estimated tokens; chunk sizes use estimated tokens rather than a model tokenizer. Text, Markdown, CSV, JSON, HTML, PDF, DOCX, PPTX, XLSX and PNG/JPEG/GIF/WebP images can be extracted; audio and video uploads are not knowledge documents. Images may yield generated descriptions rather than verbatim OCR. auto chunking resolves to static 800/400; explicit sizes are 100–4096 with overlap at most half the size. Each store holds at most 10000 attached files. Reattaching the same file returns its existing record without applying new attributes or chunking; inspect last_error after failure.",
|
|
10552
10552
|
http: "POST",
|
|
10553
10553
|
path: "/knowledge/v1/vector_stores/{vector_store_id}/files",
|
|
10554
10554
|
streaming: "no",
|
|
@@ -30355,9 +30355,9 @@ function randomSecret(bytes = 32) {
|
|
|
30355
30355
|
function decideBuildOutput(mode) {
|
|
30356
30356
|
return mode === "human" ? "stream" : "capture";
|
|
30357
30357
|
}
|
|
30358
|
-
function tailLines(text,
|
|
30358
|
+
function tailLines(text, count2) {
|
|
30359
30359
|
return text.replace(/\s+$/, "").split(`
|
|
30360
|
-
`).slice(-
|
|
30360
|
+
`).slice(-count2).join(`
|
|
30361
30361
|
`);
|
|
30362
30362
|
}
|
|
30363
30363
|
function nextSteps(dir, bunAvailable) {
|
|
@@ -30758,7 +30758,7 @@ function projectList(items, op) {
|
|
|
30758
30758
|
}
|
|
30759
30759
|
|
|
30760
30760
|
// src/output/human.ts
|
|
30761
|
-
var
|
|
30761
|
+
var count2 = (n, noun) => `${n} ${noun}${n === 1 ? "" : "s"}`;
|
|
30762
30762
|
function identity(result, ctx) {
|
|
30763
30763
|
const op = "op" in result ? result.op : undefined;
|
|
30764
30764
|
const split = op?.lastIndexOf(".") ?? -1;
|
|
@@ -30846,7 +30846,7 @@ function objectView(data, resource, id, ctx, paint) {
|
|
|
30846
30846
|
return v.map(scalar).map(plain).join(", ");
|
|
30847
30847
|
folded = true;
|
|
30848
30848
|
const preview = v.slice(0, 3).map((item) => record(item).id ?? record(item).name).filter((x) => x !== undefined).map((x) => plain(scalar(x)));
|
|
30849
|
-
return `${
|
|
30849
|
+
return `${count2(v.length, "item")}${preview.length ? ` (${preview.join(", ")})` : ""}`;
|
|
30850
30850
|
}
|
|
30851
30851
|
if (v !== null && typeof v === "object") {
|
|
30852
30852
|
if (depth >= 1) {
|
|
@@ -30891,7 +30891,7 @@ function renderHuman(result, ctx) {
|
|
|
30891
30891
|
return {
|
|
30892
30892
|
stdout: result.items.length ? table(projectList(result.items, result.op), ctx, out) : out.dim(`No ${plain(resource)}${/(s|x|ch|sh)$/.test(resource) ? "es" : "s"}.`) + `
|
|
30893
30893
|
`,
|
|
30894
|
-
stderr: err.dim(`${result.total !== undefined ? `${result.items.length} of ${result.total} items` :
|
|
30894
|
+
stderr: err.dim(`${result.total !== undefined ? `${result.items.length} of ${result.total} items` : count2(result.items.length, "item")}${result.nextCursor ? ` · next: ${ctx.nextCommand ?? "praxis --help"}` : ""}`) + `
|
|
30895
30895
|
`
|
|
30896
30896
|
};
|
|
30897
30897
|
case "object": {
|
|
@@ -31185,7 +31185,7 @@ function startProgress(ctx, write = (text) => writeOutput({ stderr: text })) {
|
|
|
31185
31185
|
}
|
|
31186
31186
|
|
|
31187
31187
|
// src/main.ts
|
|
31188
|
-
var version = "0.2.1-dev.
|
|
31188
|
+
var version = "0.2.1-dev.de0a917";
|
|
31189
31189
|
var commands = commandTree(operations);
|
|
31190
31190
|
var manual = [...workflows.map((w) => w.words), [API_WORD]];
|
|
31191
31191
|
function route(argv) {
|