@nocha/cli 4.6.1 → 4.13.0
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 +32 -0
- package/dist/NOCHA.schema.json +1670 -3
- package/dist/build-info.json +4 -4
- package/dist/dev-offline-compiler.js +682 -7
- package/dist/dev-offline-runner.js +48 -6
- package/dist/development-live-host.js +13 -1
- package/dist/nocha.js +804 -60
- package/dist/reference-integrity.json +135 -101
- package/dist/references/api/README.md +24 -23
- package/dist/references/api/signatures.md +23 -2
- package/dist/references/base/server/tooling/sdk-sources.ts +2 -2
- package/dist/references/base/src/platform/failure.ts +1 -1
- package/dist/references/base/src/types/nocha/assets-media.d.ts +8 -0
- package/dist/references/base/src/types/nocha/assets-operations.d.ts +3 -0
- package/dist/references/base/src/types/nocha/capability-deadlines.d.ts +6 -0
- package/dist/references/base/src/types/nocha/capability-needs.d.ts +7 -0
- package/dist/references/base/src/types/nocha/capability-operations.d.ts +3 -1
- package/dist/references/base/src/types/nocha/drive-operations.d.ts +56 -0
- package/dist/references/base/src/types/nocha/drive-types.d.ts +77 -0
- package/dist/references/base/src/types/nocha/drive.d.ts +54 -0
- package/dist/references/base/src/types/nocha/error-codes.d.ts +9 -0
- package/dist/references/base/src/types/nocha/execution.d.ts +1 -1
- package/dist/references/base/src/types/nocha/index.d.ts +4 -0
- package/dist/references/base/src/types/nocha/media-read.d.ts +29 -0
- package/dist/references/base/src/types/nocha/operation-waiting.d.ts +8 -0
- package/dist/references/base/src/types/nocha/operation-wire-types.d.ts +30 -2
- package/dist/references/base/src/types/nocha/protocol.d.ts +7 -3
- package/dist/references/base/src/types/nocha/types/ai-wire.d.ts +40 -1
- package/dist/references/base/src/types/nocha/types/ai.d.ts +1 -1
- package/dist/references/base/src/types/nocha/types/assets-wire.d.ts +9 -1
- package/dist/references/base/src/types/nocha/types/assets.d.ts +22 -5
- package/dist/references/base/src/types/nocha/types/video-sdk-wire.d.ts +174 -13
- package/dist/references/base/src/types/nocha/types/video-wire.d.ts +120 -7
- package/dist/references/base/src/types/nocha/types/video.d.ts +5 -2
- package/dist/references/base/src/types/nocha/video-analysis.d.ts +10 -0
- package/dist/references/base/src/types/nocha/video-media.d.ts +1 -3
- package/dist/references/duel/server/tooling/sdk-sources.ts +2 -2
- package/dist/references/duel/src/types/nocha/assets-media.d.ts +8 -0
- package/dist/references/duel/src/types/nocha/assets-operations.d.ts +3 -0
- package/dist/references/duel/src/types/nocha/capability-deadlines.d.ts +6 -0
- package/dist/references/duel/src/types/nocha/capability-needs.d.ts +7 -0
- package/dist/references/duel/src/types/nocha/capability-operations.d.ts +3 -1
- package/dist/references/duel/src/types/nocha/drive-operations.d.ts +56 -0
- package/dist/references/duel/src/types/nocha/drive-types.d.ts +77 -0
- package/dist/references/duel/src/types/nocha/drive.d.ts +54 -0
- package/dist/references/duel/src/types/nocha/error-codes.d.ts +9 -0
- package/dist/references/duel/src/types/nocha/execution.d.ts +1 -1
- package/dist/references/duel/src/types/nocha/index.d.ts +4 -0
- package/dist/references/duel/src/types/nocha/media-read.d.ts +29 -0
- package/dist/references/duel/src/types/nocha/operation-waiting.d.ts +8 -0
- package/dist/references/duel/src/types/nocha/operation-wire-types.d.ts +30 -2
- package/dist/references/duel/src/types/nocha/protocol.d.ts +7 -3
- package/dist/references/duel/src/types/nocha/types/ai-wire.d.ts +40 -1
- package/dist/references/duel/src/types/nocha/types/ai.d.ts +1 -1
- package/dist/references/duel/src/types/nocha/types/assets-wire.d.ts +9 -1
- package/dist/references/duel/src/types/nocha/types/assets.d.ts +22 -5
- package/dist/references/duel/src/types/nocha/types/video-sdk-wire.d.ts +174 -13
- package/dist/references/duel/src/types/nocha/types/video-wire.d.ts +120 -7
- package/dist/references/duel/src/types/nocha/types/video.d.ts +5 -2
- package/dist/references/duel/src/types/nocha/video-analysis.d.ts +10 -0
- package/dist/references/duel/src/types/nocha/video-media.d.ts +1 -3
- package/dist/references/recipes/README.md +1 -0
- package/dist/references/recipes/backend-transaction/src/platform/failure.ts +1 -1
- package/dist/references/recipes/drive/NOCHA.json +24 -0
- package/dist/references/recipes/drive/README.md +15 -0
- package/dist/references/recipes/drive/SKILL.md +24 -0
- package/dist/references/recipes/drive/recipe.ts +34 -0
- package/dist/references/recipes/music/README.md +1 -1
- package/dist/references/recipes/types/nocha/assets-media.d.ts +8 -0
- package/dist/references/recipes/types/nocha/assets-operations.d.ts +3 -0
- package/dist/references/recipes/types/nocha/capability-deadlines.d.ts +6 -0
- package/dist/references/recipes/types/nocha/capability-needs.d.ts +7 -0
- package/dist/references/recipes/types/nocha/capability-operations.d.ts +3 -1
- package/dist/references/recipes/types/nocha/drive-operations.d.ts +56 -0
- package/dist/references/recipes/types/nocha/drive-types.d.ts +77 -0
- package/dist/references/recipes/types/nocha/drive.d.ts +54 -0
- package/dist/references/recipes/types/nocha/error-codes.d.ts +9 -0
- package/dist/references/recipes/types/nocha/execution.d.ts +1 -1
- package/dist/references/recipes/types/nocha/index.d.ts +4 -0
- package/dist/references/recipes/types/nocha/media-read.d.ts +29 -0
- package/dist/references/recipes/types/nocha/operation-waiting.d.ts +8 -0
- package/dist/references/recipes/types/nocha/operation-wire-types.d.ts +30 -2
- package/dist/references/recipes/types/nocha/protocol.d.ts +7 -3
- package/dist/references/recipes/types/nocha/types/ai-wire.d.ts +40 -1
- package/dist/references/recipes/types/nocha/types/ai.d.ts +1 -1
- package/dist/references/recipes/types/nocha/types/assets-wire.d.ts +9 -1
- package/dist/references/recipes/types/nocha/types/assets.d.ts +22 -5
- package/dist/references/recipes/types/nocha/types/video-sdk-wire.d.ts +174 -13
- package/dist/references/recipes/types/nocha/types/video-wire.d.ts +120 -7
- package/dist/references/recipes/types/nocha/types/video.d.ts +5 -2
- package/dist/references/recipes/types/nocha/video-analysis.d.ts +10 -0
- package/dist/references/recipes/types/nocha/video-media.d.ts +1 -3
- package/dist/references/stage/server/tooling/sdk-sources.ts +2 -2
- package/dist/references/stage/src/types/nocha/assets-media.d.ts +8 -0
- package/dist/references/stage/src/types/nocha/assets-operations.d.ts +3 -0
- package/dist/references/stage/src/types/nocha/capability-deadlines.d.ts +6 -0
- package/dist/references/stage/src/types/nocha/capability-needs.d.ts +7 -0
- package/dist/references/stage/src/types/nocha/capability-operations.d.ts +3 -1
- package/dist/references/stage/src/types/nocha/drive-operations.d.ts +56 -0
- package/dist/references/stage/src/types/nocha/drive-types.d.ts +77 -0
- package/dist/references/stage/src/types/nocha/drive.d.ts +54 -0
- package/dist/references/stage/src/types/nocha/error-codes.d.ts +9 -0
- package/dist/references/stage/src/types/nocha/execution.d.ts +1 -1
- package/dist/references/stage/src/types/nocha/index.d.ts +4 -0
- package/dist/references/stage/src/types/nocha/media-read.d.ts +29 -0
- package/dist/references/stage/src/types/nocha/operation-waiting.d.ts +8 -0
- package/dist/references/stage/src/types/nocha/operation-wire-types.d.ts +30 -2
- package/dist/references/stage/src/types/nocha/protocol.d.ts +7 -3
- package/dist/references/stage/src/types/nocha/types/ai-wire.d.ts +40 -1
- package/dist/references/stage/src/types/nocha/types/ai.d.ts +1 -1
- package/dist/references/stage/src/types/nocha/types/assets-wire.d.ts +9 -1
- package/dist/references/stage/src/types/nocha/types/assets.d.ts +22 -5
- package/dist/references/stage/src/types/nocha/types/video-sdk-wire.d.ts +174 -13
- package/dist/references/stage/src/types/nocha/types/video-wire.d.ts +120 -7
- package/dist/references/stage/src/types/nocha/types/video.d.ts +5 -2
- package/dist/references/stage/src/types/nocha/video-analysis.d.ts +10 -0
- package/dist/references/stage/src/types/nocha/video-media.d.ts +1 -3
- package/dist/references/workshop/server/tooling/sdk-sources.ts +2 -2
- package/dist/references/workshop/src/types/nocha/assets-media.d.ts +8 -0
- package/dist/references/workshop/src/types/nocha/assets-operations.d.ts +3 -0
- package/dist/references/workshop/src/types/nocha/capability-deadlines.d.ts +6 -0
- package/dist/references/workshop/src/types/nocha/capability-needs.d.ts +7 -0
- package/dist/references/workshop/src/types/nocha/capability-operations.d.ts +3 -1
- package/dist/references/workshop/src/types/nocha/drive-operations.d.ts +56 -0
- package/dist/references/workshop/src/types/nocha/drive-types.d.ts +77 -0
- package/dist/references/workshop/src/types/nocha/drive.d.ts +54 -0
- package/dist/references/workshop/src/types/nocha/error-codes.d.ts +9 -0
- package/dist/references/workshop/src/types/nocha/execution.d.ts +1 -1
- package/dist/references/workshop/src/types/nocha/index.d.ts +4 -0
- package/dist/references/workshop/src/types/nocha/media-read.d.ts +29 -0
- package/dist/references/workshop/src/types/nocha/operation-waiting.d.ts +8 -0
- package/dist/references/workshop/src/types/nocha/operation-wire-types.d.ts +30 -2
- package/dist/references/workshop/src/types/nocha/protocol.d.ts +7 -3
- package/dist/references/workshop/src/types/nocha/types/ai-wire.d.ts +40 -1
- package/dist/references/workshop/src/types/nocha/types/ai.d.ts +1 -1
- package/dist/references/workshop/src/types/nocha/types/assets-wire.d.ts +9 -1
- package/dist/references/workshop/src/types/nocha/types/assets.d.ts +22 -5
- package/dist/references/workshop/src/types/nocha/types/video-sdk-wire.d.ts +174 -13
- package/dist/references/workshop/src/types/nocha/types/video-wire.d.ts +120 -7
- package/dist/references/workshop/src/types/nocha/types/video.d.ts +5 -2
- package/dist/references/workshop/src/types/nocha/video-analysis.d.ts +10 -0
- package/dist/references/workshop/src/types/nocha/video-media.d.ts +1 -3
- package/dist/sdk-versions.json +1 -1
- package/dist/sdks/@nocha/sdk/dist/assets-operations.d.ts +3 -0
- package/dist/sdks/@nocha/sdk/dist/bridge.js +3 -3
- package/dist/sdks/@nocha/sdk/dist/capabilities.js +2 -2
- package/dist/sdks/@nocha/sdk/dist/capability-deadlines.d.ts +6 -0
- package/dist/sdks/@nocha/sdk/dist/capability-needs.d.ts +7 -0
- package/dist/sdks/@nocha/sdk/dist/capability-operations.d.ts +3 -1
- package/dist/sdks/@nocha/sdk/dist/{chunk-A3QFRV4K.js → chunk-7SH7NNX6.js} +2 -2
- package/dist/sdks/@nocha/sdk/dist/{chunk-3ULBSRGX.js → chunk-B34FPFNB.js} +1 -1
- package/dist/sdks/@nocha/sdk/dist/{chunk-MNRQELK7.js → chunk-EAC27UOG.js} +152 -7
- package/dist/sdks/{@watchirl/experience-sdk/dist/nocha/network-operations.d.ts → @nocha/sdk/dist/drive-operations.d.ts} +21 -18
- package/dist/sdks/@nocha/sdk/dist/drive-types.d.ts +76 -0
- package/dist/sdks/@nocha/sdk/dist/drive.d.ts +53 -0
- package/dist/sdks/@nocha/sdk/dist/error-codes.d.ts +9 -0
- package/dist/sdks/@nocha/sdk/dist/execution.d.ts +1 -1
- package/dist/sdks/@nocha/sdk/dist/host.js +1 -1
- package/dist/sdks/@nocha/sdk/dist/index.d.ts +4 -0
- package/dist/sdks/@nocha/sdk/dist/index.js +521 -125
- package/dist/sdks/@nocha/sdk/dist/operation-wire-types.d.ts +30 -2
- package/dist/sdks/@nocha/sdk/dist/protocol.d.ts +7 -3
- package/dist/sdks/@nocha/sdk/dist/protocol.js +19 -1
- package/dist/sdks/@nocha/sdk/dist/types/ai-wire.d.ts +40 -1
- package/dist/sdks/@nocha/sdk/dist/types/ai.d.ts +1 -1
- package/dist/sdks/@nocha/sdk/dist/types/assets-wire.d.ts +9 -1
- package/dist/sdks/@nocha/sdk/dist/types/assets.d.ts +22 -5
- package/dist/sdks/@nocha/sdk/dist/types/video-sdk-wire.d.ts +174 -13
- package/dist/sdks/@nocha/sdk/dist/types/video-wire.d.ts +120 -7
- package/dist/sdks/@nocha/sdk/dist/types/video.d.ts +5 -2
- package/dist/sdks/@nocha/sdk/dist/video-analysis.d.ts +9 -0
- package/dist/sdks/@nocha/sdk/dist/vite.js +3 -1
- package/dist/sdks/@nocha/sdk/package.json +1 -1
- package/dist/sdks/@watchirl/experience-sdk/dist/index.d.ts +2 -2
- package/dist/sdks/@watchirl/experience-sdk/dist/index.js +339 -4523
- package/dist/sdks/@watchirl/experience-sdk/dist/legacy-video.d.ts +2 -2
- package/dist/sdks/@watchirl/experience-sdk/dist/types.d.ts +1 -1
- package/dist/watchirl-sdk.js +333 -4515
- package/package.json +1 -1
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/access.d.ts +0 -23
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/ai-operations.d.ts +0 -252
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/assets-operations.d.ts +0 -102
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/assistant-contract.d.ts +0 -29
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/assistant-controls.d.ts +0 -11
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/assistant.d.ts +0 -57
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/automations-operations.d.ts +0 -377
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/automations-types.d.ts +0 -156
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/automations.d.ts +0 -27
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/backend-database.d.ts +0 -17
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/backend-operations.d.ts +0 -71
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/backend-requests.d.ts +0 -57
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/backend-runtime.d.ts +0 -106
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/backend-transactions.d.ts +0 -53
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/bridge.d.ts +0 -6
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/capability-deadlines.d.ts +0 -63
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/capability-needs.d.ts +0 -154
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/capability-operations.d.ts +0 -73
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/clipping-types.d.ts +0 -134
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/connectors-operations.d.ts +0 -103
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/connectors-types.d.ts +0 -10
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/connectors.d.ts +0 -14
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/context.d.ts +0 -18
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/device-operations.d.ts +0 -452
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/device-types.d.ts +0 -53
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/email-operations.d.ts +0 -30
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/email.d.ts +0 -9
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/error-codes.d.ts +0 -299
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/errors.d.ts +0 -36
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/execution.d.ts +0 -15
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/experience-context-types.d.ts +0 -12
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/experience-context.d.ts +0 -8
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/inbox-operations.d.ts +0 -58
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/inbox.d.ts +0 -23
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/index.d.ts +0 -101
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/multiplayer-facade.d.ts +0 -44
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/multiplayer-operations.d.ts +0 -80
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/multiplayer.d.ts +0 -16
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/navigation.d.ts +0 -16
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/network.d.ts +0 -13
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/notifications-operations.d.ts +0 -29
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/notifications.d.ts +0 -9
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/operation-metadata.d.ts +0 -67
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/operation-wire-types.d.ts +0 -319
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/outirl-operations.d.ts +0 -352
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/outirl.d.ts +0 -31
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/presence-operations.d.ts +0 -24
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/protocol.d.ts +0 -378
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/state.d.ts +0 -13
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/storage-operation-types.d.ts +0 -49
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/storage-operations.d.ts +0 -229
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/storage.d.ts +0 -32
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/transport.d.ts +0 -36
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/types/ai-wire.d.ts +0 -337
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/types/ai.d.ts +0 -20
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/types/assets-wire.d.ts +0 -27
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/types/assets.d.ts +0 -40
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/types/json.d.ts +0 -8
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/types/network.d.ts +0 -16
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/types/outirl.d.ts +0 -326
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/types/storage.d.ts +0 -74
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/types/video-sdk-wire.d.ts +0 -460
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/types/video-wire.d.ts +0 -440
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/types/video.d.ts +0 -164
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/types/voice-wire.d.ts +0 -17
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/video-operations.d.ts +0 -646
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/video-properties.d.ts +0 -6
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/viewport-types.d.ts +0 -14
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/viewport.d.ts +0 -7
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/voice.d.ts +0 -13
- package/dist/sdks/@watchirl/experience-sdk/dist/nocha/workspace.d.ts +0 -7
|
@@ -1,326 +0,0 @@
|
|
|
1
|
-
export type OutirlMetrics = {
|
|
2
|
-
hostId: string;
|
|
3
|
-
hostName: string;
|
|
4
|
-
collectedAt: string;
|
|
5
|
-
context: string;
|
|
6
|
-
metricsAvailable: boolean;
|
|
7
|
-
nodes: Array<{
|
|
8
|
-
name: string;
|
|
9
|
-
ready: boolean;
|
|
10
|
-
cpuCapacityCores: number | null;
|
|
11
|
-
memoryCapacityBytes: number | null;
|
|
12
|
-
cpuAllocatableCores: number | null;
|
|
13
|
-
memoryAllocatableBytes: number | null;
|
|
14
|
-
cpuUsageCores: number | null;
|
|
15
|
-
memoryUsageBytes: number | null;
|
|
16
|
-
}>;
|
|
17
|
-
pods: Array<{
|
|
18
|
-
name: string;
|
|
19
|
-
namespace: string;
|
|
20
|
-
nodeName: string | null;
|
|
21
|
-
phase: string;
|
|
22
|
-
readyContainers: number;
|
|
23
|
-
totalContainers: number;
|
|
24
|
-
restarts: number;
|
|
25
|
-
cpuUsageCores: number | null;
|
|
26
|
-
memoryUsageBytes: number | null;
|
|
27
|
-
}>;
|
|
28
|
-
warnings: string[];
|
|
29
|
-
};
|
|
30
|
-
/** One light or one group; `startAt` is the optional common start beat, at most a few seconds away. */
|
|
31
|
-
export type OutirlHueTarget = {
|
|
32
|
-
lightId: string;
|
|
33
|
-
groupId?: undefined;
|
|
34
|
-
} | {
|
|
35
|
-
groupId: string;
|
|
36
|
-
lightId?: undefined;
|
|
37
|
-
};
|
|
38
|
-
export type OutirlHueChange = {
|
|
39
|
-
on?: boolean;
|
|
40
|
-
brightness?: number;
|
|
41
|
-
color?: string;
|
|
42
|
-
transitionMs?: number;
|
|
43
|
-
startAt?: number;
|
|
44
|
-
} & OutirlHueTarget;
|
|
45
|
-
/** One step of a sequence: a change plus how long it lasts (`ms`, 50–60000). `transitionMs` fades into it. */
|
|
46
|
-
export type OutirlHueStep = {
|
|
47
|
-
on?: boolean;
|
|
48
|
-
brightness?: number;
|
|
49
|
-
color?: string;
|
|
50
|
-
transitionMs?: number;
|
|
51
|
-
ms: number;
|
|
52
|
-
};
|
|
53
|
-
/**
|
|
54
|
-
* A sequence the Host plays on its own, on one light or group, or shared by up to 50 lights (`lightIds`).
|
|
55
|
-
* `loop` repeats it until another command or the end of the authorization.
|
|
56
|
-
*/
|
|
57
|
-
export type OutirlHueSequence = {
|
|
58
|
-
sequence: OutirlHueStep[];
|
|
59
|
-
loop?: boolean;
|
|
60
|
-
startAt?: number;
|
|
61
|
-
} & (OutirlHueTarget | {
|
|
62
|
-
lightIds: string[];
|
|
63
|
-
lightId?: undefined;
|
|
64
|
-
groupId?: undefined;
|
|
65
|
-
});
|
|
66
|
-
export type OutirlHueSet = OutirlHueChange | OutirlHueSequence | {
|
|
67
|
-
updates: OutirlHueChange[];
|
|
68
|
-
transitionMs?: number;
|
|
69
|
-
startAt?: number;
|
|
70
|
-
};
|
|
71
|
-
export type OutirlHueGroup = {
|
|
72
|
-
id: string;
|
|
73
|
-
name: string;
|
|
74
|
-
kind: "room" | "zone" | "home";
|
|
75
|
-
lightIds: string[];
|
|
76
|
-
};
|
|
77
|
-
export type OutirlHueLights = {
|
|
78
|
-
hostId: string;
|
|
79
|
-
hostName: string;
|
|
80
|
-
collectedAt: string;
|
|
81
|
-
lights: Array<{
|
|
82
|
-
id: string;
|
|
83
|
-
name: string;
|
|
84
|
-
on: boolean;
|
|
85
|
-
brightness: number | null;
|
|
86
|
-
colorSupported: boolean;
|
|
87
|
-
color: {
|
|
88
|
-
x: number;
|
|
89
|
-
y: number;
|
|
90
|
-
} | null;
|
|
91
|
-
temperature: number | null;
|
|
92
|
-
}>;
|
|
93
|
-
groups?: OutirlHueGroup[];
|
|
94
|
-
};
|
|
95
|
-
/** Parameter value in a LED command. */
|
|
96
|
-
export type LedParamValue = number | string | boolean;
|
|
97
|
-
export type LedParams = Record<string, LedParamValue>;
|
|
98
|
-
/** Catalogue and device state may carry `null` defaults (for example an effect without a fixed color). */
|
|
99
|
-
export type LedCatalogParamValue = LedParamValue | null;
|
|
100
|
-
export type LedCatalogParams = Record<string, LedCatalogParamValue>;
|
|
101
|
-
export type LedDevice = {
|
|
102
|
-
id: string;
|
|
103
|
-
name: string;
|
|
104
|
-
online: boolean;
|
|
105
|
-
effect: string | null;
|
|
106
|
-
params: LedCatalogParams;
|
|
107
|
-
brightness: number | null;
|
|
108
|
-
rssi: number | null;
|
|
109
|
-
uptimeSeconds: number | null;
|
|
110
|
-
sequence: {
|
|
111
|
-
length: number;
|
|
112
|
-
position: number;
|
|
113
|
-
loop: boolean;
|
|
114
|
-
} | null;
|
|
115
|
-
};
|
|
116
|
-
export type LedEffect = {
|
|
117
|
-
name: string;
|
|
118
|
-
params: LedCatalogParams;
|
|
119
|
-
};
|
|
120
|
-
export type LedScene = {
|
|
121
|
-
index: number;
|
|
122
|
-
name: string;
|
|
123
|
-
};
|
|
124
|
-
/** One LED command: exactly one of effect, color, brightness or off. */
|
|
125
|
-
export type LedAction = {
|
|
126
|
-
effect: string;
|
|
127
|
-
params?: LedParams;
|
|
128
|
-
} | {
|
|
129
|
-
color: string;
|
|
130
|
-
} | {
|
|
131
|
-
brightness: number;
|
|
132
|
-
} | {
|
|
133
|
-
off: true;
|
|
134
|
-
};
|
|
135
|
-
/** One step of a sequence; `fade` only applies to a color step. */
|
|
136
|
-
export type LedStep = LedAction & {
|
|
137
|
-
ms: number;
|
|
138
|
-
fade?: boolean;
|
|
139
|
-
};
|
|
140
|
-
/** Command for one board or `all`; a sequence replaces a single action. */
|
|
141
|
-
/** `startAt` is the shared beat: the same value sent to Hue makes both start together. */
|
|
142
|
-
export type OutirlLedsSet = {
|
|
143
|
-
deviceId: string;
|
|
144
|
-
startAt?: number;
|
|
145
|
-
} & (LedAction | {
|
|
146
|
-
sequence: LedStep[];
|
|
147
|
-
loop?: boolean;
|
|
148
|
-
});
|
|
149
|
-
export type OutirlLedsSnapshot = {
|
|
150
|
-
commandId?: string;
|
|
151
|
-
stateStatus?: 'confirmed' | 'optimistic';
|
|
152
|
-
generations?: Record<string, number>;
|
|
153
|
-
hostId: string;
|
|
154
|
-
hostName: string;
|
|
155
|
-
collectedAt: string;
|
|
156
|
-
devices: LedDevice[];
|
|
157
|
-
effects: LedEffect[];
|
|
158
|
-
scenes: LedScene[];
|
|
159
|
-
};
|
|
160
|
-
/** Capture lifecycle on the Host; PCM is always signed 16-bit little-endian, 16 kHz, mono. */
|
|
161
|
-
export type OutirlAudioCaptureState = 'recording' | 'stopped' | 'expired' | 'failed';
|
|
162
|
-
/** USB receiver reported by a microphone board; `null` fields are unknown. */
|
|
163
|
-
export type OutirlAudioSource = {
|
|
164
|
-
connected: boolean;
|
|
165
|
-
vendorId: number | null;
|
|
166
|
-
productId: number | null;
|
|
167
|
-
product: string | null;
|
|
168
|
-
sampleRate: number | null;
|
|
169
|
-
channels: number | null;
|
|
170
|
-
bits: number | null;
|
|
171
|
-
};
|
|
172
|
-
/** Stream served by the board to the Host (before any capture). */
|
|
173
|
-
export type OutirlAudioStream = {
|
|
174
|
-
format: string;
|
|
175
|
-
sampleRate: number | null;
|
|
176
|
-
channels: number | null;
|
|
177
|
-
clients: number | null;
|
|
178
|
-
};
|
|
179
|
-
export type OutirlAudioDevice = {
|
|
180
|
-
id: string;
|
|
181
|
-
name: string;
|
|
182
|
-
online: boolean;
|
|
183
|
-
firmware: string | null;
|
|
184
|
-
rssi: number | null;
|
|
185
|
-
uptimeMs: number | null;
|
|
186
|
-
source: OutirlAudioSource | null;
|
|
187
|
-
stream: OutirlAudioStream | null;
|
|
188
|
-
/** Capture currently recording from this board, whoever started it. */
|
|
189
|
-
captureId: string | null;
|
|
190
|
-
};
|
|
191
|
-
export type OutirlAudioDevices = {
|
|
192
|
-
hostId: string;
|
|
193
|
-
hostName: string;
|
|
194
|
-
collectedAt: string;
|
|
195
|
-
devices: OutirlAudioDevice[];
|
|
196
|
-
};
|
|
197
|
-
export type OutirlAudioStartInput = {
|
|
198
|
-
deviceId: string;
|
|
199
|
-
};
|
|
200
|
-
export type OutirlAudioCapture = {
|
|
201
|
-
captureId: string;
|
|
202
|
-
deviceId: string;
|
|
203
|
-
state: 'recording';
|
|
204
|
-
format: 's16le';
|
|
205
|
-
sampleRate: 16000;
|
|
206
|
-
channels: 1;
|
|
207
|
-
};
|
|
208
|
-
/** `cursor` is the even byte offset returned by the previous read (0 for the first one); `maxBytes` is 2–65536. */
|
|
209
|
-
export type OutirlAudioReadInput = {
|
|
210
|
-
captureId: string;
|
|
211
|
-
cursor: number;
|
|
212
|
-
maxBytes?: number;
|
|
213
|
-
};
|
|
214
|
-
/** `data` is base64 PCM in the capture format; `cursor` is the offset to pass to the next read. */
|
|
215
|
-
export type OutirlAudioChunk = {
|
|
216
|
-
captureId: string;
|
|
217
|
-
state: OutirlAudioCaptureState;
|
|
218
|
-
cursor: number;
|
|
219
|
-
data: string;
|
|
220
|
-
bytes: number;
|
|
221
|
-
totalBytes: number;
|
|
222
|
-
durationMs: number;
|
|
223
|
-
};
|
|
224
|
-
export type OutirlAudioStopInput = {
|
|
225
|
-
captureId: string;
|
|
226
|
-
};
|
|
227
|
-
export type OutirlAudioStopped = {
|
|
228
|
-
captureId: string;
|
|
229
|
-
state: OutirlAudioCaptureState;
|
|
230
|
-
totalBytes: number;
|
|
231
|
-
durationMs: number;
|
|
232
|
-
};
|
|
233
|
-
/** `language` is a hint such as `fr` or `fr-FR`; only its first two letters are used. */
|
|
234
|
-
export type OutirlAudioTranscribeInput = {
|
|
235
|
-
captureId: string;
|
|
236
|
-
language?: string;
|
|
237
|
-
};
|
|
238
|
-
/** An empty `text` means no speech was detected. */
|
|
239
|
-
export type OutirlAudioTranscript = {
|
|
240
|
-
captureId: string;
|
|
241
|
-
text: string;
|
|
242
|
-
durationMs: number;
|
|
243
|
-
};
|
|
244
|
-
/** Agent engine detected on a Mac of the Outirl network. */
|
|
245
|
-
export type NetworkEngine = 'claude' | 'codex';
|
|
246
|
-
/** Codex or Claude Code sessions of one Mac sharing an engine and a surface; no session is listed individually. */
|
|
247
|
-
export type NetworkAgentGroup = {
|
|
248
|
-
engine: NetworkEngine;
|
|
249
|
-
surface: 'cli' | 'desktop' | 'job';
|
|
250
|
-
/** Sessions in the group, at least 1. */
|
|
251
|
-
count: number;
|
|
252
|
-
/** Summed CPU of the group in percent of one core (may exceed 100), rounded to 1. */
|
|
253
|
-
cpuPercent: number | null;
|
|
254
|
-
/** Summed resident memory of the group, rounded to 64 MiB. */
|
|
255
|
-
memoryBytes: number | null;
|
|
256
|
-
};
|
|
257
|
-
/** Active worker jobs of one Mac sharing a kind, an engine and a status. */
|
|
258
|
-
export type NetworkJobGroup = {
|
|
259
|
-
kind: 'agent' | 'check' | 'image';
|
|
260
|
-
engine: NetworkEngine | null;
|
|
261
|
-
status: 'starting' | 'running';
|
|
262
|
-
/** Jobs in the group, at least 1. */
|
|
263
|
-
count: number;
|
|
264
|
-
};
|
|
265
|
-
/** One Mac under a neutral label; every measurement is `null` when unknown, never an invented zero. */
|
|
266
|
-
export type NetworkMachine = {
|
|
267
|
-
/** `hub` for the collecting Host, `mac-1`, `mac-2`… for its peers, stable while the Host configuration is. */
|
|
268
|
-
id: string;
|
|
269
|
-
reachable: boolean;
|
|
270
|
-
/** Busy share of all cores, 0..1, rounded to 0.01. */
|
|
271
|
-
cpuBusy: number | null;
|
|
272
|
-
/** Used share of physical memory, 0..1, rounded to 0.01. */
|
|
273
|
-
memoryUsed: number | null;
|
|
274
|
-
agents: NetworkAgentGroup[];
|
|
275
|
-
jobs: NetworkJobGroup[];
|
|
276
|
-
};
|
|
277
|
-
/**
|
|
278
|
-
* Minimal snapshot of the connected Host's Mac network (`"outirl": "network"`), the same for the owner, members and
|
|
279
|
-
* the public: no Host, Mac, project or job name, no identifier, model or coordination text. The `hub` Mac is listed first.
|
|
280
|
-
*/
|
|
281
|
-
export type OutirlNetwork = {
|
|
282
|
-
collectedAt: string;
|
|
283
|
-
machines: NetworkMachine[];
|
|
284
|
-
/** Busy locks of the hub's coordination board, or `null` when the hub has none. */
|
|
285
|
-
locksBusy: number | null;
|
|
286
|
-
};
|
|
287
|
-
/** Owner-only view of the configured Mac terminal, launchable agents and dictation integration. */
|
|
288
|
-
export type OutirlDesktopReadInput = {
|
|
289
|
-
[key: string]: never;
|
|
290
|
-
};
|
|
291
|
-
export type OutirlDesktopState = {
|
|
292
|
-
terminal: {
|
|
293
|
-
app: string;
|
|
294
|
-
running: boolean;
|
|
295
|
-
windows: number;
|
|
296
|
-
tabs: number | null;
|
|
297
|
-
frontmost: boolean;
|
|
298
|
-
};
|
|
299
|
-
agents: Array<{
|
|
300
|
-
id: string;
|
|
301
|
-
label: string;
|
|
302
|
-
}>;
|
|
303
|
-
dictation: {
|
|
304
|
-
available: boolean;
|
|
305
|
-
};
|
|
306
|
-
};
|
|
307
|
-
export type OutirlDesktopDictationInput = {
|
|
308
|
-
action: 'start' | 'stop' | 'toggle';
|
|
309
|
-
};
|
|
310
|
-
export type OutirlDesktopDictationResult = {
|
|
311
|
-
action: 'start' | 'stop' | 'toggle';
|
|
312
|
-
delivered: true;
|
|
313
|
-
};
|
|
314
|
-
export type OutirlDesktopTerminalInput = {
|
|
315
|
-
action: 'tab.open';
|
|
316
|
-
agentId?: string;
|
|
317
|
-
} | {
|
|
318
|
-
action: 'submit' | 'focus';
|
|
319
|
-
agentId?: never;
|
|
320
|
-
};
|
|
321
|
-
export type OutirlDesktopTerminalResult = {
|
|
322
|
-
action: 'tab.open' | 'submit' | 'focus';
|
|
323
|
-
agentId: string | null;
|
|
324
|
-
windows: number;
|
|
325
|
-
tabs: number | null;
|
|
326
|
-
};
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import type { JsonObject, JsonValue } from './json.js';
|
|
2
|
-
export type StateGetInput = {
|
|
3
|
-
[key: string]: never;
|
|
4
|
-
};
|
|
5
|
-
export type StateSetInput = {
|
|
6
|
-
state: JsonValue;
|
|
7
|
-
expectedSequence?: number;
|
|
8
|
-
};
|
|
9
|
-
export type MemoryGetInput = {
|
|
10
|
-
key: string;
|
|
11
|
-
};
|
|
12
|
-
export type MemorySetInput = {
|
|
13
|
-
key: string;
|
|
14
|
-
value?: JsonValue;
|
|
15
|
-
expectedSequence: number;
|
|
16
|
-
};
|
|
17
|
-
export type StateSnapshot = {
|
|
18
|
-
sequence: number;
|
|
19
|
-
state: JsonValue;
|
|
20
|
-
};
|
|
21
|
-
export type MemoryValue = {
|
|
22
|
-
key: string;
|
|
23
|
-
value: JsonValue;
|
|
24
|
-
sequence: number;
|
|
25
|
-
};
|
|
26
|
-
export type DatabaseRecord = {
|
|
27
|
-
id: string;
|
|
28
|
-
revision: number;
|
|
29
|
-
record: JsonObject;
|
|
30
|
-
author: string | null;
|
|
31
|
-
};
|
|
32
|
-
export type DatabaseInsertInput = {
|
|
33
|
-
collection: string;
|
|
34
|
-
record: JsonObject;
|
|
35
|
-
};
|
|
36
|
-
export type DatabaseInsertOutput = {
|
|
37
|
-
id: string;
|
|
38
|
-
revision: number;
|
|
39
|
-
author: string | null;
|
|
40
|
-
};
|
|
41
|
-
export type DatabaseGetInput = {
|
|
42
|
-
collection: string;
|
|
43
|
-
id: string;
|
|
44
|
-
};
|
|
45
|
-
export type DatabaseGetOutput = DatabaseRecord | null;
|
|
46
|
-
export type DatabaseQueryInput = {
|
|
47
|
-
collection: string;
|
|
48
|
-
limit?: number;
|
|
49
|
-
cursor?: string;
|
|
50
|
-
};
|
|
51
|
-
export type DatabaseQueryOutput = {
|
|
52
|
-
records: DatabaseRecord[];
|
|
53
|
-
nextCursor: string | null;
|
|
54
|
-
};
|
|
55
|
-
export type DatabaseUpdateInput = {
|
|
56
|
-
collection: string;
|
|
57
|
-
id: string;
|
|
58
|
-
record: JsonObject;
|
|
59
|
-
expectedRevision: number;
|
|
60
|
-
};
|
|
61
|
-
export type DatabaseUpdateOutput = {
|
|
62
|
-
id: string;
|
|
63
|
-
revision: number;
|
|
64
|
-
author: string | null;
|
|
65
|
-
};
|
|
66
|
-
export type DatabaseRemoveInput = {
|
|
67
|
-
collection: string;
|
|
68
|
-
id: string;
|
|
69
|
-
expectedRevision: number;
|
|
70
|
-
};
|
|
71
|
-
/** A missing record or a stale `expectedRevision` is rejected (`not_found`, `database_conflict`), never reported as `removed: false`. */
|
|
72
|
-
export type DatabaseRemoveOutput = {
|
|
73
|
-
removed: true;
|
|
74
|
-
};
|