@2kw/ai 6.3.0-dev.85 → 6.3.0-dev.91
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.
|
@@ -99,6 +99,18 @@ export function makeKnowledgeDocumentsCommand() {
|
|
|
99
99
|
formatDetail(data, command);
|
|
100
100
|
});
|
|
101
101
|
});
|
|
102
|
+
cmd
|
|
103
|
+
.command("retry")
|
|
104
|
+
.description("Re-ingest a document whose newest revision failed, from its stored file")
|
|
105
|
+
.argument("<documentId>", "Document ID")
|
|
106
|
+
.requiredOption("--kb <id>", "Knowledge base ID")
|
|
107
|
+
.action(async (documentId, opts, command) => {
|
|
108
|
+
await runAction(command, async () => {
|
|
109
|
+
const client = getClient(command);
|
|
110
|
+
const { data } = await client.POST("/v1/knowledge-bases/{knowledgeBaseId}/documents/{documentId}/retry", { params: { path: { knowledgeBaseId: opts.kb, documentId } } });
|
|
111
|
+
formatDetail(data, command);
|
|
112
|
+
});
|
|
113
|
+
});
|
|
102
114
|
cmd
|
|
103
115
|
.command("delete")
|
|
104
116
|
.description("Delete a document and take every revision out of retrieval")
|
package/dist/lib/config.js
CHANGED
|
@@ -9,7 +9,7 @@ import { resolve } from "node:path";
|
|
|
9
9
|
*/
|
|
10
10
|
export const DEFAULT_BASE_URL = process.env.AI_2KW_DEFAULT_BASE_URL ??
|
|
11
11
|
process.env.BACKBONE_DEFAULT_BASE_URL ??
|
|
12
|
-
"https://
|
|
12
|
+
"https://api.2kw.ai";
|
|
13
13
|
/**
|
|
14
14
|
* Fallback auth-service URL used when the API host is not one we recognise.
|
|
15
15
|
* Override at runtime with AI_2KW_DEFAULT_AUTH_URL.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@2kw/ai",
|
|
3
|
-
"version": "6.3.0-dev.
|
|
3
|
+
"version": "6.3.0-dev.91",
|
|
4
4
|
"description": "CLI for 2kw.ai — schema-driven document extraction, an OpenAI-compatible EU LLM gateway, transcription, prompts, datasets, and experiments from your terminal or agentic workflows. Ships as 2kw, backbone, and bb.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cli",
|