@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.
- package/dist/linux/directory-read.d.ts +14 -0
- package/dist/linux/directory-read.d.ts.map +1 -0
- package/dist/linux/directory.d.ts.map +1 -1
- package/dist/linux/index.js +22 -6
- package/dist/linux/index.js.map +5 -4
- package/dist/litellm/index.js +12 -3
- package/dist/litellm/index.js.map +3 -3
- package/dist/litellm/operations.d.ts.map +1 -1
- package/dist/openbao/auth-role-form.d.ts +0 -6
- package/dist/openbao/auth-role-form.d.ts.map +1 -1
- package/dist/openbao/auth-role-identity.d.ts +11 -0
- package/dist/openbao/auth-role-identity.d.ts.map +1 -0
- package/dist/openbao/auth-role-wire.d.ts +23 -0
- package/dist/openbao/auth-role-wire.d.ts.map +1 -0
- package/dist/openbao/auth-role.d.ts.map +1 -1
- package/dist/openbao/bao-http.d.ts +34 -13
- package/dist/openbao/bao-http.d.ts.map +1 -1
- package/dist/openbao/distilled.d.ts +25 -0
- package/dist/openbao/distilled.d.ts.map +1 -0
- package/dist/openbao/fake-engines-roles.d.ts +5 -1
- package/dist/openbao/fake-engines-roles.d.ts.map +1 -1
- package/dist/openbao/index.js +358 -305
- package/dist/openbao/index.js.map +13 -9
- package/dist/openbao/policy-identity.d.ts +12 -0
- package/dist/openbao/policy-identity.d.ts.map +1 -0
- package/dist/openbao/policy-wire.d.ts +9 -8
- package/dist/openbao/policy-wire.d.ts.map +1 -1
- package/dist/openbao/policy.d.ts.map +1 -1
- package/dist/openbao/rename.d.ts +5 -0
- package/dist/openbao/rename.d.ts.map +1 -1
- package/dist/proxmox/index.js +2 -2
- package/dist/proxmox/index.js.map +3 -3
- package/dist/proxmox/node-network-wire.d.ts +14 -10
- package/dist/proxmox/node-network-wire.d.ts.map +1 -1
- package/docs/upstream-conformance.md +5 -3
- package/package.json +3 -2
- package/src/linux/directory-read.ts +24 -0
- package/src/linux/directory.test.ts +20 -0
- package/src/linux/directory.ts +21 -11
- package/src/litellm/operations.ts +31 -4
- package/src/litellm/pass-through-fetch-client.test.ts +40 -0
- package/src/openbao/auth-role-form.test.ts +11 -9
- package/src/openbao/auth-role-form.ts +0 -19
- package/src/openbao/auth-role-identity.ts +24 -0
- package/src/openbao/auth-role-sdk.test.ts +155 -0
- package/src/openbao/auth-role-wire.test.ts +128 -0
- package/src/openbao/auth-role-wire.ts +89 -0
- package/src/openbao/auth-role.ts +9 -9
- package/src/openbao/bao-http.ts +9 -7
- package/src/openbao/distilled-retry.test.ts +164 -0
- package/src/openbao/distilled.test.ts +146 -0
- package/src/openbao/distilled.ts +88 -0
- package/src/openbao/fake-engines-roles.ts +9 -2
- package/src/openbao/policy-distilled.test.ts +98 -0
- package/src/openbao/policy-identity.ts +24 -0
- package/src/openbao/policy-rename.test.ts +2 -2
- package/src/openbao/policy-wire.test.ts +5 -5
- package/src/openbao/policy-wire.ts +31 -11
- package/src/openbao/policy.ts +10 -13
- package/src/openbao/rename.ts +17 -1
- package/src/proxmox/node-network-read-failure.test.ts +24 -0
- 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;
|
|
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"}
|
package/dist/linux/index.js
CHANGED
|
@@ -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 }) =>
|
|
403
|
-
const
|
|
404
|
-
if (
|
|
405
|
-
|
|
406
|
-
|
|
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=
|
|
3135
|
+
//# debugId=F28A7095F5BC6E5964756E2164756E21
|
|
3120
3136
|
//# sourceMappingURL=index.js.map
|