@camstack/types 1.2.377 → 1.2.379
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/addon.js +2 -2
- package/dist/addon.mjs +2 -2
- package/dist/capabilities/addons.cap.d.ts +2 -0
- package/dist/capabilities/core-blocks.cap.d.ts +26 -4
- package/dist/capabilities/index.d.ts +2 -1
- package/dist/capabilities/llm.cap.d.ts +20 -0
- package/dist/capabilities/raw-secret-migration.d.ts +26 -0
- package/dist/capabilities/server-management.cap.d.ts +89 -1
- package/dist/capabilities/user-management.cap.d.ts +19 -0
- package/dist/client.js +3 -0
- package/dist/client.mjs +3 -0
- package/dist/enums/event-category.d.ts +18 -0
- package/dist/enums.js +1 -1
- package/dist/enums.mjs +1 -1
- package/dist/{event-category-C4hVnRo8.mjs → event-category-BvOFi6PY.mjs} +18 -0
- package/dist/{event-category-T43rdQWR.js → event-category-Hoe-mqbd.js} +18 -0
- package/dist/generated/addon-api.d.ts +21 -0
- package/dist/generated/method-access-map.d.ts +1 -1
- package/dist/generated/system-proxy.d.ts +3 -3
- package/dist/index.d.ts +1 -1
- package/dist/index.js +172 -12
- package/dist/index.mjs +167 -13
- package/dist/interfaces/addon.d.ts +4 -1
- package/dist/interfaces/agent.d.ts +15 -0
- package/dist/interfaces/event-bus.d.ts +35 -0
- package/dist/{sleep-bwsTj221.mjs → sleep-D-Q2_Mcd.mjs} +2 -2
- package/dist/{sleep-Dq0Uyeh0.js → sleep-DQYi915G.js} +7 -1
- package/package.json +1 -1
|
@@ -35,8 +35,11 @@ export interface WorkerProcessStats {
|
|
|
35
35
|
* circuit-breaker reached `MAX_CRASHES_IN_WINDOW` crashes inside
|
|
36
36
|
* `CRASH_WINDOW_MS` and stopped respawning. Distinct from `crashed`
|
|
37
37
|
* (a transient state between an exit and the next backoff respawn).
|
|
38
|
+
* `refused` (D877) is also terminal but is NOT a crash: the addon said, in
|
|
39
|
+
* a typed way, that it will not start (and why); the breaker never counted it
|
|
40
|
+
* and an operator action retries it.
|
|
38
41
|
*/
|
|
39
|
-
readonly state: 'starting' | 'running' | 'stopping' | 'stopped' | 'crashed' | 'failed';
|
|
42
|
+
readonly state: 'starting' | 'running' | 'stopping' | 'stopped' | 'crashed' | 'failed' | 'refused';
|
|
40
43
|
}
|
|
41
44
|
/** Storage interface for addon file operations */
|
|
42
45
|
export interface IAddonFileStorage {
|
|
@@ -91,6 +91,21 @@ export interface HubHealth {
|
|
|
91
91
|
readonly cpuPercent: number;
|
|
92
92
|
readonly memoryPercent: number;
|
|
93
93
|
readonly checkedAt: string;
|
|
94
|
+
/**
|
|
95
|
+
* The runner boot check (D877). Absent until it has run (~60 s after boot).
|
|
96
|
+
* `ok` is NOT flipped by it - a container restart cannot fix a refused addon -
|
|
97
|
+
* so a monitor that wants "degraded" reads `runners.degraded`.
|
|
98
|
+
*/
|
|
99
|
+
readonly runners?: HubHealthRunners;
|
|
100
|
+
}
|
|
101
|
+
export interface HubHealthRunners {
|
|
102
|
+
readonly degraded: boolean;
|
|
103
|
+
readonly expected: number;
|
|
104
|
+
readonly running: number;
|
|
105
|
+
readonly failed: number;
|
|
106
|
+
readonly refused: number;
|
|
107
|
+
readonly missing: number;
|
|
108
|
+
readonly checkedAtMs: number;
|
|
94
109
|
}
|
|
95
110
|
export interface HubHealthAgentCounts {
|
|
96
111
|
readonly total: number;
|
|
@@ -893,6 +893,41 @@ export interface EventCatalog {
|
|
|
893
893
|
exitCode?: number;
|
|
894
894
|
signal?: string;
|
|
895
895
|
};
|
|
896
|
+
/**
|
|
897
|
+
* A runner whose addon REFUSED to start (D877): a typed, deterministic
|
|
898
|
+
* Init refusal, not a crash. The runner waits in `refused` until an operator
|
|
899
|
+
* acts; one event per refusal.
|
|
900
|
+
*/
|
|
901
|
+
'addon.runner-refused': {
|
|
902
|
+
runnerId: string;
|
|
903
|
+
nodeId: string;
|
|
904
|
+
addonIds: string[];
|
|
905
|
+
/** Stable cause, e.g. `unmigrated-settings`. */
|
|
906
|
+
code: string;
|
|
907
|
+
reason: string;
|
|
908
|
+
/** What the operator does about it. */
|
|
909
|
+
remedy: string;
|
|
910
|
+
};
|
|
911
|
+
'process.state-changed': {
|
|
912
|
+
runnerId: string;
|
|
913
|
+
nodeId: string;
|
|
914
|
+
addonIds: string[];
|
|
915
|
+
state: string;
|
|
916
|
+
};
|
|
917
|
+
'system.runner-check': {
|
|
918
|
+
nodeId: string;
|
|
919
|
+
degraded: boolean;
|
|
920
|
+
/** One sentence naming the findings. */
|
|
921
|
+
summary: string;
|
|
922
|
+
expected: number;
|
|
923
|
+
running: number;
|
|
924
|
+
failed: string[];
|
|
925
|
+
refused: {
|
|
926
|
+
runnerId: string;
|
|
927
|
+
reason: string;
|
|
928
|
+
}[];
|
|
929
|
+
missing: string[];
|
|
930
|
+
};
|
|
896
931
|
'addon.error': {
|
|
897
932
|
addonId: string;
|
|
898
933
|
packageName?: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as EventCategory } from "./event-category-
|
|
1
|
+
import { t as EventCategory } from "./event-category-BvOFi6PY.mjs";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
//#region src/audio/audio-chunk-format.ts
|
|
4
4
|
/**
|
|
@@ -6187,4 +6187,4 @@ function sleepCancellable(ms, signal) {
|
|
|
6187
6187
|
});
|
|
6188
6188
|
}
|
|
6189
6189
|
//#endregion
|
|
6190
|
-
export { resolveCapMount as $, normalizeAddonInitResult as $t, HF_BASE_URL as A,
|
|
6190
|
+
export { resolveCapMount as $, normalizeAddonInitResult as $t, HF_BASE_URL as A, isSecretClear as An, makeSourceBrokerId as At, deviceCustomAction as B, isSecretConfigField as Bn, registerKnownSecret as Bt, createLazyTrpcSource as C, WELL_KNOWN_TAB_MAP as Cn, ProfileSlotSchema as Ct, collectZodSecretPaths as D, resolveHydratedFieldValue as Dn, SubscribeAudioChunksInputSchema as Dt, SECRET_META as E, hydrateSchema as En, StreamSourceSchema as Et, viewerUiCapability as F, toSecretFieldView as Fn, createSecretsAccess as Ft, HISTORY_DEFAULT_MIN_INTERVAL_MS as G, isAudioChunkFormat as Gn, PEER_BYTES_STALL_MS as Gt, DEFAULT_RUNTIME_STATE_DURABILITY as H, AUDIO_CHUNK_FORMATS as Hn, shortSecretRefHash as Ht, DEVICE_CHILDREN_BATCH_MAX as I, REDACTED_SECRET as In, MIN_SCRUBBED_LENGTH as It, event as J, DATAPLANE_SECRET_HEADER as Jt, HISTORY_UNIT_LABELS as K, PEER_BYTES_TICKET_TTL_MS as Kt, customAction as L, collectKeychainStoredKeys as Ln, clearKnownSecrets as Lt, RUNTIME_DEFAULTS as M, isSecretMarker as Mn, selectAssignedProfileSlots as Mt, RawStateResultSchema as N, isSecretMarkerLike as Nn, resolveSecretViewsIn as Nt, isZodSecret as O, SECRET_CLEAR as On, SubscribeAudioChunksResultSchema as Ot, deviceOpsCapability as P, makeSecretMarker as Pn, REVALIDATE_AFTER_MS as Pt, optionalMethod as Q, classifyStoreError as Qt, defineCustomActions as R, collectSecretConfigKeys as Rn, forgetKnownSecret as Rt, createEventBusSliceSource as S, WELL_KNOWN_TABS as Sn, ProfileRtspEntrySchema as St, createSliceHandle as T, collectHydratedFieldValues as Tn, StreamSourceEntrySchema$1 as Tt, DEVICE_SETTINGS_CONTRIBUTION_METHODS as U, audioChunkBytesPerSample as Un, PEER_BYTES_CHUNK_BYTES as Ut, adminUiCapability as V, schemaDeclaresAnyField as Vn, scrubKnownSecrets as Vt, DEVICE_STATUS_METHOD as W, expandAudioChunkToF32le as Wn, PEER_BYTES_MAX_OUTSTANDING as Wt, isDeviceConfigCap as X, DisposerChain as Xt, expandCapMethods as Y, SHARE_VIEW_KINDS as Yt, method as Z, BaseAddon as Zt, readErrorI18n as _, normalizeNodeId as _n, CamStreamKindSchema as _t, asJsonArray as a, collectSecretMarkerRefs as an, MODEL_FORMATS as at, isDeviceScopedCap as b, emitReadiness as bn, DecodedAudioChunkSchema as bt, asString as c, transformSecretWrite as cn, emitDownForOwnedCaps as ct, parseJsonUnknown as d, buildSecretRef as dn, AudioChunkFormatSchema as dt, mergeSecretStatePaths as en, systemMethod as et, hfModelUrl as f, formatSecretScope as fn, AudioStreamPickSchema as ft, ErrorI18nPayloadSchema as g, parseSecretRef as gn, CamProfileSchema as gt, ErrorCodeSchema as h, normalizeSecretOwner as hn, CAM_PROFILE_ORDER as ht, asBoolean as i, KeychainWriteRefusedError as in, toNodeId as it, HF_REPO as j, isSecretFieldView as jn, parseProfileBrokerId as jt, DEFAULT_TOKEN_EXPIRY as k, classifySecretWrite as kn, makeProfileBrokerId as kt, parseJsonArray as l, SECRET_REF_SCHEME as ln, readinessKey as lt, CamstackError as m, isSecretRef as mn, BrokerStatusSchema as mt, sleepCancellable as n, secretTreeFromPaths as nn, nodePin as nt, asJsonObject as o, isSecretRefOwnedBy as on, ReadinessRegistry as ot, BOOT_RECOVERY_BACKOFF_MS as p, globalSecretScope as pn, BrokerStatsSchema as pt, PROVIDER_PIN_FIELD as q, PeerBytesTicketSchema as qt, maskUrlCredentials as r, secretTreeFromSchema as rn, readNodePin as rt, asNumber as s, resolveSecretMarkers as sn, ReadinessTimeoutError as st, sleep as t, parseSecretStatePath as tn, CAP_NODE_PIN_CONTEXT_KEY as tt, parseJsonObject as u, arrayItemFieldPath as un, scopeKey as ut, userError as v, createDurableState as vn, CamStreamResolutionSchema as vt, createMirrorSource as w, collectHydratedFieldEntries as wn, ProfileSlotStatusSchema as wt, createDeviceProxy as x, isEvent as xn, FrameHandleSchema as xt, DEVICE_SCOPED_CAPS as y, createEvent as yn, CameraStreamSchema as yt, describeCustomActions as z, isKeychainStoredField as zn, knownSecretCount as zt };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_event_category = require("./event-category-
|
|
1
|
+
const require_event_category = require("./event-category-Hoe-mqbd.js");
|
|
2
2
|
let zod = require("zod");
|
|
3
3
|
//#region src/audio/audio-chunk-format.ts
|
|
4
4
|
/**
|
|
@@ -6847,6 +6847,12 @@ Object.defineProperty(exports, "isSecretRef", {
|
|
|
6847
6847
|
return isSecretRef;
|
|
6848
6848
|
}
|
|
6849
6849
|
});
|
|
6850
|
+
Object.defineProperty(exports, "isSecretRefOwnedBy", {
|
|
6851
|
+
enumerable: true,
|
|
6852
|
+
get: function() {
|
|
6853
|
+
return isSecretRefOwnedBy;
|
|
6854
|
+
}
|
|
6855
|
+
});
|
|
6850
6856
|
Object.defineProperty(exports, "isZodSecret", {
|
|
6851
6857
|
enumerable: true,
|
|
6852
6858
|
get: function() {
|