@tangle-network/agent-app 0.60.115 → 0.60.116
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/VaultPane-OWOPGPXP.js +7 -0
- package/dist/assistant/index.js +8 -8
- package/dist/chat-react/index.js +2 -2
- package/dist/chat-routes/index.js +1 -1
- package/dist/{chunk-Y4WLCFDZ.js → chunk-2FLSODOX.js} +6 -6
- package/dist/chunk-BTEVD7HG.js +198 -0
- package/dist/chunk-BTEVD7HG.js.map +1 -0
- package/dist/chunk-FVI2MHUL.js +1152 -0
- package/dist/chunk-FVI2MHUL.js.map +1 -0
- package/dist/{chunk-RQSYR4AV.js → chunk-GHUQ5HXU.js} +4 -4
- package/dist/{chunk-OGDEUCNW.js → chunk-JGLK5RDK.js} +176 -1
- package/dist/chunk-JGLK5RDK.js.map +1 -0
- package/dist/{chunk-AB63T2LM.js → chunk-KBJZMR4E.js} +8 -1
- package/dist/chunk-KBJZMR4E.js.map +1 -0
- package/dist/{chunk-RQSNTJTW.js → chunk-MO7PDQRZ.js} +526 -187
- package/dist/chunk-MO7PDQRZ.js.map +1 -0
- package/dist/{chunk-MEUNTJL5.js → chunk-N3CYCSKK.js} +6 -1
- package/dist/chunk-N3CYCSKK.js.map +1 -0
- package/dist/{chunk-56GPDCOJ.js → chunk-TSGWACTC.js} +5 -5
- package/dist/journeys/cli.d.ts +2 -0
- package/dist/journeys/cli.js +165 -0
- package/dist/journeys/cli.js.map +1 -0
- package/dist/journeys/config.d.ts +96 -0
- package/dist/journeys/index.d.ts +18 -0
- package/dist/journeys/index.js +731 -0
- package/dist/journeys/index.js.map +1 -0
- package/dist/journeys/journey.d.ts +173 -0
- package/dist/journeys/page-reading.d.ts +42 -0
- package/dist/journeys/report.d.ts +51 -0
- package/dist/journeys/score.d.ts +115 -0
- package/dist/journeys/scrub.d.ts +21 -0
- package/dist/journeys/send.d.ts +46 -0
- package/dist/journeys/session.d.ts +27 -0
- package/dist/journeys/trace-zip.d.ts +28 -0
- package/dist/journeys/video.d.ts +53 -0
- package/dist/public-consultation/index.d.ts +2 -2
- package/dist/sandbox/index.d.ts +2 -0
- package/dist/sandbox/index.js +13 -1
- package/dist/sandbox/sandbox-exec-tool.d.ts +68 -0
- package/dist/sandbox/sandbox-run-tool.d.ts +70 -0
- package/dist/studio-react/index.js +2 -2
- package/dist/teams/index.js +10 -6
- package/dist/teams/invitations-api.js +6 -3
- package/dist/teams/invitations-api.js.map +1 -1
- package/dist/teams/invitations.d.ts +4 -0
- package/dist/teams/members-api.js +2 -1
- package/dist/teams-react/components/InviteForm.d.ts +20 -0
- package/dist/teams-react/contracts.d.ts +2 -0
- package/dist/teams-react/index.js +196 -217
- package/dist/teams-react/index.js.map +1 -1
- package/dist/vault/VaultContentResults.d.ts +29 -0
- package/dist/vault/VaultHistoryPanel.d.ts +20 -0
- package/dist/vault/VaultPane.d.ts +3 -1
- package/dist/vault/contracts.d.ts +38 -0
- package/dist/vault/index.js +1 -1
- package/dist/vault/lazy.js +1 -1
- package/dist/web-react/index.js +22 -22
- package/dist/workspace-export/index.js +4 -193
- package/dist/workspace-export/index.js.map +1 -1
- package/dist/workspace-react/index.js +9 -7
- package/dist/workspace-react/index.js.map +1 -1
- package/dist/workspace-react/workspace-list.d.ts +7 -1
- package/package.json +8 -2
- package/dist/VaultPane-JUSNGOV7.js +0 -7
- package/dist/chunk-AB63T2LM.js.map +0 -1
- package/dist/chunk-MEUNTJL5.js.map +0 -1
- package/dist/chunk-OGDEUCNW.js.map +0 -1
- package/dist/chunk-RQSNTJTW.js.map +0 -1
- /package/dist/{VaultPane-JUSNGOV7.js.map → VaultPane-OWOPGPXP.js.map} +0 -0
- /package/dist/{chunk-Y4WLCFDZ.js.map → chunk-2FLSODOX.js.map} +0 -0
- /package/dist/{chunk-RQSYR4AV.js.map → chunk-GHUQ5HXU.js.map} +0 -0
- /package/dist/{chunk-56GPDCOJ.js.map → chunk-TSGWACTC.js.map} +0 -0
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import {
|
|
2
|
+
crc32Update,
|
|
3
|
+
createSha256
|
|
4
|
+
} from "../chunk-BTEVD7HG.js";
|
|
1
5
|
import {
|
|
2
6
|
assertSafeKeySegment,
|
|
3
7
|
signObjectUrl,
|
|
@@ -5,199 +9,6 @@ import {
|
|
|
5
9
|
} from "../chunk-6DOQ6T2O.js";
|
|
6
10
|
import "../chunk-S5SRJJQG.js";
|
|
7
11
|
|
|
8
|
-
// src/workspace-export/checksum.ts
|
|
9
|
-
var CRC_TABLE = (() => {
|
|
10
|
-
const table = new Uint32Array(256);
|
|
11
|
-
for (let n = 0; n < 256; n += 1) {
|
|
12
|
-
let c = n;
|
|
13
|
-
for (let k = 0; k < 8; k += 1) c = c & 1 ? 3988292384 ^ c >>> 1 : c >>> 1;
|
|
14
|
-
table[n] = c >>> 0;
|
|
15
|
-
}
|
|
16
|
-
return table;
|
|
17
|
-
})();
|
|
18
|
-
function crc32Update(crc, bytes) {
|
|
19
|
-
let c = (crc ^ 4294967295) >>> 0;
|
|
20
|
-
for (let i = 0; i < bytes.length; i += 1) c = (CRC_TABLE[(c ^ bytes[i]) & 255] ^ c >>> 8) >>> 0;
|
|
21
|
-
return (c ^ 4294967295) >>> 0;
|
|
22
|
-
}
|
|
23
|
-
function toHex(bytes) {
|
|
24
|
-
let out = "";
|
|
25
|
-
for (const b of bytes) out += b.toString(16).padStart(2, "0");
|
|
26
|
-
return out;
|
|
27
|
-
}
|
|
28
|
-
function createSha256() {
|
|
29
|
-
const DigestStream = globalThis.crypto.DigestStream;
|
|
30
|
-
if (DigestStream) {
|
|
31
|
-
const stream = new DigestStream("SHA-256");
|
|
32
|
-
const writer = stream.getWriter();
|
|
33
|
-
return {
|
|
34
|
-
update: (bytes) => writer.write(bytes),
|
|
35
|
-
async digestHex() {
|
|
36
|
-
await writer.close();
|
|
37
|
-
return toHex(new Uint8Array(await stream.digest));
|
|
38
|
-
}
|
|
39
|
-
};
|
|
40
|
-
}
|
|
41
|
-
const pure = new PureSha256();
|
|
42
|
-
return {
|
|
43
|
-
async update(bytes) {
|
|
44
|
-
pure.update(bytes);
|
|
45
|
-
},
|
|
46
|
-
async digestHex() {
|
|
47
|
-
return toHex(pure.digest());
|
|
48
|
-
}
|
|
49
|
-
};
|
|
50
|
-
}
|
|
51
|
-
var K = new Uint32Array([
|
|
52
|
-
1116352408,
|
|
53
|
-
1899447441,
|
|
54
|
-
3049323471,
|
|
55
|
-
3921009573,
|
|
56
|
-
961987163,
|
|
57
|
-
1508970993,
|
|
58
|
-
2453635748,
|
|
59
|
-
2870763221,
|
|
60
|
-
3624381080,
|
|
61
|
-
310598401,
|
|
62
|
-
607225278,
|
|
63
|
-
1426881987,
|
|
64
|
-
1925078388,
|
|
65
|
-
2162078206,
|
|
66
|
-
2614888103,
|
|
67
|
-
3248222580,
|
|
68
|
-
3835390401,
|
|
69
|
-
4022224774,
|
|
70
|
-
264347078,
|
|
71
|
-
604807628,
|
|
72
|
-
770255983,
|
|
73
|
-
1249150122,
|
|
74
|
-
1555081692,
|
|
75
|
-
1996064986,
|
|
76
|
-
2554220882,
|
|
77
|
-
2821834349,
|
|
78
|
-
2952996808,
|
|
79
|
-
3210313671,
|
|
80
|
-
3336571891,
|
|
81
|
-
3584528711,
|
|
82
|
-
113926993,
|
|
83
|
-
338241895,
|
|
84
|
-
666307205,
|
|
85
|
-
773529912,
|
|
86
|
-
1294757372,
|
|
87
|
-
1396182291,
|
|
88
|
-
1695183700,
|
|
89
|
-
1986661051,
|
|
90
|
-
2177026350,
|
|
91
|
-
2456956037,
|
|
92
|
-
2730485921,
|
|
93
|
-
2820302411,
|
|
94
|
-
3259730800,
|
|
95
|
-
3345764771,
|
|
96
|
-
3516065817,
|
|
97
|
-
3600352804,
|
|
98
|
-
4094571909,
|
|
99
|
-
275423344,
|
|
100
|
-
430227734,
|
|
101
|
-
506948616,
|
|
102
|
-
659060556,
|
|
103
|
-
883997877,
|
|
104
|
-
958139571,
|
|
105
|
-
1322822218,
|
|
106
|
-
1537002063,
|
|
107
|
-
1747873779,
|
|
108
|
-
1955562222,
|
|
109
|
-
2024104815,
|
|
110
|
-
2227730452,
|
|
111
|
-
2361852424,
|
|
112
|
-
2428436474,
|
|
113
|
-
2756734187,
|
|
114
|
-
3204031479,
|
|
115
|
-
3329325298
|
|
116
|
-
]);
|
|
117
|
-
var PureSha256 = class {
|
|
118
|
-
h = new Uint32Array([
|
|
119
|
-
1779033703,
|
|
120
|
-
3144134277,
|
|
121
|
-
1013904242,
|
|
122
|
-
2773480762,
|
|
123
|
-
1359893119,
|
|
124
|
-
2600822924,
|
|
125
|
-
528734635,
|
|
126
|
-
1541459225
|
|
127
|
-
]);
|
|
128
|
-
block = new Uint8Array(64);
|
|
129
|
-
blockLength = 0;
|
|
130
|
-
totalLength = 0;
|
|
131
|
-
w = new Uint32Array(64);
|
|
132
|
-
update(bytes) {
|
|
133
|
-
this.totalLength += bytes.length;
|
|
134
|
-
let offset = 0;
|
|
135
|
-
while (offset < bytes.length) {
|
|
136
|
-
const take = Math.min(64 - this.blockLength, bytes.length - offset);
|
|
137
|
-
this.block.set(bytes.subarray(offset, offset + take), this.blockLength);
|
|
138
|
-
this.blockLength += take;
|
|
139
|
-
offset += take;
|
|
140
|
-
if (this.blockLength === 64) {
|
|
141
|
-
this.compress(this.block);
|
|
142
|
-
this.blockLength = 0;
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
digest() {
|
|
147
|
-
const bitLength = this.totalLength * 8;
|
|
148
|
-
const padLength = this.blockLength < 56 ? 56 - this.blockLength : 120 - this.blockLength;
|
|
149
|
-
const pad = new Uint8Array(padLength + 8);
|
|
150
|
-
pad[0] = 128;
|
|
151
|
-
const view = new DataView(pad.buffer);
|
|
152
|
-
view.setUint32(padLength, Math.floor(bitLength / 4294967296));
|
|
153
|
-
view.setUint32(padLength + 4, bitLength >>> 0);
|
|
154
|
-
const total = this.totalLength;
|
|
155
|
-
this.update(pad);
|
|
156
|
-
this.totalLength = total;
|
|
157
|
-
const out = new Uint8Array(32);
|
|
158
|
-
const outView = new DataView(out.buffer);
|
|
159
|
-
for (let i = 0; i < 8; i += 1) outView.setUint32(i * 4, this.h[i]);
|
|
160
|
-
return out;
|
|
161
|
-
}
|
|
162
|
-
compress(chunk) {
|
|
163
|
-
const w = this.w;
|
|
164
|
-
const view = new DataView(chunk.buffer, chunk.byteOffset, 64);
|
|
165
|
-
for (let i = 0; i < 16; i += 1) w[i] = view.getUint32(i * 4);
|
|
166
|
-
for (let i = 16; i < 64; i += 1) {
|
|
167
|
-
const a2 = w[i - 15];
|
|
168
|
-
const b2 = w[i - 2];
|
|
169
|
-
const s0 = (a2 >>> 7 | a2 << 25) ^ (a2 >>> 18 | a2 << 14) ^ a2 >>> 3;
|
|
170
|
-
const s1 = (b2 >>> 17 | b2 << 15) ^ (b2 >>> 19 | b2 << 13) ^ b2 >>> 10;
|
|
171
|
-
w[i] = w[i - 16] + s0 + w[i - 7] + s1 >>> 0;
|
|
172
|
-
}
|
|
173
|
-
let [a, b, c, d, e, f, g, h] = this.h;
|
|
174
|
-
for (let i = 0; i < 64; i += 1) {
|
|
175
|
-
const S1 = (e >>> 6 | e << 26) ^ (e >>> 11 | e << 21) ^ (e >>> 25 | e << 7);
|
|
176
|
-
const ch = e & f ^ ~e & g;
|
|
177
|
-
const t1 = h + S1 + ch + K[i] + w[i] >>> 0;
|
|
178
|
-
const S0 = (a >>> 2 | a << 30) ^ (a >>> 13 | a << 19) ^ (a >>> 22 | a << 10);
|
|
179
|
-
const maj = a & b ^ a & c ^ b & c;
|
|
180
|
-
const t2 = S0 + maj >>> 0;
|
|
181
|
-
h = g;
|
|
182
|
-
g = f;
|
|
183
|
-
f = e;
|
|
184
|
-
e = d + t1 >>> 0;
|
|
185
|
-
d = c;
|
|
186
|
-
c = b;
|
|
187
|
-
b = a;
|
|
188
|
-
a = t1 + t2 >>> 0;
|
|
189
|
-
}
|
|
190
|
-
this.h[0] = this.h[0] + a >>> 0;
|
|
191
|
-
this.h[1] = this.h[1] + b >>> 0;
|
|
192
|
-
this.h[2] = this.h[2] + c >>> 0;
|
|
193
|
-
this.h[3] = this.h[3] + d >>> 0;
|
|
194
|
-
this.h[4] = this.h[4] + e >>> 0;
|
|
195
|
-
this.h[5] = this.h[5] + f >>> 0;
|
|
196
|
-
this.h[6] = this.h[6] + g >>> 0;
|
|
197
|
-
this.h[7] = this.h[7] + h >>> 0;
|
|
198
|
-
}
|
|
199
|
-
};
|
|
200
|
-
|
|
201
12
|
// src/workspace-export/secrets.ts
|
|
202
13
|
var REDACTED = "[redacted]";
|
|
203
14
|
var MASK_BYTE = 42;
|