@ai-matrx/desktop-protocol 0.21.17 → 0.21.19
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 +12 -0
- package/dist/client.cjs +8 -2
- 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 +8 -2
- package/dist/client.js.map +1 -1
- package/dist/index.cjs +10 -4
- 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 +10 -4
- package/dist/index.js.map +1 -1
- package/dist/{models-xHAz1vPQ.d.cts → models-d2qfjJr7.d.cts} +3 -0
- package/dist/{models-xHAz1vPQ.d.ts → models-d2qfjJr7.d.ts} +3 -0
- package/dist/react.d.cts +1 -0
- package/dist/react.d.ts +1 -0
- package/generated/desktop-protocol.schema.json +8 -2
- package/package.json +4 -4
package/dist/index.cjs
CHANGED
|
@@ -516,7 +516,7 @@ module.exports = __toCommonJS(src_exports);
|
|
|
516
516
|
var import_zod = require("zod");
|
|
517
517
|
var import_uuid = require("@ai-matrx/kit/uuid");
|
|
518
518
|
var PROTOCOL_MAJOR = 1;
|
|
519
|
-
var PROTOCOL_MINOR =
|
|
519
|
+
var PROTOCOL_MINOR = 25;
|
|
520
520
|
var PROTOCOL_VERSION = `${PROTOCOL_MAJOR}.${PROTOCOL_MINOR}`;
|
|
521
521
|
var ProtocolVersion = import_zod.z.string().regex(/^[1-9][0-9]{0,2}\.[0-9]{1,3}$/);
|
|
522
522
|
var RequestId = import_zod.z.string().min(1).max(64).regex(/^[A-Za-z0-9_-]+$/);
|
|
@@ -1714,7 +1714,13 @@ var AccountUsage = import_zod14.z.strictObject({
|
|
|
1714
1714
|
/** 1.13: the account's plan as the app names it (Codex: "pro", "prolite"), when recorded. */
|
|
1715
1715
|
plan: import_zod14.z.string().max(80).optional(),
|
|
1716
1716
|
/** 1.13: the account's credit balance as the app records it (Codex), when recorded. */
|
|
1717
|
-
credits: import_zod14.z.string().max(40).optional()
|
|
1717
|
+
credits: import_zod14.z.string().max(40).optional(),
|
|
1718
|
+
/**
|
|
1719
|
+
* 1.25: the latest the account's 5-hour window can reset: 5 hours after the first reading of this
|
|
1720
|
+
* window's use (its usage history), so the real reset is at or before it. Absent when no 5-hour
|
|
1721
|
+
* window is running (no use in the last reading, or the reading is over 5 hours old).
|
|
1722
|
+
*/
|
|
1723
|
+
five_hour_resets_by_ms: epochMs.optional()
|
|
1718
1724
|
});
|
|
1719
1725
|
var AccountReset = import_zod14.z.strictObject({
|
|
1720
1726
|
window: ChatPlace,
|
|
@@ -3618,7 +3624,7 @@ var FIELDS_SINCE = {
|
|
|
3618
3624
|
AppsAccountsUsageResult: { problem: "1.12" },
|
|
3619
3625
|
AppsAccountsResetsResult: { problem: "1.12" },
|
|
3620
3626
|
ChatRow: { app_project: "1.13", tokens: "1.13", original_title: "1.14", title_source: "1.14", title_override: "1.14", archived: "1.15" },
|
|
3621
|
-
AccountUsage: { plan: "1.13", credits: "1.13" },
|
|
3627
|
+
AccountUsage: { plan: "1.13", credits: "1.13", five_hour_resets_by_ms: "1.25" },
|
|
3622
3628
|
ResourcesDisk: { name: "1.17" },
|
|
3623
3629
|
StackServer: { cpu_percent: "1.18", memory_bytes: "1.18" },
|
|
3624
3630
|
AudioDevice: { kind: "1.24" },
|
|
@@ -3754,7 +3760,7 @@ function forPeer(op, part, value, version) {
|
|
|
3754
3760
|
var VERSIONED_RESULT_OPS = [.../* @__PURE__ */ new Set([...RESULT_PATH.keys(), ...WINDOW_RESULTS.keys(), ...NESTED_RESULTS.keys()])];
|
|
3755
3761
|
|
|
3756
3762
|
// src/contract.ts
|
|
3757
|
-
var CONTRACT_SHA256 = "
|
|
3763
|
+
var CONTRACT_SHA256 = "8848ddd3157baf0f83cbd62141dd8b9f2e11f57d0f155f83a4fd2b40db8c7bc6";
|
|
3758
3764
|
|
|
3759
3765
|
// src/close-policy.ts
|
|
3760
3766
|
var CLOSE_RULES = {
|