@homeflare/alchemy 0.37.4 → 0.37.6

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 (62) hide show
  1. package/dist/linux/directory-read.d.ts +14 -0
  2. package/dist/linux/directory-read.d.ts.map +1 -0
  3. package/dist/linux/directory.d.ts.map +1 -1
  4. package/dist/linux/index.js +22 -6
  5. package/dist/linux/index.js.map +5 -4
  6. package/dist/litellm/index.js +12 -3
  7. package/dist/litellm/index.js.map +3 -3
  8. package/dist/litellm/operations.d.ts.map +1 -1
  9. package/dist/openbao/auth-role-form.d.ts +0 -6
  10. package/dist/openbao/auth-role-form.d.ts.map +1 -1
  11. package/dist/openbao/auth-role-identity.d.ts +11 -0
  12. package/dist/openbao/auth-role-identity.d.ts.map +1 -0
  13. package/dist/openbao/auth-role-wire.d.ts +23 -0
  14. package/dist/openbao/auth-role-wire.d.ts.map +1 -0
  15. package/dist/openbao/auth-role.d.ts.map +1 -1
  16. package/dist/openbao/bao-http.d.ts +34 -13
  17. package/dist/openbao/bao-http.d.ts.map +1 -1
  18. package/dist/openbao/distilled.d.ts +25 -0
  19. package/dist/openbao/distilled.d.ts.map +1 -0
  20. package/dist/openbao/fake-engines-roles.d.ts +5 -1
  21. package/dist/openbao/fake-engines-roles.d.ts.map +1 -1
  22. package/dist/openbao/index.js +358 -305
  23. package/dist/openbao/index.js.map +13 -9
  24. package/dist/openbao/policy-identity.d.ts +12 -0
  25. package/dist/openbao/policy-identity.d.ts.map +1 -0
  26. package/dist/openbao/policy-wire.d.ts +9 -8
  27. package/dist/openbao/policy-wire.d.ts.map +1 -1
  28. package/dist/openbao/policy.d.ts.map +1 -1
  29. package/dist/openbao/rename.d.ts +5 -0
  30. package/dist/openbao/rename.d.ts.map +1 -1
  31. package/dist/proxmox/index.js +2 -2
  32. package/dist/proxmox/index.js.map +3 -3
  33. package/dist/proxmox/node-network-wire.d.ts +14 -10
  34. package/dist/proxmox/node-network-wire.d.ts.map +1 -1
  35. package/docs/upstream-conformance.md +5 -3
  36. package/package.json +3 -2
  37. package/src/linux/directory-read.ts +24 -0
  38. package/src/linux/directory.test.ts +20 -0
  39. package/src/linux/directory.ts +21 -11
  40. package/src/litellm/operations.ts +31 -4
  41. package/src/litellm/pass-through-fetch-client.test.ts +40 -0
  42. package/src/openbao/auth-role-form.test.ts +11 -9
  43. package/src/openbao/auth-role-form.ts +0 -19
  44. package/src/openbao/auth-role-identity.ts +24 -0
  45. package/src/openbao/auth-role-sdk.test.ts +155 -0
  46. package/src/openbao/auth-role-wire.test.ts +128 -0
  47. package/src/openbao/auth-role-wire.ts +89 -0
  48. package/src/openbao/auth-role.ts +9 -9
  49. package/src/openbao/bao-http.ts +9 -7
  50. package/src/openbao/distilled-retry.test.ts +164 -0
  51. package/src/openbao/distilled.test.ts +146 -0
  52. package/src/openbao/distilled.ts +88 -0
  53. package/src/openbao/fake-engines-roles.ts +9 -2
  54. package/src/openbao/policy-distilled.test.ts +98 -0
  55. package/src/openbao/policy-identity.ts +24 -0
  56. package/src/openbao/policy-rename.test.ts +2 -2
  57. package/src/openbao/policy-wire.test.ts +5 -5
  58. package/src/openbao/policy-wire.ts +31 -11
  59. package/src/openbao/policy.ts +10 -13
  60. package/src/openbao/rename.ts +17 -1
  61. package/src/proxmox/node-network-read-failure.test.ts +24 -0
  62. package/src/proxmox/node-network-wire.ts +15 -17
@@ -0,0 +1,14 @@
1
+ /**
2
+ * The directory a read may stat.
3
+ *
4
+ * ⛔ A `creating` ROW CAN HAVE NO PATH. With `path: Output.interpolate`, Apply commits the row
5
+ * while the path is still an Output, so the next plan's recovery read is asked with `path`
6
+ * missing. `runner.stat` of that value throws `path must be a string` and the plan never
7
+ * finishes — the same brick `binary-read.ts` already closes for `Release.Binary`. A recovery
8
+ * (`recovering`) returns undefined and the create is re-driven. A probe with a missing path
9
+ * still fails, as a message, before any host call.
10
+ */
11
+ import type { HostRunner } from '../launchd/runner.ts';
12
+ import { type HostDirectoryAttributes } from './directory-lifecycle.ts';
13
+ export declare const readInterruptedDirectory: (runner: HostRunner, path: unknown, recovering: boolean) => Promise<HostDirectoryAttributes | undefined>;
14
+ //# sourceMappingURL=directory-read.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"directory-read.d.ts","sourceRoot":"","sources":["../../src/linux/directory-read.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,KAAK,uBAAuB,EAAiB,MAAM,0BAA0B,CAAC;AAEvF,eAAO,MAAM,wBAAwB,WAC3B,UAAU,QACZ,OAAO,cACD,OAAO,KAClB,OAAO,CAAC,uBAAuB,GAAG,SAAS,CAM7C,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"directory.d.ts","sourceRoot":"","sources":["../../src/linux/directory.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAGnC,OAAO,KAAK,QAAQ,MAAM,kBAAkB,CAAC;AAG7C,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAGzD,OAAO,KAAK,EAAE,uBAAuB,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAQ5F,YAAY,EAAE,uBAAuB,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAE5F,MAAM,WAAW,aAAc,SAAQ,QAAQ,CAC7C,gBAAgB,EAChB,kBAAkB,EAClB,uBAAuB,CACxB;CAAG;AAEJ,eAAO,MAAM,aAAa,gDAA4C,CAAC;AAEvE,eAAO,MAAM,qBAAqB,gGAkC/B,CAAC"}
1
+ {"version":3,"file":"directory.d.ts","sourceRoot":"","sources":["../../src/linux/directory.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAGnC,OAAO,KAAK,QAAQ,MAAM,kBAAkB,CAAC;AAG7C,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAIzD,OAAO,KAAK,EAAE,uBAAuB,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAI5F,YAAY,EAAE,uBAAuB,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAE5F,MAAM,WAAW,aAAc,SAAQ,QAAQ,CAC7C,gBAAgB,EAChB,kBAAkB,EAClB,uBAAuB,CACxB;CAAG;AAEJ,eAAO,MAAM,aAAa,gDAA4C,CAAC;AAEvE,eAAO,MAAM,qBAAqB,gGA+C/B,CAAC"}
@@ -393,17 +393,33 @@ var deleteDirectory = async (runner, output) => {
393
393
  await must(runner, output.path, ["rmdir", "--", output.path]);
394
394
  };
395
395
 
396
+ // src/linux/directory-read.ts
397
+ var readInterruptedDirectory = (runner, path, recovering) => {
398
+ if (typeof path !== "string") {
399
+ if (recovering)
400
+ return Promise.resolve(undefined);
401
+ return Promise.reject(new Error("Host.Directory path must be a string"));
402
+ }
403
+ return readDirectory(runner, path);
404
+ };
405
+
396
406
  // src/linux/directory.ts
397
407
  var HostDirectory = Resource("Host.Directory");
398
408
  var HostDirectoryProvider = () => Provider.effect(HostDirectory, Effect6.gen(function* () {
399
409
  const runner = yield* HostRunnerService;
400
410
  return HostDirectory.Provider.of({
401
411
  list: () => Effect6.succeed([]),
402
- read: ({ olds, output }) => lift(async () => {
403
- const found = await readDirectory(runner, olds.path);
404
- if (found === undefined)
405
- return;
406
- return output === undefined ? Unowned2(found) : found;
412
+ read: ({ fqn, instanceId, olds, output }) => Effect6.gen(function* () {
413
+ const recovering = typeof olds.path === "string" ? false : (yield* recordedGeneration(fqn, instanceId)) !== undefined;
414
+ if (recovering) {
415
+ yield* Effect6.logWarning(`${fqn}: the interrupted create's row has no directory path; nothing is recovered, ` + "and the create is re-driven with the declaration as it is now");
416
+ }
417
+ return yield* lift(async () => {
418
+ const found = await readInterruptedDirectory(runner, olds.path, recovering);
419
+ if (found === undefined)
420
+ return;
421
+ return output === undefined ? Unowned2(found) : found;
422
+ });
407
423
  }),
408
424
  diff: ({ instanceId, news, output }) => {
409
425
  if (output === undefined)
@@ -3116,5 +3132,5 @@ export {
3116
3132
  sshSudoRunner
3117
3133
  };
3118
3134
 
3119
- //# debugId=1EE1AA5E6605EDDF64756E2164756E21
3135
+ //# debugId=F28A7095F5BC6E5964756E2164756E21
3120
3136
  //# sourceMappingURL=index.js.map