@grida/fx 0.2.1 → 0.4.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.
package/README.md CHANGED
@@ -3,7 +3,8 @@
3
3
  Grida FX for JavaScript and TypeScript: an SDK to write workflow files and to plan, price and
4
4
  run them, and the standalone `grida-fx` command. Grida FX is a workflow engine for generative asset
5
5
  pipelines: write a workflow file, and FX plans it, prices it before anything is spent, caches
6
- every paid call by its request, and records the run. It works with your own provider keys.
6
+ every paid call by its request, and records the run. It works with one Grida Gateway key
7
+ (`GG_API_KEY`), or your own provider keys.
7
8
 
8
9
  To run FX from a terminal, install the Grida CLI: `npm install -g grida`, then `grida fx --help`.
9
10
  It pins this package. Install `@grida/fx` itself for the SDK, or for `grida-fx` on its own (in a
package/dist/index.d.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  * the engine package for the machine); this package drives it: plan, price and run workflows,
4
4
  * read their runs, and write workflow documents.
5
5
  */
6
- export declare const version = "0.2.1";
6
+ export declare const version = "0.4.0";
7
7
  export { engineVersion, expand, identity, type InspectOptions, inspect, Plan, PlanRefused, plan, price, project, RunFile, RunResult, type RunValue, run, } from "./api.js";
8
8
  export { BINARY_VARIABLE, type BinaryOptions, binary, type Environment } from "./binary.js";
9
9
  export { cancel, type CancelOptions, inspectControl, RunControlError, type RunControlResult } from "./control.js";
package/dist/index.js CHANGED
@@ -3,7 +3,7 @@
3
3
  * the engine package for the machine); this package drives it: plan, price and run workflows,
4
4
  * read their runs, and write workflow documents.
5
5
  */
6
- export const version = "0.2.1";
6
+ export const version = "0.4.0";
7
7
  export { engineVersion, expand, identity, inspect, Plan, PlanRefused, plan, price, project, RunFile, RunResult, run, } from "./api.js";
8
8
  export { BINARY_VARIABLE, binary } from "./binary.js";
9
9
  export { cancel, inspectControl, RunControlError } from "./control.js";
package/dist/request.d.ts CHANGED
@@ -17,7 +17,7 @@ export interface PlanOptions extends CallOptions {
17
17
  /** Arguments of a builder target `file.py:function` (`--arg NAME=VALUE`). */
18
18
  readonly args?: Readonly<Record<string, string | number | boolean>>;
19
19
  /** The ceiling in US dollars (`--max-usd`); a live run needs one (here, in the workflow or in
20
- * fx.yaml). */
20
+ * fx.yaml) unless every call is on the user's own Codex (`imagegen@codex`). */
21
21
  readonly maxUsd?: number | string;
22
22
  }
23
23
  /** Options of `run`: the planning options, plus the run's own. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@grida/fx",
3
- "version": "0.2.1",
3
+ "version": "0.4.0",
4
4
  "description": "Grida FX for JavaScript: the grida-fx command, and an SDK to build workflows and drive the engine.",
5
5
  "keywords": [
6
6
  "grida",
@@ -46,10 +46,10 @@
46
46
  ],
47
47
  "sideEffects": false,
48
48
  "optionalDependencies": {
49
- "@grida/fx-darwin-arm64": "0.2.1",
50
- "@grida/fx-darwin-x64": "0.2.1",
51
- "@grida/fx-linux-arm64-gnu": "0.2.1",
52
- "@grida/fx-linux-x64-gnu": "0.2.1"
49
+ "@grida/fx-darwin-arm64": "0.4.0",
50
+ "@grida/fx-darwin-x64": "0.4.0",
51
+ "@grida/fx-linux-arm64-gnu": "0.4.0",
52
+ "@grida/fx-linux-x64-gnu": "0.4.0"
53
53
  },
54
54
  "publishConfig": {
55
55
  "access": "public",