@openclaw/matrix 2026.7.2-beta.3 → 2026.7.2-beta.4
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/dist/api.js +4 -4
- package/dist/{approval-handler.runtime-BEa98wwG.js → approval-handler.runtime-AsawryfP.js} +4 -4
- package/dist/{approval-ids-Dfn7oQAm.js → approval-ids-XAMP8vN9.js} +1 -1
- package/dist/{approval-reaction-auth-kXkCJBGi.js → approval-reaction-auth-DButmM13.js} +2 -2
- package/dist/{channel-j331Xd7b.js → channel-MBtrY36B.js} +17 -11
- package/dist/channel-plugin-api.js +1 -1
- package/dist/{channel.runtime-BIwlVfQw.js → channel.runtime-Bi4Dgy2P.js} +6 -6
- package/dist/{cli-0EcKfqFw.js → cli-CcPuMyCk.js} +14 -18
- package/dist/{cli-metadata-Xq1Xb15R.js → cli-metadata-DAhDhbYX.js} +1 -1
- package/dist/cli-metadata.js +1 -1
- package/dist/{client-BtG4quUl.js → client-BwX6rURh.js} +2 -2
- package/dist/{client-CA0PULls.js → client-Dg8dk8NW.js} +2 -2
- package/dist/{client-bootstrap-Dk5EAn3n.js → client-bootstrap-ZAaO9fZ-.js} +1 -1
- package/dist/{config-schema-B5GRV8wL.js → config-schema-CggnuwnJ.js} +4 -5
- package/dist/contract-api.js +2 -2
- package/dist/{create-client-WQExaby_.js → create-client-Und1YmJ2.js} +3 -3
- package/dist/{crypto-runtime-CAff-n15.js → crypto-runtime-_j7TpS7k.js} +2 -2
- package/dist/{directory-live-DiC-0XBC.js → directory-live-B6fbX6jf.js} +3 -3
- package/dist/{doctor-DwUVm5Lw.js → doctor-C0LPJGTz.js} +1 -1
- package/dist/doctor-contract-CWVdlRQR.js +183 -0
- package/dist/doctor-contract-api.js +112 -71
- package/dist/{draft-stream-CTLKtJJ0.js → draft-stream-BfibauH1.js} +1 -1
- package/dist/{file-sync-store-CPkgnSXp.js → file-sync-store-DUEWCEjb.js} +1 -1
- package/dist/{http-client-BmrgOZTL.js → http-client-DOyTG9l2.js} +1 -1
- package/dist/{idb-persistence-Dyy6ipgU.js → idb-persistence-C6zQfW2w.js} +72 -63
- package/dist/index.js +1 -1
- package/dist/{media-text-BMXEXb1j.js → media-text-Cv1VIHXW.js} +1 -1
- package/dist/{messages-3UBHfZrN.js → messages-ClTgfFl6.js} +3 -3
- package/dist/{monitor-BtUIds8T.js → monitor-2BjKS9RV.js} +23 -20
- package/dist/plugin-entry.handlers.runtime.js +1 -1
- package/dist/probe.runtime-BWkgfbiE.js +3 -0
- package/dist/{profile-update-Bh2XtJwN.js → profile-update-C2My3TML.js} +2 -2
- package/dist/{reaction-events-BwAKtUyQ.js → reaction-events-Cj6thhmc.js} +2 -2
- package/dist/{recovery-key-store-CW6eePfp.js → recovery-key-store-0O8ARdT_.js} +1 -1
- package/dist/{resolve-targets-DVoj-YxB.js → resolve-targets-Dn11HT76.js} +1 -1
- package/dist/{resolver.runtime-CC0VVsAt.js → resolver.runtime-Zguh0hH9.js} +1 -1
- package/dist/{sdk-CIDZXWpZ.js → sdk-DiRXiRRf.js} +5 -5
- package/dist/{send-BJbrdmNm.js → send-CZCmDQu8.js} +2 -2
- package/dist/session-binding-contract-api.js +1 -1
- package/dist/{setup-bootstrap-DGPOOdz-.js → setup-bootstrap-C9w01xQK.js} +2 -2
- package/dist/{setup-core-XCdAx1nY.js → setup-core-D6gyoyeg.js} +107 -19
- package/dist/setup-plugin-api.js +4 -3
- package/dist/{setup-surface-CzUiTe_k.js → setup-surface-DZIEWtQC.js} +6 -4
- package/dist/{shared-DquM1oz6.js → shared-C7Vm9RxI.js} +3 -3
- package/dist/{startup-verification-CA00kebL.js → startup-verification-D1nscMh8.js} +1 -1
- package/dist/{storage-CzHxeF5E.js → storage-BrkTJZov.js} +6 -39
- package/dist/{thread-bindings-Cw194yEn.js → thread-bindings-BcYBELC7.js} +2 -2
- package/dist/{tool-actions.runtime-C0jgWYhX.js → tool-actions.runtime-Dbco_Vwn.js} +7 -7
- package/dist/{verification-DjxyWTNP.js → verification-DhMBWxOJ.js} +1 -1
- package/node_modules/music-metadata/lib/common/Util.d.ts +1 -1
- package/node_modules/music-metadata/lib/common/Util.js +7 -1
- package/node_modules/music-metadata/lib/id3v2/FrameHeader.js +23 -3
- package/node_modules/music-metadata/lib/id3v2/FrameParser.js +2 -2
- package/node_modules/music-metadata/lib/id3v2/ID3v2Token.js +1 -1
- package/node_modules/music-metadata/lib/mp4/AtomToken.js +38 -13
- package/node_modules/music-metadata/lib/mpeg/MpegParser.js +1 -1
- package/node_modules/music-metadata/package.json +6 -6
- package/node_modules/typebox/build/compile/validator.d.mts +1 -4
- package/node_modules/typebox/build/guard/guard.d.mts +1 -1
- package/node_modules/typebox/build/guard/guard.mjs +5 -2
- package/node_modules/typebox/build/guard/string.mjs +16 -4
- package/node_modules/typebox/build/schema/engine/_functions.mjs +34 -15
- package/node_modules/typebox/build/type/action/readonly_object.d.mts +5 -0
- package/node_modules/typebox/build/type/action/readonly_object.mjs +8 -0
- package/node_modules/typebox/build/typebox.d.mts +1 -1
- package/node_modules/typebox/build/typebox.mjs +1 -1
- package/node_modules/typebox/package.json +1 -1
- package/node_modules/typebox/readme.md +29 -32
- package/npm-shrinkwrap.json +11 -11
- package/openclaw.plugin.json +7 -20
- package/package.json +111 -28
- package/dist/doctor-contract-BA2Y6Crx.js +0 -312
- package/dist/probe.runtime-sBV-Govx.js +0 -3
|
@@ -15,7 +15,27 @@ export function getFrameHeaderLength(majorVer) {
|
|
|
15
15
|
default: throw makeUnexpectedMajorVersionError(majorVer);
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
|
-
function readFrameFlags(b) {
|
|
18
|
+
function readFrameFlags(b, majorVer) {
|
|
19
|
+
// ID3v2.3 and ID3v2.4 use different bit layouts for the frame status and format flags.
|
|
20
|
+
if (majorVer === 3) {
|
|
21
|
+
// ID3v2.3: status `%abc00000`, format `%ijk00000` (https://id3.org/id3v2.3.0)
|
|
22
|
+
return {
|
|
23
|
+
status: {
|
|
24
|
+
tag_alter_preservation: util.getBit(b, 0, 7),
|
|
25
|
+
file_alter_preservation: util.getBit(b, 0, 6),
|
|
26
|
+
read_only: util.getBit(b, 0, 5)
|
|
27
|
+
},
|
|
28
|
+
format: {
|
|
29
|
+
compression: util.getBit(b, 1, 7),
|
|
30
|
+
encryption: util.getBit(b, 1, 6),
|
|
31
|
+
grouping_identity: util.getBit(b, 1, 5),
|
|
32
|
+
// Unsynchronisation and data-length-indicator do not exist as per-frame flags in ID3v2.3.
|
|
33
|
+
unsynchronisation: false,
|
|
34
|
+
data_length_indicator: false
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
// ID3v2.4: status `%0abc0000`, format `%0h00kmnp` (https://id3.org/id3v2.4.0-structure)
|
|
19
39
|
return {
|
|
20
40
|
status: {
|
|
21
41
|
tag_alter_preservation: util.getBit(b, 0, 6),
|
|
@@ -23,7 +43,7 @@ function readFrameFlags(b) {
|
|
|
23
43
|
read_only: util.getBit(b, 0, 4)
|
|
24
44
|
},
|
|
25
45
|
format: {
|
|
26
|
-
grouping_identity: util.getBit(b, 1,
|
|
46
|
+
grouping_identity: util.getBit(b, 1, 6),
|
|
27
47
|
compression: util.getBit(b, 1, 3),
|
|
28
48
|
encryption: util.getBit(b, 1, 2),
|
|
29
49
|
unsynchronisation: util.getBit(b, 1, 1),
|
|
@@ -61,7 +81,7 @@ function parseFrameHeaderV23V24(uint8Array, majorVer, warningCollector) {
|
|
|
61
81
|
const header = {
|
|
62
82
|
id: textDecode(uint8Array.subarray(0, 4), 'ascii'),
|
|
63
83
|
length: (majorVer === 4 ? UINT32SYNCSAFE : Token.UINT32_BE).get(uint8Array, 4),
|
|
64
|
-
flags: readFrameFlags(uint8Array.subarray(8, 10))
|
|
84
|
+
flags: readFrameFlags(uint8Array.subarray(8, 10), majorVer)
|
|
65
85
|
};
|
|
66
86
|
if (!header.id.match(/^[A-Z0-9]{4}$/)) {
|
|
67
87
|
warningCollector.addWarning(`Invalid ID3v2.${majorVer} frame-header-ID: ${header.id}`);
|
|
@@ -390,11 +390,11 @@ export class FrameParser {
|
|
|
390
390
|
if (zeroIndex >= valueArray.length) {
|
|
391
391
|
// No terminator found, decode full buffer remainder
|
|
392
392
|
return {
|
|
393
|
-
text: util.decodeString(
|
|
393
|
+
text: util.decodeString(uint8Array, encoding.encoding),
|
|
394
394
|
len: originalLen
|
|
395
395
|
};
|
|
396
396
|
}
|
|
397
|
-
const txt =
|
|
397
|
+
const txt = uint8Array.subarray(0, bomSize + zeroIndex);
|
|
398
398
|
return {
|
|
399
399
|
text: util.decodeString(txt, encoding.encoding),
|
|
400
400
|
len: bomSize + zeroIndex + FrameParser.getNullTerminatorLength(encoding.encoding)
|
|
@@ -109,7 +109,7 @@ export const TextEncodingToken = {
|
|
|
109
109
|
case 0x01:
|
|
110
110
|
return { encoding: 'utf-16le', bom: true };
|
|
111
111
|
case 0x02:
|
|
112
|
-
return { encoding: 'utf-
|
|
112
|
+
return { encoding: 'utf-16be', bom: false };
|
|
113
113
|
case 0x03:
|
|
114
114
|
return { encoding: 'utf8', bom: false };
|
|
115
115
|
default:
|
|
@@ -226,19 +226,44 @@ export class TrackHeaderAtom {
|
|
|
226
226
|
this.len = len;
|
|
227
227
|
}
|
|
228
228
|
get(buf, off) {
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
229
|
+
const version = Token.UINT8.get(buf, off);
|
|
230
|
+
const flags = Token.UINT24_BE.get(buf, off + 1);
|
|
231
|
+
switch (version) {
|
|
232
|
+
case 0:
|
|
233
|
+
// Version 0: 32-bit fields
|
|
234
|
+
return {
|
|
235
|
+
version,
|
|
236
|
+
flags,
|
|
237
|
+
creationTime: SecondsSinceMacEpoch.get(buf, off + 4),
|
|
238
|
+
modificationTime: SecondsSinceMacEpoch.get(buf, off + 8),
|
|
239
|
+
trackId: Token.UINT32_BE.get(buf, off + 12),
|
|
240
|
+
// reserved 4 bytes
|
|
241
|
+
duration: Token.UINT32_BE.get(buf, off + 20),
|
|
242
|
+
// reserved 8 bytes
|
|
243
|
+
layer: Token.UINT16_BE.get(buf, off + 32),
|
|
244
|
+
alternateGroup: Token.UINT16_BE.get(buf, off + 34),
|
|
245
|
+
volume: Token.UINT16_BE.get(buf, off + 36) // ToDo: fixed point
|
|
246
|
+
// ToDo: add remaining fields
|
|
247
|
+
};
|
|
248
|
+
case 1:
|
|
249
|
+
// Version 1: 64-bit creation/modification times and duration
|
|
250
|
+
return {
|
|
251
|
+
version,
|
|
252
|
+
flags,
|
|
253
|
+
creationTime: SecondsSinceMacEpoch64.get(buf, off + 4),
|
|
254
|
+
modificationTime: SecondsSinceMacEpoch64.get(buf, off + 12),
|
|
255
|
+
trackId: Token.UINT32_BE.get(buf, off + 20),
|
|
256
|
+
// reserved 4 bytes
|
|
257
|
+
duration: Number(Token.UINT64_BE.get(buf, off + 28)),
|
|
258
|
+
// reserved 8 bytes
|
|
259
|
+
layer: Token.UINT16_BE.get(buf, off + 44),
|
|
260
|
+
alternateGroup: Token.UINT16_BE.get(buf, off + 46),
|
|
261
|
+
volume: Token.UINT16_BE.get(buf, off + 48) // ToDo: fixed point
|
|
262
|
+
// ToDo: add remaining fields
|
|
263
|
+
};
|
|
264
|
+
default:
|
|
265
|
+
throw new FieldDecodingError('Invalid tkhd version header');
|
|
266
|
+
}
|
|
242
267
|
}
|
|
243
268
|
}
|
|
244
269
|
/**
|
|
@@ -31,7 +31,7 @@ const MPEG4 = {
|
|
|
31
31
|
* https://wiki.multimedia.cx/index.php/MPEG-4_Audio#Sampling_Frequencies
|
|
32
32
|
*/
|
|
33
33
|
SamplingFrequencies: [
|
|
34
|
-
96000, 88200, 64000, 48000, 44100, 32000, 24000, 22050, 16000, 12000, 11025, 8000, 7350, null, null,
|
|
34
|
+
96000, 88200, 64000, 48000, 44100, 32000, 24000, 22050, 16000, 12000, 11025, 8000, 7350, null, null, null
|
|
35
35
|
]
|
|
36
36
|
/**
|
|
37
37
|
* Channel Configurations
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "music-metadata",
|
|
3
3
|
"description": "Music metadata parser for Node.js, supporting virtual any audio and tag format.",
|
|
4
|
-
"version": "11.
|
|
4
|
+
"version": "11.14.0",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Borewit",
|
|
7
7
|
"url": "https://github.com/Borewit"
|
|
@@ -124,20 +124,20 @@
|
|
|
124
124
|
"win-guid": "^0.2.1"
|
|
125
125
|
},
|
|
126
126
|
"devDependencies": {
|
|
127
|
-
"@biomejs/biome": "2.
|
|
127
|
+
"@biomejs/biome": "2.5.3",
|
|
128
128
|
"@types/chai": "^5.2.3",
|
|
129
129
|
"@types/chai-as-promised": "^8.0.2",
|
|
130
|
-
"@types/content-type": "^
|
|
131
|
-
"@types/debug": "^4.1.
|
|
130
|
+
"@types/content-type": "^2.0.0",
|
|
131
|
+
"@types/debug": "^4.1.13",
|
|
132
132
|
"@types/media-typer": "^1.1.3",
|
|
133
133
|
"@types/mocha": "^10.0.10",
|
|
134
|
-
"@types/node": "^
|
|
134
|
+
"@types/node": "^26.1.1",
|
|
135
135
|
"c8": "^11.0.0",
|
|
136
136
|
"chai": "^6.2.2",
|
|
137
137
|
"chai-as-promised": "^8.0.2",
|
|
138
138
|
"del-cli": "^7.0.0",
|
|
139
139
|
"mime": "^4.1.0",
|
|
140
|
-
"mocha": "^11.7.
|
|
140
|
+
"mocha": "^11.7.6",
|
|
141
141
|
"node-readable-to-web-readable-stream": "^0.4.2",
|
|
142
142
|
"remark-cli": "^12.0.1",
|
|
143
143
|
"remark-preset-lint-consistent": "^6.0.1",
|
|
@@ -1,14 +1,11 @@
|
|
|
1
1
|
import { type TLocalizedValidationError } from '../error/index.mjs';
|
|
2
2
|
import { type StaticDecode, type StaticEncode, type TProperties, type TSchema } from '../type/index.mjs';
|
|
3
|
-
import { BuildResult, EvaluateResult } from '../schema/index.mjs';
|
|
4
3
|
export declare class Validator<Context extends TProperties = TProperties, Type extends TSchema = TSchema, Encode extends unknown = StaticEncode<Type, Context>, Decode extends unknown = StaticDecode<Type, Context>> {
|
|
5
4
|
private readonly hasCodec;
|
|
6
5
|
private readonly buildResult;
|
|
7
6
|
private readonly evaluateResult;
|
|
8
|
-
/** Constructs a Validator
|
|
7
|
+
/** Constructs a Validator. */
|
|
9
8
|
constructor(context: Context, type: Type);
|
|
10
|
-
/** Constructs a Validator with the given arguments. */
|
|
11
|
-
constructor(hasCodec: boolean, buildResult: BuildResult, evaluateResult: EvaluateResult);
|
|
12
9
|
/** Returns true if this Validator is using JIT acceleration. */
|
|
13
10
|
IsAccelerated(): boolean;
|
|
14
11
|
/** Returns the Context for this validator. */
|
|
@@ -61,5 +61,5 @@ export declare function Keys(value: Record<PropertyKey, unknown>): string[];
|
|
|
61
61
|
export declare function Symbols(value: Record<PropertyKey, unknown>): symbol[];
|
|
62
62
|
/** Returns the property values for the given object via `Object.values()` */
|
|
63
63
|
export declare function Values(value: Record<PropertyKey, unknown>): unknown[];
|
|
64
|
-
/**
|
|
64
|
+
/** Returns true if left and right values are structurally equal */
|
|
65
65
|
export declare function IsDeepEqual(left: unknown, right: unknown): boolean;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
// deno-fmt-ignore-file
|
|
1
2
|
import * as String from './string.mjs';
|
|
2
3
|
// --------------------------------------------------------------------------
|
|
3
4
|
// Guards
|
|
@@ -203,7 +204,9 @@ function DeepEqualArray(left, right) {
|
|
|
203
204
|
return IsArray(right) && IsEqual(left.length, right.length) &&
|
|
204
205
|
left.every((_, index) => IsDeepEqual(left[index], right[index]));
|
|
205
206
|
}
|
|
206
|
-
/**
|
|
207
|
+
/** Returns true if left and right values are structurally equal */
|
|
207
208
|
export function IsDeepEqual(left, right) {
|
|
208
|
-
return (IsArray(left) ? DeepEqualArray(left, right) :
|
|
209
|
+
return (IsArray(left) ? DeepEqualArray(left, right) :
|
|
210
|
+
IsObject(left) ? DeepEqualObject(left, right) :
|
|
211
|
+
IsEqual(left, right));
|
|
209
212
|
}
|
|
@@ -5,6 +5,18 @@ function IsBetween(value, min, max) {
|
|
|
5
5
|
return value >= min && value <= max;
|
|
6
6
|
}
|
|
7
7
|
// --------------------------------------------------------------------------
|
|
8
|
+
// IsZeroWidthJoiner
|
|
9
|
+
// --------------------------------------------------------------------------
|
|
10
|
+
function IsZeroWidthJoiner(value) {
|
|
11
|
+
return (value === 0x200D);
|
|
12
|
+
}
|
|
13
|
+
// --------------------------------------------------------------------------
|
|
14
|
+
// IsHighSurrogate
|
|
15
|
+
// --------------------------------------------------------------------------
|
|
16
|
+
function IsHighSurrogate(value) {
|
|
17
|
+
return IsBetween(value, 0xD800, 0xDBFF);
|
|
18
|
+
}
|
|
19
|
+
// --------------------------------------------------------------------------
|
|
8
20
|
// IsRegionalIndicator
|
|
9
21
|
// --------------------------------------------------------------------------
|
|
10
22
|
function IsRegionalIndicator(value) {
|
|
@@ -72,10 +84,10 @@ function NextGraphemeClusterIndex(value, clusterStart) {
|
|
|
72
84
|
// IsGraphemeCodePoint
|
|
73
85
|
// --------------------------------------------------------------------------
|
|
74
86
|
function IsGraphemeCodePoint(value) {
|
|
75
|
-
return (
|
|
76
|
-
|
|
77
|
-
(value
|
|
78
|
-
|
|
87
|
+
return (IsHighSurrogate(value) ||
|
|
88
|
+
IsCombiningMark(value) ||
|
|
89
|
+
IsVariationSelector(value) ||
|
|
90
|
+
IsZeroWidthJoiner(value));
|
|
79
91
|
}
|
|
80
92
|
// --------------------------------------------------------------------------
|
|
81
93
|
// GraphemeCount
|
|
@@ -1,47 +1,66 @@
|
|
|
1
1
|
// deno-fmt-ignore-file
|
|
2
|
-
import * as Schema from '../types/index.mjs';
|
|
3
2
|
import { Hashing } from '../../system/hashing/index.mjs';
|
|
4
3
|
import { EmitGuard as E } from '../../guard/index.mjs';
|
|
5
4
|
import { BuildSchema } from './schema.mjs';
|
|
6
|
-
const
|
|
5
|
+
const index = [0];
|
|
6
|
+
const names = new Map;
|
|
7
|
+
const funcs = new Map();
|
|
8
|
+
// ------------------------------------------------------------------
|
|
9
|
+
// CreateName
|
|
10
|
+
// ------------------------------------------------------------------
|
|
11
|
+
function NextName() {
|
|
12
|
+
return Hashing.Hash(index[0]++);
|
|
13
|
+
}
|
|
14
|
+
function CreateName(schema, href) {
|
|
15
|
+
if (!names.has(schema))
|
|
16
|
+
names.set(schema, new Map());
|
|
17
|
+
const hrefs = names.get(schema);
|
|
18
|
+
if (hrefs.has(href))
|
|
19
|
+
return hrefs.get(href);
|
|
20
|
+
const name = NextName();
|
|
21
|
+
hrefs.set(href, name);
|
|
22
|
+
return name;
|
|
23
|
+
}
|
|
7
24
|
// ------------------------------------------------------------------
|
|
8
25
|
// CreateCallExpression
|
|
9
26
|
// ------------------------------------------------------------------
|
|
10
|
-
function CreateCallExpression(context, _schema,
|
|
27
|
+
function CreateCallExpression(context, _schema, name, value) {
|
|
11
28
|
return context.UseUnevaluated()
|
|
12
|
-
? E.Call(`check_${
|
|
13
|
-
: E.Call(`check_${
|
|
29
|
+
? E.Call(`check_${name}`, ['context', value])
|
|
30
|
+
: E.Call(`check_${name}`, [value]);
|
|
14
31
|
}
|
|
15
32
|
// ------------------------------------------------------------------
|
|
16
33
|
// CreateFunctionExpression
|
|
17
34
|
// ------------------------------------------------------------------
|
|
18
|
-
function CreateFunctionExpression(stack, context, schema,
|
|
35
|
+
function CreateFunctionExpression(stack, context, schema, name) {
|
|
19
36
|
const expression = BuildSchema(stack, context, schema, 'value');
|
|
20
37
|
return context.UseUnevaluated()
|
|
21
|
-
? E.ConstDeclaration(`check_${
|
|
22
|
-
: E.ConstDeclaration(`check_${
|
|
38
|
+
? E.ConstDeclaration(`check_${name}`, E.ArrowFunction(['context', 'value'], expression))
|
|
39
|
+
: E.ConstDeclaration(`check_${name}`, E.ArrowFunction(['value'], expression));
|
|
23
40
|
}
|
|
24
41
|
// ------------------------------------------------------------------
|
|
25
42
|
// ResetFunctions
|
|
26
43
|
// ------------------------------------------------------------------
|
|
27
44
|
export function ResetFunctions() {
|
|
28
|
-
|
|
45
|
+
index[0] = 0;
|
|
46
|
+
names.clear();
|
|
47
|
+
funcs.clear();
|
|
29
48
|
}
|
|
30
49
|
// ------------------------------------------------------------------
|
|
31
50
|
// GetFunctions
|
|
32
51
|
// ------------------------------------------------------------------
|
|
33
52
|
export function GetFunctions() {
|
|
34
|
-
return [...
|
|
53
|
+
return [...funcs.values()];
|
|
35
54
|
}
|
|
36
55
|
// ------------------------------------------------------------------
|
|
37
56
|
// CreateFunction
|
|
38
57
|
// ------------------------------------------------------------------
|
|
39
58
|
export function CreateFunction(stack, context, schema, value) {
|
|
40
|
-
const
|
|
41
|
-
const call = CreateCallExpression(context, schema,
|
|
42
|
-
if (
|
|
59
|
+
const name = CreateName(schema, stack.BaseURL().href);
|
|
60
|
+
const call = CreateCallExpression(context, schema, name, value);
|
|
61
|
+
if (funcs.has(name))
|
|
43
62
|
return call;
|
|
44
|
-
|
|
45
|
-
|
|
63
|
+
funcs.set(name, '');
|
|
64
|
+
funcs.set(name, CreateFunctionExpression(stack, context, schema, name));
|
|
46
65
|
return call;
|
|
47
66
|
}
|
|
@@ -9,3 +9,8 @@ export declare function ReadonlyObjectDeferred<Type extends TSchema>(type: Type,
|
|
|
9
9
|
export type TReadonlyObject<Type extends TSchema> = (TReadonlyObjectAction<Type>);
|
|
10
10
|
/** This type is an alias for TypeScript's `Readonly<T>` utility type. It will make all properties of a TObject readonly or marks an TArray or TTuple as immutable `readonly T[]`. */
|
|
11
11
|
export declare function ReadonlyObject<Type extends TSchema>(type: Type, options?: TSchemaOptions): TReadonlyObject<Type>;
|
|
12
|
+
/**
|
|
13
|
+
* This type has been renamed to ReadonlyObject.
|
|
14
|
+
* @deprecated
|
|
15
|
+
*/
|
|
16
|
+
export declare const ReadonlyType: typeof ReadonlyObject;
|
|
@@ -9,3 +9,11 @@ export function ReadonlyObjectDeferred(type, options = {}) {
|
|
|
9
9
|
export function ReadonlyObject(type, options = {}) {
|
|
10
10
|
return ReadonlyObjectAction(type, options);
|
|
11
11
|
}
|
|
12
|
+
// ------------------------------------------------------------------
|
|
13
|
+
// Alias
|
|
14
|
+
// ------------------------------------------------------------------
|
|
15
|
+
/**
|
|
16
|
+
* This type has been renamed to ReadonlyObject.
|
|
17
|
+
* @deprecated
|
|
18
|
+
*/
|
|
19
|
+
export const ReadonlyType = ReadonlyObject;
|
|
@@ -19,7 +19,7 @@ export { Omit, type TOmit, type TOmitDeferred } from './type/action/omit.mjs';
|
|
|
19
19
|
export { Parameters, type TParameters, type TParametersDeferred } from './type/action/parameters.mjs';
|
|
20
20
|
export { Partial, type TPartial, type TPartialDeferred } from './type/action/partial.mjs';
|
|
21
21
|
export { Pick, type TPick, type TPickDeferred } from './type/action/pick.mjs';
|
|
22
|
-
export { ReadonlyObject, type TReadonlyObject, type TReadonlyObjectDeferred } from './type/action/readonly_object.mjs';
|
|
22
|
+
export { ReadonlyObject, ReadonlyType, type TReadonlyObject, type TReadonlyObjectDeferred } from './type/action/readonly_object.mjs';
|
|
23
23
|
export { Required, type TRequired, type TRequiredDeferred } from './type/action/required.mjs';
|
|
24
24
|
export { ReturnType, type TReturnType, type TReturnTypeDeferred } from './type/action/return_type.mjs';
|
|
25
25
|
export { type TUncapitalize, type TUncapitalizeDeferred, Uncapitalize } from './type/action/uncapitalize.mjs';
|
|
@@ -31,7 +31,7 @@ export { Omit } from './type/action/omit.mjs';
|
|
|
31
31
|
export { Parameters } from './type/action/parameters.mjs';
|
|
32
32
|
export { Partial } from './type/action/partial.mjs';
|
|
33
33
|
export { Pick } from './type/action/pick.mjs';
|
|
34
|
-
export { ReadonlyObject } from './type/action/readonly_object.mjs';
|
|
34
|
+
export { ReadonlyObject, ReadonlyType } from './type/action/readonly_object.mjs';
|
|
35
35
|
export { Required } from './type/action/required.mjs';
|
|
36
36
|
export { ReturnType } from './type/action/return_type.mjs';
|
|
37
37
|
export { Uncapitalize } from './type/action/uncapitalize.mjs';
|
|
@@ -111,27 +111,24 @@ type User = Type.Static<typeof User> // type User = {
|
|
|
111
111
|
|
|
112
112
|
## Script
|
|
113
113
|
|
|
114
|
-
[Documentation](https://sinclairzx81.github.io/typebox/#/docs/script/overview) | [Example 1](https://www.typescriptlang.org/play/?target=99&module=7#code/
|
|
115
|
-
|
|
116
|
-
TypeBox includes a syntax engine that can transform TypeScript declarations into JSON Schema. The engine is a full syntactic frontend to Type.* and supports many advanced type-level constructs such as Conditional, Mapped, Indexed, Infer, Generics, Distributed types and more. This feature is implemented symmetrically at runtime and statically via TypeScript Template Literal types.
|
|
117
|
-
|
|
118
|
-
Syntax highlighting is available via the [Visual Studio Marketplace](https://marketplace.visualstudio.com/items?itemName=sinclairzx81.typebox-script)
|
|
114
|
+
[Documentation](https://sinclairzx81.github.io/typebox/#/docs/script/overview) | [Example 1](https://www.typescriptlang.org/play/?target=99&module=7#code/JYWwDg9gTgLgBAFQJ5gKZwGZQiOByGFVAIwgA88AoSgehrgFkIATAVwBtVKBjCAOwDO8BgEMYACzgBeREQB0AZW5RgYGAAoABpThxCaOADVU3GNABM0uAG84ZAFxw+rEMVRQANHCSPnr93AAvjp6REYmZlAAzFa2Dk4ubp7evonuXgBeqf5QQSH66Mam0AAssXbZSV4+CTmZlelwAO4NucGaAJTUdHAAIqhofMyofMIsHFy8gvC2DKgCkoFWyGiKyqoaohJemrr5YcawqGSxIbqQAsAwwPyORZElHmdO0CAi7HcR0FFPurqsADdPsUoOYQsFdAU4ABxVA4VAwKBIU5-OAA9zXbjzT5HMgAbQAur8-sAhsAsQJWoTwfsDFt3MB3ii-iJXMARjBgQ9ibpmMAMBhWAJUFzSjy4AI0NwOCIoKKoCUaZCwnMFszdABzOEgBFIxyw+GIpDit4wBnvRz0lTvGmdbr0ABKrFGoHQDtQGE4phufEoqvEcjA2DQsHZAjkWsNSMDwYxYbk6NDFLkV1QIHDQYgIeu80DEEu134MazcdzZD98wDmez8cjOqNxZrucTmNzqfTjdL4b4r3endDZYrC37OfDdd1SBH8Zb5LbZo71a7ckBU8H-tX4dN5vYG7kfIFQtQu-L68XA83Ym3u9ZxHZo2PQ6rsfPci31p3Z9HcklJhlUAftD0AoMBiOScAAJJ8Bg7gjFilCCnw3r8HAUAjMMUDqDqCyOCsR7AaB3AADwFBAGCMJWAB8HQ2CEWEBuODYzhSeIAAwEnmBY+nI5a6HREbahOCZxsxbFyD2UBvDuPFwHxDHRkx8ysexK7SXxb6Mju+6CsK3G0ZWr6Xu+cg3neMC6bx+nqX2P7Suwsq6YEQA) | [Example 2](https://www.typescriptlang.org/play/?target=99&module=7#code/JYWwDg9gTgLgBAFQJ5gKZwGZQiOByGFVAIwgA88AoSgehrgFkIATAVwBtVKA7AQxFQBnMLwDG6BrxgALOAG9KcOKjKRYcURG6D4ANVSiY0AExwAvIiIA6APLEAVgZgAKOXDIAuS2isA5ViDEqFDOAJQANHBIXsg+-oHBYXAAvqGKyqrQ8Jraek7QAMzm3qi2Dk6u7jHW8UEhEVHVcQF1YZEAXk2ltYmhKWlKKmrZWjpw+obQACzFsaV2joaVniV+Lb2R0as99R1dawm7cADu+ztJqZTJ1HRwACKoaNzMqNzwTGyclDlj+rAqs2sCwqCiUkEEwBgwC0XkkMisEyMUCm4XS3GgIF47FhUmkCPyUAKqKUrAAbjj4YiTFc0j94ABxVA4VAwKBIQE+YFLUFwUnBKHiQT7ACCUCgvCQzj+MBUEXSwGewEFIrFEuccwOrVCaUudMYUmCwCxHPm5W56X4xGArxgFLxVORxLgzGAGAwrEEqDt+MmjvSwgMHF4UG9DqmNO+o3eQlkFg1XJcPIA5kyBKytozmemnZiZVAjdj9XmCxHaPQAEqsN6gdDl1AYTiGaHcSgMGNWMDYNCwa2CKwprNsjtd-m9qx8nuCqyQ1AgPudiDdqFCDsQCFQrTDxejldkVvthdLscDtNDw87vsTgUrmdzrdHlfoqCY9j3i9WPdtwR4889lcnlkzxHP9L1HKdb3nYDlz7Mk3xAj992-ODoKsXNDSxZCxxdN0PVKX8UM-A8oLHND8ww-Cx0ta03kw3dEJ-YiV1IgtaL7ANRCDKBWIQss4AAZRgKQlTgABJbgMGCV5xEod1uCbLQ4CgV4XhCARv32AShNEAAeQg0AgDBGBjAA+PoeTUvEAPTccwKEABtAAGABdVd12bBClAs-tU0ApAbMneznKsJ8Xw8uAvKsocryVQKXNgvdPPbZiMOw91PTCrzktfKibQypKDTI192M4hDkiAA) | [Challenge](test/typescript/readme.md)
|
|
119
115
|
|
|
116
|
+
TypeBox includes a runtime scripting engine that can transform TypeScript definitions into JSON Schema. The engine is implemented symmetrically at runtime and inside TypeScript's type system. It supports many programmable type-level constructs such as Conditional, Mapped, Indexed, Generic, Distributive Conditional, and more. The engine is designed for TypeScript 7 but is supported in TypeScript 5 and above.
|
|
120
117
|
|
|
121
118
|
### Example
|
|
122
119
|
|
|
123
|
-
|
|
120
|
+
Syntax highlighting is available via the [Visual Studio Marketplace](https://marketplace.visualstudio.com/items?itemName=sinclairzx81.typebox-script)
|
|
124
121
|
|
|
125
122
|
```typescript
|
|
126
123
|
// Module
|
|
127
124
|
const Math = Type.Script(`
|
|
128
125
|
type Vector2 = { x: number, y: number }
|
|
129
|
-
type Vector3 =
|
|
130
|
-
type Vector4 =
|
|
126
|
+
type Vector3 = { x: number, y: number, z: number }
|
|
127
|
+
type Vector4 = { x: number, y: number, z: number, w: number }
|
|
131
128
|
`)
|
|
132
129
|
|
|
133
130
|
// Dependent Module
|
|
134
|
-
const { Mesh } = Type.Script(
|
|
131
|
+
const { Mesh } = Type.Script(Math, `
|
|
135
132
|
type Vertex = {
|
|
136
133
|
position: Vector4,
|
|
137
134
|
normal: Vector3,
|
|
@@ -298,29 +295,29 @@ The following table shows compile performance for various JSON Schema structures
|
|
|
298
295
|
┌──────────────────────┬─────────────┬─────────────┐
|
|
299
296
|
│ Compile │ TB1X │ AJV8 │
|
|
300
297
|
├──────────────────────┼─────────────┼─────────────┤
|
|
301
|
-
│ Boolean │
|
|
302
|
-
│ Number │
|
|
303
|
-
│ String │
|
|
304
|
-
│ Null │
|
|
305
|
-
│ Literal_String │
|
|
306
|
-
│ Literal_Number │
|
|
307
|
-
│ Literal_Boolean │
|
|
308
|
-
│ Pattern │
|
|
309
|
-
│ Object_Open │
|
|
310
|
-
│ Object_Close │
|
|
311
|
-
│ Object_Vector3 │
|
|
312
|
-
│ Object_Basis3 │
|
|
313
|
-
│ Intersect_And │
|
|
314
|
-
│ Intersect_Structural │
|
|
315
|
-
│ Union_Or │
|
|
316
|
-
│ Union_Structural │
|
|
317
|
-
│ Tuple_Values │
|
|
318
|
-
│ Tuple_Objects │
|
|
319
|
-
│ Array_Numbers_4 │
|
|
320
|
-
│ Array_Numbers_8 │
|
|
321
|
-
│ Array_Numbers_16 │
|
|
322
|
-
│ Array_Objects_Open │
|
|
323
|
-
│ Array_Objects_Close │
|
|
298
|
+
│ Boolean │ 39.7K ops/s │ 6.8K ops/s │
|
|
299
|
+
│ Number │ 86.2K ops/s │ 7.5K ops/s │
|
|
300
|
+
│ String │ 82.6K ops/s │ 8.2K ops/s │
|
|
301
|
+
│ Null │ 62K ops/s │ 7.3K ops/s │
|
|
302
|
+
│ Literal_String │ 72.1K ops/s │ 5.7K ops/s │
|
|
303
|
+
│ Literal_Number │ 72.7K ops/s │ 6.9K ops/s │
|
|
304
|
+
│ Literal_Boolean │ 80.9K ops/s │ 7K ops/s │
|
|
305
|
+
│ Pattern │ 38.7K ops/s │ 5.7K ops/s │
|
|
306
|
+
│ Object_Open │ 16.3K ops/s │ 1.3K ops/s │
|
|
307
|
+
│ Object_Close │ 15.7K ops/s │ 952 ops/s │
|
|
308
|
+
│ Object_Vector3 │ 40.2K ops/s │ 3.2K ops/s │
|
|
309
|
+
│ Object_Basis3 │ 16.1K ops/s │ 834 ops/s │
|
|
310
|
+
│ Intersect_And │ 45.7K ops/s │ 3.5K ops/s │
|
|
311
|
+
│ Intersect_Structural │ 21K ops/s │ 1.6K ops/s │
|
|
312
|
+
│ Union_Or │ 45.1K ops/s │ 3.4K ops/s │
|
|
313
|
+
│ Union_Structural │ 27.6K ops/s │ 2K ops/s │
|
|
314
|
+
│ Tuple_Values │ 14.7K ops/s │ 2K ops/s │
|
|
315
|
+
│ Tuple_Objects │ 3.7K ops/s │ 380 ops/s │
|
|
316
|
+
│ Array_Numbers_4 │ 73.6K ops/s │ 4.3K ops/s │
|
|
317
|
+
│ Array_Numbers_8 │ 50.9K ops/s │ 3.8K ops/s │
|
|
318
|
+
│ Array_Numbers_16 │ 85K ops/s │ 3.9K ops/s │
|
|
319
|
+
│ Array_Objects_Open │ 18.9K ops/s │ 789 ops/s │
|
|
320
|
+
│ Array_Objects_Close │ 17.9K ops/s │ 909 ops/s │
|
|
324
321
|
└──────────────────────┴─────────────┴─────────────┘
|
|
325
322
|
```
|
|
326
323
|
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/matrix",
|
|
3
|
-
"version": "2026.7.2-beta.
|
|
3
|
+
"version": "2026.7.2-beta.4",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@openclaw/matrix",
|
|
9
|
-
"version": "2026.7.2-beta.
|
|
9
|
+
"version": "2026.7.2-beta.4",
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"@matrix-org/matrix-sdk-crypto-nodejs": "0.6.1",
|
|
12
12
|
"@matrix-org/matrix-sdk-crypto-wasm": "18.3.1",
|
|
13
13
|
"fake-indexeddb": "6.2.5",
|
|
14
14
|
"markdown-it": "14.3.0",
|
|
15
15
|
"matrix-js-sdk": "41.9.0-rc.0",
|
|
16
|
-
"music-metadata": "11.
|
|
17
|
-
"typebox": "1.3.
|
|
16
|
+
"music-metadata": "11.14.0",
|
|
17
|
+
"typebox": "1.3.6",
|
|
18
18
|
"zod": "4.4.3"
|
|
19
19
|
},
|
|
20
20
|
"peerDependencies": {
|
|
21
|
-
"openclaw": ">=2026.7.2-beta.
|
|
21
|
+
"openclaw": ">=2026.7.2-beta.4"
|
|
22
22
|
},
|
|
23
23
|
"peerDependenciesMeta": {
|
|
24
24
|
"openclaw": {
|
|
@@ -387,9 +387,9 @@
|
|
|
387
387
|
"license": "MIT"
|
|
388
388
|
},
|
|
389
389
|
"node_modules/music-metadata": {
|
|
390
|
-
"version": "11.
|
|
391
|
-
"resolved": "https://registry.npmjs.org/music-metadata/-/music-metadata-11.
|
|
392
|
-
"integrity": "sha512-
|
|
390
|
+
"version": "11.14.0",
|
|
391
|
+
"resolved": "https://registry.npmjs.org/music-metadata/-/music-metadata-11.14.0.tgz",
|
|
392
|
+
"integrity": "sha512-RyOSq98kuVfXB1emJ+NjBF0av8Ph3oBuqNy+Z5sFFfLhjYrkBQEB53V8u+U0RNTVwNo20WoPUwNkfKwZfrOqmQ==",
|
|
393
393
|
"funding": [
|
|
394
394
|
{
|
|
395
395
|
"type": "github",
|
|
@@ -509,9 +509,9 @@
|
|
|
509
509
|
}
|
|
510
510
|
},
|
|
511
511
|
"node_modules/typebox": {
|
|
512
|
-
"version": "1.3.
|
|
513
|
-
"resolved": "https://registry.npmjs.org/typebox/-/typebox-1.3.
|
|
514
|
-
"integrity": "sha512-
|
|
512
|
+
"version": "1.3.6",
|
|
513
|
+
"resolved": "https://registry.npmjs.org/typebox/-/typebox-1.3.6.tgz",
|
|
514
|
+
"integrity": "sha512-Sc8RA0NCMEFmApHNU9ZMzqcpQj46She44J8ffpLM/bdhLNUZKq7DJumcLcsFx1gRmDfQPgCgOmFFJ7rcnfWNyA==",
|
|
515
515
|
"license": "MIT"
|
|
516
516
|
},
|
|
517
517
|
"node_modules/uc.micro": {
|
package/openclaw.plugin.json
CHANGED
|
@@ -17,20 +17,6 @@
|
|
|
17
17
|
"channels": [
|
|
18
18
|
"matrix"
|
|
19
19
|
],
|
|
20
|
-
"channelEnvVars": {
|
|
21
|
-
"matrix": [
|
|
22
|
-
"MATRIX_HOMESERVER",
|
|
23
|
-
"MATRIX_USER_ID",
|
|
24
|
-
"MATRIX_ACCESS_TOKEN",
|
|
25
|
-
"MATRIX_PASSWORD",
|
|
26
|
-
"MATRIX_DEVICE_ID",
|
|
27
|
-
"MATRIX_DEVICE_NAME",
|
|
28
|
-
"MATRIX_OPS_HOMESERVER",
|
|
29
|
-
"MATRIX_OPS_ACCESS_TOKEN",
|
|
30
|
-
"MATRIX_OPS_DEVICE_ID",
|
|
31
|
-
"MATRIX_OPS_DEVICE_NAME"
|
|
32
|
-
]
|
|
33
|
-
},
|
|
34
20
|
"configSchema": {
|
|
35
21
|
"type": "object",
|
|
36
22
|
"additionalProperties": false,
|
|
@@ -430,6 +416,13 @@
|
|
|
430
416
|
},
|
|
431
417
|
"toolProgress": {
|
|
432
418
|
"type": "boolean"
|
|
419
|
+
},
|
|
420
|
+
"commandText": {
|
|
421
|
+
"type": "string",
|
|
422
|
+
"enum": [
|
|
423
|
+
"raw",
|
|
424
|
+
"status"
|
|
425
|
+
]
|
|
433
426
|
}
|
|
434
427
|
},
|
|
435
428
|
"additionalProperties": false
|
|
@@ -513,12 +506,6 @@
|
|
|
513
506
|
"isolated",
|
|
514
507
|
"fork"
|
|
515
508
|
]
|
|
516
|
-
},
|
|
517
|
-
"spawnSubagentSessions": {
|
|
518
|
-
"type": "boolean"
|
|
519
|
-
},
|
|
520
|
-
"spawnAcpSessions": {
|
|
521
|
-
"type": "boolean"
|
|
522
509
|
}
|
|
523
510
|
},
|
|
524
511
|
"additionalProperties": false
|