@agentdock/wire 0.0.93 → 0.0.95
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/accountLanguage.d.ts +26 -0
- package/dist/accountLanguage.js +1 -0
- package/dist/activityPreferences.d.ts +0 -2
- package/dist/agentCapabilities.d.ts +20 -24
- package/dist/agentCapabilities.js +1 -1
- package/dist/agentCommonEnv.d.ts +0 -9
- package/dist/agentInstallGuide.d.ts +0 -7
- package/dist/agentRuntimeSettings.d.ts +139 -0
- package/dist/agentRuntimeSettings.js +1 -0
- package/dist/bgTask.d.ts +13 -24
- package/dist/checkpointSchemas.d.ts +1 -2
- package/dist/controlLevel.d.ts +1 -9
- package/dist/edition.d.ts +0 -1
- package/dist/enterpriseGateway.d.ts +214 -0
- package/dist/enterpriseGateway.js +1 -0
- package/dist/enterprisePolicy.d.ts +1599 -0
- package/dist/enterprisePolicy.js +1 -0
- package/dist/enterprisePolicyExports.d.ts +2 -0
- package/dist/enterprisePolicyExports.js +1 -0
- package/dist/enterpriseRuntime.d.ts +317 -0
- package/dist/enterpriseRuntime.js +1 -0
- package/dist/envelope.d.ts +63 -60
- package/dist/errorMessage.d.ts +0 -1
- package/dist/events.d.ts +73 -77
- package/dist/events.js +1 -1
- package/dist/features.d.ts +19 -30
- package/dist/features.js +1 -1
- package/dist/feedback.d.ts +21 -22
- package/dist/fileWhitelist.d.ts +7 -39
- package/dist/gateway.d.ts +1184 -0
- package/dist/gateway.js +1 -0
- package/dist/goals.d.ts +0 -1
- package/dist/handoffBrief.d.ts +13 -0
- package/dist/handoffBrief.js +52 -0
- package/dist/inboundEvents.d.ts +83 -56
- package/dist/inboundEvents.js +1 -1
- package/dist/index.d.ts +25 -16
- package/dist/index.js +1 -1
- package/dist/interactionEvents.d.ts +51 -59
- package/dist/legacyProtocol.d.ts +36 -42
- package/dist/license.d.ts +36 -37
- package/dist/machine.d.ts +54 -53
- package/dist/machine.js +1 -1
- package/dist/messageMeta.d.ts +20 -20
- package/dist/messageMeta.js +1 -1
- package/dist/messages.d.ts +338 -223
- package/dist/messages.js +1 -1
- package/dist/notification.d.ts +2 -3
- package/dist/ops.d.ts +9 -27
- package/dist/pairing.d.ts +9 -49
- package/dist/permissionSubject.d.ts +3 -26
- package/dist/protocol.d.ts +0 -6
- package/dist/rpc.d.ts +957 -196
- package/dist/rpc.js +1 -1
- package/dist/scheduledTasks.d.ts +59 -60
- package/dist/semver.d.ts +3 -22
- package/dist/sessionBtw.d.ts +152 -0
- package/dist/sessionBtw.js +1 -0
- package/dist/sessionResult.d.ts +21 -27
- package/dist/sessionTitle.d.ts +9 -0
- package/dist/sessionTitle.js +1 -0
- package/dist/socketEvents.d.ts +12 -4
- package/dist/socketEvents.js +1 -1
- package/dist/sourceMetadata.d.ts +3 -16
- package/dist/spawnError.d.ts +7 -14
- package/dist/stats.d.ts +99 -68
- package/dist/stats.js +1 -1
- package/dist/sync.d.ts +285 -51
- package/dist/sync.js +1 -1
- package/dist/taskResult.d.ts +3 -20
- package/dist/telemetry.d.ts +1 -11
- package/dist/utils.d.ts +0 -1
- package/dist/workItems.d.ts +321 -0
- package/dist/workItems.js +1 -0
- package/package.json +1 -1
package/dist/fileWhitelist.d.ts
CHANGED
|
@@ -1,55 +1,23 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* File upload whitelist — single source of truth for personal-edition file
|
|
3
|
-
* upload validation, shared across web (PWA client), server (relay preflight),
|
|
4
|
-
* and daemon (receiver second-check).
|
|
5
|
-
*
|
|
6
|
-
* Contains ONLY isomorphic data + pure byte logic (no node:/DOM deps):
|
|
7
|
-
* - per-category extension lists and max sizes
|
|
8
|
-
* - blocked (executable) extensions
|
|
9
|
-
* - magic-byte signatures
|
|
10
|
-
* - category resolution + magic-byte verification over Uint8Array
|
|
11
|
-
*
|
|
12
|
-
* File reading differs per platform (File/FileReader on web, Buffer on
|
|
13
|
-
* server/daemon), so callers read the head bytes themselves and pass a
|
|
14
|
-
* Uint8Array in. Buffer is a Uint8Array subclass, so `verifyMagicBytes`
|
|
15
|
-
* works unchanged on both.
|
|
16
|
-
*/
|
|
17
1
|
export type FileCategory = 'text' | 'document' | 'code' | 'image';
|
|
18
2
|
export declare const TEXT_EXTS: readonly string[];
|
|
19
3
|
export declare const CODE_EXTS: readonly string[];
|
|
20
4
|
export declare const DOC_EXTS: readonly string[];
|
|
21
5
|
export declare const IMG_EXTS: readonly string[];
|
|
22
|
-
|
|
6
|
+
|
|
23
7
|
export declare const FILE_CATEGORY_MAX_SIZE: Readonly<Record<FileCategory, number>>;
|
|
24
|
-
|
|
8
|
+
|
|
25
9
|
export declare const BLOCKED_EXTS: ReadonlySet<string>;
|
|
26
|
-
|
|
10
|
+
|
|
27
11
|
export declare const ALLOWED_EXTENSIONS: ReadonlySet<string>;
|
|
28
|
-
|
|
29
|
-
* Binary magic-byte signatures keyed by extension. `subSig` is checked at an
|
|
30
|
-
* offset immediately after `sig` (used by WEBP's RIFF...WEBP layout).
|
|
31
|
-
* Text-based formats (text/code/svg) are not here — they use UTF-8 validation.
|
|
32
|
-
*/
|
|
12
|
+
|
|
33
13
|
export declare const FILE_SIGNATURES: Readonly<Record<string, {
|
|
34
14
|
sig: number[];
|
|
35
15
|
subSigAt?: number;
|
|
36
16
|
subSig?: number[];
|
|
37
17
|
}>>;
|
|
38
|
-
|
|
18
|
+
|
|
39
19
|
export declare function getFileExt(filename: string): string;
|
|
40
|
-
|
|
41
|
-
* Resolve the whitelist category for an extension.
|
|
42
|
-
* Returns null for blocked, unknown, or extension-less files.
|
|
43
|
-
*/
|
|
20
|
+
|
|
44
21
|
export declare function resolveFileCategory(ext: string): FileCategory | null;
|
|
45
|
-
|
|
46
|
-
* Verify head bytes match the expected type for `ext`.
|
|
47
|
-
* - text/code: valid UTF-8
|
|
48
|
-
* - svg: XML text sniff
|
|
49
|
-
* - binary formats: magic-byte signature (+ optional sub-signature)
|
|
50
|
-
*
|
|
51
|
-
* `ext` must already be lowercased (use getFileExt). Buffer is a Uint8Array
|
|
52
|
-
* subclass, so server/daemon can pass a Buffer directly.
|
|
53
|
-
*/
|
|
22
|
+
|
|
54
23
|
export declare function verifyMagicBytes(head: Uint8Array, ext: string): boolean;
|
|
55
|
-
//# sourceMappingURL=fileWhitelist.d.ts.map
|