@camstack/addon-terminal 0.1.138 → 0.1.140

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
@@ -5446,7 +5446,7 @@ var ZodIssueCode = {
5446
5446
  var ZodFirstPartyTypeKind;
5447
5447
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5448
5448
  //#endregion
5449
- //#region ../types/dist/sleep-BSuCCFjf.mjs
5449
+ //#region ../types/dist/sleep-CSuN0thG.mjs
5450
5450
  /**
5451
5451
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5452
5452
  * window to float samples (D455).
@@ -7994,7 +7994,13 @@ var RecordKindDeclarationSchema = object({
7994
7994
  secretPaths: array(string().min(1)).default([]),
7995
7995
  /** The id key of each array that carries a secret (`{ headers: 'name' }`). */
7996
7996
  secretArrayKeys: record(string(), string()).default({}),
7997
- /** The legacy table this kind adopts from; the boot guard reads it (D853: no migration code). */
7997
+ /**
7998
+ * RETIRED (D900): the legacy table a kind adopted from during the records
7999
+ * migration. Nothing declares it any more and nothing reads it; the schema
8000
+ * still ACCEPTS it because the catalog rows the migration wrote carry it
8001
+ * (an orphaned kind is never redeclared) and an addon built before the
8002
+ * removal still sends it. Never set it.
8003
+ */
7998
8004
  adoptsFrom: string().min(1).optional(),
7999
8005
  /** Kinds that must agree through `transact` sit in one file under one family name. */
8000
8006
  transactFamily: string().min(1).optional(),
@@ -16757,11 +16763,12 @@ var DeclareKindResultSchema = object({
16757
16763
  kindId: number().int(),
16758
16764
  state: RecordKindStateSchema,
16759
16765
  createdIndexes: array(string()),
16760
- /** The boot guard: the kind is empty while its legacy table still holds rows. */
16761
- adoptionPending: object({
16762
- legacyTable: string(),
16763
- legacyRows: number().int()
16764
- }).nullable()
16766
+ /**
16767
+ * RETIRED (D900): always `null`. It carried the records-migration boot guard;
16768
+ * it stays on the wire, null, because an addon built before the removal reads
16769
+ * an ABSENT field as "adoption pending" and refuses to start.
16770
+ */
16771
+ adoptionPending: _null()
16765
16772
  });
16766
16773
  /** Keychain refs a write released (the old marker is gone from the row): the owner deletes the values. */
16767
16774
  var SecretRefsList = array(string());
@@ -16934,26 +16941,7 @@ method(object({ ownerPrefix: string().min(1).optional() }), object({ tables: arr
16934
16941
  }), object({ kinds: array(StorageKindSchema) }), { auth: "admin" }), method(RecordQueryInputSchema.extend({
16935
16942
  owner: string().min(1),
16936
16943
  kind: RecordKindNameSchema
16937
- }), RecordQueryResultSchema, { auth: "admin" }), method(object({
16938
- owner: string().min(1),
16939
- kind: RecordKindNameSchema,
16940
- records: array(RecordInputSchema).max(RECORD_BATCH_MAX),
16941
- /** The LAST batch: the copy is complete, the boot guard stops asking. */
16942
- complete: boolean().optional()
16943
- }).refine((input) => input.records.length > 0 || input.complete === true, { message: "records must be non-empty unless complete is true" }), object({ adopted: number().int() }), {
16944
- kind: "mutation",
16945
- auth: "admin"
16946
- }), method(object({
16947
- collection: string().min(1),
16948
- cursor: string().optional(),
16949
- limit: number().int().min(1).max(1e3).optional()
16950
- }), object({
16951
- rows: array(object({
16952
- id: string(),
16953
- data: record(string(), unknown())
16954
- })),
16955
- nextCursor: string().nullable()
16956
- }), { auth: "admin" }), method(object({ collection: string().min(1) }), object({ adopted: boolean() }), { auth: "admin" });
16944
+ }), RecordQueryResultSchema, { auth: "admin" });
16957
16945
  /**
16958
16946
  * record-entries - the ONE admin surface for every list of user-created entries
16959
16947
  * (D881): notification targets, brokers, LLM profiles, anything an addon
@@ -60514,9 +60502,24 @@ var NpuInfoSchema = object({
60514
60502
  name: string().optional(),
60515
60503
  generation: _enum(["xdna1", "xdna2"]).optional()
60516
60504
  });
60505
+ var CoralBusSchema = _enum(["usb", "pci"]);
60517
60506
  var CoralInfoSchema = object({
60518
60507
  type: literal("coral-edgetpu"),
60519
- bus: string().optional()
60508
+ /** Legacy single-bus report (older nodes) — read via `coralUsableUnits`. */
60509
+ bus: string().optional(),
60510
+ /** Legacy USB unit count (older nodes) — read via `coralUsableUnits`. */
60511
+ count: number().int().nonnegative().optional(),
60512
+ /** Usable units per bus — each one is its own `edgetpu:<bus>[:N]` device. */
60513
+ units: array(object({
60514
+ bus: CoralBusSchema,
60515
+ count: number().int().nonnegative()
60516
+ })).readonly().optional(),
60517
+ /** Present-but-unusable units, each with its typed reason (never "absent"). */
60518
+ unavailable: array(object({
60519
+ bus: CoralBusSchema,
60520
+ count: number().int().nonnegative(),
60521
+ reason: _enum(["driver-missing", "device-not-accessible"])
60522
+ })).readonly().optional()
60520
60523
  });
60521
60524
  var HardwareInfoSchema = object({
60522
60525
  platform: HardwarePlatformSchema,
@@ -68780,6 +68783,12 @@ Object.freeze({
68780
68783
  addonId: null,
68781
68784
  access: "view"
68782
68785
  },
68786
+ "deviceHistory.queryMany": {
68787
+ capName: "device-history",
68788
+ capScope: "system",
68789
+ addonId: null,
68790
+ access: "view"
68791
+ },
68783
68792
  "deviceHistory.queryNode": {
68784
68793
  capName: "device-history",
68785
68794
  capScope: "system",
@@ -74000,24 +74009,12 @@ Object.freeze({
74000
74009
  addonId: null,
74001
74010
  access: "create"
74002
74011
  },
74003
- "storageAdmin.adoptRecords": {
74004
- capName: "storage-admin",
74005
- capScope: "system",
74006
- addonId: null,
74007
- access: "create"
74008
- },
74009
74012
  "storageAdmin.dropCollection": {
74010
74013
  capName: "storage-admin",
74011
74014
  capScope: "system",
74012
74015
  addonId: null,
74013
74016
  access: "delete"
74014
74017
  },
74015
- "storageAdmin.isAdoptedLegacyTable": {
74016
- capName: "storage-admin",
74017
- capScope: "system",
74018
- addonId: null,
74019
- access: "view"
74020
- },
74021
74018
  "storageAdmin.listKinds": {
74022
74019
  capName: "storage-admin",
74023
74020
  capScope: "system",
@@ -74030,12 +74027,6 @@ Object.freeze({
74030
74027
  addonId: null,
74031
74028
  access: "view"
74032
74029
  },
74033
- "storageAdmin.readLegacyCollection": {
74034
- capName: "storage-admin",
74035
- capScope: "system",
74036
- addonId: null,
74037
- access: "view"
74038
- },
74039
74030
  "storageAdmin.readRecords": {
74040
74031
  capName: "storage-admin",
74041
74032
  capScope: "system",
@@ -77850,12 +77841,6 @@ Object.freeze({
77850
77841
  form: "single",
77851
77842
  optional: false
77852
77843
  }],
77853
- "storageAdmin.adoptRecords": [{
77854
- name: "records",
77855
- form: "object-array",
77856
- optional: false,
77857
- itemField: "deviceId"
77858
- }],
77859
77844
  "storageAdmin.readRecords": [{
77860
77845
  name: "deviceId",
77861
77846
  form: "single",
package/dist/addon.mjs CHANGED
@@ -5423,7 +5423,7 @@ var ZodIssueCode = {
5423
5423
  var ZodFirstPartyTypeKind;
5424
5424
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5425
5425
  //#endregion
5426
- //#region ../types/dist/sleep-BSuCCFjf.mjs
5426
+ //#region ../types/dist/sleep-CSuN0thG.mjs
5427
5427
  /**
5428
5428
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5429
5429
  * window to float samples (D455).
@@ -7971,7 +7971,13 @@ var RecordKindDeclarationSchema = object({
7971
7971
  secretPaths: array(string().min(1)).default([]),
7972
7972
  /** The id key of each array that carries a secret (`{ headers: 'name' }`). */
7973
7973
  secretArrayKeys: record(string(), string()).default({}),
7974
- /** The legacy table this kind adopts from; the boot guard reads it (D853: no migration code). */
7974
+ /**
7975
+ * RETIRED (D900): the legacy table a kind adopted from during the records
7976
+ * migration. Nothing declares it any more and nothing reads it; the schema
7977
+ * still ACCEPTS it because the catalog rows the migration wrote carry it
7978
+ * (an orphaned kind is never redeclared) and an addon built before the
7979
+ * removal still sends it. Never set it.
7980
+ */
7975
7981
  adoptsFrom: string().min(1).optional(),
7976
7982
  /** Kinds that must agree through `transact` sit in one file under one family name. */
7977
7983
  transactFamily: string().min(1).optional(),
@@ -16734,11 +16740,12 @@ var DeclareKindResultSchema = object({
16734
16740
  kindId: number().int(),
16735
16741
  state: RecordKindStateSchema,
16736
16742
  createdIndexes: array(string()),
16737
- /** The boot guard: the kind is empty while its legacy table still holds rows. */
16738
- adoptionPending: object({
16739
- legacyTable: string(),
16740
- legacyRows: number().int()
16741
- }).nullable()
16743
+ /**
16744
+ * RETIRED (D900): always `null`. It carried the records-migration boot guard;
16745
+ * it stays on the wire, null, because an addon built before the removal reads
16746
+ * an ABSENT field as "adoption pending" and refuses to start.
16747
+ */
16748
+ adoptionPending: _null()
16742
16749
  });
16743
16750
  /** Keychain refs a write released (the old marker is gone from the row): the owner deletes the values. */
16744
16751
  var SecretRefsList = array(string());
@@ -16911,26 +16918,7 @@ method(object({ ownerPrefix: string().min(1).optional() }), object({ tables: arr
16911
16918
  }), object({ kinds: array(StorageKindSchema) }), { auth: "admin" }), method(RecordQueryInputSchema.extend({
16912
16919
  owner: string().min(1),
16913
16920
  kind: RecordKindNameSchema
16914
- }), RecordQueryResultSchema, { auth: "admin" }), method(object({
16915
- owner: string().min(1),
16916
- kind: RecordKindNameSchema,
16917
- records: array(RecordInputSchema).max(RECORD_BATCH_MAX),
16918
- /** The LAST batch: the copy is complete, the boot guard stops asking. */
16919
- complete: boolean().optional()
16920
- }).refine((input) => input.records.length > 0 || input.complete === true, { message: "records must be non-empty unless complete is true" }), object({ adopted: number().int() }), {
16921
- kind: "mutation",
16922
- auth: "admin"
16923
- }), method(object({
16924
- collection: string().min(1),
16925
- cursor: string().optional(),
16926
- limit: number().int().min(1).max(1e3).optional()
16927
- }), object({
16928
- rows: array(object({
16929
- id: string(),
16930
- data: record(string(), unknown())
16931
- })),
16932
- nextCursor: string().nullable()
16933
- }), { auth: "admin" }), method(object({ collection: string().min(1) }), object({ adopted: boolean() }), { auth: "admin" });
16921
+ }), RecordQueryResultSchema, { auth: "admin" });
16934
16922
  /**
16935
16923
  * record-entries - the ONE admin surface for every list of user-created entries
16936
16924
  * (D881): notification targets, brokers, LLM profiles, anything an addon
@@ -60491,9 +60479,24 @@ var NpuInfoSchema = object({
60491
60479
  name: string().optional(),
60492
60480
  generation: _enum(["xdna1", "xdna2"]).optional()
60493
60481
  });
60482
+ var CoralBusSchema = _enum(["usb", "pci"]);
60494
60483
  var CoralInfoSchema = object({
60495
60484
  type: literal("coral-edgetpu"),
60496
- bus: string().optional()
60485
+ /** Legacy single-bus report (older nodes) — read via `coralUsableUnits`. */
60486
+ bus: string().optional(),
60487
+ /** Legacy USB unit count (older nodes) — read via `coralUsableUnits`. */
60488
+ count: number().int().nonnegative().optional(),
60489
+ /** Usable units per bus — each one is its own `edgetpu:<bus>[:N]` device. */
60490
+ units: array(object({
60491
+ bus: CoralBusSchema,
60492
+ count: number().int().nonnegative()
60493
+ })).readonly().optional(),
60494
+ /** Present-but-unusable units, each with its typed reason (never "absent"). */
60495
+ unavailable: array(object({
60496
+ bus: CoralBusSchema,
60497
+ count: number().int().nonnegative(),
60498
+ reason: _enum(["driver-missing", "device-not-accessible"])
60499
+ })).readonly().optional()
60497
60500
  });
60498
60501
  var HardwareInfoSchema = object({
60499
60502
  platform: HardwarePlatformSchema,
@@ -68757,6 +68760,12 @@ Object.freeze({
68757
68760
  addonId: null,
68758
68761
  access: "view"
68759
68762
  },
68763
+ "deviceHistory.queryMany": {
68764
+ capName: "device-history",
68765
+ capScope: "system",
68766
+ addonId: null,
68767
+ access: "view"
68768
+ },
68760
68769
  "deviceHistory.queryNode": {
68761
68770
  capName: "device-history",
68762
68771
  capScope: "system",
@@ -73977,24 +73986,12 @@ Object.freeze({
73977
73986
  addonId: null,
73978
73987
  access: "create"
73979
73988
  },
73980
- "storageAdmin.adoptRecords": {
73981
- capName: "storage-admin",
73982
- capScope: "system",
73983
- addonId: null,
73984
- access: "create"
73985
- },
73986
73989
  "storageAdmin.dropCollection": {
73987
73990
  capName: "storage-admin",
73988
73991
  capScope: "system",
73989
73992
  addonId: null,
73990
73993
  access: "delete"
73991
73994
  },
73992
- "storageAdmin.isAdoptedLegacyTable": {
73993
- capName: "storage-admin",
73994
- capScope: "system",
73995
- addonId: null,
73996
- access: "view"
73997
- },
73998
73995
  "storageAdmin.listKinds": {
73999
73996
  capName: "storage-admin",
74000
73997
  capScope: "system",
@@ -74007,12 +74004,6 @@ Object.freeze({
74007
74004
  addonId: null,
74008
74005
  access: "view"
74009
74006
  },
74010
- "storageAdmin.readLegacyCollection": {
74011
- capName: "storage-admin",
74012
- capScope: "system",
74013
- addonId: null,
74014
- access: "view"
74015
- },
74016
74007
  "storageAdmin.readRecords": {
74017
74008
  capName: "storage-admin",
74018
74009
  capScope: "system",
@@ -77827,12 +77818,6 @@ Object.freeze({
77827
77818
  form: "single",
77828
77819
  optional: false
77829
77820
  }],
77830
- "storageAdmin.adoptRecords": [{
77831
- name: "records",
77832
- form: "object-array",
77833
- optional: false,
77834
- itemField: "deviceId"
77835
- }],
77836
77821
  "storageAdmin.readRecords": [{
77837
77822
  name: "deviceId",
77838
77823
  form: "single",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-terminal",
3
- "version": "0.1.138",
3
+ "version": "0.1.140",
4
4
  "description": "Interactive terminal sessions (pty + xterm) as a CamStack addon",
5
5
  "keywords": [
6
6
  "camstack",