@wtfalch/foundry 0.72.0 → 0.72.1

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.
@@ -34,7 +34,9 @@ export interface NativeBuildDispatchDeps {
34
34
  timeoutMs?: number;
35
35
  }
36
36
  /**
37
- * Dispatches `build-app.yml` with exactly `{ runId, origin }` as its inputs:
37
+ * Dispatches `build-app.yml` with exactly `{ runId, origin }` as its inputs,
38
+ * plus `runSecret` when the caller gives one (boule#433: Boule mints it per
39
+ * run and requires it at build-keys; never logged here):
38
40
  * `runId` is the run the caller (Archon, behind its own `/api/native/builds`
39
41
  * route) already made, `origin` is the company's Boule address the job
40
42
  * reports its status back to and trades its OIDC token for keys at. Foundry
@@ -44,6 +46,7 @@ export interface NativeBuildDispatchDeps {
44
46
  export declare function dispatchNativeBuild(deps: NativeBuildDispatchDeps, run: {
45
47
  runId: string;
46
48
  origin: string;
49
+ runSecret?: string;
47
50
  }): Promise<void>;
48
51
  /**
49
52
  * @deprecated foundry#987: Archon's native-build route checks the company's own org credential
@@ -33,7 +33,9 @@ export class NativeBuildDispatchError extends Error {
33
33
  }
34
34
  }
35
35
  /**
36
- * Dispatches `build-app.yml` with exactly `{ runId, origin }` as its inputs:
36
+ * Dispatches `build-app.yml` with exactly `{ runId, origin }` as its inputs,
37
+ * plus `runSecret` when the caller gives one (boule#433: Boule mints it per
38
+ * run and requires it at build-keys; never logged here):
37
39
  * `runId` is the run the caller (Archon, behind its own `/api/native/builds`
38
40
  * route) already made, `origin` is the company's Boule address the job
39
41
  * reports its status back to and trades its OIDC token for keys at. Foundry
@@ -55,7 +57,11 @@ export async function dispatchNativeBuild(deps, run) {
55
57
  },
56
58
  body: JSON.stringify({
57
59
  ref: NATIVE_BUILD_WORKFLOW_REF,
58
- inputs: { runId: run.runId, origin: run.origin },
60
+ inputs: {
61
+ runId: run.runId,
62
+ origin: run.origin,
63
+ ...(run.runSecret ? { runSecret: run.runSecret } : {}),
64
+ },
59
65
  }),
60
66
  signal: AbortSignal.timeout(timeoutMs),
61
67
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wtfalch/foundry",
3
- "version": "0.72.0",
3
+ "version": "0.72.1",
4
4
  "description": "Foundry's SDK: the declared org's types, the plan and apply contracts, and the state store's interface.",
5
5
  "repository": {
6
6
  "type": "git",