@x12i/graphenix-execute-envelope 1.0.0 → 1.1.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
@@ -26,8 +26,8 @@ Optional package: engines and compilers do not need it; backend hosts and API ga
26
26
  Studio execute request (authoring + input)
27
27
  │ validateStudioExecuteRequest()
28
28
  │ buildRuntimeObject()
29
- compileExecutablePlan()
30
- validateExecutablePlan()
29
+ compileExecutablePlanV2()
30
+ validateExecutablePlanV2()
31
31
 
32
32
  { plan, runtime } → engine
33
33
 
@@ -123,15 +123,17 @@ import {
123
123
  buildRuntimeObject,
124
124
  validateRuntimeObject
125
125
  } from "@x12i/graphenix-execute-envelope";
126
- import { compileExecutablePlan } from "@x12i/graphenix-plan-compiler";
127
- import { validateExecutablePlan } from "@x12i/graphenix-plan-format";
126
+ import { compileExecutablePlanV2 } from "@x12i/graphenix-plan-compiler";
127
+ import { validateExecutablePlanV2 } from "@x12i/graphenix-plan-format";
128
128
 
129
129
  validateStudioExecuteRequest(request);
130
130
  const runtime = buildRuntimeObject(request.input, request.options);
131
131
  validateRuntimeObject(runtime);
132
132
 
133
- const plan = compileExecutablePlan(request.authoringGraph, runtime);
134
- validateExecutablePlan(plan);
133
+ const plan = compileExecutablePlanV2(request.authoringGraph, runtime, {
134
+ profileRegistry: { version: "3.2.0", registryHash: "sha256:profiles-host" }
135
+ });
136
+ validateExecutablePlanV2(plan);
135
137
  ```
136
138
 
137
139
  ---
@@ -158,10 +160,10 @@ validateExecutablePlan(plan);
158
160
 
159
161
  ## Dependencies
160
162
 
161
- - `@x12i/graphenix-authoring-format` ^1.0.0
162
- - `@x12i/graphenix-plan-compiler` ^1.0.0
163
- - `@x12i/graphenix-plan-format` ^1.0.0
164
- - `@x12i/graphenix-executable-contracts` ^1.0.0
163
+ - `@x12i/graphenix-authoring-format` ^1.0.2
164
+ - `@x12i/graphenix-plan-compiler` ^1.1.0
165
+ - `@x12i/graphenix-plan-format` ^1.1.0
166
+ - `@x12i/graphenix-executable-contracts` ^1.1.0
165
167
 
166
168
  ---
167
169
 
@@ -1,6 +1,7 @@
1
- import type { GraphExecutionRequest, StudioGraphExecuteRequest } from "@x12i/graphenix-executable-contracts";
1
+ import type { CompileExecutablePlanV2Options, GraphExecutionRequest, StudioGraphExecuteRequest } from "@x12i/graphenix-executable-contracts";
2
2
  export declare function buildGraphExecutionRequestFromStudioExecute(request: StudioGraphExecuteRequest, options?: {
3
3
  agentId?: string;
4
4
  jobTypeId?: string;
5
+ profileRegistry?: CompileExecutablePlanV2Options["profileRegistry"];
5
6
  }): GraphExecutionRequest;
6
7
  //# sourceMappingURL=build-graph-execution-request-from-studio-execute.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"build-graph-execution-request-from-studio-execute.d.ts","sourceRoot":"","sources":["../../src/adapter/build-graph-execution-request-from-studio-execute.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,qBAAqB,EACrB,yBAAyB,EAC1B,MAAM,sCAAsC,CAAC;AAM9C,wBAAgB,2CAA2C,CACzD,OAAO,EAAE,yBAAyB,EAClC,OAAO,GAAE;IACP,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;CACf,GACL,qBAAqB,CAyCvB"}
1
+ {"version":3,"file":"build-graph-execution-request-from-studio-execute.d.ts","sourceRoot":"","sources":["../../src/adapter/build-graph-execution-request-from-studio-execute.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,8BAA8B,EAC9B,qBAAqB,EACrB,yBAAyB,EAC1B,MAAM,sCAAsC,CAAC;AAM9C,wBAAgB,2CAA2C,CACzD,OAAO,EAAE,yBAAyB,EAClC,OAAO,GAAE;IACP,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,8BAA8B,CAAC,iBAAiB,CAAC,CAAC;CAChE,GACL,qBAAqB,CA8CvB"}
@@ -1,7 +1,7 @@
1
1
  import { validateStudioExecuteRequest } from "../validators/validate-studio-execute-request.js";
2
2
  import { buildRuntimeObject } from "../validators/validate-runtime-object.js";
3
- import { compileExecutablePlan } from "@x12i/graphenix-plan-compiler";
4
- import { validateExecutablePlan } from "@x12i/graphenix-plan-format";
3
+ import { compileExecutablePlanV2 } from "@x12i/graphenix-plan-compiler";
4
+ import { validateExecutablePlanV2 } from "@x12i/graphenix-plan-format";
5
5
  export function buildGraphExecutionRequestFromStudioExecute(request, options = {}) {
6
6
  const validation = validateStudioExecuteRequest(request);
7
7
  if (!validation.valid) {
@@ -22,8 +22,13 @@ export function buildGraphExecutionRequestFromStudioExecute(request, options = {
22
22
  variables: request.runtime?.variables,
23
23
  job: request.runtime?.job
24
24
  }, options);
25
- const plan = compileExecutablePlan(request.graph, runtime);
26
- const planValidation = validateExecutablePlan(plan);
25
+ const plan = compileExecutablePlanV2(request.graph, runtime, {
26
+ profileRegistry: options.profileRegistry ?? {
27
+ version: "3.2.0",
28
+ registryHash: "sha256:profiles-execute-envelope"
29
+ }
30
+ });
31
+ const planValidation = validateExecutablePlanV2(plan);
27
32
  if (!planValidation.valid) {
28
33
  const summary = planValidation.errors
29
34
  .map((error) => `${error.path}: ${error.message}`)
@@ -1 +1 @@
1
- {"version":3,"file":"build-graph-execution-request-from-studio-execute.js","sourceRoot":"","sources":["../../src/adapter/build-graph-execution-request-from-studio-execute.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,4BAA4B,EAAE,MAAM,kDAAkD,CAAC;AAChG,OAAO,EAAE,kBAAkB,EAAE,MAAM,0CAA0C,CAAC;AAC9E,OAAO,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AACtE,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAErE,MAAM,UAAU,2CAA2C,CACzD,OAAkC,EAClC,UAGI,EAAE;IAEN,MAAM,UAAU,GAAG,4BAA4B,CAAC,OAAO,CAAC,CAA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C,GAAG,KAAK,CAAC,IAAI,KAAK,KAAK,CAAC,OAAO,EAAE,CAAC;aACjD,IAAI,CAAC,IAAI,CAAC,CAAC;QACd,MAAM,IAAI,KAAK,CAAC,4BAA4B,OAAO,EAAE,CAAC,CAAC;IACzD,CAAC;IAED,OAAO;QACL,IAAI;QACJ,OAAO;KACR,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"build-graph-execution-request-from-studio-execute.js","sourceRoot":"","sources":["../../src/adapter/build-graph-execution-request-from-studio-execute.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,4BAA4B,EAAE,MAAM,kDAAkD,CAAC;AAChG,OAAO,EAAE,kBAAkB,EAAE,MAAM,0CAA0C,CAAC;AAC9E,OAAO,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAC;AACxE,OAAO,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAC;AAEvE,MAAM,UAAU,2CAA2C,CACzD,OAAkC,EAClC,UAII,EAAE;IAEN,MAAM,UAAU,GAAG,4BAA4B,CAAC,OAAO,CAAC,CAAC;IACzD,IAAI,CAAC,UAAU,CAAC,KAAK,EAAE,CAAC;QACtB,MAAM,OAAO,GAAG,UAAU,CAAC,MAAM;aAC9B,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,GAAG,KAAK,CAAC,IAAI,KAAK,KAAK,CAAC,OAAO,EAAE,CAAC;aACjD,IAAI,CAAC,IAAI,CAAC,CAAC;QACd,MAAM,IAAI,KAAK,CAAC,mCAAmC,OAAO,EAAE,CAAC,CAAC;IAChE,CAAC;IAED,MAAM,OAAO,GAAG,kBAAkB,CAChC;QACE,KAAK,EAAE,OAAO,CAAC,KAAK;QACpB,KAAK,EAAE,OAAO,CAAC,OAAO,EAAE,KAAK;QAC7B,IAAI,EAAE,OAAO,CAAC,cAAc,EAAE,IAAI,IAAI,OAAO,CAAC,OAAO,EAAE,IAAI;QAC3D,UAAU,EAAE,OAAO,CAAC,UAAU,IAAI,OAAO,CAAC,OAAO,EAAE,UAAU;QAC7D,gBAAgB,EACd,OAAO,CAAC,gBAAgB,IAAI,OAAO,CAAC,OAAO,EAAE,gBAAgB;QAC/D,sBAAsB,EACpB,OAAO,CAAC,sBAAsB;YAC9B,OAAO,CAAC,OAAO,EAAE,sBAAsB;QACzC,kBAAkB,EAChB,OAAO,CAAC,kBAAkB,IAAI,OAAO,CAAC,OAAO,EAAE,kBAAkB;QACnE,SAAS,EAAE,OAAO,CAAC,OAAO,EAAE,SAAS;QACrC,GAAG,EAAE,OAAO,CAAC,OAAO,EAAE,GAAG;KAC1B,EACD,OAAO,CACR,CAAC;IAEF,MAAM,IAAI,GAAG,uBAAuB,CAAC,OAAO,CAAC,KAAK,EAAE,OAAO,EAAE;QAC3D,eAAe,EAAE,OAAO,CAAC,eAAe,IAAI;YAC1C,OAAO,EAAE,OAAO;YAChB,YAAY,EAAE,kCAAkC;SACjD;KACF,CAAC,CAAC;IACH,MAAM,cAAc,GAAG,wBAAwB,CAAC,IAAI,CAAC,CAAC;IACtD,IAAI,CAAC,cAAc,CAAC,KAAK,EAAE,CAAC;QAC1B,MAAM,OAAO,GAAG,cAAc,CAAC,MAAM;aAClC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,GAAG,KAAK,CAAC,IAAI,KAAK,KAAK,CAAC,OAAO,EAAE,CAAC;aACjD,IAAI,CAAC,IAAI,CAAC,CAAC;QACd,MAAM,IAAI,KAAK,CAAC,4BAA4B,OAAO,EAAE,CAAC,CAAC;IACzD,CAAC;IAED,OAAO;QACL,IAAI;QACJ,OAAO;KACR,CAAC;AACJ,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@x12i/graphenix-execute-envelope",
3
- "version": "1.0.0",
3
+ "version": "1.1.0",
4
4
  "description": "Execute request envelope: runtime building and graph execution request adaptation.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -41,10 +41,10 @@
41
41
  "registry": "https://registry.npmjs.org/"
42
42
  },
43
43
  "dependencies": {
44
- "@x12i/graphenix-authoring-format": "^1.0.0",
45
- "@x12i/graphenix-executable-contracts": "^1.0.0",
46
- "@x12i/graphenix-plan-compiler": "^1.0.0",
47
- "@x12i/graphenix-plan-format": "^1.0.0"
44
+ "@x12i/graphenix-authoring-format": "^1.1.0",
45
+ "@x12i/graphenix-executable-contracts": "^1.1.0",
46
+ "@x12i/graphenix-plan-compiler": "^1.1.0",
47
+ "@x12i/graphenix-plan-format": "^1.1.0"
48
48
  },
49
49
  "devDependencies": {
50
50
  "@types/node": "^22.10.1",