@2kw/ai 8.2.0-dev.3 → 8.2.0-dev.7

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.
@@ -1,6 +1,6 @@
1
1
  /**
2
- * The connect pause, decoded one way for every client (#1086, spec §4, D4): an open
3
- * `backbone:connector_auth_request` (#807 R12) is a connector the run waits for the user to
2
+ * The connect pause, decoded one way for every client: an open
3
+ * `backbone:connector_auth_request` is a connector the run waits for the user to
4
4
  * connect, allow or reconnect in chat.2kw.ai.
5
5
  *
6
6
  * This file is canonical. `mcp/src/lib/connect-pause.ts` and
@@ -8,7 +8,7 @@
8
8
  * here, then run `npm run sync:connect-pause` in mcp/ and `npm run sync-connect-pause` in n8n/.
9
9
  * Its golden fixture, `cli/tests/fixtures/connect-pause-cases.json`, is copied the same way into
10
10
  * mcp/, n8n/ and surface/, and every client's decoder test runs every case of it. The input pause
11
- * (#1320, connectors spec §12) lives here too, with its own fixture `input-pause-cases.json`.
11
+ * lives here too, with its own fixture `input-pause-cases.json`.
12
12
  *
13
13
  * Plain TypeScript with no imports, no `process`, no Node types and no timers, so n8n's source
14
14
  * scanner and its empty `dependencies` accept the copy. The CLI and the MCP server keep their
@@ -16,7 +16,7 @@
16
16
  */
17
17
  /** Fallback chat.2kw.ai origin when the API host is not one we recognise. */
18
18
  export declare const DEFAULT_CHAT_URL = "https://chat.2kw.ai";
19
- /** Known API-host → chat web host mappings; a connect pause points the user there (#807 R11). */
19
+ /** Known API-host → chat web host mappings; a connect pause points the user there. */
20
20
  export declare const CHAT_URL_BY_API_HOST: Readonly<Record<string, string>>;
21
21
  /**
22
22
  * The chat web host that belongs to an API base URL, where a member connects a connector
@@ -38,7 +38,7 @@ export interface PendingConnection {
38
38
  /** The MCP server's host: what the user is asked to connect to. */
39
39
  host: string;
40
40
  reason: ConnectReason;
41
- /** The egress difference an allow is asked again for (#807 R9); absent otherwise, never empty. */
41
+ /** The egress difference an allow is asked again for; absent otherwise, never empty. */
42
42
  destinations?: string[];
43
43
  }
44
44
  /** Enough of a connection to name it in a sentence. */
@@ -47,7 +47,7 @@ export interface ConnectTarget {
47
47
  host: string;
48
48
  reason: string;
49
49
  }
50
- /** The synthetic tool a connector's connect pause is raised through (#806). */
50
+ /** The synthetic tool a connector's connect pause is raised through. */
51
51
  export declare function connectToolName(serverLabel: string): string;
52
52
  /**
53
53
  * The connectors a response's `output` still waits on: every `in_progress` connect request whose
@@ -75,7 +75,7 @@ export declare function connectionsPhrase(connections: readonly ConnectTarget[])
75
75
  */
76
76
  export type InputMode = "form" | "url" | "mixed" | "unknown";
77
77
  /**
78
- * One open `backbone:input_request` (#1320, connectors spec §12): a connector's question that only
78
+ * One open `backbone:input_request`: a connector's question that only
79
79
  * the requester can answer, and only in chat. `id` is the item's `inreq_…` id. Its message, schema
80
80
  * and URL are never read: no assistant may see them (D7).
81
81
  */
@@ -1,6 +1,6 @@
1
1
  /**
2
- * The connect pause, decoded one way for every client (#1086, spec §4, D4): an open
3
- * `backbone:connector_auth_request` (#807 R12) is a connector the run waits for the user to
2
+ * The connect pause, decoded one way for every client: an open
3
+ * `backbone:connector_auth_request` is a connector the run waits for the user to
4
4
  * connect, allow or reconnect in chat.2kw.ai.
5
5
  *
6
6
  * This file is canonical. `mcp/src/lib/connect-pause.ts` and
@@ -8,7 +8,7 @@
8
8
  * here, then run `npm run sync:connect-pause` in mcp/ and `npm run sync-connect-pause` in n8n/.
9
9
  * Its golden fixture, `cli/tests/fixtures/connect-pause-cases.json`, is copied the same way into
10
10
  * mcp/, n8n/ and surface/, and every client's decoder test runs every case of it. The input pause
11
- * (#1320, connectors spec §12) lives here too, with its own fixture `input-pause-cases.json`.
11
+ * lives here too, with its own fixture `input-pause-cases.json`.
12
12
  *
13
13
  * Plain TypeScript with no imports, no `process`, no Node types and no timers, so n8n's source
14
14
  * scanner and its empty `dependencies` accept the copy. The CLI and the MCP server keep their
@@ -16,7 +16,7 @@
16
16
  */
17
17
  /** Fallback chat.2kw.ai origin when the API host is not one we recognise. */
18
18
  export const DEFAULT_CHAT_URL = "https://chat.2kw.ai";
19
- /** Known API-host → chat web host mappings; a connect pause points the user there (#807 R11). */
19
+ /** Known API-host → chat web host mappings; a connect pause points the user there. */
20
20
  export const CHAT_URL_BY_API_HOST = {
21
21
  "api.2kw.ai": "https://chat.2kw.ai",
22
22
  "api-dev.2kw.ai": "https://chat-dev.2kw.ai",
@@ -48,7 +48,7 @@ function itemsOf(output) {
48
48
  function text(value) {
49
49
  return typeof value === "string" && value.length > 0 ? value : undefined;
50
50
  }
51
- /** The synthetic tool a connector's connect pause is raised through (#806). */
51
+ /** The synthetic tool a connector's connect pause is raised through. */
52
52
  export function connectToolName(serverLabel) {
53
53
  return `mcp__${serverLabel}__connect`;
54
54
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@2kw/ai",
3
- "version": "8.2.0-dev.3",
3
+ "version": "8.2.0-dev.7",
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",