@ai-matrx/desktop-protocol 0.20.0 → 0.21.1
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 +16 -1
- 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 +16 -1
- package/dist/client.js.map +1 -1
- package/dist/index.cjs +23 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +34 -7
- package/dist/index.d.ts +34 -7
- package/dist/index.js +23 -2
- package/dist/index.js.map +1 -1
- package/dist/{models-Cz3I_rBU.d.cts → models-C98SDul-.d.cts} +39 -1
- package/dist/{models-Cz3I_rBU.d.ts → models-C98SDul-.d.ts} +39 -1
- package/dist/react.d.cts +19 -0
- package/dist/react.d.ts +19 -0
- package/generated/desktop-protocol.schema.json +88 -1
- package/package.json +1 -1
|
@@ -687,7 +687,7 @@ type OpSpec = {
|
|
|
687
687
|
readonly params: z.ZodType;
|
|
688
688
|
readonly result: z.ZodType;
|
|
689
689
|
readonly kind: "unary" | "stream" | "resource";
|
|
690
|
-
readonly since: "1.0" | "1.2" | "1.3" | "1.4" | "1.5" | "1.6" | "1.8" | "1.9" | "1.10" | "1.11" | "1.16" | "1.17" | "1.19" | "1.20";
|
|
690
|
+
readonly since: "1.0" | "1.2" | "1.3" | "1.4" | "1.5" | "1.6" | "1.8" | "1.9" | "1.10" | "1.11" | "1.16" | "1.17" | "1.19" | "1.20" | "1.21";
|
|
691
691
|
readonly errors: readonly z.infer<typeof ErrorCode>[];
|
|
692
692
|
};
|
|
693
693
|
declare const OPS: {
|
|
@@ -3616,6 +3616,25 @@ declare const OPS: {
|
|
|
3616
3616
|
readonly since: "1.20";
|
|
3617
3617
|
readonly errors: readonly ["INTERNAL"];
|
|
3618
3618
|
};
|
|
3619
|
+
readonly "apps.windows.shown": {
|
|
3620
|
+
readonly params: z.ZodObject<{
|
|
3621
|
+
app_key: z.ZodString;
|
|
3622
|
+
window: z.ZodString;
|
|
3623
|
+
}, z.core.$strict>;
|
|
3624
|
+
readonly result: z.ZodObject<{
|
|
3625
|
+
window: z.ZodString;
|
|
3626
|
+
open: z.ZodBoolean;
|
|
3627
|
+
sections: z.ZodArray<z.ZodObject<{
|
|
3628
|
+
title: z.ZodString;
|
|
3629
|
+
rows: z.ZodNumber;
|
|
3630
|
+
expanded: z.ZodBoolean;
|
|
3631
|
+
}, z.core.$strict>>;
|
|
3632
|
+
problem: z.ZodNullable<z.ZodString>;
|
|
3633
|
+
}, z.core.$strict>;
|
|
3634
|
+
readonly kind: "unary";
|
|
3635
|
+
readonly since: "1.21";
|
|
3636
|
+
readonly errors: readonly ["NOT_FOUND", "PERMISSION_DENIED_OS", "PLATFORM_UNSUPPORTED", "INTERNAL"];
|
|
3637
|
+
};
|
|
3619
3638
|
readonly "coding.history.import_missing": {
|
|
3620
3639
|
readonly params: z.ZodObject<{}, z.core.$strict>;
|
|
3621
3640
|
readonly result: z.ZodObject<{
|
|
@@ -8122,6 +8141,25 @@ declare const NAMED_SCHEMAS: {
|
|
|
8122
8141
|
}, z.core.$strict>>;
|
|
8123
8142
|
message: z.ZodString;
|
|
8124
8143
|
}, z.core.$strict>;
|
|
8144
|
+
readonly ShownSection: z.ZodObject<{
|
|
8145
|
+
title: z.ZodString;
|
|
8146
|
+
rows: z.ZodNumber;
|
|
8147
|
+
expanded: z.ZodBoolean;
|
|
8148
|
+
}, z.core.$strict>;
|
|
8149
|
+
readonly AppsWindowsShownParams: z.ZodObject<{
|
|
8150
|
+
app_key: z.ZodString;
|
|
8151
|
+
window: z.ZodString;
|
|
8152
|
+
}, z.core.$strict>;
|
|
8153
|
+
readonly AppsWindowsShownResult: z.ZodObject<{
|
|
8154
|
+
window: z.ZodString;
|
|
8155
|
+
open: z.ZodBoolean;
|
|
8156
|
+
sections: z.ZodArray<z.ZodObject<{
|
|
8157
|
+
title: z.ZodString;
|
|
8158
|
+
rows: z.ZodNumber;
|
|
8159
|
+
expanded: z.ZodBoolean;
|
|
8160
|
+
}, z.core.$strict>>;
|
|
8161
|
+
problem: z.ZodNullable<z.ZodString>;
|
|
8162
|
+
}, z.core.$strict>;
|
|
8125
8163
|
readonly ColdChat: z.ZodObject<{
|
|
8126
8164
|
id: z.ZodString;
|
|
8127
8165
|
title: z.ZodString;
|
|
@@ -687,7 +687,7 @@ type OpSpec = {
|
|
|
687
687
|
readonly params: z.ZodType;
|
|
688
688
|
readonly result: z.ZodType;
|
|
689
689
|
readonly kind: "unary" | "stream" | "resource";
|
|
690
|
-
readonly since: "1.0" | "1.2" | "1.3" | "1.4" | "1.5" | "1.6" | "1.8" | "1.9" | "1.10" | "1.11" | "1.16" | "1.17" | "1.19" | "1.20";
|
|
690
|
+
readonly since: "1.0" | "1.2" | "1.3" | "1.4" | "1.5" | "1.6" | "1.8" | "1.9" | "1.10" | "1.11" | "1.16" | "1.17" | "1.19" | "1.20" | "1.21";
|
|
691
691
|
readonly errors: readonly z.infer<typeof ErrorCode>[];
|
|
692
692
|
};
|
|
693
693
|
declare const OPS: {
|
|
@@ -3616,6 +3616,25 @@ declare const OPS: {
|
|
|
3616
3616
|
readonly since: "1.20";
|
|
3617
3617
|
readonly errors: readonly ["INTERNAL"];
|
|
3618
3618
|
};
|
|
3619
|
+
readonly "apps.windows.shown": {
|
|
3620
|
+
readonly params: z.ZodObject<{
|
|
3621
|
+
app_key: z.ZodString;
|
|
3622
|
+
window: z.ZodString;
|
|
3623
|
+
}, z.core.$strict>;
|
|
3624
|
+
readonly result: z.ZodObject<{
|
|
3625
|
+
window: z.ZodString;
|
|
3626
|
+
open: z.ZodBoolean;
|
|
3627
|
+
sections: z.ZodArray<z.ZodObject<{
|
|
3628
|
+
title: z.ZodString;
|
|
3629
|
+
rows: z.ZodNumber;
|
|
3630
|
+
expanded: z.ZodBoolean;
|
|
3631
|
+
}, z.core.$strict>>;
|
|
3632
|
+
problem: z.ZodNullable<z.ZodString>;
|
|
3633
|
+
}, z.core.$strict>;
|
|
3634
|
+
readonly kind: "unary";
|
|
3635
|
+
readonly since: "1.21";
|
|
3636
|
+
readonly errors: readonly ["NOT_FOUND", "PERMISSION_DENIED_OS", "PLATFORM_UNSUPPORTED", "INTERNAL"];
|
|
3637
|
+
};
|
|
3619
3638
|
readonly "coding.history.import_missing": {
|
|
3620
3639
|
readonly params: z.ZodObject<{}, z.core.$strict>;
|
|
3621
3640
|
readonly result: z.ZodObject<{
|
|
@@ -8122,6 +8141,25 @@ declare const NAMED_SCHEMAS: {
|
|
|
8122
8141
|
}, z.core.$strict>>;
|
|
8123
8142
|
message: z.ZodString;
|
|
8124
8143
|
}, z.core.$strict>;
|
|
8144
|
+
readonly ShownSection: z.ZodObject<{
|
|
8145
|
+
title: z.ZodString;
|
|
8146
|
+
rows: z.ZodNumber;
|
|
8147
|
+
expanded: z.ZodBoolean;
|
|
8148
|
+
}, z.core.$strict>;
|
|
8149
|
+
readonly AppsWindowsShownParams: z.ZodObject<{
|
|
8150
|
+
app_key: z.ZodString;
|
|
8151
|
+
window: z.ZodString;
|
|
8152
|
+
}, z.core.$strict>;
|
|
8153
|
+
readonly AppsWindowsShownResult: z.ZodObject<{
|
|
8154
|
+
window: z.ZodString;
|
|
8155
|
+
open: z.ZodBoolean;
|
|
8156
|
+
sections: z.ZodArray<z.ZodObject<{
|
|
8157
|
+
title: z.ZodString;
|
|
8158
|
+
rows: z.ZodNumber;
|
|
8159
|
+
expanded: z.ZodBoolean;
|
|
8160
|
+
}, z.core.$strict>>;
|
|
8161
|
+
problem: z.ZodNullable<z.ZodString>;
|
|
8162
|
+
}, z.core.$strict>;
|
|
8125
8163
|
readonly ColdChat: z.ZodObject<{
|
|
8126
8164
|
id: z.ZodString;
|
|
8127
8165
|
title: z.ZodString;
|
package/dist/react.d.cts
CHANGED
|
@@ -3076,6 +3076,25 @@ declare const OPS: {
|
|
|
3076
3076
|
readonly since: "1.20";
|
|
3077
3077
|
readonly errors: readonly ["INTERNAL"];
|
|
3078
3078
|
};
|
|
3079
|
+
readonly "apps.windows.shown": {
|
|
3080
|
+
readonly params: z.ZodObject<{
|
|
3081
|
+
app_key: z.ZodString;
|
|
3082
|
+
window: z.ZodString;
|
|
3083
|
+
}, z.core.$strict>;
|
|
3084
|
+
readonly result: z.ZodObject<{
|
|
3085
|
+
window: z.ZodString;
|
|
3086
|
+
open: z.ZodBoolean;
|
|
3087
|
+
sections: z.ZodArray<z.ZodObject<{
|
|
3088
|
+
title: z.ZodString;
|
|
3089
|
+
rows: z.ZodNumber;
|
|
3090
|
+
expanded: z.ZodBoolean;
|
|
3091
|
+
}, z.core.$strict>>;
|
|
3092
|
+
problem: z.ZodNullable<z.ZodString>;
|
|
3093
|
+
}, z.core.$strict>;
|
|
3094
|
+
readonly kind: "unary";
|
|
3095
|
+
readonly since: "1.21";
|
|
3096
|
+
readonly errors: readonly ["NOT_FOUND", "PERMISSION_DENIED_OS", "PLATFORM_UNSUPPORTED", "INTERNAL"];
|
|
3097
|
+
};
|
|
3079
3098
|
readonly "coding.history.import_missing": {
|
|
3080
3099
|
readonly params: z.ZodObject<{}, z.core.$strict>;
|
|
3081
3100
|
readonly result: z.ZodObject<{
|
package/dist/react.d.ts
CHANGED
|
@@ -3076,6 +3076,25 @@ declare const OPS: {
|
|
|
3076
3076
|
readonly since: "1.20";
|
|
3077
3077
|
readonly errors: readonly ["INTERNAL"];
|
|
3078
3078
|
};
|
|
3079
|
+
readonly "apps.windows.shown": {
|
|
3080
|
+
readonly params: z.ZodObject<{
|
|
3081
|
+
app_key: z.ZodString;
|
|
3082
|
+
window: z.ZodString;
|
|
3083
|
+
}, z.core.$strict>;
|
|
3084
|
+
readonly result: z.ZodObject<{
|
|
3085
|
+
window: z.ZodString;
|
|
3086
|
+
open: z.ZodBoolean;
|
|
3087
|
+
sections: z.ZodArray<z.ZodObject<{
|
|
3088
|
+
title: z.ZodString;
|
|
3089
|
+
rows: z.ZodNumber;
|
|
3090
|
+
expanded: z.ZodBoolean;
|
|
3091
|
+
}, z.core.$strict>>;
|
|
3092
|
+
problem: z.ZodNullable<z.ZodString>;
|
|
3093
|
+
}, z.core.$strict>;
|
|
3094
|
+
readonly kind: "unary";
|
|
3095
|
+
readonly since: "1.21";
|
|
3096
|
+
readonly errors: readonly ["NOT_FOUND", "PERMISSION_DENIED_OS", "PLATFORM_UNSUPPORTED", "INTERNAL"];
|
|
3097
|
+
};
|
|
3079
3098
|
readonly "coding.history.import_missing": {
|
|
3080
3099
|
readonly params: z.ZodObject<{}, z.core.$strict>;
|
|
3081
3100
|
readonly result: z.ZodObject<{
|
|
@@ -9105,6 +9105,81 @@
|
|
|
9105
9105
|
],
|
|
9106
9106
|
"additionalProperties": false
|
|
9107
9107
|
},
|
|
9108
|
+
"ShownSection": {
|
|
9109
|
+
"type": "object",
|
|
9110
|
+
"properties": {
|
|
9111
|
+
"title": {
|
|
9112
|
+
"type": "string",
|
|
9113
|
+
"maxLength": 300
|
|
9114
|
+
},
|
|
9115
|
+
"rows": {
|
|
9116
|
+
"type": "integer",
|
|
9117
|
+
"minimum": 0,
|
|
9118
|
+
"maximum": 9007199254740991
|
|
9119
|
+
},
|
|
9120
|
+
"expanded": {
|
|
9121
|
+
"type": "boolean"
|
|
9122
|
+
}
|
|
9123
|
+
},
|
|
9124
|
+
"required": [
|
|
9125
|
+
"title",
|
|
9126
|
+
"rows",
|
|
9127
|
+
"expanded"
|
|
9128
|
+
],
|
|
9129
|
+
"additionalProperties": false
|
|
9130
|
+
},
|
|
9131
|
+
"AppsWindowsShownParams": {
|
|
9132
|
+
"type": "object",
|
|
9133
|
+
"properties": {
|
|
9134
|
+
"app_key": {
|
|
9135
|
+
"$ref": "#/$defs/AppKey"
|
|
9136
|
+
},
|
|
9137
|
+
"window": {
|
|
9138
|
+
"$ref": "#/$defs/ChatPlace"
|
|
9139
|
+
}
|
|
9140
|
+
},
|
|
9141
|
+
"required": [
|
|
9142
|
+
"app_key",
|
|
9143
|
+
"window"
|
|
9144
|
+
],
|
|
9145
|
+
"additionalProperties": false
|
|
9146
|
+
},
|
|
9147
|
+
"AppsWindowsShownResult": {
|
|
9148
|
+
"type": "object",
|
|
9149
|
+
"properties": {
|
|
9150
|
+
"window": {
|
|
9151
|
+
"$ref": "#/$defs/ChatPlace"
|
|
9152
|
+
},
|
|
9153
|
+
"open": {
|
|
9154
|
+
"type": "boolean"
|
|
9155
|
+
},
|
|
9156
|
+
"sections": {
|
|
9157
|
+
"maxItems": 200,
|
|
9158
|
+
"type": "array",
|
|
9159
|
+
"items": {
|
|
9160
|
+
"$ref": "#/$defs/ShownSection"
|
|
9161
|
+
}
|
|
9162
|
+
},
|
|
9163
|
+
"problem": {
|
|
9164
|
+
"anyOf": [
|
|
9165
|
+
{
|
|
9166
|
+
"type": "string",
|
|
9167
|
+
"maxLength": 400
|
|
9168
|
+
},
|
|
9169
|
+
{
|
|
9170
|
+
"type": "null"
|
|
9171
|
+
}
|
|
9172
|
+
]
|
|
9173
|
+
}
|
|
9174
|
+
},
|
|
9175
|
+
"required": [
|
|
9176
|
+
"window",
|
|
9177
|
+
"open",
|
|
9178
|
+
"sections",
|
|
9179
|
+
"problem"
|
|
9180
|
+
],
|
|
9181
|
+
"additionalProperties": false
|
|
9182
|
+
},
|
|
9108
9183
|
"ColdChat": {
|
|
9109
9184
|
"type": "object",
|
|
9110
9185
|
"properties": {
|
|
@@ -11100,6 +11175,18 @@
|
|
|
11100
11175
|
"INTERNAL"
|
|
11101
11176
|
]
|
|
11102
11177
|
},
|
|
11178
|
+
"apps.windows.shown": {
|
|
11179
|
+
"params": "AppsWindowsShownParams",
|
|
11180
|
+
"result": "AppsWindowsShownResult",
|
|
11181
|
+
"kind": "unary",
|
|
11182
|
+
"since": "1.21",
|
|
11183
|
+
"errors": [
|
|
11184
|
+
"NOT_FOUND",
|
|
11185
|
+
"PERMISSION_DENIED_OS",
|
|
11186
|
+
"PLATFORM_UNSUPPORTED",
|
|
11187
|
+
"INTERNAL"
|
|
11188
|
+
]
|
|
11189
|
+
},
|
|
11103
11190
|
"coding.history.import_missing": {
|
|
11104
11191
|
"params": "CodingHistoryImportMissingParams",
|
|
11105
11192
|
"result": "CodingHistoryImportMissingResult",
|
|
@@ -11214,5 +11301,5 @@
|
|
|
11214
11301
|
"olderPeersGet": 0
|
|
11215
11302
|
}
|
|
11216
11303
|
},
|
|
11217
|
-
"x-protocol-version": "1.
|
|
11304
|
+
"x-protocol-version": "1.21"
|
|
11218
11305
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ai-matrx/desktop-protocol",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.21.1",
|
|
4
4
|
"description": "The one wire contract between Matrx 2 (the desktop app) and every client that drives it — phone, web app, extension, server: zod schemas for the envelope and every cap.op, the 16-byte binary frame codec, a reconnecting request/stream/credit/reattach client, React hooks, and a generated JSON Schema + Pydantic twin that CI keeps byte-identical.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|