@homeflare/alchemy 0.42.0 → 0.43.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.
Files changed (80) hide show
  1. package/dist/litellm/budget-errors.d.ts +36 -0
  2. package/dist/litellm/budget-errors.d.ts.map +1 -0
  3. package/dist/litellm/budget-form.d.ts +50 -0
  4. package/dist/litellm/budget-form.d.ts.map +1 -0
  5. package/dist/litellm/budget-operations.d.ts +20 -0
  6. package/dist/litellm/budget-operations.d.ts.map +1 -0
  7. package/dist/litellm/budget.d.ts +61 -0
  8. package/dist/litellm/budget.d.ts.map +1 -0
  9. package/dist/litellm/fake-litellm.d.ts +5 -0
  10. package/dist/litellm/fake-litellm.d.ts.map +1 -1
  11. package/dist/litellm/index.d.ts +2 -0
  12. package/dist/litellm/index.d.ts.map +1 -1
  13. package/dist/litellm/index.js +125 -2
  14. package/dist/litellm/index.js.map +9 -5
  15. package/dist/litellm/operations.d.ts +22 -0
  16. package/dist/litellm/operations.d.ts.map +1 -1
  17. package/dist/litellm/providers.d.ts +1 -1
  18. package/dist/litellm/providers.d.ts.map +1 -1
  19. package/dist/openbao/auth-role-form.d.ts +9 -0
  20. package/dist/openbao/auth-role-form.d.ts.map +1 -1
  21. package/dist/openbao/auth-role-wire.d.ts.map +1 -1
  22. package/dist/openbao/fake-engines-roles.d.ts.map +1 -1
  23. package/dist/openbao/index.js +9 -6
  24. package/dist/openbao/index.js.map +4 -4
  25. package/dist/postgres/connection.d.ts +20 -2
  26. package/dist/postgres/connection.d.ts.map +1 -1
  27. package/dist/postgres/database-sql.d.ts +1 -1
  28. package/dist/postgres/database-sql.d.ts.map +1 -1
  29. package/dist/postgres/database.d.ts +1 -1
  30. package/dist/postgres/database.d.ts.map +1 -1
  31. package/dist/postgres/index.d.ts +5 -3
  32. package/dist/postgres/index.d.ts.map +1 -1
  33. package/dist/postgres/index.js +124 -38
  34. package/dist/postgres/index.js.map +8 -7
  35. package/dist/postgres/providers.d.ts +4 -2
  36. package/dist/postgres/providers.d.ts.map +1 -1
  37. package/dist/postgres/psql-executor.d.ts +21 -0
  38. package/dist/postgres/psql-executor.d.ts.map +1 -0
  39. package/dist/proxmox/ceph-flag-types.d.ts +57 -0
  40. package/dist/proxmox/ceph-flag-types.d.ts.map +1 -0
  41. package/dist/proxmox/ceph-flag-wire.d.ts +77 -0
  42. package/dist/proxmox/ceph-flag-wire.d.ts.map +1 -0
  43. package/dist/proxmox/ceph-flag.d.ts +15 -50
  44. package/dist/proxmox/ceph-flag.d.ts.map +1 -1
  45. package/dist/proxmox/ceph-osd-write.d.ts +10 -13
  46. package/dist/proxmox/ceph-osd-write.d.ts.map +1 -1
  47. package/dist/proxmox/index.js +772 -740
  48. package/dist/proxmox/index.js.map +8 -7
  49. package/docs/litellm-budget.md +55 -0
  50. package/docs/litellm.md +7 -6
  51. package/docs/postgres.md +22 -0
  52. package/docs/proxmox-sdk-migration.md +45 -0
  53. package/package.json +3 -3
  54. package/src/litellm/budget-errors.ts +38 -0
  55. package/src/litellm/budget-form.ts +94 -0
  56. package/src/litellm/budget-operations.ts +51 -0
  57. package/src/litellm/budget.test.ts +105 -0
  58. package/src/litellm/budget.ts +127 -0
  59. package/src/litellm/fake-litellm.ts +50 -1
  60. package/src/litellm/index.ts +13 -0
  61. package/src/litellm/operations.ts +1 -1
  62. package/src/litellm/providers.ts +4 -1
  63. package/src/openbao/auth-role-form.test.ts +37 -0
  64. package/src/openbao/auth-role-form.ts +12 -1
  65. package/src/openbao/auth-role-wire.test.ts +1 -0
  66. package/src/openbao/auth-role-wire.ts +13 -1
  67. package/src/openbao/distilled-retry.test.ts +1 -0
  68. package/src/openbao/fake-engines-roles.ts +7 -1
  69. package/src/postgres/connection.ts +37 -3
  70. package/src/postgres/database-sql.ts +4 -3
  71. package/src/postgres/database.ts +3 -2
  72. package/src/postgres/index.ts +10 -3
  73. package/src/postgres/providers.ts +15 -2
  74. package/src/postgres/psql-executor.test.ts +106 -0
  75. package/src/postgres/psql-executor.ts +130 -0
  76. package/src/proxmox/ceph-flag-types.ts +70 -0
  77. package/src/proxmox/ceph-flag-wire.test.ts +72 -0
  78. package/src/proxmox/ceph-flag-wire.ts +123 -0
  79. package/src/proxmox/ceph-flag.ts +77 -130
  80. package/src/proxmox/ceph-osd-write.ts +10 -13
@@ -102,19 +102,16 @@ export const createOsd = Effect.fn(function* (news: CephOsdProps) {
102
102
  * ⚠️ `cleanup` DEFAULTS TO FALSE, so the logical volumes survive and the disk can be re-added
103
103
  * without a rebuild. Ceph still starts backfilling the missing copies the moment the OSD goes.
104
104
  *
105
- * ⚠️ `cleanup` RIDES A DELETE BODY, ON `client.ts` AND ON DISTILLED ALIKE — PRE-EXISTING, NOT
106
- * INTRODUCED HERE. `client.ts`'s own `buildRequest` (client.ts) puts `form` in the body for
107
- * every method, DELETE included, and CHECKED against distilled's generated
108
- * `DeleteNodeCephOsdRequest`: `cleanup` carries no `T.Query()` annotation either, so it also
109
- * defaults to a body field. ceph-fs-wire.ts's own ⛔ (measured from PVE's `AnyEvent.pm`) is that
110
- * PVE's server never reads a body on DELETE — so `cleanup=1` was ALREADY silently ignored by
111
- * the live cluster before this migration, on the unmigrated code too. Migrating carries the
112
- * SAME behaviour forward exactly, byte-for-byte, rather than introducing a new gap; unlike
113
- * `Proxmox.CephFs`'s delete, this is not a reason to keep the call on the hand client. It has
114
- * zero practical effect today regardless, since the whole DELETE 403s for this package's
115
- * credential either way (the root-only ⛔ at the top of ceph-osd.ts) — flagged separately as a
116
- * pre-existing, out-of-scope bug worth its own fix (move `cleanup` into the query string, the
117
- * way `destroyPath` in ceph-fs-wire.ts already does).
105
+ * ★ CORRECTED 2026-09-28: `cleanup` IS QUERY-BOUND ON DISTILLED, NOT BODY. This comment previously
106
+ * claimed `DeleteNodeCephOsdRequest.cleanup` carried no `T.Query()` annotation and so rode the
107
+ * DELETE body, silently ignored by PVE's server (which never reads a body on DELETE, per
108
+ * ceph-fs-wire.ts's measurement of `AnyEvent.pm`). That was true of the old `client.ts` hand
109
+ * client, but distilled-proxmox's generated schema
110
+ * (`packages/distilled-proxmox/src/services/nodes.ts`) declares
111
+ * `cleanup: S.optional(S.String.pipe(T.Query()))` — query-bound — as of SDK 0.3.0, the same fix
112
+ * that landed for the sibling `Proxmox.CephFs`'s `destroyFs`. Since this file already runs on
113
+ * distilled (`import * as nodes from '@distilled.cloud/proxmox/nodes'`), `cleanup: '1'` below
114
+ * reaches PVE correctly today. No code change needed here; this was a stale doc claim only.
118
115
  */
119
116
  export const destroyOsd = (olds: CephOsdProps) =>
120
117
  runPve(