@farmslot/recipe-cli 0.11.4 → 0.12.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.
Files changed (76) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/discovery-index.d.ts +9 -0
  3. package/dist/discovery-index.d.ts.map +1 -1
  4. package/dist/discovery-index.js +4 -1
  5. package/dist/discovery-index.js.map +1 -1
  6. package/dist/harness/adapter-plugins.d.ts +2 -1
  7. package/dist/harness/adapter-plugins.d.ts.map +1 -1
  8. package/dist/harness/adapter-plugins.js +1 -1
  9. package/dist/harness/adapter-plugins.js.map +1 -1
  10. package/dist/harness/adapters.d.ts +1 -0
  11. package/dist/harness/adapters.d.ts.map +1 -1
  12. package/dist/harness/adapters.js +1 -1
  13. package/dist/harness/adapters.js.map +1 -1
  14. package/dist/harness/catalog.d.ts +8 -1
  15. package/dist/harness/catalog.d.ts.map +1 -1
  16. package/dist/harness/catalog.js +125 -1
  17. package/dist/harness/catalog.js.map +1 -1
  18. package/dist/harness/commands/run.js +52 -8
  19. package/dist/harness/commands/run.js.map +1 -1
  20. package/dist/harness/conformance.d.ts +35 -0
  21. package/dist/harness/conformance.d.ts.map +1 -0
  22. package/dist/harness/conformance.js +247 -0
  23. package/dist/harness/conformance.js.map +1 -0
  24. package/dist/harness/context-state.d.ts +55 -0
  25. package/dist/harness/context-state.d.ts.map +1 -1
  26. package/dist/harness/context-state.js +11 -0
  27. package/dist/harness/context-state.js.map +1 -1
  28. package/dist/harness/context.d.ts +45 -2
  29. package/dist/harness/context.d.ts.map +1 -1
  30. package/dist/harness/context.js +447 -26
  31. package/dist/harness/context.js.map +1 -1
  32. package/dist/harness/execution-provenance.d.ts +9 -5
  33. package/dist/harness/execution-provenance.d.ts.map +1 -1
  34. package/dist/harness/execution-provenance.js +56 -5
  35. package/dist/harness/execution-provenance.js.map +1 -1
  36. package/dist/harness/harness-cli.d.ts +3 -0
  37. package/dist/harness/harness-cli.d.ts.map +1 -1
  38. package/dist/harness/harness-cli.js +9 -3
  39. package/dist/harness/harness-cli.js.map +1 -1
  40. package/dist/harness/index.d.ts +9 -7
  41. package/dist/harness/index.d.ts.map +1 -1
  42. package/dist/harness/index.js +9 -7
  43. package/dist/harness/index.js.map +1 -1
  44. package/dist/harness/library-provenance.d.ts +2 -1
  45. package/dist/harness/library-provenance.d.ts.map +1 -1
  46. package/dist/harness/library-provenance.js +5 -1
  47. package/dist/harness/library-provenance.js.map +1 -1
  48. package/dist/harness/paths.d.ts +4 -0
  49. package/dist/harness/paths.d.ts.map +1 -1
  50. package/dist/harness/paths.js +22 -0
  51. package/dist/harness/paths.js.map +1 -1
  52. package/dist/harness/project-host.d.ts +17 -0
  53. package/dist/harness/project-host.d.ts.map +1 -0
  54. package/dist/harness/project-host.js +92 -0
  55. package/dist/harness/project-host.js.map +1 -0
  56. package/dist/harness/recipe-library.d.ts +1 -1
  57. package/dist/harness/recipe-library.d.ts.map +1 -1
  58. package/dist/harness/recipe-library.js +16 -6
  59. package/dist/harness/recipe-library.js.map +1 -1
  60. package/dist/harness/recipe-validation.d.ts +1 -1
  61. package/dist/harness/recipe-validation.d.ts.map +1 -1
  62. package/dist/harness/recipe-validation.js +3 -3
  63. package/dist/harness/recipe-validation.js.map +1 -1
  64. package/dist/harness/run-diagnostics.d.ts +2 -0
  65. package/dist/harness/run-diagnostics.d.ts.map +1 -1
  66. package/dist/harness/run-diagnostics.js +41 -0
  67. package/dist/harness/run-diagnostics.js.map +1 -1
  68. package/dist/harness/run-engine.d.ts +19 -2
  69. package/dist/harness/run-engine.d.ts.map +1 -1
  70. package/dist/harness/run-engine.js +220 -17
  71. package/dist/harness/run-engine.js.map +1 -1
  72. package/dist/harness/run-options.d.ts +2 -0
  73. package/dist/harness/run-options.d.ts.map +1 -1
  74. package/dist/harness/run-options.js +7 -5
  75. package/dist/harness/run-options.js.map +1 -1
  76. package/package.json +5 -5
@@ -1,16 +1,18 @@
1
1
  import { harnessAdapter } from './adapters.js';
2
2
  import { optionString } from './parse-args.js';
3
3
  import { explicitRecipeTrustOptions } from './trust.js';
4
- export function recipeRunOptionsFromCli(adapter, options) {
5
- const recordVideo = options.recordVideo;
6
- const hud = optionString(options, 'hud');
7
- const trust = explicitRecipeTrustOptions({
4
+ export function recipeTrustOptionsFromCli(options) {
5
+ return explicitRecipeTrustOptions({
8
6
  sourceTrust: optionString(options, 'sourceTrust'),
9
7
  sourceKind: optionString(options, 'sourceKind'),
10
8
  sourceName: optionString(options, 'sourceName'),
11
9
  sourceDigest: optionString(options, 'sourceDigest'),
12
10
  approvalDigest: optionString(options, 'approvePlan'),
13
11
  });
12
+ }
13
+ export function recipeRunOptionsFromCli(adapter, options) {
14
+ const recordVideo = options.recordVideo;
15
+ const hud = optionString(options, 'hud');
14
16
  const platform = harnessAdapter(adapter).run?.platformOptions?.(options);
15
17
  return {
16
18
  cdpPort: optionString(options, 'cdpPort'),
@@ -20,7 +22,7 @@ export function recipeRunOptionsFromCli(adapter, options) {
20
22
  recordVideo: recordVideo === 'full-run' ? 'full-run' : false,
21
23
  autoHud: hud === 'show' ? true : hud === 'hide' ? false : undefined,
22
24
  ...(platform ? { platform } : {}),
23
- ...trust,
25
+ ...recipeTrustOptionsFromCli(options),
24
26
  };
25
27
  }
26
28
  //# sourceMappingURL=run-options.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"run-options.js","sourceRoot":"","sources":["../../src/harness/run-options.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,EAAmB,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAChE,OAAO,EAAE,0BAA0B,EAAE,MAAM,YAAY,CAAC;AAExD,MAAM,UAAU,uBAAuB,CAAC,OAAe,EAAE,OAAmB;IAC1E,MAAM,WAAW,GAAG,OAAO,CAAC,WAAW,CAAC;IACxC,MAAM,GAAG,GAAG,YAAY,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;IACzC,MAA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AAO,CAAC;KACtC,CAAC;AACJ,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@farmslot/recipe-cli",
3
- "version": "0.11.4",
3
+ "version": "0.12.0",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -32,10 +32,10 @@
32
32
  "prepublishOnly": "node ../../scripts/quality/check-farmslot-package-readiness.mjs --publish --packages @farmslot/recipe-cli"
33
33
  },
34
34
  "dependencies": {
35
- "@farmslot/adapter-sdk": "0.8.4",
36
- "@farmslot/agent-runtime": "0.17.4",
37
- "@farmslot/protocol": "0.36.0",
38
- "@farmslot/recipe-runner": "0.28.4",
35
+ "@farmslot/adapter-sdk": "0.8.5",
36
+ "@farmslot/agent-runtime": "0.17.5",
37
+ "@farmslot/protocol": "0.37.0",
38
+ "@farmslot/recipe-runner": "0.28.5",
39
39
  "commander": "^12.0.0",
40
40
  "es-module-lexer": "2.3.1",
41
41
  "esbuild": "0.28.1",