@ai-matrx/desktop-protocol 0.21.75 → 0.21.77
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/CHANGELOG.md +23 -0
- package/dist/{chunk-server-FBLTGJJA.js → chunk-server-HOQE4M4I.js} +13 -10
- package/dist/chunk-server-HOQE4M4I.js.map +1 -0
- package/dist/client.cjs +12 -9
- package/dist/client.cjs.map +1 -1
- package/dist/client.d.cts +2 -2
- package/dist/client.d.ts +2 -2
- package/dist/client.js +1 -1
- package/dist/index.cjs +19 -14
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +10 -5
- package/dist/index.d.ts +10 -5
- package/dist/index.js +8 -6
- package/dist/index.js.map +1 -1
- package/dist/{models-GpUhHLRw.d.cts → models-Bz88NHi0.d.cts} +1 -0
- package/dist/{models-GpUhHLRw.d.ts → models-Bz88NHi0.d.ts} +1 -0
- package/generated/desktop-protocol.schema.json +1 -8
- package/package.json +2 -2
- package/dist/chunk-server-FBLTGJJA.js.map +0 -1
package/dist/client.d.cts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { BackoffOptions } from '@ai-matrx/data/realtime';
|
|
2
2
|
export { RECONNECT_ALARM_ATTEMPTS } from '@ai-matrx/data/realtime';
|
|
3
3
|
import { z } from 'zod';
|
|
4
|
-
import { W as Welcome, D as DesktopProtocolError, C as CloseOutcome, O as OpName, a as OpParams, b as OpResult, c as OPS, S as StreamMeta, E as EndReason, d as EVENTS, e as ClientType, M as ModelsTranscribeResult, T as TranscriptionModelId, f as MlProgress } from './models-
|
|
5
|
-
export { i as isDesktopProtocolError } from './models-
|
|
4
|
+
import { W as Welcome, D as DesktopProtocolError, C as CloseOutcome, O as OpName, a as OpParams, b as OpResult, c as OPS, S as StreamMeta, E as EndReason, d as EVENTS, e as ClientType, M as ModelsTranscribeResult, T as TranscriptionModelId, f as MlProgress } from './models-Bz88NHi0.cjs';
|
|
5
|
+
export { i as isDesktopProtocolError } from './models-Bz88NHi0.cjs';
|
|
6
6
|
import { FrameHeader } from './frame.cjs';
|
|
7
7
|
|
|
8
8
|
/** The subset of the WHATWG WebSocket the client uses — browser, React Native, `ws` and Workers all fit. */
|
package/dist/client.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { BackoffOptions } from '@ai-matrx/data/realtime';
|
|
2
2
|
export { RECONNECT_ALARM_ATTEMPTS } from '@ai-matrx/data/realtime';
|
|
3
3
|
import { z } from 'zod';
|
|
4
|
-
import { W as Welcome, D as DesktopProtocolError, C as CloseOutcome, O as OpName, a as OpParams, b as OpResult, c as OPS, S as StreamMeta, E as EndReason, d as EVENTS, e as ClientType, M as ModelsTranscribeResult, T as TranscriptionModelId, f as MlProgress } from './models-
|
|
5
|
-
export { i as isDesktopProtocolError } from './models-
|
|
4
|
+
import { W as Welcome, D as DesktopProtocolError, C as CloseOutcome, O as OpName, a as OpParams, b as OpResult, c as OPS, S as StreamMeta, E as EndReason, d as EVENTS, e as ClientType, M as ModelsTranscribeResult, T as TranscriptionModelId, f as MlProgress } from './models-Bz88NHi0.js';
|
|
5
|
+
export { i as isDesktopProtocolError } from './models-Bz88NHi0.js';
|
|
6
6
|
import { FrameHeader } from './frame.js';
|
|
7
7
|
|
|
8
8
|
/** The subset of the WHATWG WebSocket the client uses — browser, React Native, `ws` and Workers all fit. */
|
package/dist/client.js
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -941,7 +941,7 @@ module.exports = __toCommonJS(src_exports);
|
|
|
941
941
|
var import_zod = require("zod");
|
|
942
942
|
var import_uuid = require("@ai-matrx/kit/uuid");
|
|
943
943
|
var PROTOCOL_MAJOR = 1;
|
|
944
|
-
var PROTOCOL_MINOR =
|
|
944
|
+
var PROTOCOL_MINOR = 75;
|
|
945
945
|
var PROTOCOL_VERSION = `${PROTOCOL_MAJOR}.${PROTOCOL_MINOR}`;
|
|
946
946
|
var ProtocolVersion = import_zod.z.string().regex(/^[1-9][0-9]{0,2}\.[0-9]{1,3}$/);
|
|
947
947
|
var RequestId = import_zod.z.string().min(1).max(64).regex(/^[A-Za-z0-9_-]+$/);
|
|
@@ -1787,7 +1787,8 @@ var MlStatusResult = import_zod10.z.strictObject({
|
|
|
1787
1787
|
error: import_zod10.z.string().max(300).nullable(),
|
|
1788
1788
|
/** Where inference runs once the runtime is installed: `cuda` only when a usable GPU is present. */
|
|
1789
1789
|
accelerator: import_zod10.z.enum(["cpu", "cuda"]),
|
|
1790
|
-
|
|
1790
|
+
/** Every transcription model in the catalog (1.74: unbounded; a bound here silently dropped models past 16). */
|
|
1791
|
+
models: import_zod10.z.array(TranscriptionModelInfo),
|
|
1791
1792
|
default_model: TranscriptionModelId
|
|
1792
1793
|
});
|
|
1793
1794
|
var ModelsInstallParams = import_zod10.z.strictObject({ model: TranscriptionModelId.optional() });
|
|
@@ -1850,9 +1851,10 @@ var ModelsLlmStatusResult = import_zod10.z.strictObject({
|
|
|
1850
1851
|
state: LlmServerState,
|
|
1851
1852
|
/**
|
|
1852
1853
|
* Every language model: (1.69) the ones on this computer first (installed, then those that cannot run
|
|
1853
|
-
* here, each with its `problem`), then the rest of the catalog.
|
|
1854
|
+
* here, each with its `problem`), then the rest of the catalog. Every one: unbounded since 1.74
|
|
1855
|
+
* (64 until 1.69, 1024 until 1.74; a bound silently cut off models).
|
|
1854
1856
|
*/
|
|
1855
|
-
models: import_zod10.z.array(TextModelInfo)
|
|
1857
|
+
models: import_zod10.z.array(TextModelInfo),
|
|
1856
1858
|
running: LlmRunning.nullable(),
|
|
1857
1859
|
/** The model being loaded while `state` is "starting". */
|
|
1858
1860
|
starting: TextModelId.nullable(),
|
|
@@ -1919,8 +1921,9 @@ var LlamaServerBuild = import_zod10.z.strictObject({
|
|
|
1919
1921
|
sha256: Sha256Hex
|
|
1920
1922
|
});
|
|
1921
1923
|
var MlCatalogSetParams = import_zod10.z.strictObject({
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
+
/** (1.74) Unbounded, like every models list: a catalog or a person's own models are never cut off. */
|
|
1925
|
+
text: import_zod10.z.array(CatalogModelEntry),
|
|
1926
|
+
transcription: import_zod10.z.array(CatalogModelEntry),
|
|
1924
1927
|
/** Null where the catalog has no build for this os/arch (installs then say so). */
|
|
1925
1928
|
llama_server: LlamaServerBuild.nullable(),
|
|
1926
1929
|
/** The knob desktop.models/default_transcription_model; null when the knob could not be read (a transcribe naming no model then says so). */
|
|
@@ -1928,7 +1931,7 @@ var MlCatalogSetParams = import_zod10.z.strictObject({
|
|
|
1928
1931
|
/** When the catalog was last changed (catalog_updated_at), for the service's log. */
|
|
1929
1932
|
catalog_updated_at: import_zod10.z.string().max(40),
|
|
1930
1933
|
/** (1.69) Language models on this computer that cannot run here, each with its one-line reason: models.llm.status lists them. */
|
|
1931
|
-
unusable: import_zod10.z.array(UnusableTextModel).
|
|
1934
|
+
unusable: import_zod10.z.array(UnusableTextModel).optional()
|
|
1932
1935
|
});
|
|
1933
1936
|
var MlCatalogSetResult = import_zod10.z.strictObject({ text: nonNegInt, transcription: nonNegInt });
|
|
1934
1937
|
var DownloadKind = import_zod10.z.enum(["speech_model", "text_model", "runtime"]);
|
|
@@ -1953,7 +1956,7 @@ var DownloadRow = import_zod10.z.strictObject({
|
|
|
1953
1956
|
error: import_zod10.z.string().max(300).optional()
|
|
1954
1957
|
});
|
|
1955
1958
|
var ModelsDownloadsListParams = import_zod10.z.strictObject({});
|
|
1956
|
-
var ModelsDownloadsListResult = import_zod10.z.strictObject({ downloads: import_zod10.z.array(DownloadRow)
|
|
1959
|
+
var ModelsDownloadsListResult = import_zod10.z.strictObject({ downloads: import_zod10.z.array(DownloadRow) });
|
|
1957
1960
|
var ModelsDownloadsCancelParams = import_zod10.z.strictObject({ key: import_zod10.z.string().max(64) });
|
|
1958
1961
|
var ModelsDownloadsCancelResult = import_zod10.z.strictObject({ cancelled: import_zod10.z.boolean() });
|
|
1959
1962
|
var LocalModelKind = import_zod10.z.enum(["text", "speech"]);
|
|
@@ -1974,7 +1977,7 @@ var LocalModelRow = import_zod10.z.strictObject({
|
|
|
1974
1977
|
running: import_zod10.z.boolean()
|
|
1975
1978
|
});
|
|
1976
1979
|
var ModelsLocalListParams = import_zod10.z.strictObject({});
|
|
1977
|
-
var ModelsLocalListResult = import_zod10.z.strictObject({ models: import_zod10.z.array(LocalModelRow)
|
|
1980
|
+
var ModelsLocalListResult = import_zod10.z.strictObject({ models: import_zod10.z.array(LocalModelRow) });
|
|
1978
1981
|
var ModelsLocalRemoveParams = import_zod10.z.strictObject({ kind: LocalModelKind, model: ModelKey });
|
|
1979
1982
|
var ModelsLocalRemoveResult = import_zod10.z.strictObject({
|
|
1980
1983
|
kind: LocalModelKind,
|
|
@@ -7272,7 +7275,7 @@ function forPeer(op, part, value, version) {
|
|
|
7272
7275
|
var VERSIONED_RESULT_OPS = [.../* @__PURE__ */ new Set([...RESULT_PATH.keys(), ...WINDOW_RESULTS.keys(), ...NESTED_RESULTS.keys()])];
|
|
7273
7276
|
|
|
7274
7277
|
// src/contract.ts
|
|
7275
|
-
var CONTRACT_SHA256 = "
|
|
7278
|
+
var CONTRACT_SHA256 = "2896ee158ca6330cf3cbca88431d15776fb40f53deb0b132bea12ad8d7986757";
|
|
7276
7279
|
|
|
7277
7280
|
// src/close-policy.ts
|
|
7278
7281
|
var CLOSE_RULES = {
|
|
@@ -7355,8 +7358,11 @@ var TOOL_CATALOG = [
|
|
|
7355
7358
|
{ name: "coding_sessions_drive", group: "personal_automation", state: "built", path: "device_op", ops: ["coding.start", "coding.takeover", "coding.send", "coding.stop", "coding.stop_elsewhere", "coding.options.set", "coding.account.continue", "coding.agent.set", "coding.folders.create", "coding.prefs.set", "coding.reconcile"], platforms: ALL, summary: "Claude Code and Codex sessions: start, send, stop, take over, rename" },
|
|
7356
7359
|
// ── 4. Documents, notes and entities (1.37: the core's `documents` and `notes` owners; desktop_web is the `tools` service) ──
|
|
7357
7360
|
{ name: "desktop_documents", group: "tools_service", state: "built", path: "device_op", ops: ["documents.pdf_text", "documents.ocr", "documents.image_resize", "documents.office_generate"], platforms: ALL, summary: "PDF text, OCR, images, Word and Excel files" },
|
|
7358
|
-
{ name: "desktop_web", group: "tools_service", state: "built", path: "device_op", ops: ["web.fetch", "web.scrape", "web.search", "web.fetch_with_browser"], platforms: ALL, summary: "Fetch, scrape and
|
|
7361
|
+
{ name: "desktop_web", group: "tools_service", state: "built", path: "device_op", ops: ["web.fetch", "web.scrape", "web.search", "web.fetch_with_browser"], platforms: ALL, summary: "Fetch, scrape, search and research the web from this computer's own connection (research: search on AI Matrx, every result read here)" },
|
|
7359
7362
|
{ name: "desktop_entities", group: "tools_service", state: "built", path: "device_op", ops: ["entities.ner", "entities.pii"], platforms: ALL, summary: "Names, places, organizations and private data, found on the device" },
|
|
7363
|
+
// matrx-local's SemanticFindPaths: needs a local embedding index of this computer's files and an
|
|
7364
|
+
// embedding model on the device; neither exists yet, so it is Coming soon on Agents › Tools.
|
|
7365
|
+
{ name: "desktop_semantic_find", group: "files_shell", state: "planned", path: "device_op", ops: ["fs.search_semantic"], platforms: ALL, summary: "Find files by meaning (a local embedding index of this computer's files)" },
|
|
7360
7366
|
{ name: "desktop_notes", group: "files_shell", state: "built", path: "device_op", ops: ["notes.folders", "notes.list", "notes.read", "notes.write", "notes.search"], platforms: ALL, summary: "The person's local notes (Documents/Matrx/Notes): list, read, write, search" },
|
|
7361
7367
|
// ── 5. Python `ml` service ───────────────────────────────────────────────────────────────────
|
|
7362
7368
|
// Built: models.transcribe through local_proxy's POST /op/{cap.op} (matrx-ai implementations/desktop.py).
|
|
@@ -7371,7 +7377,6 @@ var EXCLUDED_TOOLS = {
|
|
|
7371
7377
|
var tool = (name) => ({ kind: "tool", tool: name });
|
|
7372
7378
|
var dropped = (reason) => ({ kind: "dropped", reason });
|
|
7373
7379
|
var SHELL_COVERS = "Done with shell_execute (mv, cp, rm, tar), as every coding agent does";
|
|
7374
|
-
var CLOUD_SCRAPER = "The cloud scraper and research tools run with this computer as their network (the `proxy` capability)";
|
|
7375
7380
|
var LEGACY_ACTIONS = {
|
|
7376
7381
|
"local_file.read": tool("fs_read"),
|
|
7377
7382
|
"local_file.write": tool("fs_write"),
|
|
@@ -7386,7 +7391,7 @@ var LEGACY_ACTIONS = {
|
|
|
7386
7391
|
"local_file.list": tool("fs_list"),
|
|
7387
7392
|
"local_file.places": dropped("The device's home and folders reach the agent in its binding briefing (sysinfo.get)"),
|
|
7388
7393
|
"local_file.find": tool("fs_search"),
|
|
7389
|
-
"local_file.semantic_find": dropped("Needs a local embedding index;
|
|
7394
|
+
"local_file.semantic_find": dropped("Needs a local embedding index; desktop_semantic_find is planned (Coming soon on Agents \u203A Tools) until it exists"),
|
|
7390
7395
|
"local_shell.run": tool("shell_execute"),
|
|
7391
7396
|
"local_shell.output": tool("shell_job"),
|
|
7392
7397
|
"local_shell.stop": tool("shell_job"),
|
|
@@ -7434,7 +7439,7 @@ var LEGACY_ACTIONS = {
|
|
|
7434
7439
|
"local_web.fetch_with_browser": tool("desktop_web"),
|
|
7435
7440
|
"local_web.scrape": tool("desktop_web"),
|
|
7436
7441
|
"local_web.search": tool("desktop_web"),
|
|
7437
|
-
"local_web.research":
|
|
7442
|
+
"local_web.research": tool("desktop_web"),
|
|
7438
7443
|
"local_web.download": tool("desktop_net"),
|
|
7439
7444
|
"local_web.upload": dropped("Uploads are cloud files (matrx-files) and file sync, one upload path"),
|
|
7440
7445
|
"local_net.info": tool("desktop_net"),
|