@camstack/addon-provider-ecowitt 0.2.132 → 0.2.134

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 CHANGED
@@ -5417,7 +5417,7 @@ var ZodIssueCode$1 = {
5417
5417
  var ZodFirstPartyTypeKind$1;
5418
5418
  ZodFirstPartyTypeKind$1 || (ZodFirstPartyTypeKind$1 = {});
5419
5419
  //#endregion
5420
- //#region ../types/dist/sleep-BSuCCFjf.mjs
5420
+ //#region ../types/dist/sleep-CSuN0thG.mjs
5421
5421
  /**
5422
5422
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5423
5423
  * window to float samples (D455).
@@ -7965,7 +7965,13 @@ var RecordKindDeclarationSchema = object({
7965
7965
  secretPaths: array(string().min(1)).default([]),
7966
7966
  /** The id key of each array that carries a secret (`{ headers: 'name' }`). */
7967
7967
  secretArrayKeys: record(string(), string()).default({}),
7968
- /** The legacy table this kind adopts from; the boot guard reads it (D853: no migration code). */
7968
+ /**
7969
+ * RETIRED (D900): the legacy table a kind adopted from during the records
7970
+ * migration. Nothing declares it any more and nothing reads it; the schema
7971
+ * still ACCEPTS it because the catalog rows the migration wrote carry it
7972
+ * (an orphaned kind is never redeclared) and an addon built before the
7973
+ * removal still sends it. Never set it.
7974
+ */
7969
7975
  adoptsFrom: string().min(1).optional(),
7970
7976
  /** Kinds that must agree through `transact` sit in one file under one family name. */
7971
7977
  transactFamily: string().min(1).optional(),
@@ -16651,11 +16657,12 @@ var DeclareKindResultSchema = object({
16651
16657
  kindId: number().int(),
16652
16658
  state: RecordKindStateSchema,
16653
16659
  createdIndexes: array(string()),
16654
- /** The boot guard: the kind is empty while its legacy table still holds rows. */
16655
- adoptionPending: object({
16656
- legacyTable: string(),
16657
- legacyRows: number().int()
16658
- }).nullable()
16660
+ /**
16661
+ * RETIRED (D900): always `null`. It carried the records-migration boot guard;
16662
+ * it stays on the wire, null, because an addon built before the removal reads
16663
+ * an ABSENT field as "adoption pending" and refuses to start.
16664
+ */
16665
+ adoptionPending: _null()
16659
16666
  });
16660
16667
  /** Keychain refs a write released (the old marker is gone from the row): the owner deletes the values. */
16661
16668
  var SecretRefsList = array(string());
@@ -16828,26 +16835,7 @@ method(object({ ownerPrefix: string().min(1).optional() }), object({ tables: arr
16828
16835
  }), object({ kinds: array(StorageKindSchema) }), { auth: "admin" }), method(RecordQueryInputSchema.extend({
16829
16836
  owner: string().min(1),
16830
16837
  kind: RecordKindNameSchema
16831
- }), RecordQueryResultSchema, { auth: "admin" }), method(object({
16832
- owner: string().min(1),
16833
- kind: RecordKindNameSchema,
16834
- records: array(RecordInputSchema).max(RECORD_BATCH_MAX),
16835
- /** The LAST batch: the copy is complete, the boot guard stops asking. */
16836
- complete: boolean().optional()
16837
- }).refine((input) => input.records.length > 0 || input.complete === true, { message: "records must be non-empty unless complete is true" }), object({ adopted: number().int() }), {
16838
- kind: "mutation",
16839
- auth: "admin"
16840
- }), method(object({
16841
- collection: string().min(1),
16842
- cursor: string().optional(),
16843
- limit: number().int().min(1).max(1e3).optional()
16844
- }), object({
16845
- rows: array(object({
16846
- id: string(),
16847
- data: record(string(), unknown())
16848
- })),
16849
- nextCursor: string().nullable()
16850
- }), { auth: "admin" }), method(object({ collection: string().min(1) }), object({ adopted: boolean() }), { auth: "admin" });
16838
+ }), RecordQueryResultSchema, { auth: "admin" });
16851
16839
  /**
16852
16840
  * record-entries - the ONE admin surface for every list of user-created entries
16853
16841
  * (D881): notification targets, brokers, LLM profiles, anything an addon
@@ -60454,9 +60442,24 @@ var NpuInfoSchema = object({
60454
60442
  name: string().optional(),
60455
60443
  generation: _enum(["xdna1", "xdna2"]).optional()
60456
60444
  });
60445
+ var CoralBusSchema = _enum(["usb", "pci"]);
60457
60446
  var CoralInfoSchema = object({
60458
60447
  type: literal("coral-edgetpu"),
60459
- bus: string().optional()
60448
+ /** Legacy single-bus report (older nodes) — read via `coralUsableUnits`. */
60449
+ bus: string().optional(),
60450
+ /** Legacy USB unit count (older nodes) — read via `coralUsableUnits`. */
60451
+ count: number().int().nonnegative().optional(),
60452
+ /** Usable units per bus — each one is its own `edgetpu:<bus>[:N]` device. */
60453
+ units: array(object({
60454
+ bus: CoralBusSchema,
60455
+ count: number().int().nonnegative()
60456
+ })).readonly().optional(),
60457
+ /** Present-but-unusable units, each with its typed reason (never "absent"). */
60458
+ unavailable: array(object({
60459
+ bus: CoralBusSchema,
60460
+ count: number().int().nonnegative(),
60461
+ reason: _enum(["driver-missing", "device-not-accessible"])
60462
+ })).readonly().optional()
60460
60463
  });
60461
60464
  var HardwareInfoSchema = object({
60462
60465
  platform: HardwarePlatformSchema,
@@ -69203,6 +69206,12 @@ Object.freeze({
69203
69206
  addonId: null,
69204
69207
  access: "view"
69205
69208
  },
69209
+ "deviceHistory.queryMany": {
69210
+ capName: "device-history",
69211
+ capScope: "system",
69212
+ addonId: null,
69213
+ access: "view"
69214
+ },
69206
69215
  "deviceHistory.queryNode": {
69207
69216
  capName: "device-history",
69208
69217
  capScope: "system",
@@ -74423,24 +74432,12 @@ Object.freeze({
74423
74432
  addonId: null,
74424
74433
  access: "create"
74425
74434
  },
74426
- "storageAdmin.adoptRecords": {
74427
- capName: "storage-admin",
74428
- capScope: "system",
74429
- addonId: null,
74430
- access: "create"
74431
- },
74432
74435
  "storageAdmin.dropCollection": {
74433
74436
  capName: "storage-admin",
74434
74437
  capScope: "system",
74435
74438
  addonId: null,
74436
74439
  access: "delete"
74437
74440
  },
74438
- "storageAdmin.isAdoptedLegacyTable": {
74439
- capName: "storage-admin",
74440
- capScope: "system",
74441
- addonId: null,
74442
- access: "view"
74443
- },
74444
74441
  "storageAdmin.listKinds": {
74445
74442
  capName: "storage-admin",
74446
74443
  capScope: "system",
@@ -74453,12 +74450,6 @@ Object.freeze({
74453
74450
  addonId: null,
74454
74451
  access: "view"
74455
74452
  },
74456
- "storageAdmin.readLegacyCollection": {
74457
- capName: "storage-admin",
74458
- capScope: "system",
74459
- addonId: null,
74460
- access: "view"
74461
- },
74462
74453
  "storageAdmin.readRecords": {
74463
74454
  capName: "storage-admin",
74464
74455
  capScope: "system",
@@ -78273,12 +78264,6 @@ Object.freeze({
78273
78264
  form: "single",
78274
78265
  optional: false
78275
78266
  }],
78276
- "storageAdmin.adoptRecords": [{
78277
- name: "records",
78278
- form: "object-array",
78279
- optional: false,
78280
- itemField: "deviceId"
78281
- }],
78282
78267
  "storageAdmin.readRecords": [{
78283
78268
  name: "deviceId",
78284
78269
  form: "single",
package/dist/addon.mjs CHANGED
@@ -5416,7 +5416,7 @@ var ZodIssueCode$1 = {
5416
5416
  var ZodFirstPartyTypeKind$1;
5417
5417
  ZodFirstPartyTypeKind$1 || (ZodFirstPartyTypeKind$1 = {});
5418
5418
  //#endregion
5419
- //#region ../types/dist/sleep-BSuCCFjf.mjs
5419
+ //#region ../types/dist/sleep-CSuN0thG.mjs
5420
5420
  /**
5421
5421
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5422
5422
  * window to float samples (D455).
@@ -7964,7 +7964,13 @@ var RecordKindDeclarationSchema = object({
7964
7964
  secretPaths: array(string().min(1)).default([]),
7965
7965
  /** The id key of each array that carries a secret (`{ headers: 'name' }`). */
7966
7966
  secretArrayKeys: record(string(), string()).default({}),
7967
- /** The legacy table this kind adopts from; the boot guard reads it (D853: no migration code). */
7967
+ /**
7968
+ * RETIRED (D900): the legacy table a kind adopted from during the records
7969
+ * migration. Nothing declares it any more and nothing reads it; the schema
7970
+ * still ACCEPTS it because the catalog rows the migration wrote carry it
7971
+ * (an orphaned kind is never redeclared) and an addon built before the
7972
+ * removal still sends it. Never set it.
7973
+ */
7968
7974
  adoptsFrom: string().min(1).optional(),
7969
7975
  /** Kinds that must agree through `transact` sit in one file under one family name. */
7970
7976
  transactFamily: string().min(1).optional(),
@@ -16650,11 +16656,12 @@ var DeclareKindResultSchema = object({
16650
16656
  kindId: number().int(),
16651
16657
  state: RecordKindStateSchema,
16652
16658
  createdIndexes: array(string()),
16653
- /** The boot guard: the kind is empty while its legacy table still holds rows. */
16654
- adoptionPending: object({
16655
- legacyTable: string(),
16656
- legacyRows: number().int()
16657
- }).nullable()
16659
+ /**
16660
+ * RETIRED (D900): always `null`. It carried the records-migration boot guard;
16661
+ * it stays on the wire, null, because an addon built before the removal reads
16662
+ * an ABSENT field as "adoption pending" and refuses to start.
16663
+ */
16664
+ adoptionPending: _null()
16658
16665
  });
16659
16666
  /** Keychain refs a write released (the old marker is gone from the row): the owner deletes the values. */
16660
16667
  var SecretRefsList = array(string());
@@ -16827,26 +16834,7 @@ method(object({ ownerPrefix: string().min(1).optional() }), object({ tables: arr
16827
16834
  }), object({ kinds: array(StorageKindSchema) }), { auth: "admin" }), method(RecordQueryInputSchema.extend({
16828
16835
  owner: string().min(1),
16829
16836
  kind: RecordKindNameSchema
16830
- }), RecordQueryResultSchema, { auth: "admin" }), method(object({
16831
- owner: string().min(1),
16832
- kind: RecordKindNameSchema,
16833
- records: array(RecordInputSchema).max(RECORD_BATCH_MAX),
16834
- /** The LAST batch: the copy is complete, the boot guard stops asking. */
16835
- complete: boolean().optional()
16836
- }).refine((input) => input.records.length > 0 || input.complete === true, { message: "records must be non-empty unless complete is true" }), object({ adopted: number().int() }), {
16837
- kind: "mutation",
16838
- auth: "admin"
16839
- }), method(object({
16840
- collection: string().min(1),
16841
- cursor: string().optional(),
16842
- limit: number().int().min(1).max(1e3).optional()
16843
- }), object({
16844
- rows: array(object({
16845
- id: string(),
16846
- data: record(string(), unknown())
16847
- })),
16848
- nextCursor: string().nullable()
16849
- }), { auth: "admin" }), method(object({ collection: string().min(1) }), object({ adopted: boolean() }), { auth: "admin" });
16837
+ }), RecordQueryResultSchema, { auth: "admin" });
16850
16838
  /**
16851
16839
  * record-entries - the ONE admin surface for every list of user-created entries
16852
16840
  * (D881): notification targets, brokers, LLM profiles, anything an addon
@@ -60453,9 +60441,24 @@ var NpuInfoSchema = object({
60453
60441
  name: string().optional(),
60454
60442
  generation: _enum(["xdna1", "xdna2"]).optional()
60455
60443
  });
60444
+ var CoralBusSchema = _enum(["usb", "pci"]);
60456
60445
  var CoralInfoSchema = object({
60457
60446
  type: literal("coral-edgetpu"),
60458
- bus: string().optional()
60447
+ /** Legacy single-bus report (older nodes) — read via `coralUsableUnits`. */
60448
+ bus: string().optional(),
60449
+ /** Legacy USB unit count (older nodes) — read via `coralUsableUnits`. */
60450
+ count: number().int().nonnegative().optional(),
60451
+ /** Usable units per bus — each one is its own `edgetpu:<bus>[:N]` device. */
60452
+ units: array(object({
60453
+ bus: CoralBusSchema,
60454
+ count: number().int().nonnegative()
60455
+ })).readonly().optional(),
60456
+ /** Present-but-unusable units, each with its typed reason (never "absent"). */
60457
+ unavailable: array(object({
60458
+ bus: CoralBusSchema,
60459
+ count: number().int().nonnegative(),
60460
+ reason: _enum(["driver-missing", "device-not-accessible"])
60461
+ })).readonly().optional()
60459
60462
  });
60460
60463
  var HardwareInfoSchema = object({
60461
60464
  platform: HardwarePlatformSchema,
@@ -69202,6 +69205,12 @@ Object.freeze({
69202
69205
  addonId: null,
69203
69206
  access: "view"
69204
69207
  },
69208
+ "deviceHistory.queryMany": {
69209
+ capName: "device-history",
69210
+ capScope: "system",
69211
+ addonId: null,
69212
+ access: "view"
69213
+ },
69205
69214
  "deviceHistory.queryNode": {
69206
69215
  capName: "device-history",
69207
69216
  capScope: "system",
@@ -74422,24 +74431,12 @@ Object.freeze({
74422
74431
  addonId: null,
74423
74432
  access: "create"
74424
74433
  },
74425
- "storageAdmin.adoptRecords": {
74426
- capName: "storage-admin",
74427
- capScope: "system",
74428
- addonId: null,
74429
- access: "create"
74430
- },
74431
74434
  "storageAdmin.dropCollection": {
74432
74435
  capName: "storage-admin",
74433
74436
  capScope: "system",
74434
74437
  addonId: null,
74435
74438
  access: "delete"
74436
74439
  },
74437
- "storageAdmin.isAdoptedLegacyTable": {
74438
- capName: "storage-admin",
74439
- capScope: "system",
74440
- addonId: null,
74441
- access: "view"
74442
- },
74443
74440
  "storageAdmin.listKinds": {
74444
74441
  capName: "storage-admin",
74445
74442
  capScope: "system",
@@ -74452,12 +74449,6 @@ Object.freeze({
74452
74449
  addonId: null,
74453
74450
  access: "view"
74454
74451
  },
74455
- "storageAdmin.readLegacyCollection": {
74456
- capName: "storage-admin",
74457
- capScope: "system",
74458
- addonId: null,
74459
- access: "view"
74460
- },
74461
74452
  "storageAdmin.readRecords": {
74462
74453
  capName: "storage-admin",
74463
74454
  capScope: "system",
@@ -78272,12 +78263,6 @@ Object.freeze({
78272
78263
  form: "single",
78273
78264
  optional: false
78274
78265
  }],
78275
- "storageAdmin.adoptRecords": [{
78276
- name: "records",
78277
- form: "object-array",
78278
- optional: false,
78279
- itemField: "deviceId"
78280
- }],
78281
78266
  "storageAdmin.readRecords": [{
78282
78267
  name: "deviceId",
78283
78268
  form: "single",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-ecowitt",
3
- "version": "0.2.132",
3
+ "version": "0.2.134",
4
4
  "description": "Ecowitt weather-station device-provider addon for CamStack — wraps the @apocaliss92/nodewitt local-poll / push client",
5
5
  "keywords": [
6
6
  "camstack",