@ai-matrx/desktop-protocol 0.17.11 → 0.17.12
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 +7 -0
- package/dist/client.cjs +391 -298
- 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 +391 -298
- package/dist/client.js.map +1 -1
- package/dist/index.cjs +203 -80
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +142 -6
- package/dist/index.d.ts +142 -6
- package/dist/index.js +203 -80
- package/dist/index.js.map +1 -1
- package/dist/{models-dIUgWoHB.d.cts → models-A0PWllJz.d.cts} +230 -1
- package/dist/{models-dIUgWoHB.d.ts → models-A0PWllJz.d.ts} +230 -1
- package/dist/react.d.cts +115 -0
- package/dist/react.d.ts +115 -0
- package/generated/desktop-protocol.schema.json +510 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// src/schema/primitives.ts
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
var PROTOCOL_MAJOR = 1;
|
|
4
|
-
var PROTOCOL_MINOR =
|
|
4
|
+
var PROTOCOL_MINOR = 16;
|
|
5
5
|
var PROTOCOL_VERSION = `${PROTOCOL_MAJOR}.${PROTOCOL_MINOR}`;
|
|
6
6
|
var ProtocolVersion = z.string().regex(/^[1-9][0-9]{0,2}\.[0-9]{1,3}$/);
|
|
7
7
|
var RequestId = z.string().min(1).max(64).regex(/^[A-Za-z0-9_-]+$/);
|
|
@@ -1661,121 +1661,207 @@ var ResourcesSnapshotResult = z23.strictObject({
|
|
|
1661
1661
|
uptime_seconds: nonNegInt
|
|
1662
1662
|
});
|
|
1663
1663
|
|
|
1664
|
-
// src/schema/
|
|
1664
|
+
// src/schema/stack.ts
|
|
1665
1665
|
import { z as z24 } from "zod";
|
|
1666
|
-
var
|
|
1666
|
+
var StackServerName = z24.string().regex(/^[a-z0-9_-]{1,64}$/);
|
|
1667
|
+
var StackTone = z24.enum(["good", "wait", "bad", "off"]);
|
|
1668
|
+
var StackServer = z24.strictObject({
|
|
1669
|
+
name: StackServerName,
|
|
1670
|
+
/** One word: Healthy, Starting, Unhealthy, Restarting, Stopping, Waiting, Stopped, Crashed, Off. */
|
|
1671
|
+
label: z24.string().max(32),
|
|
1672
|
+
tone: StackTone,
|
|
1673
|
+
/** What is going on, in one or two plain sentences. */
|
|
1674
|
+
sentence: z24.string().max(2e3),
|
|
1675
|
+
/** The config's own description of the server. */
|
|
1676
|
+
description: z24.string().max(512),
|
|
1677
|
+
/** Where the server answers, when its description names an address. */
|
|
1678
|
+
open_url: z24.string().max(2048).nullable(),
|
|
1679
|
+
log_file: z24.string().max(4096),
|
|
1680
|
+
/** When its log file was last written. */
|
|
1681
|
+
last_output_at_ms: epochMs.nullable(),
|
|
1682
|
+
started_at_ms: epochMs.nullable(),
|
|
1683
|
+
restarts: nonNegInt,
|
|
1684
|
+
exit_code: z24.int().nullable(),
|
|
1685
|
+
pid: z24.int().nullable()
|
|
1686
|
+
});
|
|
1687
|
+
var StackEvent = z24.strictObject({
|
|
1688
|
+
at_ms: epochMs,
|
|
1689
|
+
/** A server name, or "stack" for the stack as a whole. */
|
|
1690
|
+
server: z24.string().max(64),
|
|
1691
|
+
/** started · stopped · healthy · unhealthy · crashed · exited · restarting · stopping · action · action-done · action-failed · setup · error */
|
|
1692
|
+
kind: z24.string().max(32),
|
|
1693
|
+
text: z24.string().max(4e3)
|
|
1694
|
+
});
|
|
1695
|
+
var StackStateParams = z24.strictObject({});
|
|
1696
|
+
var StackStateResult = z24.strictObject({
|
|
1697
|
+
/** The stack's config file, when found. */
|
|
1698
|
+
config_path: z24.string().max(4096).nullable(),
|
|
1699
|
+
/** Why the stack cannot be run from here (no config, no process-compose), else null. */
|
|
1700
|
+
problem: z24.string().max(1e3).nullable(),
|
|
1701
|
+
stack_up: z24.boolean(),
|
|
1702
|
+
stack_started_at_ms: epochMs.nullable(),
|
|
1703
|
+
servers: z24.array(StackServer).max(64),
|
|
1704
|
+
/** One line about the one-shot setup steps ("Docker Desktop: running."), or null. */
|
|
1705
|
+
setup_note: z24.string().max(500).nullable(),
|
|
1706
|
+
/** Start everything / Stop everything in flight. */
|
|
1707
|
+
pending: z24.strictObject({ verb: z24.enum(["start", "stop"]), label: z24.string().max(64), since_ms: epochMs }).nullable(),
|
|
1708
|
+
/** The newest entries last. */
|
|
1709
|
+
events: z24.array(StackEvent).max(300)
|
|
1710
|
+
});
|
|
1711
|
+
var StackStartParams = z24.strictObject({});
|
|
1712
|
+
var StackStopParams = z24.strictObject({});
|
|
1713
|
+
var StackRunResult = z24.strictObject({ accepted: z24.boolean() });
|
|
1714
|
+
var StackServerActionParams = z24.strictObject({
|
|
1715
|
+
name: StackServerName,
|
|
1716
|
+
verb: z24.enum(["start", "stop", "restart"])
|
|
1717
|
+
});
|
|
1718
|
+
var StackServerActionResult = z24.strictObject({ message: z24.string().max(1e3) });
|
|
1719
|
+
var StackLogsParams = z24.strictObject({
|
|
1720
|
+
name: StackServerName,
|
|
1721
|
+
/** Without `offset`: the last this-many complete lines. With it: new lines after it, at most this many. */
|
|
1722
|
+
lines: z24.int().min(1).max(2e5).default(2e3),
|
|
1723
|
+
/** Byte offset the last read ended at: answer only what was written after it (follow). */
|
|
1724
|
+
offset: nonNegInt.optional(),
|
|
1725
|
+
/** A "Clear" point: the lines written after this byte offset (no `offset`). */
|
|
1726
|
+
since: nonNegInt.optional(),
|
|
1727
|
+
/** With `offset`: wait up to this long for a new line when none is waiting (0 answers at once). */
|
|
1728
|
+
wait_ms: z24.int().min(0).max(25e3).default(0)
|
|
1729
|
+
});
|
|
1730
|
+
var StackLogsResult = z24.strictObject({
|
|
1731
|
+
/** Complete lines, colour codes removed. */
|
|
1732
|
+
lines: z24.array(z24.string().max(65536)).max(2e5),
|
|
1733
|
+
/** Where these lines end: pass it back as `offset` to follow. */
|
|
1734
|
+
offset: nonNegInt,
|
|
1735
|
+
/** False when `since` no longer exists (the log rotated): the lines are the plain tail instead. */
|
|
1736
|
+
since_valid: z24.boolean(),
|
|
1737
|
+
/** The log was rotated or truncated since `offset`: these lines start the file again. */
|
|
1738
|
+
reset: z24.boolean(),
|
|
1739
|
+
log_file: z24.string().max(4096)
|
|
1740
|
+
});
|
|
1741
|
+
var StackErrorsParams = z24.strictObject({
|
|
1742
|
+
window_minutes: z24.int().min(1).max(1440).default(60)
|
|
1743
|
+
});
|
|
1744
|
+
var StackErrorsResult = z24.strictObject({
|
|
1745
|
+
/** Per server: a heading line ("=== aidream — errors in the last 60 minutes (<file>) ===") and each error with the 10 lines after it. */
|
|
1746
|
+
sections: z24.array(z24.strictObject({ name: StackServerName, heading: z24.string().max(4096), lines: z24.array(z24.string().max(65536)).max(5e3) })).max(64),
|
|
1747
|
+
window_minutes: z24.int().min(1).max(1440)
|
|
1748
|
+
});
|
|
1749
|
+
|
|
1750
|
+
// src/schema/audio.ts
|
|
1751
|
+
import { z as z25 } from "zod";
|
|
1752
|
+
var AudioDevice = z25.strictObject({
|
|
1667
1753
|
/** The OS's name for it, as audio.record takes it. */
|
|
1668
|
-
id:
|
|
1669
|
-
name:
|
|
1670
|
-
default:
|
|
1754
|
+
id: z25.string().min(1).max(256),
|
|
1755
|
+
name: z25.string().max(256),
|
|
1756
|
+
default: z25.boolean()
|
|
1671
1757
|
});
|
|
1672
|
-
var AudioDevicesParams =
|
|
1673
|
-
var AudioDevicesResult =
|
|
1674
|
-
inputs:
|
|
1675
|
-
outputs:
|
|
1758
|
+
var AudioDevicesParams = z25.strictObject({});
|
|
1759
|
+
var AudioDevicesResult = z25.strictObject({
|
|
1760
|
+
inputs: z25.array(AudioDevice).max(64),
|
|
1761
|
+
outputs: z25.array(AudioDevice).max(64)
|
|
1676
1762
|
});
|
|
1677
|
-
var AudioRecordParams =
|
|
1678
|
-
seconds:
|
|
1763
|
+
var AudioRecordParams = z25.strictObject({
|
|
1764
|
+
seconds: z25.number().min(0.5).max(600),
|
|
1679
1765
|
/** The microphone (from audio.devices); the default input when absent. */
|
|
1680
|
-
device_id:
|
|
1766
|
+
device_id: z25.string().min(1).max(256).optional(),
|
|
1681
1767
|
/** Where the WAV file goes; a new file in the temp folder when absent. */
|
|
1682
1768
|
path: AbsPath.optional()
|
|
1683
1769
|
});
|
|
1684
|
-
var AudioRecordResult =
|
|
1770
|
+
var AudioRecordResult = z25.strictObject({
|
|
1685
1771
|
path: AbsPath,
|
|
1686
|
-
seconds:
|
|
1772
|
+
seconds: z25.number().min(0),
|
|
1687
1773
|
bytes: nonNegInt,
|
|
1688
1774
|
/** Loudest sample, 0–1: 0 means the device gave silence. */
|
|
1689
|
-
peak:
|
|
1775
|
+
peak: z25.number().min(0).max(1)
|
|
1690
1776
|
});
|
|
1691
|
-
var AudioPlayParams =
|
|
1692
|
-
var AudioPlayResult =
|
|
1777
|
+
var AudioPlayParams = z25.strictObject({ path: AbsPath });
|
|
1778
|
+
var AudioPlayResult = z25.strictObject({ path: AbsPath, seconds: z25.number().min(0) });
|
|
1693
1779
|
|
|
1694
1780
|
// src/schema/fs-watch.ts
|
|
1695
|
-
import { z as
|
|
1696
|
-
var FsWatchId =
|
|
1697
|
-
var FsWatchStartParams =
|
|
1781
|
+
import { z as z26 } from "zod";
|
|
1782
|
+
var FsWatchId = z26.string().regex(/^fw_[A-Za-z0-9]{12,40}$/);
|
|
1783
|
+
var FsWatchStartParams = z26.strictObject({
|
|
1698
1784
|
path: AbsPath,
|
|
1699
|
-
recursive:
|
|
1785
|
+
recursive: z26.boolean().default(true),
|
|
1700
1786
|
/** Globs relative to `path` whose changes are not reported (".git/**", "node_modules/**"). */
|
|
1701
|
-
ignore:
|
|
1787
|
+
ignore: z26.array(z26.string().max(256)).max(64).default([])
|
|
1702
1788
|
});
|
|
1703
|
-
var FsWatchStartResult =
|
|
1789
|
+
var FsWatchStartResult = z26.strictObject({
|
|
1704
1790
|
watch_id: FsWatchId,
|
|
1705
1791
|
path: AbsPath,
|
|
1706
1792
|
/** The watch ends by itself if nobody reads it for 30 minutes. */
|
|
1707
1793
|
expires_at_ms: epochMs
|
|
1708
1794
|
});
|
|
1709
|
-
var FsWatchEventsParams =
|
|
1795
|
+
var FsWatchEventsParams = z26.strictObject({
|
|
1710
1796
|
watch_id: FsWatchId,
|
|
1711
1797
|
/** Wait up to this long for a first change when none is waiting (0 answers at once). */
|
|
1712
|
-
wait_ms:
|
|
1798
|
+
wait_ms: z26.int().min(0).max(25e3).default(0)
|
|
1713
1799
|
});
|
|
1714
|
-
var FsWatchEventsResult =
|
|
1800
|
+
var FsWatchEventsResult = z26.strictObject({
|
|
1715
1801
|
/** What changed since the last read, oldest first; re-checked against the disk when read. */
|
|
1716
|
-
changes:
|
|
1802
|
+
changes: z26.array(FsChange).max(1e3),
|
|
1717
1803
|
/** Changes were dropped (more than 1000 waited): list the folder again. */
|
|
1718
|
-
overflow:
|
|
1804
|
+
overflow: z26.boolean(),
|
|
1719
1805
|
expires_at_ms: epochMs
|
|
1720
1806
|
});
|
|
1721
|
-
var FsWatchStopParams =
|
|
1722
|
-
var FsWatchStopResult =
|
|
1807
|
+
var FsWatchStopParams = z26.strictObject({ watch_id: FsWatchId });
|
|
1808
|
+
var FsWatchStopResult = z26.strictObject({ watch_id: FsWatchId });
|
|
1723
1809
|
|
|
1724
1810
|
// src/schema/exec-job.ts
|
|
1725
|
-
import { z as
|
|
1726
|
-
var ExecJobId =
|
|
1727
|
-
var ExecJobStartParams =
|
|
1728
|
-
command:
|
|
1811
|
+
import { z as z27 } from "zod";
|
|
1812
|
+
var ExecJobId = z27.string().regex(/^job_[A-Za-z0-9]{12,40}$/);
|
|
1813
|
+
var ExecJobStartParams = z27.strictObject({
|
|
1814
|
+
command: z27.string().min(1).max(131072),
|
|
1729
1815
|
/** The folder it runs in; the home folder when absent. */
|
|
1730
1816
|
cwd: AbsPath.optional(),
|
|
1731
|
-
env:
|
|
1817
|
+
env: z27.record(z27.string().regex(/^[A-Za-z_][A-Za-z0-9_]*$/).max(128), z27.string().max(32768)).optional()
|
|
1732
1818
|
});
|
|
1733
|
-
var ExecJobStartResult =
|
|
1734
|
-
var ExecJobOutputParams =
|
|
1819
|
+
var ExecJobStartResult = z27.strictObject({ job_id: ExecJobId, pid: z27.int().min(1), cwd: AbsPath });
|
|
1820
|
+
var ExecJobOutputParams = z27.strictObject({
|
|
1735
1821
|
job_id: ExecJobId,
|
|
1736
1822
|
/** Byte offset into the job's output to read from (next_offset of the last read; 0 = the start). */
|
|
1737
1823
|
offset: nonNegInt.default(0),
|
|
1738
1824
|
/** Wait up to this long for new output or the exit when none is waiting (0 answers at once). */
|
|
1739
|
-
wait_ms:
|
|
1740
|
-
max_bytes:
|
|
1825
|
+
wait_ms: z27.int().min(0).max(25e3).default(0),
|
|
1826
|
+
max_bytes: z27.int().min(1024).max(1048576).default(65536)
|
|
1741
1827
|
});
|
|
1742
|
-
var ExecJobOutputResult =
|
|
1828
|
+
var ExecJobOutputResult = z27.strictObject({
|
|
1743
1829
|
/** stdout and stderr interleaved as they arrived (UTF-8). */
|
|
1744
|
-
output:
|
|
1830
|
+
output: z27.string(),
|
|
1745
1831
|
next_offset: nonNegInt,
|
|
1746
1832
|
/** Bytes before `offset` that are gone (the job keeps its last 4 MiB). */
|
|
1747
1833
|
dropped_bytes: nonNegInt,
|
|
1748
|
-
running:
|
|
1749
|
-
exit_code:
|
|
1834
|
+
running: z27.boolean(),
|
|
1835
|
+
exit_code: z27.int().nullable()
|
|
1750
1836
|
});
|
|
1751
|
-
var ExecJobStopParams =
|
|
1837
|
+
var ExecJobStopParams = z27.strictObject({
|
|
1752
1838
|
job_id: ExecJobId,
|
|
1753
1839
|
/** End it at once (SIGKILL; on Windows the whole tree with /F) instead of asking it to quit. */
|
|
1754
|
-
force:
|
|
1840
|
+
force: z27.boolean().default(false)
|
|
1755
1841
|
});
|
|
1756
|
-
var ExecJobStopResult =
|
|
1757
|
-
var ExecJobInfo =
|
|
1842
|
+
var ExecJobStopResult = z27.strictObject({ job_id: ExecJobId, exited: z27.boolean(), exit_code: z27.int().nullable() });
|
|
1843
|
+
var ExecJobInfo = z27.strictObject({
|
|
1758
1844
|
job_id: ExecJobId,
|
|
1759
|
-
command:
|
|
1760
|
-
pid:
|
|
1845
|
+
command: z27.string().max(1024),
|
|
1846
|
+
pid: z27.int().min(1),
|
|
1761
1847
|
cwd: AbsPath,
|
|
1762
|
-
running:
|
|
1763
|
-
exit_code:
|
|
1848
|
+
running: z27.boolean(),
|
|
1849
|
+
exit_code: z27.int().nullable(),
|
|
1764
1850
|
started_at_ms: epochMs,
|
|
1765
1851
|
output_bytes: nonNegInt
|
|
1766
1852
|
});
|
|
1767
|
-
var ExecJobListParams =
|
|
1768
|
-
var ExecJobListResult =
|
|
1853
|
+
var ExecJobListParams = z27.strictObject({});
|
|
1854
|
+
var ExecJobListResult = z27.strictObject({ jobs: z27.array(ExecJobInfo).max(64) });
|
|
1769
1855
|
|
|
1770
1856
|
// src/schema/coding.ts
|
|
1771
|
-
import { z as
|
|
1772
|
-
var CodingServiceCredentials =
|
|
1773
|
-
access_token:
|
|
1774
|
-
user_id:
|
|
1857
|
+
import { z as z28 } from "zod";
|
|
1858
|
+
var CodingServiceCredentials = z28.strictObject({
|
|
1859
|
+
access_token: z28.string().min(16).max(16384),
|
|
1860
|
+
user_id: z28.string().regex(/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/),
|
|
1775
1861
|
/** The AI Matrx server this app talks to (production, or a local server on the nightly copy). */
|
|
1776
|
-
server_url:
|
|
1862
|
+
server_url: z28.string().min(1).max(2048).regex(/^https?:\/\/[^\s/?#]+(\/[^\s?#]*)?$/)
|
|
1777
1863
|
});
|
|
1778
|
-
var CodingHistoryBlocked =
|
|
1864
|
+
var CodingHistoryBlocked = z28.enum([
|
|
1779
1865
|
"signed_out",
|
|
1780
1866
|
"offline",
|
|
1781
1867
|
"organization_required",
|
|
@@ -1783,11 +1869,11 @@ var CodingHistoryBlocked = z27.enum([
|
|
|
1783
1869
|
"cloud_list_unavailable",
|
|
1784
1870
|
"history_too_large"
|
|
1785
1871
|
]);
|
|
1786
|
-
var CodingHistoryFailure =
|
|
1787
|
-
session_id:
|
|
1788
|
-
reason:
|
|
1872
|
+
var CodingHistoryFailure = z28.strictObject({
|
|
1873
|
+
session_id: z28.string().max(64),
|
|
1874
|
+
reason: z28.string().max(300)
|
|
1789
1875
|
});
|
|
1790
|
-
var CodingHistoryRun =
|
|
1876
|
+
var CodingHistoryRun = z28.strictObject({
|
|
1791
1877
|
/** Claude Code sessions found on this computer. */
|
|
1792
1878
|
local_sessions: nonNegInt,
|
|
1793
1879
|
/** Of those, already complete in AI Matrx. */
|
|
@@ -1802,39 +1888,39 @@ var CodingHistoryRun = z27.strictObject({
|
|
|
1802
1888
|
/** Changed while being read; a later run takes them. */
|
|
1803
1889
|
changed: nonNegInt,
|
|
1804
1890
|
failed: nonNegInt,
|
|
1805
|
-
failures:
|
|
1891
|
+
failures: z28.array(CodingHistoryFailure).max(20),
|
|
1806
1892
|
/** Candidates not reached yet. */
|
|
1807
1893
|
remaining: nonNegInt,
|
|
1808
1894
|
/** The one line a person reads, e.g. "Imported 12 of 14 sessions. 140 already in AI Matrx." */
|
|
1809
|
-
summary:
|
|
1895
|
+
summary: z28.string().max(400)
|
|
1810
1896
|
});
|
|
1811
|
-
var CodingHistoryStep =
|
|
1897
|
+
var CodingHistoryStep = z28.strictObject({
|
|
1812
1898
|
/** Null when the run could not start (blocked before a plan existed). */
|
|
1813
|
-
plan_id:
|
|
1814
|
-
finished:
|
|
1899
|
+
plan_id: z28.string().regex(/^[0-9a-f]{32}$/).nullable(),
|
|
1900
|
+
finished: z28.boolean(),
|
|
1815
1901
|
blocked: CodingHistoryBlocked.nullable(),
|
|
1816
1902
|
run: CodingHistoryRun
|
|
1817
1903
|
});
|
|
1818
|
-
var CodingPlanMissingParams =
|
|
1819
|
-
var CodingImportNextParams =
|
|
1820
|
-
plan_id:
|
|
1904
|
+
var CodingPlanMissingParams = z28.strictObject({ credentials: CodingServiceCredentials.nullable() });
|
|
1905
|
+
var CodingImportNextParams = z28.strictObject({
|
|
1906
|
+
plan_id: z28.string().regex(/^[0-9a-f]{32}$/),
|
|
1821
1907
|
credentials: CodingServiceCredentials.nullable()
|
|
1822
1908
|
});
|
|
1823
|
-
var CodingServiceProgress =
|
|
1824
|
-
phase:
|
|
1909
|
+
var CodingServiceProgress = z28.strictObject({
|
|
1910
|
+
phase: z28.enum(["checking", "importing"]),
|
|
1825
1911
|
done: nonNegInt,
|
|
1826
1912
|
total: nonNegInt
|
|
1827
1913
|
});
|
|
1828
|
-
var CodingHistoryImportMissingParams =
|
|
1829
|
-
var CodingHistoryImportMissingResult =
|
|
1830
|
-
state:
|
|
1914
|
+
var CodingHistoryImportMissingParams = z28.strictObject({});
|
|
1915
|
+
var CodingHistoryImportMissingResult = z28.strictObject({
|
|
1916
|
+
state: z28.enum(["done", "blocked", "cancelled"]),
|
|
1831
1917
|
blocked: CodingHistoryBlocked.nullable(),
|
|
1832
1918
|
run: CodingHistoryRun,
|
|
1833
1919
|
elapsed_ms: nonNegInt
|
|
1834
1920
|
});
|
|
1835
|
-
var CodingHistoryProgressEvent =
|
|
1921
|
+
var CodingHistoryProgressEvent = z28.strictObject({
|
|
1836
1922
|
request_id: RequestId,
|
|
1837
|
-
phase:
|
|
1923
|
+
phase: z28.enum(["checking", "importing"]),
|
|
1838
1924
|
/** Sessions settled so far, of `total` candidates (0 of 0 while checking). */
|
|
1839
1925
|
done: nonNegInt,
|
|
1840
1926
|
total: nonNegInt,
|
|
@@ -1939,6 +2025,13 @@ var OPS = {
|
|
|
1939
2025
|
"audio.devices": { params: AudioDevicesParams, result: AudioDevicesResult, kind: "unary", since: "1.6", errors: ["PLATFORM_UNSUPPORTED", "INTERNAL"] },
|
|
1940
2026
|
"audio.record": { params: AudioRecordParams, result: AudioRecordResult, kind: "unary", since: "1.6", errors: ["NOT_FOUND", "PERMISSION_DENIED_OS", "PLATFORM_UNSUPPORTED", "RESOURCE_BUSY", "INTERNAL"] },
|
|
1941
2027
|
"audio.play": { params: AudioPlayParams, result: AudioPlayResult, kind: "unary", since: "1.6", errors: ["NOT_FOUND", "INVALID_PARAMS", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
|
|
2028
|
+
// The local AI Matrx servers (aidream's process-compose stack), supervised from Matrx 2's core.
|
|
2029
|
+
"stack.state": { params: StackStateParams, result: StackStateResult, kind: "unary", since: "1.16", errors: ["INTERNAL"] },
|
|
2030
|
+
"stack.start": { params: StackStartParams, result: StackRunResult, kind: "unary", since: "1.16", errors: ["RESOURCE_BUSY", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
|
|
2031
|
+
"stack.stop": { params: StackStopParams, result: StackRunResult, kind: "unary", since: "1.16", errors: ["RESOURCE_BUSY", "PLATFORM_UNSUPPORTED", "INTERNAL"] },
|
|
2032
|
+
"stack.server.action": { params: StackServerActionParams, result: StackServerActionResult, kind: "unary", since: "1.16", errors: ["NOT_FOUND", "CONFLICT", "INTERNAL"] },
|
|
2033
|
+
"stack.logs": { params: StackLogsParams, result: StackLogsResult, kind: "unary", since: "1.16", errors: ["NOT_FOUND", "INTERNAL"] },
|
|
2034
|
+
"stack.errors": { params: StackErrorsParams, result: StackErrorsResult, kind: "unary", since: "1.16", errors: ["INTERNAL"] },
|
|
1942
2035
|
// Claude Code history (SPEC §6 coding): served by the `coding` Python service through SERVICES below.
|
|
1943
2036
|
"coding.history.import_missing": { params: CodingHistoryImportMissingParams, result: CodingHistoryImportMissingResult, kind: "unary", since: "1.5", errors: ["RESOURCE_BUSY", "RESOURCE_GONE", "CANCELLED", "INTERNAL"] }
|
|
1944
2037
|
};
|
|
@@ -2170,6 +2263,21 @@ var NAMED_SCHEMAS = {
|
|
|
2170
2263
|
AudioRecordResult,
|
|
2171
2264
|
AudioPlayParams,
|
|
2172
2265
|
AudioPlayResult,
|
|
2266
|
+
StackServerName,
|
|
2267
|
+
StackTone,
|
|
2268
|
+
StackServer,
|
|
2269
|
+
StackEvent,
|
|
2270
|
+
StackStateParams,
|
|
2271
|
+
StackStateResult,
|
|
2272
|
+
StackStartParams,
|
|
2273
|
+
StackStopParams,
|
|
2274
|
+
StackRunResult,
|
|
2275
|
+
StackServerActionParams,
|
|
2276
|
+
StackServerActionResult,
|
|
2277
|
+
StackLogsParams,
|
|
2278
|
+
StackLogsResult,
|
|
2279
|
+
StackErrorsParams,
|
|
2280
|
+
StackErrorsResult,
|
|
2173
2281
|
FsWatchId,
|
|
2174
2282
|
FsWatchStartParams,
|
|
2175
2283
|
FsWatchStartResult,
|
|
@@ -2427,7 +2535,7 @@ function forPeer(op, part, value, version) {
|
|
|
2427
2535
|
var VERSIONED_RESULT_OPS = [.../* @__PURE__ */ new Set([...RESULT_PATH.keys(), ...WINDOW_RESULTS.keys(), ...NESTED_RESULTS.keys()])];
|
|
2428
2536
|
|
|
2429
2537
|
// src/contract.ts
|
|
2430
|
-
var CONTRACT_SHA256 = "
|
|
2538
|
+
var CONTRACT_SHA256 = "ee6873cbbdcba3960248ff0c5c71fe47c663b54c6e657d62d1ed5e04e51f17e2";
|
|
2431
2539
|
|
|
2432
2540
|
// src/close-policy.ts
|
|
2433
2541
|
var CLOSE_RULES = {
|
|
@@ -3090,6 +3198,21 @@ export {
|
|
|
3090
3198
|
SpendScopes,
|
|
3091
3199
|
SpendSplit,
|
|
3092
3200
|
SpendStart,
|
|
3201
|
+
StackErrorsParams,
|
|
3202
|
+
StackErrorsResult,
|
|
3203
|
+
StackEvent,
|
|
3204
|
+
StackLogsParams,
|
|
3205
|
+
StackLogsResult,
|
|
3206
|
+
StackRunResult,
|
|
3207
|
+
StackServer,
|
|
3208
|
+
StackServerActionParams,
|
|
3209
|
+
StackServerActionResult,
|
|
3210
|
+
StackServerName,
|
|
3211
|
+
StackStartParams,
|
|
3212
|
+
StackStateParams,
|
|
3213
|
+
StackStateResult,
|
|
3214
|
+
StackStopParams,
|
|
3215
|
+
StackTone,
|
|
3093
3216
|
StreamMeta,
|
|
3094
3217
|
StreamMsg,
|
|
3095
3218
|
SysinfoGetParams,
|