@powerhousedao/workflow 6.2.3-dev.49 → 6.2.3-dev.50

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 (87) hide show
  1. package/dist/browser/{BlockSelector-D9Wg49c_.js → BlockSelector-eaXC56EC.js} +11 -6
  2. package/dist/browser/BlockSelector-eaXC56EC.js.map +1 -0
  3. package/dist/browser/assets/{entry-CnkwwnNv.js → entry-E7pSm84X.js} +3 -2
  4. package/dist/browser/assets/{projection-entry-CAGnE-12.js → projection-entry-UE4mfnXc.js} +3 -2
  5. package/dist/browser/{connection-form-Deth9pL1.js → connection-form-Db1YlNk2.js} +3 -3
  6. package/dist/browser/{connection-form-Deth9pL1.js.map → connection-form-Db1YlNk2.js.map} +1 -1
  7. package/dist/browser/{data-tree-Cw9dKR16.js → data-tree-ClKfWUgI.js} +2 -2
  8. package/dist/browser/{data-tree-Cw9dKR16.js.map → data-tree-ClKfWUgI.js.map} +1 -1
  9. package/dist/browser/document-models/index.js +2 -2
  10. package/dist/browser/document-models/workflow/index.js +2 -2
  11. package/dist/browser/{document-models-B7IwLbfO.js → document-models-DDiMjugM.js} +22 -3
  12. package/dist/browser/{document-models-B7IwLbfO.js.map → document-models-DDiMjugM.js.map} +1 -1
  13. package/dist/{node/editor-CGF4AwQw.mjs → browser/editor-BgJ0RzSj.js} +7 -7
  14. package/dist/{node/editor-CGF4AwQw.mjs.map → browser/editor-BgJ0RzSj.js.map} +1 -1
  15. package/dist/browser/{editor-B1KotawV.js → editor-DFS8U1MR.js} +27 -9
  16. package/dist/browser/editor-DFS8U1MR.js.map +1 -0
  17. package/dist/browser/{editor-8y31-Vvp.js → editor-aRP2k9qa.js} +5 -5
  18. package/dist/browser/{editor-8y31-Vvp.js.map → editor-aRP2k9qa.js.map} +1 -1
  19. package/dist/browser/editors/connection-editor/module.js +1 -1
  20. package/dist/browser/editors/workflow-editor/module.js +1 -1
  21. package/dist/browser/editors/workflow-studio/module.js +1 -1
  22. package/dist/browser/index.js +3 -3
  23. package/dist/browser/{module-D4UiG9ii.js → module-ozS5EVRx.js} +2 -2
  24. package/dist/browser/module-ozS5EVRx.js.map +1 -0
  25. package/dist/browser/reactor/index.js +2 -2
  26. package/dist/browser/{runtime-queries-IZG_nonR.js → runtime-queries-Bcd7IS3T.js} +2 -2
  27. package/dist/browser/runtime-queries-Bcd7IS3T.js.map +1 -0
  28. package/dist/browser/{trigger-text-CZvKJJxp.js → trigger-text-DxpCRgMq.js} +5 -5
  29. package/dist/browser/{trigger-text-CZvKJJxp.js.map → trigger-text-DxpCRgMq.js.map} +1 -1
  30. package/dist/browser/{upgrade-manifests-C_9cyumV.js → upgrade-manifests-DHGmgHKW.js} +2 -2
  31. package/dist/browser/{upgrade-manifests-C_9cyumV.js.map → upgrade-manifests-DHGmgHKW.js.map} +1 -1
  32. package/dist/browser/{workflow-DFLQ2cFr.js → workflow-DoewHe4K.js} +2 -2
  33. package/dist/browser/{workflow-DFLQ2cFr.js.map → workflow-DoewHe4K.js.map} +1 -1
  34. package/dist/node/{BlockSelector-DTy0Bxvb.mjs → BlockSelector-DidV3yJx.mjs} +11 -6
  35. package/dist/node/BlockSelector-DidV3yJx.mjs.map +1 -0
  36. package/dist/node/{connection-form-Bj7pbTyf.mjs → connection-form-BitMCIRb.mjs} +3 -3
  37. package/dist/node/{connection-form-Bj7pbTyf.mjs.map → connection-form-BitMCIRb.mjs.map} +1 -1
  38. package/dist/node/{data-tree-UIM5O3VM.mjs → data-tree-Cn50TNYN.mjs} +2 -2
  39. package/dist/node/{data-tree-UIM5O3VM.mjs.map → data-tree-Cn50TNYN.mjs.map} +1 -1
  40. package/dist/node/document-models/index.mjs +2 -2
  41. package/dist/node/document-models/workflow/index.mjs +2 -2
  42. package/dist/node/{editor-CoNRLOuV.mjs → editor-BsWzr32t.mjs} +5 -5
  43. package/dist/node/{editor-CoNRLOuV.mjs.map → editor-BsWzr32t.mjs.map} +1 -1
  44. package/dist/{browser/editor-7K-gL3BU.js → node/editor-D7GDdxR3.mjs} +7 -7
  45. package/dist/node/editor-D7GDdxR3.mjs.map +1 -0
  46. package/dist/node/{editor-Bz2ZN5MI.mjs → editor-i7ovccfO.mjs} +27 -9
  47. package/dist/node/editor-i7ovccfO.mjs.map +1 -0
  48. package/dist/node/editors/connection-editor/module.mjs +1 -1
  49. package/dist/node/editors/workflow-editor/module.mjs +1 -1
  50. package/dist/node/editors/workflow-studio/module.mjs +1 -1
  51. package/dist/node/index.mjs +23 -4
  52. package/dist/node/index.mjs.map +1 -1
  53. package/dist/node/{module-BsqRZox1.mjs → module-uKdoLIga.mjs} +2 -2
  54. package/dist/node/module-uKdoLIga.mjs.map +1 -0
  55. package/dist/node/pieces/reactor/descriptor.json +1 -1
  56. package/dist/node/pieces/reactor/package.json +1 -1
  57. package/dist/node/{runtime-queries-BM6I7dDA.mjs → runtime-queries-CZ7vFHoG.mjs} +2 -2
  58. package/dist/node/runtime-queries-CZ7vFHoG.mjs.map +1 -0
  59. package/dist/node/{trigger-text-ARkrvW6N.mjs → trigger-text-aHI7jqvP.mjs} +5 -5
  60. package/dist/node/{trigger-text-ARkrvW6N.mjs.map → trigger-text-aHI7jqvP.mjs.map} +1 -1
  61. package/dist/node/{upgrade-manifests-CYZfts3a.mjs → upgrade-manifests-D-pLniUG.mjs} +2 -2
  62. package/dist/node/{upgrade-manifests-CYZfts3a.mjs.map → upgrade-manifests-D-pLniUG.mjs.map} +1 -1
  63. package/dist/node/{workflow-BpfdBHyS.mjs → workflow-Dy-309pE.mjs} +2 -2
  64. package/dist/node/{workflow-BpfdBHyS.mjs.map → workflow-Dy-309pE.mjs.map} +1 -1
  65. package/dist/powerhouse.manifest.json +21 -2
  66. package/dist/types/document-models/workflow/v1/gen/schema/types.d.ts +13 -6
  67. package/dist/types/document-models/workflow/v1/gen/schema/types.d.ts.map +1 -1
  68. package/dist/types/editors/workflow-editor/runtime-client.d.ts +1 -1
  69. package/dist/types/editors/workflow-editor/runtime-client.d.ts.map +1 -1
  70. package/dist/types/editors/workflow-editor/ui/StepTest.d.ts.map +1 -1
  71. package/dist/types/editors/workflow-editor/ui/forms.d.ts +1 -1
  72. package/dist/types/editors/workflow-editor/ui/forms.d.ts.map +1 -1
  73. package/dist/types/editors/workflow-editor/ui/step-test.d.ts +2 -0
  74. package/dist/types/editors/workflow-editor/ui/step-test.d.ts.map +1 -1
  75. package/dist/types/editors/workflow-studio/components/RunsTable.d.ts.map +1 -1
  76. package/dist/types/editors/workflow-studio/components/run-format.d.ts +4 -0
  77. package/dist/types/editors/workflow-studio/components/run-format.d.ts.map +1 -1
  78. package/package.json +10 -10
  79. package/dist/browser/BlockSelector-D9Wg49c_.js.map +0 -1
  80. package/dist/browser/editor-7K-gL3BU.js.map +0 -1
  81. package/dist/browser/editor-B1KotawV.js.map +0 -1
  82. package/dist/browser/module-D4UiG9ii.js.map +0 -1
  83. package/dist/browser/runtime-queries-IZG_nonR.js.map +0 -1
  84. package/dist/node/BlockSelector-DTy0Bxvb.mjs.map +0 -1
  85. package/dist/node/editor-Bz2ZN5MI.mjs.map +0 -1
  86. package/dist/node/module-BsqRZox1.mjs.map +0 -1
  87. package/dist/node/runtime-queries-BM6I7dDA.mjs.map +0 -1
@@ -1,8 +1,8 @@
1
- import { m as workflowUpgradeManifest } from "./module-D4UiG9ii.js";
1
+ import { m as workflowUpgradeManifest } from "./module-ozS5EVRx.js";
2
2
  import { m as connectionUpgradeManifest } from "./module-B2BMwu5E.js";
3
3
  //#region document-models/upgrade-manifests.ts
4
4
  const upgradeManifests = [connectionUpgradeManifest, workflowUpgradeManifest];
5
5
  //#endregion
6
6
  export { upgradeManifests as t };
7
7
 
8
- //# sourceMappingURL=upgrade-manifests-C_9cyumV.js.map
8
+ //# sourceMappingURL=upgrade-manifests-DHGmgHKW.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"upgrade-manifests-C_9cyumV.js","names":[],"sources":["../../document-models/upgrade-manifests.ts"],"sourcesContent":["/**\n * WARNING: DO NOT EDIT\n * This file is auto-generated and updated by codegen\n */\nimport type { UpgradeManifest } from \"document-model\";\nimport { connectionUpgradeManifest } from \"document-models/connection/upgrades\";\nimport { workflowUpgradeManifest } from \"document-models/workflow/upgrades\";\n\nexport const upgradeManifests: UpgradeManifest<readonly number[]>[] = [\n connectionUpgradeManifest,\n workflowUpgradeManifest,\n];\n"],"mappings":";;;AAQA,MAAa,mBAAyD,CACpE,2BACA,uBACF"}
1
+ {"version":3,"file":"upgrade-manifests-DHGmgHKW.js","names":[],"sources":["../../document-models/upgrade-manifests.ts"],"sourcesContent":["/**\n * WARNING: DO NOT EDIT\n * This file is auto-generated and updated by codegen\n */\nimport type { UpgradeManifest } from \"document-model\";\nimport { connectionUpgradeManifest } from \"document-models/connection/upgrades\";\nimport { workflowUpgradeManifest } from \"document-models/workflow/upgrades\";\n\nexport const upgradeManifests: UpgradeManifest<readonly number[]>[] = [\n connectionUpgradeManifest,\n workflowUpgradeManifest,\n];\n"],"mappings":";;;AAQA,MAAa,mBAAyD,CACpE,2BACA,uBACF"}
@@ -1,4 +1,4 @@
1
- import { a as utils, d as isWorkflowDocument, l as assertIsWorkflowDocument, t as Workflow } from "./module-D4UiG9ii.js";
1
+ import { a as utils, d as isWorkflowDocument, l as assertIsWorkflowDocument, t as Workflow } from "./module-ozS5EVRx.js";
2
2
  import { PHDocumentController, createBaseState, defaultBaseState } from "document-model";
3
3
  import { useDocumentById, useDocumentsInSelectedDrive, useDocumentsInSelectedFolder, useSelectedDocument } from "@powerhousedao/reactor-browser";
4
4
  //#region document-models/workflow/v1/gen/controller.ts
@@ -105,4 +105,4 @@ function useWorkflowDocumentsInSelectedFolder() {
105
105
  //#endregion
106
106
  export { createState$1 as a, defaultLocalState as c, useWorkflowDocumentsInSelectedFolder as i, defaultPHState as l, useWorkflowDocumentById as n, createWorkflowDocument as o, useWorkflowDocumentsInSelectedDrive as r, defaultGlobalState as s, useSelectedWorkflowDocument as t, WorkflowController as u };
107
107
 
108
- //# sourceMappingURL=workflow-DFLQ2cFr.js.map
108
+ //# sourceMappingURL=workflow-DoewHe4K.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"workflow-DFLQ2cFr.js","names":["createState"],"sources":["../../document-models/workflow/v1/gen/controller.ts","../../document-models/workflow/v1/gen/ph-factories.ts","../../document-models/workflow/v1/hooks.ts"],"sourcesContent":["/**\n * WARNING: DO NOT EDIT\n * This file is auto-generated and updated by codegen\n */\nimport { PHDocumentController } from \"document-model\";\nimport { Workflow } from \"../module.js\";\nimport type { WorkflowAction, WorkflowPHState } from \"./types.js\";\n\nexport const WorkflowController = PHDocumentController.forDocumentModel<\n WorkflowPHState,\n WorkflowAction\n>(Workflow);\n","/**\n * WARNING: DO NOT EDIT\n * This file is auto-generated and updated by codegen\n * Factory methods for creating WorkflowDocument instances\n */\nimport type { PHAuthState, PHBaseState, PHDocumentState } from \"document-model\";\nimport { createBaseState, defaultBaseState } from \"document-model\";\nimport type {\n WorkflowDocument,\n WorkflowGlobalState,\n WorkflowLocalState,\n WorkflowPHState,\n} from \"./types.js\";\nimport { utils } from \"./utils.js\";\n\nexport function defaultGlobalState(): WorkflowGlobalState {\n return {\n name: \"\",\n description: null,\n status: \"DRAFT\",\n version: 0,\n trigger: null,\n steps: [],\n edges: [],\n variables: [],\n policy: {\n concurrency: \"QUEUE\",\n maxParallelRuns: null,\n runTimeoutSeconds: 3600,\n maxSuspensionDays: 30,\n defaultRetry: {\n maxAttempts: 1,\n backoff: \"FIXED\",\n initialDelaySeconds: 5,\n maxDelaySeconds: 300,\n retryOn: [],\n },\n onFailure: \"PARK\",\n retainRunsDays: 30,\n journalAsDocument: false,\n },\n published: null,\n lastRunAt: null,\n lastRunStatus: null,\n };\n}\n\nexport function defaultLocalState(): WorkflowLocalState {\n return {};\n}\n\nexport function defaultPHState(): WorkflowPHState {\n return {\n ...defaultBaseState(),\n global: defaultGlobalState(),\n local: defaultLocalState(),\n };\n}\n\nexport function createGlobalState(\n state?: Partial<WorkflowGlobalState>,\n): WorkflowGlobalState {\n return {\n ...defaultGlobalState(),\n ...(state || {}),\n };\n}\n\nexport function createLocalState(\n state?: Partial<WorkflowLocalState>,\n): WorkflowLocalState {\n return {\n ...defaultLocalState(),\n ...(state || {}),\n } as WorkflowLocalState;\n}\n\nexport function createState(\n baseState?: Partial<PHBaseState>,\n globalState?: Partial<WorkflowGlobalState>,\n localState?: Partial<WorkflowLocalState>,\n): WorkflowPHState {\n return {\n ...createBaseState(baseState?.auth, baseState?.document),\n global: createGlobalState(globalState),\n local: createLocalState(localState),\n };\n}\n\n/**\n * Creates a WorkflowDocument with custom global and local state\n * This properly handles the PHBaseState requirements while allowing\n * document-specific state to be set.\n */\nexport function createWorkflowDocument(\n state?: Partial<{\n auth?: Partial<PHAuthState>;\n document?: Partial<PHDocumentState>;\n global?: Partial<WorkflowGlobalState>;\n local?: Partial<WorkflowLocalState>;\n }>,\n): WorkflowDocument {\n const document = utils.createDocument(\n createState(\n createBaseState(state?.auth, { version: 1, ...state?.document }),\n state?.global,\n state?.local,\n ),\n );\n\n return document;\n}\n","/**\n * WARNING: DO NOT EDIT\n * This file is auto-generated and updated by codegen\n */\nimport type { DocumentDispatch } from \"@powerhousedao/reactor-browser\";\nimport {\n useDocumentById,\n useDocumentsInSelectedDrive,\n useDocumentsInSelectedFolder,\n useSelectedDocument,\n} from \"@powerhousedao/reactor-browser\";\nimport type {\n WorkflowAction,\n WorkflowDocument,\n} from \"document-models/workflow/v1\";\nimport {\n assertIsWorkflowDocument,\n isWorkflowDocument,\n} from \"./gen/document-schema.js\";\n\n/** Hook to get a Workflow document by its id */\nexport function useWorkflowDocumentById(\n documentId: string | null | undefined,\n):\n | [WorkflowDocument, DocumentDispatch<WorkflowAction>]\n | [undefined, undefined] {\n const [document, dispatch] = useDocumentById(documentId);\n if (!isWorkflowDocument(document)) return [undefined, undefined];\n return [document, dispatch];\n}\n\n/** Hook to get the selected Workflow document */\nexport function useSelectedWorkflowDocument(): [\n WorkflowDocument,\n DocumentDispatch<WorkflowAction>,\n] {\n const [document, dispatch] = useSelectedDocument();\n\n assertIsWorkflowDocument(document);\n return [document, dispatch] as const;\n}\n\n/** Hook to get all Workflow documents in the selected drive */\nexport function useWorkflowDocumentsInSelectedDrive() {\n const documentsInSelectedDrive = useDocumentsInSelectedDrive();\n return documentsInSelectedDrive?.filter(isWorkflowDocument);\n}\n\n/** Hook to get all Workflow documents in the selected folder */\nexport function useWorkflowDocumentsInSelectedFolder() {\n const documentsInSelectedFolder = useDocumentsInSelectedFolder();\n return documentsInSelectedFolder?.filter(isWorkflowDocument);\n}\n"],"mappings":";;;;;;;;AAQA,MAAa,qBAAqB,qBAAqB,iBAGrD,QAAQ;;;ACIV,SAAgB,qBAA0C;CACxD,OAAO;EACL,MAAM;EACN,aAAa;EACb,QAAQ;EACR,SAAS;EACT,SAAS;EACT,OAAO,CAAC;EACR,OAAO,CAAC;EACR,WAAW,CAAC;EACZ,QAAQ;GACN,aAAa;GACb,iBAAiB;GACjB,mBAAmB;GACnB,mBAAmB;GACnB,cAAc;IACZ,aAAa;IACb,SAAS;IACT,qBAAqB;IACrB,iBAAiB;IACjB,SAAS,CAAC;GACZ;GACA,WAAW;GACX,gBAAgB;GAChB,mBAAmB;EACrB;EACA,WAAW;EACX,WAAW;EACX,eAAe;CACjB;AACF;AAEA,SAAgB,oBAAwC;CACtD,OAAO,CAAC;AACV;AAEA,SAAgB,iBAAkC;CAChD,OAAO;EACL,GAAG,iBAAiB;EACpB,QAAQ,mBAAmB;EAC3B,OAAO,kBAAkB;CAC3B;AACF;AAEA,SAAgB,kBACd,OACqB;CACrB,OAAO;EACL,GAAG,mBAAmB;EACtB,GAAI,SAAS,CAAC;CAChB;AACF;AAEA,SAAgB,iBACd,OACoB;CACpB,OAAO;EACL,GAAG,kBAAkB;EACrB,GAAI,SAAS,CAAC;CAChB;AACF;AAEA,SAAgBA,cACd,WACA,aACA,YACiB;CACjB,OAAO;EACL,GAAG,gBAAgB,WAAW,MAAM,WAAW,QAAQ;EACvD,QAAQ,kBAAkB,WAAW;EACrC,OAAO,iBAAiB,UAAU;CACpC;AACF;;;;;;AAOA,SAAgB,uBACd,OAMkB;CASlB,OARiB,MAAM,eACrBA,cACE,gBAAgB,OAAO,MAAM;EAAE,SAAS;EAAG,GAAG,OAAO;CAAS,CAAC,GAC/D,OAAO,QACP,OAAO,KACT,CAGY;AAChB;;;;AC1FA,SAAgB,wBACd,YAGyB;CACzB,MAAM,CAAC,UAAU,YAAY,gBAAgB,UAAU;CACvD,IAAI,CAAC,mBAAmB,QAAQ,GAAG,OAAO,CAAC,KAAA,GAAW,KAAA,CAAS;CAC/D,OAAO,CAAC,UAAU,QAAQ;AAC5B;;AAGA,SAAgB,8BAGd;CACA,MAAM,CAAC,UAAU,YAAY,oBAAoB;CAEjD,yBAAyB,QAAQ;CACjC,OAAO,CAAC,UAAU,QAAQ;AAC5B;;AAGA,SAAgB,sCAAsC;CAEpD,OADiC,4BACH,CAAC,EAAE,OAAO,kBAAkB;AAC5D;;AAGA,SAAgB,uCAAuC;CAErD,OADkC,6BACH,CAAC,EAAE,OAAO,kBAAkB;AAC7D"}
1
+ {"version":3,"file":"workflow-DoewHe4K.js","names":["createState"],"sources":["../../document-models/workflow/v1/gen/controller.ts","../../document-models/workflow/v1/gen/ph-factories.ts","../../document-models/workflow/v1/hooks.ts"],"sourcesContent":["/**\n * WARNING: DO NOT EDIT\n * This file is auto-generated and updated by codegen\n */\nimport { PHDocumentController } from \"document-model\";\nimport { Workflow } from \"../module.js\";\nimport type { WorkflowAction, WorkflowPHState } from \"./types.js\";\n\nexport const WorkflowController = PHDocumentController.forDocumentModel<\n WorkflowPHState,\n WorkflowAction\n>(Workflow);\n","/**\n * WARNING: DO NOT EDIT\n * This file is auto-generated and updated by codegen\n * Factory methods for creating WorkflowDocument instances\n */\nimport type { PHAuthState, PHBaseState, PHDocumentState } from \"document-model\";\nimport { createBaseState, defaultBaseState } from \"document-model\";\nimport type {\n WorkflowDocument,\n WorkflowGlobalState,\n WorkflowLocalState,\n WorkflowPHState,\n} from \"./types.js\";\nimport { utils } from \"./utils.js\";\n\nexport function defaultGlobalState(): WorkflowGlobalState {\n return {\n name: \"\",\n description: null,\n status: \"DRAFT\",\n version: 0,\n trigger: null,\n steps: [],\n edges: [],\n variables: [],\n policy: {\n concurrency: \"QUEUE\",\n maxParallelRuns: null,\n runTimeoutSeconds: 3600,\n maxSuspensionDays: 30,\n defaultRetry: {\n maxAttempts: 1,\n backoff: \"FIXED\",\n initialDelaySeconds: 5,\n maxDelaySeconds: 300,\n retryOn: [],\n },\n onFailure: \"PARK\",\n retainRunsDays: 30,\n journalAsDocument: false,\n },\n published: null,\n lastRunAt: null,\n lastRunStatus: null,\n };\n}\n\nexport function defaultLocalState(): WorkflowLocalState {\n return {};\n}\n\nexport function defaultPHState(): WorkflowPHState {\n return {\n ...defaultBaseState(),\n global: defaultGlobalState(),\n local: defaultLocalState(),\n };\n}\n\nexport function createGlobalState(\n state?: Partial<WorkflowGlobalState>,\n): WorkflowGlobalState {\n return {\n ...defaultGlobalState(),\n ...(state || {}),\n };\n}\n\nexport function createLocalState(\n state?: Partial<WorkflowLocalState>,\n): WorkflowLocalState {\n return {\n ...defaultLocalState(),\n ...(state || {}),\n } as WorkflowLocalState;\n}\n\nexport function createState(\n baseState?: Partial<PHBaseState>,\n globalState?: Partial<WorkflowGlobalState>,\n localState?: Partial<WorkflowLocalState>,\n): WorkflowPHState {\n return {\n ...createBaseState(baseState?.auth, baseState?.document),\n global: createGlobalState(globalState),\n local: createLocalState(localState),\n };\n}\n\n/**\n * Creates a WorkflowDocument with custom global and local state\n * This properly handles the PHBaseState requirements while allowing\n * document-specific state to be set.\n */\nexport function createWorkflowDocument(\n state?: Partial<{\n auth?: Partial<PHAuthState>;\n document?: Partial<PHDocumentState>;\n global?: Partial<WorkflowGlobalState>;\n local?: Partial<WorkflowLocalState>;\n }>,\n): WorkflowDocument {\n const document = utils.createDocument(\n createState(\n createBaseState(state?.auth, { version: 1, ...state?.document }),\n state?.global,\n state?.local,\n ),\n );\n\n return document;\n}\n","/**\n * WARNING: DO NOT EDIT\n * This file is auto-generated and updated by codegen\n */\nimport type { DocumentDispatch } from \"@powerhousedao/reactor-browser\";\nimport {\n useDocumentById,\n useDocumentsInSelectedDrive,\n useDocumentsInSelectedFolder,\n useSelectedDocument,\n} from \"@powerhousedao/reactor-browser\";\nimport type {\n WorkflowAction,\n WorkflowDocument,\n} from \"document-models/workflow/v1\";\nimport {\n assertIsWorkflowDocument,\n isWorkflowDocument,\n} from \"./gen/document-schema.js\";\n\n/** Hook to get a Workflow document by its id */\nexport function useWorkflowDocumentById(\n documentId: string | null | undefined,\n):\n | [WorkflowDocument, DocumentDispatch<WorkflowAction>]\n | [undefined, undefined] {\n const [document, dispatch] = useDocumentById(documentId);\n if (!isWorkflowDocument(document)) return [undefined, undefined];\n return [document, dispatch];\n}\n\n/** Hook to get the selected Workflow document */\nexport function useSelectedWorkflowDocument(): [\n WorkflowDocument,\n DocumentDispatch<WorkflowAction>,\n] {\n const [document, dispatch] = useSelectedDocument();\n\n assertIsWorkflowDocument(document);\n return [document, dispatch] as const;\n}\n\n/** Hook to get all Workflow documents in the selected drive */\nexport function useWorkflowDocumentsInSelectedDrive() {\n const documentsInSelectedDrive = useDocumentsInSelectedDrive();\n return documentsInSelectedDrive?.filter(isWorkflowDocument);\n}\n\n/** Hook to get all Workflow documents in the selected folder */\nexport function useWorkflowDocumentsInSelectedFolder() {\n const documentsInSelectedFolder = useDocumentsInSelectedFolder();\n return documentsInSelectedFolder?.filter(isWorkflowDocument);\n}\n"],"mappings":";;;;;;;;AAQA,MAAa,qBAAqB,qBAAqB,iBAGrD,QAAQ;;;ACIV,SAAgB,qBAA0C;CACxD,OAAO;EACL,MAAM;EACN,aAAa;EACb,QAAQ;EACR,SAAS;EACT,SAAS;EACT,OAAO,CAAC;EACR,OAAO,CAAC;EACR,WAAW,CAAC;EACZ,QAAQ;GACN,aAAa;GACb,iBAAiB;GACjB,mBAAmB;GACnB,mBAAmB;GACnB,cAAc;IACZ,aAAa;IACb,SAAS;IACT,qBAAqB;IACrB,iBAAiB;IACjB,SAAS,CAAC;GACZ;GACA,WAAW;GACX,gBAAgB;GAChB,mBAAmB;EACrB;EACA,WAAW;EACX,WAAW;EACX,eAAe;CACjB;AACF;AAEA,SAAgB,oBAAwC;CACtD,OAAO,CAAC;AACV;AAEA,SAAgB,iBAAkC;CAChD,OAAO;EACL,GAAG,iBAAiB;EACpB,QAAQ,mBAAmB;EAC3B,OAAO,kBAAkB;CAC3B;AACF;AAEA,SAAgB,kBACd,OACqB;CACrB,OAAO;EACL,GAAG,mBAAmB;EACtB,GAAI,SAAS,CAAC;CAChB;AACF;AAEA,SAAgB,iBACd,OACoB;CACpB,OAAO;EACL,GAAG,kBAAkB;EACrB,GAAI,SAAS,CAAC;CAChB;AACF;AAEA,SAAgBA,cACd,WACA,aACA,YACiB;CACjB,OAAO;EACL,GAAG,gBAAgB,WAAW,MAAM,WAAW,QAAQ;EACvD,QAAQ,kBAAkB,WAAW;EACrC,OAAO,iBAAiB,UAAU;CACpC;AACF;;;;;;AAOA,SAAgB,uBACd,OAMkB;CASlB,OARiB,MAAM,eACrBA,cACE,gBAAgB,OAAO,MAAM;EAAE,SAAS;EAAG,GAAG,OAAO;CAAS,CAAC,GAC/D,OAAO,QACP,OAAO,KACT,CAGY;AAChB;;;;AC1FA,SAAgB,wBACd,YAGyB;CACzB,MAAM,CAAC,UAAU,YAAY,gBAAgB,UAAU;CACvD,IAAI,CAAC,mBAAmB,QAAQ,GAAG,OAAO,CAAC,KAAA,GAAW,KAAA,CAAS;CAC/D,OAAO,CAAC,UAAU,QAAQ;AAC5B;;AAGA,SAAgB,8BAGd;CACA,MAAM,CAAC,UAAU,YAAY,oBAAoB;CAEjD,yBAAyB,QAAQ;CACjC,OAAO,CAAC,UAAU,QAAQ;AAC5B;;AAGA,SAAgB,sCAAsC;CAEpD,OADiC,4BACH,CAAC,EAAE,OAAO,kBAAkB;AAC5D;;AAGA,SAAgB,uCAAuC;CAErD,OADkC,6BACH,CAAC,EAAE,OAAO,kBAAkB;AAC7D"}
@@ -1,5 +1,5 @@
1
- import { $ as isCoreBlock, A as keepPreviousData, B as Subscribable, C as infiniteQueryBehavior, D as focusManager, E as pendingThenable, F as resolveStaleTime, G as BRANCH_BLOCK, H as createRuntimeClient, I as shallowEqualObjects, L as shouldThrowError, M as replaceData, N as replaceEqualDeep, O as isServer, P as resolveEnabled, Q as WEBHOOK_TRIGGER, R as timeUntilStale, S as hasPreviousPage, T as notifyManager, U as isSyncingError, W as ASSERT_BLOCK, Y as SCHEDULE_TRIGGER, _ as runtimeKeys, a as pieceActionsQuery, b as QueryClient, c as runQuery, d as secretStatQuery, et as pinBlock, g as queryKind, gt as scheduleConfigIssue, h as blockRefKey, j as noop, k as isValidTimeout, lt as checkTriggerStrategy, m as SHARED_STALE_MS, n as catalogQuery, nt as stepBlock, o as pieceTriggersQuery, p as RESOLVER_STALE_MS, q as MANUAL_TRIGGER, r as createRuntimeQueryClient, s as runPagesQuery, u as runsQuery, w as fetchState, x as hasNextPage, z as timeoutManager } from "./runtime-queries-BM6I7dDA.mjs";
2
- import { Rt as blockKey, zt as compareVersions } from "./module-BsqRZox1.mjs";
1
+ import { $ as isCoreBlock, A as keepPreviousData, B as Subscribable, C as infiniteQueryBehavior, D as focusManager, E as pendingThenable, F as resolveStaleTime, G as BRANCH_BLOCK, H as createRuntimeClient, I as shallowEqualObjects, L as shouldThrowError, M as replaceData, N as replaceEqualDeep, O as isServer, P as resolveEnabled, Q as WEBHOOK_TRIGGER, R as timeUntilStale, S as hasPreviousPage, T as notifyManager, U as isSyncingError, W as ASSERT_BLOCK, Y as SCHEDULE_TRIGGER, _ as runtimeKeys, a as pieceActionsQuery, b as QueryClient, c as runQuery, d as secretStatQuery, et as pinBlock, g as queryKind, gt as scheduleConfigIssue, h as blockRefKey, j as noop, k as isValidTimeout, lt as checkTriggerStrategy, m as SHARED_STALE_MS, n as catalogQuery, nt as stepBlock, o as pieceTriggersQuery, p as RESOLVER_STALE_MS, q as MANUAL_TRIGGER, r as createRuntimeQueryClient, s as runPagesQuery, u as runsQuery, w as fetchState, x as hasNextPage, z as timeoutManager } from "./runtime-queries-CZ7vFHoG.mjs";
2
+ import { Rt as blockKey, zt as compareVersions } from "./module-uKdoLIga.mjs";
3
3
  import * as React$1 from "react";
4
4
  import { Component, Fragment, createContext, useContext, useEffect, useId, useLayoutEffect, useMemo, useRef, useState, useSyncExternalStore } from "react";
5
5
  import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
@@ -5998,7 +5998,7 @@ function usePieceSource() {
5998
5998
  return useContext(PieceSourceContext);
5999
5999
  }
6000
6000
  //#endregion
6001
- //#region ../reactor/dist/drive-container-types-D380mcB3.js
6001
+ //#region ../reactor/dist/drive-container-types-Ci1pdv4X.js
6002
6002
  const DRIVE_COLLECTION_PREFIX = "drive.";
6003
6003
  /**
6004
6004
  * Identifies the collection a remote synchronizes. Collections are drive-level
@@ -6751,7 +6751,8 @@ const RUN_TONE = {
6751
6751
  const STEP_TONE = {
6752
6752
  ...RUN_TONE,
6753
6753
  SKIPPED: "idle",
6754
- REPLAYED: "run"
6754
+ REPLAYED: "run",
6755
+ INDETERMINATE: "warn"
6755
6756
  };
6756
6757
  function runTone(run) {
6757
6758
  if (run.status === "SUCCEEDED" && (run.warningNotes?.length ?? 0) > 0) return "warn";
@@ -6847,6 +6848,10 @@ function runStats(runs) {
6847
6848
  successRate: finished === 0 ? null : Math.round(succeeded / finished * 100)
6848
6849
  };
6849
6850
  }
6851
+ const RUN_DEADLINE_ERROR_NAME = "RunDeadlineExceeded";
6852
+ function canRerun(run) {
6853
+ return run.status === "FAILED" || run.status === "CANCELLED" && run.errorName === RUN_DEADLINE_ERROR_NAME;
6854
+ }
6850
6855
  //#endregion
6851
6856
  //#region editors/workflow-editor/ui/block-meta.ts
6852
6857
  const CORE_META = {
@@ -7630,6 +7635,6 @@ function BlockSelector(props) {
7630
7635
  });
7631
7636
  }
7632
7637
  //#endregion
7633
- export { blockMissing as $, runTone as A, Tooltip as At, useCachedBlockForm as B, formatDuration as C, Hint as Ct, runStats as D, Switch as Dt, formatWhen as E, Select as Et, useBlockForm as F, isIconName as Ft, useDynamicPrefetch as G, useDesignTime as H, useBlockFormLoader as I, DocumentErrorBoundary as It, useResolvedProp as J, useLatestRun as K, useBlockForms as L, DocumentLoadError as Lt, toneOf as M, textAreaClass as Mt, workflowHealth as N, textInputClass as Nt, runStatusLabel as O, Tabs as Ot, DesignTimeProvider as P, Icon as Pt, useWebhookEndpoint as Q, useBlockPorts as R, errorMessage as Rt, formatAbsolute as S, FieldLabel as St, formatTrigger as T, Segmented as Tt, useDynamicCache as U, useConnectionList as V, useDynamicLookup as W, useTestStepRunner as X, useRunById as Y, useTestTrigger as Z, RUN_TONE as _, useRuntime as _t, resolutionText as a, storedSchema as at, TONE_TEXT as b, Button as bt, useResolution as c, withSetting as ct, pieceDisplayName as d, useOAuthAttempt as dt, isEmptyValue as et, pieceLogo as f, useOAuthRedirectUri as ft, RUN_STATUSES as g, useRunsQuery as gt, CONNECTION_TONE as h, useRunQuery as ht, VersionSummary as i, settingFor as it, statusLabel as j, invalidClass as jt, runTimeline as k, Toggle as kt, versionBadge as l, workflowReadiness as lt, usePieceLogos as m, useRunPagesQuery as mt, BlockSelector as n, parsePropList as nt, runsDifferentVersion as o, stripOptions as ot, useBlockMeta as p, usePieceCatalog as pt, useOptionSearch as q, BlockResolutionsProvider as r, resolverInputFor as rt, updateVersion as s, undeclaredPortIssues as st, BlockLogo as t, isPropVisible as tt, blockMeta as u, WorkflowRuntimeProvider as ut, STEP_TONE as v, useRuntimeActions as vt, formatMs as w, IconButton as wt, durationMs as x, FieldError as xt, TONE_DOT as y, useSecretStat as yt, useBlockResolutions as z, useQuery as zt };
7638
+ export { useWebhookEndpoint as $, runTimeline as A, Toggle as At, useBlockResolutions as B, useQuery as Bt, formatAbsolute as C, FieldLabel as Ct, formatWhen as D, Select as Dt, formatTrigger as E, Segmented as Et, DesignTimeProvider as F, Icon as Ft, useDynamicLookup as G, useConnectionList as H, useBlockForm as I, isIconName as It, useOptionSearch as J, useDynamicPrefetch as K, useBlockFormLoader as L, DocumentErrorBoundary as Lt, statusLabel as M, invalidClass as Mt, toneOf as N, textAreaClass as Nt, runStats as O, Switch as Ot, workflowHealth as P, textInputClass as Pt, useTestTrigger as Q, useBlockForms as R, DocumentLoadError as Rt, durationMs as S, FieldError as St, formatMs as T, IconButton as Tt, useDesignTime as U, useCachedBlockForm as V, useDynamicCache as W, useRunById as X, useResolvedProp as Y, useTestStepRunner as Z, RUN_TONE as _, useRunsQuery as _t, resolutionText as a, settingFor as at, TONE_TEXT as b, useSecretStat as bt, useResolution as c, undeclaredPortIssues as ct, pieceDisplayName as d, WorkflowRuntimeProvider as dt, blockMissing as et, pieceLogo as f, useOAuthAttempt as ft, RUN_STATUSES as g, useRunQuery as gt, CONNECTION_TONE as h, useRunPagesQuery as ht, VersionSummary as i, resolverInputFor as it, runTone as j, Tooltip as jt, runStatusLabel as k, Tabs as kt, versionBadge as l, withSetting as lt, usePieceLogos as m, usePieceCatalog as mt, BlockSelector as n, isPropVisible as nt, runsDifferentVersion as o, storedSchema as ot, useBlockMeta as p, useOAuthRedirectUri as pt, useLatestRun as q, BlockResolutionsProvider as r, parsePropList as rt, updateVersion as s, stripOptions as st, BlockLogo as t, isEmptyValue as tt, blockMeta as u, workflowReadiness as ut, STEP_TONE as v, useRuntime as vt, formatDuration as w, Hint as wt, canRerun as x, Button as xt, TONE_DOT as y, useRuntimeActions as yt, useBlockPorts as z, errorMessage as zt };
7634
7639
 
7635
- //# sourceMappingURL=BlockSelector-DTy0Bxvb.mjs.map
7640
+ //# sourceMappingURL=BlockSelector-DidV3yJx.mjs.map