@widgetic/workflows 0.2.14 → 0.2.16
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 +117 -3
- package/dist/api/types.d.ts +17 -0
- package/dist/api/workflowsApi.d.ts +12 -1
- package/dist/api/workflowsApi.js +37 -0
- package/dist/assistant/assistantEvents.d.ts +44 -2
- package/dist/assistant/assistantEvents.js +58 -2
- package/dist/assistant/assistantReferences.d.ts +66 -0
- package/dist/assistant/assistantReferences.js +109 -0
- package/dist/assistant/assistantSaveMode.d.ts +15 -3
- package/dist/assistant/assistantSaveMode.js +16 -2
- package/dist/assistant/assistantSeed.d.ts +55 -0
- package/dist/assistant/assistantSeed.js +90 -0
- package/dist/assistant/assistantStream.js +81 -3
- package/dist/assistant/assistantSuggest.d.ts +18 -0
- package/dist/assistant/assistantSuggest.js +21 -0
- package/dist/assistant/assistantTurns.d.ts +75 -0
- package/dist/assistant/assistantTurns.js +56 -0
- package/dist/assistant/attachmentUploads.d.ts +42 -0
- package/dist/assistant/attachmentUploads.js +69 -0
- package/dist/assistant/canvasLink.d.ts +30 -0
- package/dist/assistant/canvasLink.js +51 -0
- package/dist/assistant/compositionMention.d.ts +18 -0
- package/dist/assistant/compositionMention.js +47 -0
- package/dist/assistant/liveData.d.ts +150 -0
- package/dist/assistant/liveData.js +286 -0
- package/dist/assistant/mcpMention.d.ts +20 -0
- package/dist/assistant/mcpMention.js +30 -0
- package/dist/assistant/mentionEntries.d.ts +39 -0
- package/dist/assistant/mentionEntries.js +69 -0
- package/dist/assistant/planFlow.d.ts +26 -0
- package/dist/assistant/planFlow.js +57 -0
- package/dist/assistant/templateDestinations.d.ts +37 -0
- package/dist/assistant/templateDestinations.js +64 -0
- package/dist/assistant/types.d.ts +99 -2
- package/dist/assistant/workflowPlanViewModel.d.ts +13 -2
- package/dist/assistant/workflowPlanViewModel.js +9 -1
- package/dist/components/Workflows.svelte +7 -1
- package/dist/components/WorkflowsWorkspace.svelte +29 -1
- package/dist/components/WorkflowsWorkspace.svelte.d.ts +3 -0
- package/dist/components/assistant/AssistantPlanStepRow.svelte +56 -0
- package/dist/components/assistant/AssistantPlanStepRow.svelte.d.ts +9 -0
- package/dist/components/assistant/CompositionMentionMenu.svelte +135 -0
- package/dist/components/assistant/CompositionMentionMenu.svelte.d.ts +9 -0
- package/dist/components/assistant/DataPreviewCard.svelte +108 -0
- package/dist/components/assistant/DataPreviewCard.svelte.d.ts +7 -0
- package/dist/components/assistant/PlanBindingsBlock.svelte +200 -0
- package/dist/components/assistant/PlanBindingsBlock.svelte.d.ts +14 -0
- package/dist/components/assistant/TemplateProjectCard.svelte +81 -0
- package/dist/components/assistant/TemplateProjectCard.svelte.d.ts +14 -0
- package/dist/components/assistant/WorkflowAssistantPanel.svelte +1045 -147
- package/dist/components/assistant/WorkflowAssistantPanel.svelte.d.ts +5 -0
- package/dist/components/canvas/CanvasContextMenu.svelte +199 -0
- package/dist/components/canvas/CanvasContextMenu.svelte.d.ts +16 -0
- package/dist/components/canvas/CompositionNodeView.svelte +7 -2
- package/dist/components/canvas/ConditionNodeView.svelte +5 -1
- package/dist/components/canvas/HandlePoint.svelte +25 -3
- package/dist/components/canvas/WorkflowCanvas.svelte +351 -12
- package/dist/components/canvas/WorkflowCanvas.svelte.d.ts +12 -1
- package/dist/components/canvas/altDragDuplicateController.d.ts +29 -0
- package/dist/components/canvas/altDragDuplicateController.js +92 -0
- package/dist/components/canvas/connectionSnapController.d.ts +29 -0
- package/dist/components/canvas/connectionSnapController.js +182 -0
- package/dist/components/canvas/spacePanController.d.ts +16 -0
- package/dist/components/canvas/spacePanController.js +103 -0
- package/dist/components/editor/EditorCanvasArea.svelte +98 -4
- package/dist/components/editor/EditorCanvasArea.svelte.d.ts +5 -0
- package/dist/components/editor/EditorLoadFailure.svelte +53 -0
- package/dist/components/editor/EditorLoadFailure.svelte.d.ts +7 -0
- package/dist/components/editor/EditorTopBar.svelte +53 -42
- package/dist/components/editor/WorkflowEditor.svelte +74 -50
- package/dist/components/editor/WorkflowEditor.svelte.d.ts +5 -0
- package/dist/components/editor/WorkflowNameControl.svelte +9 -8
- package/dist/components/editor/WorkflowNameControl.svelte.d.ts +3 -1
- package/dist/components/list/WorkflowList.svelte +43 -41
- package/dist/components/list/WorkflowList.svelte.d.ts +5 -0
- package/dist/components/panel/CompositionForm.svelte +3 -2
- package/dist/components/panel/CompositionPicker.svelte +25 -23
- package/dist/components/panel/CompositionPicker.svelte.d.ts +2 -2
- package/dist/components/panel/CompositionSelect.svelte +4 -4
- package/dist/components/panel/CompositionSelect.svelte.d.ts +2 -2
- package/dist/components/ui/ErrorState.svelte +43 -0
- package/dist/components/ui/ErrorState.svelte.d.ts +13 -0
- package/dist/components/ui/icons.d.ts +8 -0
- package/dist/components/ui/icons.js +24 -1
- package/dist/editor/apiErrorText.d.ts +2 -0
- package/dist/editor/apiErrorText.js +15 -0
- package/dist/editor/autoLayout.d.ts +38 -0
- package/dist/editor/autoLayout.js +403 -0
- package/dist/editor/blockClipboard.svelte.d.ts +9 -0
- package/dist/editor/blockClipboard.svelte.js +24 -0
- package/dist/editor/blockCopy.d.ts +39 -0
- package/dist/editor/blockCopy.js +137 -0
- package/dist/editor/canvasMenu.d.ts +45 -0
- package/dist/editor/canvasMenu.js +68 -0
- package/dist/editor/connectionSnap.d.ts +90 -0
- package/dist/editor/connectionSnap.js +98 -0
- package/dist/editor/editorState.svelte.d.ts +122 -13
- package/dist/editor/editorState.svelte.js +262 -22
- package/dist/editor/graphIssues.d.ts +5 -0
- package/dist/editor/graphIssues.js +18 -0
- package/dist/editor/graphModel.d.ts +6 -1
- package/dist/editor/graphModel.js +8 -1
- package/dist/editor/keyHints.d.ts +21 -0
- package/dist/editor/keyHints.js +30 -0
- package/dist/editor/listState.svelte.d.ts +4 -4
- package/dist/editor/listState.svelte.js +3 -1
- package/dist/editor/staleGuard.d.ts +111 -0
- package/dist/editor/staleGuard.js +279 -0
- package/dist/i18n/language.d.ts +3 -3
- package/dist/i18n/messages.d.ts +85 -1
- package/dist/i18n/messages.js +99 -4
- package/dist/index.d.ts +1 -0
- package/dist/types/index.d.ts +19 -2
- package/package.json +10 -10
|
@@ -59,9 +59,9 @@ export interface ListNotice {
|
|
|
59
59
|
export declare class WorkflowListState {
|
|
60
60
|
items: readonly WorkflowListItem[];
|
|
61
61
|
total: number;
|
|
62
|
-
loadState: "
|
|
62
|
+
loadState: "failed" | "loading" | "ready";
|
|
63
63
|
loadingMore: boolean;
|
|
64
|
-
failure: "workflows.region.label" | "workflows.header.title" | "workflows.common.cancel" | "workflows.common.close" | "workflows.common.dismiss" | "workflows.common.loading" | "workflows.empty.title" | "workflows.empty.hint" | "workflows.error.title" | "workflows.error.hint" | "workflows.error.retry" | "workflows.error.generic" | "workflows.error.network" | "workflows.error.timeout" | "workflows.error.server" | "workflows.error.sessionEnded" | "workflows.error.planRestricted" | "workflows.error.notFound" | "workflows.error.revisionChanged" | "workflows.error.archived" | "workflows.error.nothingToPublish" | "workflows.error.nothingToDiscard" | "workflows.error.wrongState" | "workflows.error.tooManyWorkflows" | "workflows.error.presetGone" | "workflows.error.presetCopyFailed" | "workflows.error.stillWorking" | "workflows.error.publishBlocked" | "workflows.error.invalidGraph" | "workflows.error.tooManyRequests" | "workflows.list.label" | "workflows.list.newWorkflow" | "workflows.list.searchLabel" | "workflows.list.searchPlaceholder" | "workflows.list.filterLabel" | "workflows.list.filterAll" | "workflows.list.statusLabel" | "workflows.list.sortLabel" | "workflows.list.sortCreated" | "workflows.list.sortPublished" | "workflows.list.sortRuns" | "workflows.list.sortName" | "workflows.list.sortAscending" | "workflows.list.sortDescending" | "workflows.list.compositionsCount" | "workflows.list.runsCount" | "workflows.list.publishedOn" | "workflows.list.neverPublished" | "workflows.list.open" | "workflows.list.rowMenu" | "workflows.list.showMore" | "workflows.list.noMatches" | "workflows.list.duplicated" | "workflows.list.deleted" | "workflows.list.editingNamed" | "workflows.list.editingSomeone" | "workflows.create.compositionPlaceholder" | "workflows.status.draft" | "workflows.status.live" | "workflows.status.paused" | "workflows.status.archived" | "workflows.status.unpublishedChanges" | "workflows.top.back" | "workflows.top.renameLabel" | "workflows.top.testRun" | "workflows.top.history" | "workflows.top.embedCode" | "workflows.top.publish" | "workflows.top.publishChanges" | "workflows.top.publishing" | "workflows.top.moreActions" | "workflows.save.saved" | "workflows.save.saving" | "workflows.save.pending" | "workflows.save.failed" | "workflows.save.conflict" | "workflows.tabs.label" | "workflows.tabs.editor" | "workflows.tabs.runs" | "workflows.tabs.settings" | "workflows.banner.unpublishedChanges" | "workflows.banner.discard" | "workflows.banner.discardTitle" | "workflows.banner.discardMessage" | "workflows.banner.neverPublished" | "workflows.banner.paused" | "workflows.banner.archived" | "workflows.banner.conflict" | "workflows.banner.reload" | "workflows.banner.touchOnly" | "workflows.conflict.keepCopy" | "workflows.conflict.keepingCopy" | "workflows.conflict.copyName" | "workflows.conflict.copyKept" | "workflows.conflict.openCopy" | "workflows.conflict.loadTitle" | "workflows.conflict.loadMessage" | "workflows.presence.blockedTitleNamed" | "workflows.presence.blockedTitleYou" | "workflows.presence.blockedTitle" | "workflows.presence.blockedBody" | "workflows.presence.lostTitleNamed" | "workflows.presence.lostTitleYou" | "workflows.presence.lostTitle" | "workflows.presence.lostBody" | "workflows.presence.takeOver" | "workflows.presence.takeOverHint" | "workflows.presence.lookOnly" | "workflows.presence.lookOnlyHint" | "workflows.presence.working" | "workflows.presence.actionFailed" | "workflows.presence.readOnlyNamed" | "workflows.presence.readOnlyYou" | "workflows.presence.readOnly" | "workflows.presence.readOnlyFree" | "workflows.presence.startEditing" | "workflows.editor.published" | "workflows.editor.discarded" | "workflows.editor.restored" | "workflows.editor.reloaded" | "workflows.editor.paused" | "workflows.editor.resumed" | "workflows.editor.archived" | "workflows.editor.unarchived" | "workflows.editor.saveFirst" | "workflows.editor.fixProblems" | "workflows.editor.blockLimit" | "workflows.publish.firstTitle" | "workflows.publish.firstMessage" | "workflows.publish.changesTitle" | "workflows.publish.changesMessage" | "workflows.leave.title" | "workflows.leave.message" | "workflows.leave.confirm" | "workflows.canvas.label" | "workflows.canvas.pointIn" | "workflows.canvas.pointOut" | "workflows.toolbar.label" | "workflows.toolbar.addBlock" | "workflows.toolbar.undo" | "workflows.toolbar.redo" | "workflows.toolbar.zoomIn" | "workflows.toolbar.zoomOut" | "workflows.toolbar.fit" | "workflows.toolbar.zoomLevel" | "workflows.block.publishedMeta" | "workflows.block.draftMeta" | "workflows.block.emptyCompositionHelp" | "workflows.block.conditionNoRulesBadge" | "workflows.addBlock.composition" | "workflows.addBlock.helpComposition" | "workflows.addBlock.condition" | "workflows.addBlock.helpCondition" | "workflows.addBlock.triggerHeading" | "workflows.addBlock.helpInput" | "workflows.addBlock.helpAction" | "workflows.addBlock.helpPageEvent" | "workflows.addBlock.helpScheduled" | "workflows.block.startsHere" | "workflows.block.trigger" | "workflows.block.condition" | "workflows.block.unknown" | "workflows.block.compositionNotChosen" | "workflows.block.compositionLoading" | "workflows.block.compositionUnavailable" | "workflows.block.notPublished" | "workflows.block.numbered" | "workflows.block.problems" | "workflows.panel.label" | "workflows.panel.close" | "workflows.panel.selectionHeading" | "workflows.panel.problemsHeading" | "workflows.panel.problemsLabel" | "workflows.panel.manyBlocksSelected" | "workflows.panel.connectionSelected" | "workflows.panel.removeBlock" | "workflows.panel.removeBlocks" | "workflows.panel.removeConnection" | "workflows.composition.heading" | "workflows.composition.label" | "workflows.composition.help" | "workflows.composition.searchLabel" | "workflows.composition.searchPlaceholder" | "workflows.composition.none" | "workflows.composition.alreadyUsed" | "workflows.composition.isStart" | "workflows.composition.makeStart" | "workflows.composition.capabilitiesHeading" | "workflows.composition.capabilityInput" | "workflows.composition.capabilityAction" | "workflows.composition.capabilityWebsites" | "workflows.composition.inputTables" | "workflows.composition.actionCount" | "workflows.trigger.heading" | "workflows.trigger.help" | "workflows.trigger.kindLabel" | "workflows.trigger.kindInput" | "workflows.trigger.kindAction" | "workflows.trigger.kindPageEvent" | "workflows.trigger.kindScheduled" | "workflows.trigger.unavailable" | "workflows.trigger.tableLabel" | "workflows.trigger.tableHelp" | "workflows.trigger.actionLabel" | "workflows.trigger.actionHelp" | "workflows.trigger.chooseOne" | "workflows.trigger.notFound" | "workflows.trigger.readableValues" | "workflows.trigger.noReadableValues" | "workflows.trigger.nextLabel" | "workflows.trigger.nextHelp" | "workflows.trigger.nextNone" | "workflows.trigger.summaryInput" | "workflows.trigger.summaryAction" | "workflows.trigger.summaryPageEvent" | "workflows.trigger.summaryAt" | "workflows.trigger.summaryUnfinished" | "workflows.reason.widgetKeepsNoData" | "workflows.reason.widgetReportsNoActions" | "workflows.reason.widgetNotPublished" | "workflows.schedule.modeLabel" | "workflows.schedule.modeAfter" | "workflows.schedule.modeAt" | "workflows.schedule.afterHelp" | "workflows.schedule.amountLabel" | "workflows.schedule.unitLabel" | "workflows.schedule.unitSeconds" | "workflows.schedule.unitMinutes" | "workflows.schedule.unitHours" | "workflows.schedule.unitDays" | "workflows.schedule.unitWeeks" | "workflows.schedule.waitSeconds" | "workflows.schedule.waitMinutes" | "workflows.schedule.waitHours" | "workflows.schedule.waitDays" | "workflows.schedule.waitWeeks" | "workflows.schedule.momentLabel" | "workflows.schedule.momentHelp" | "workflows.schedule.invalidMoment" | "workflows.event.nameLabel" | "workflows.event.namePlaceholder" | "workflows.event.nameHelp" | "workflows.event.nameInvalid" | "workflows.event.howToSend" | "workflows.event.valuesHeading" | "workflows.event.valuesHelp" | "workflows.event.addValue" | "workflows.event.valueName" | "workflows.event.valueNamePlaceholder" | "workflows.event.valueNameInvalid" | "workflows.event.valueType" | "workflows.event.removeValue" | "workflows.fieldType.text" | "workflows.fieldType.number" | "workflows.fieldType.boolean" | "workflows.value.yes" | "workflows.value.no" | "workflows.condition.heading" | "workflows.condition.help" | "workflows.condition.noTrigger" | "workflows.condition.noValues" | "workflows.condition.addRule" | "workflows.condition.ruleLimit" | "workflows.condition.defaultName" | "workflows.condition.defaultLabel" | "workflows.condition.defaultStay" | "workflows.condition.defaultHelp" | "workflows.condition.defaultHint" | "workflows.condition.defaultStays" | "workflows.rule.defaultName" | "workflows.rule.nameLabel" | "workflows.rule.moveUp" | "workflows.rule.moveDown" | "workflows.rule.remove" | "workflows.rule.matchLabel" | "workflows.rule.matchAll" | "workflows.rule.matchAny" | "workflows.rule.noTests" | "workflows.rule.addTest" | "workflows.rule.testLimit" | "workflows.rule.thenGoTo" | "workflows.rule.expand" | "workflows.rule.collapse" | "workflows.rule.testWithValue" | "workflows.rule.testWithoutValue" | "workflows.rule.testAndMore" | "workflows.test.field" | "workflows.test.operator" | "workflows.test.value" | "workflows.test.valuePlaceholder" | "workflows.test.remove" | "workflows.operator.is" | "workflows.operator.isNot" | "workflows.operator.contains" | "workflows.operator.doesNotContain" | "workflows.operator.startsWith" | "workflows.operator.endsWith" | "workflows.operator.greaterThan" | "workflows.operator.atLeast" | "workflows.operator.lessThan" | "workflows.operator.atMost" | "workflows.operator.isEmpty" | "workflows.operator.isNotEmpty" | "workflows.test.heading" | "workflows.test.help" | "workflows.test.close" | "workflows.test.start" | "workflows.test.restart" | "workflows.test.ended" | "workflows.test.noStart" | "workflows.test.noTriggers" | "workflows.test.visitorIsOn" | "workflows.test.fire" | "workflows.test.resultMoved" | "workflows.test.resultStayed" | "workflows.test.resultIgnored" | "workflows.history.heading" | "workflows.history.help" | "workflows.history.close" | "workflows.history.none" | "workflows.history.failed" | "workflows.history.draft" | "workflows.history.draftMeta" | "workflows.history.version" | "workflows.history.live" | "workflows.history.byOn" | "workflows.history.view" | "workflows.history.viewingShort" | "workflows.history.viewing" | "workflows.history.backToDraft" | "workflows.history.restore" | "workflows.history.restoreConfirm" | "workflows.history.restoreTitle" | "workflows.history.restoreMessage" | "workflows.runs.help" | "workflows.runs.flowLabel" | "workflows.runs.rangeLabel" | "workflows.runs.lastDays" | "workflows.runs.versionLabel" | "workflows.runs.allVersions" | "workflows.runs.versionLive" | "workflows.runs.started" | "workflows.runs.entered" | "workflows.runs.stayed" | "workflows.runs.failed" | "workflows.runs.chartStayed" | "workflows.runs.chartFailed" | "workflows.runs.failedTimeout" | "workflows.runs.failedWidgetError" | "workflows.runs.failedBuild" | "workflows.runs.failedOther" | "workflows.runs.failedUnrecorded" | "workflows.runs.pathLabel" | "workflows.runs.none" | "workflows.runs.neverPublished" | "workflows.settings.zoneLabel" | "workflows.settings.zoneHelp" | "workflows.settings.embedHeading" | "workflows.settings.embedHelp" | "workflows.settings.stateHeading" | "workflows.settings.pause" | "workflows.settings.pauseHelp" | "workflows.settings.resume" | "workflows.settings.resumeHelp" | "workflows.settings.archive" | "workflows.settings.archiveHelp" | "workflows.settings.archiveTitle" | "workflows.settings.archiveMessage" | "workflows.settings.unarchive" | "workflows.settings.unarchiveHelp" | "workflows.settings.duplicate" | "workflows.settings.duplicateHelp" | "workflows.settings.delete" | "workflows.settings.deleteHelp" | "workflows.settings.deleteTitle" | "workflows.settings.deleteMessageDraft" | "workflows.settings.deleteMessageLive" | "workflows.settings.deleteMessagePaused" | "workflows.settings.deleteMessageArchived" | "workflows.issue.unknown" | "workflows.issue.malformed" | "workflows.issue.schemaVersion" | "workflows.issue.graphTooLarge" | "workflows.issue.unknownNodeType" | "workflows.issue.unknownTriggerKind" | "workflows.issue.badId" | "workflows.issue.duplicateId" | "workflows.issue.tooManyBlocks" | "workflows.issue.tooManyEdges" | "workflows.issue.noComposition" | "workflows.issue.noStart" | "workflows.issue.manyStarts" | "workflows.issue.compositionMissingId" | "workflows.issue.duplicateComposition" | "workflows.issue.compositionNotAvailable" | "workflows.issue.compositionWebsiteMismatch" | "workflows.issue.unreachableBlock" | "workflows.issue.edgeUnknownNode" | "workflows.issue.edgeBadPort" | "workflows.issue.edgeInvalidConnection" | "workflows.issue.portManyTargets" | "workflows.issue.cycle" | "workflows.issue.triggerNoSource" | "workflows.issue.triggerManySources" | "workflows.issue.triggerNoTarget" | "workflows.issue.triggerConfigIncomplete" | "workflows.issue.triggerNeedsTable" | "workflows.issue.triggerNeedsAction" | "workflows.issue.triggerNeedsName" | "workflows.issue.scheduleInvalid" | "workflows.issue.eventValueInvalid" | "workflows.issue.eventTooManyValues" | "workflows.issue.triggerCapabilityMissing" | "workflows.issue.triggerInputMissing" | "workflows.issue.triggerActionMissing" | "workflows.issue.conditionNoSource" | "workflows.issue.conditionManySources" | "workflows.issue.conditionNoCases" | "workflows.issue.conditionTooManyCases" | "workflows.issue.caseBadId" | "workflows.issue.caseDuplicateId" | "workflows.issue.caseNoTests" | "workflows.issue.caseTooManyTests" | "workflows.issue.caseNoTarget" | "workflows.issue.testBadField" | "workflows.issue.testBadOperator" | "workflows.issue.testMissingValue" | "workflows.issue.fieldUnknown" | "workflows.assistant.title" | "workflows.assistant.newChat" | "workflows.assistant.open" | "workflows.assistant.collapse" | "workflows.assistant.welcome" | "workflows.assistant.emptyCanvas" | "workflows.assistant.openAssistant" | "workflows.assistant.toolbarButton" | "workflows.assistant.planNote" | "workflows.assistant.chipIdeas" | "workflows.assistant.chipLeads" | "workflows.assistant.submit" | "workflows.assistant.estimate" | "workflows.assistant.createWorkflow" | "workflows.assistant.notNow" | "workflows.assistant.ready" | "workflows.assistant.createdNew" | "workflows.assistant.openInEditor" | "workflows.assistant.attachFiles" | "workflows.assistant.libraryHint" | "workflows.assistant.composerPlaceholder" | "workflows.assistant.send" | "workflows.assistant.answerSent" | "workflows.assistant.stepWaiting" | "workflows.assistant.stepCreating" | "workflows.assistant.stepDone" | "workflows.assistant.stepFailed" | "workflows.assistant.retry" | "workflows.assistant.retryMessage" | "workflows.assistant.buildNote" | "workflows.assistant.errorRateLimited" | "workflows.assistant.errorNotAvailable" | null;
|
|
64
|
+
failure: "workflows.region.label" | "workflows.header.title" | "workflows.common.cancel" | "workflows.common.close" | "workflows.common.dismiss" | "workflows.common.loading" | "workflows.empty.title" | "workflows.empty.hint" | "workflows.error.title" | "workflows.error.hint" | "workflows.error.retry" | "workflows.error.openTitle" | "workflows.error.generic" | "workflows.error.network" | "workflows.error.timeout" | "workflows.error.server" | "workflows.error.sessionEnded" | "workflows.error.planRestricted" | "workflows.error.notFound" | "workflows.error.revisionChanged" | "workflows.error.archived" | "workflows.error.nothingToPublish" | "workflows.error.nothingToDiscard" | "workflows.error.wrongState" | "workflows.error.tooManyWorkflows" | "workflows.error.presetGone" | "workflows.error.presetCopyFailed" | "workflows.error.stillWorking" | "workflows.error.publishBlocked" | "workflows.error.invalidGraph" | "workflows.error.tooManyRequests" | "workflows.list.label" | "workflows.list.newWorkflow" | "workflows.list.searchLabel" | "workflows.list.searchPlaceholder" | "workflows.list.clearSearch" | "workflows.list.recentSearches" | "workflows.list.clearRecentSearches" | "workflows.list.filterLabel" | "workflows.list.filterAll" | "workflows.list.statusLabel" | "workflows.list.sortLabel" | "workflows.list.sortCreated" | "workflows.list.sortPublished" | "workflows.list.sortRuns" | "workflows.list.sortName" | "workflows.list.sortAscending" | "workflows.list.sortDescending" | "workflows.list.compositionsCount" | "workflows.list.runsCount" | "workflows.list.publishedOn" | "workflows.list.neverPublished" | "workflows.list.open" | "workflows.list.rowMenu" | "workflows.list.showMore" | "workflows.list.noMatches" | "workflows.list.duplicated" | "workflows.list.deleted" | "workflows.list.editingNamed" | "workflows.list.editingSomeone" | "workflows.create.compositionPlaceholder" | "workflows.status.draft" | "workflows.status.live" | "workflows.status.paused" | "workflows.status.archived" | "workflows.status.unpublishedChanges" | "workflows.top.back" | "workflows.top.renameLabel" | "workflows.top.testRun" | "workflows.top.history" | "workflows.top.embedCode" | "workflows.top.publish" | "workflows.top.publishChanges" | "workflows.top.publishing" | "workflows.top.moreActions" | "workflows.save.saved" | "workflows.save.saving" | "workflows.save.pending" | "workflows.save.failed" | "workflows.save.conflict" | "workflows.tabs.label" | "workflows.tabs.editor" | "workflows.tabs.runs" | "workflows.tabs.settings" | "workflows.banner.unpublishedChanges" | "workflows.banner.discard" | "workflows.banner.discardTitle" | "workflows.banner.discardMessage" | "workflows.banner.neverPublished" | "workflows.banner.paused" | "workflows.banner.archived" | "workflows.banner.conflict" | "workflows.banner.reload" | "workflows.banner.touchOnly" | "workflows.conflict.keepCopy" | "workflows.conflict.keepingCopy" | "workflows.conflict.copyName" | "workflows.conflict.copyKept" | "workflows.conflict.openCopy" | "workflows.conflict.loadTitle" | "workflows.conflict.loadMessage" | "workflows.presence.blockedTitleNamed" | "workflows.presence.blockedTitleYou" | "workflows.presence.blockedTitle" | "workflows.presence.blockedBody" | "workflows.presence.lostTitleNamed" | "workflows.presence.lostTitleYou" | "workflows.presence.lostTitle" | "workflows.presence.lostBody" | "workflows.presence.takeOver" | "workflows.presence.takeOverHint" | "workflows.presence.lookOnly" | "workflows.presence.lookOnlyHint" | "workflows.presence.working" | "workflows.presence.actionFailed" | "workflows.presence.readOnlyNamed" | "workflows.presence.readOnlyYou" | "workflows.presence.readOnly" | "workflows.presence.readOnlyFree" | "workflows.presence.startEditing" | "workflows.editor.published" | "workflows.editor.discarded" | "workflows.editor.restored" | "workflows.editor.reloaded" | "workflows.stale.updating" | "workflows.stale.updatingDescription" | "workflows.editor.assistantChanged" | "workflows.editor.paused" | "workflows.editor.resumed" | "workflows.editor.archived" | "workflows.editor.unarchived" | "workflows.editor.saveFirst" | "workflows.editor.fixProblems" | "workflows.editor.blockLimit" | "workflows.editor.connectionLimit" | "workflows.publish.firstTitle" | "workflows.publish.firstMessage" | "workflows.publish.changesTitle" | "workflows.publish.changesMessage" | "workflows.leave.title" | "workflows.leave.message" | "workflows.leave.confirm" | "workflows.canvas.label" | "workflows.canvas.pointIn" | "workflows.canvas.pointOut" | "workflows.canvasMenu.label" | "workflows.canvasMenu.cut" | "workflows.canvasMenu.copy" | "workflows.canvasMenu.paste" | "workflows.canvasMenu.duplicate" | "workflows.canvasMenu.selectAll" | "workflows.canvasMenu.delete" | "workflows.canvasMenu.organise" | "workflows.canvasMenu.disconnect" | "workflows.key.ctrl" | "workflows.toolbar.label" | "workflows.toolbar.addBlock" | "workflows.toolbar.undo" | "workflows.toolbar.redo" | "workflows.toolbar.zoomIn" | "workflows.toolbar.zoomOut" | "workflows.toolbar.fit" | "workflows.toolbar.zoomLevel" | "workflows.block.publishedMeta" | "workflows.block.draftMeta" | "workflows.block.emptyCompositionHelp" | "workflows.block.conditionNoRulesBadge" | "workflows.addBlock.composition" | "workflows.addBlock.helpComposition" | "workflows.addBlock.condition" | "workflows.addBlock.helpCondition" | "workflows.addBlock.triggerHeading" | "workflows.addBlock.helpInput" | "workflows.addBlock.helpAction" | "workflows.addBlock.helpPageEvent" | "workflows.addBlock.helpScheduled" | "workflows.block.startsHere" | "workflows.block.trigger" | "workflows.block.condition" | "workflows.block.unknown" | "workflows.block.compositionNotChosen" | "workflows.block.compositionLoading" | "workflows.block.compositionUnavailable" | "workflows.block.notPublished" | "workflows.block.numbered" | "workflows.block.problems" | "workflows.panel.label" | "workflows.panel.close" | "workflows.panel.selectionHeading" | "workflows.panel.problemsHeading" | "workflows.panel.problemsLabel" | "workflows.panel.manyBlocksSelected" | "workflows.panel.connectionSelected" | "workflows.panel.removeBlock" | "workflows.panel.removeBlocks" | "workflows.panel.removeConnection" | "workflows.composition.heading" | "workflows.composition.label" | "workflows.composition.help" | "workflows.composition.searchLabel" | "workflows.composition.searchPlaceholder" | "workflows.composition.none" | "workflows.composition.alreadyUsed" | "workflows.composition.isStart" | "workflows.composition.makeStart" | "workflows.composition.capabilitiesHeading" | "workflows.composition.capabilityInput" | "workflows.composition.capabilityAction" | "workflows.composition.capabilityWebsites" | "workflows.composition.inputTables" | "workflows.composition.actionCount" | "workflows.trigger.heading" | "workflows.trigger.help" | "workflows.trigger.kindLabel" | "workflows.trigger.kindInput" | "workflows.trigger.kindAction" | "workflows.trigger.kindPageEvent" | "workflows.trigger.kindScheduled" | "workflows.trigger.unavailable" | "workflows.trigger.tableLabel" | "workflows.trigger.tableHelp" | "workflows.trigger.actionLabel" | "workflows.trigger.actionHelp" | "workflows.trigger.chooseOne" | "workflows.trigger.notFound" | "workflows.trigger.readableValues" | "workflows.trigger.noReadableValues" | "workflows.trigger.nextLabel" | "workflows.trigger.nextHelp" | "workflows.trigger.nextNone" | "workflows.trigger.summaryInput" | "workflows.trigger.summaryAction" | "workflows.trigger.summaryPageEvent" | "workflows.trigger.summaryAt" | "workflows.trigger.summaryUnfinished" | "workflows.reason.widgetKeepsNoData" | "workflows.reason.widgetReportsNoActions" | "workflows.reason.widgetNotPublished" | "workflows.schedule.modeLabel" | "workflows.schedule.modeAfter" | "workflows.schedule.modeAt" | "workflows.schedule.afterHelp" | "workflows.schedule.amountLabel" | "workflows.schedule.unitLabel" | "workflows.schedule.unitSeconds" | "workflows.schedule.unitMinutes" | "workflows.schedule.unitHours" | "workflows.schedule.unitDays" | "workflows.schedule.unitWeeks" | "workflows.schedule.waitSeconds" | "workflows.schedule.waitMinutes" | "workflows.schedule.waitHours" | "workflows.schedule.waitDays" | "workflows.schedule.waitWeeks" | "workflows.schedule.momentLabel" | "workflows.schedule.momentHelp" | "workflows.schedule.invalidMoment" | "workflows.event.nameLabel" | "workflows.event.namePlaceholder" | "workflows.event.nameHelp" | "workflows.event.nameInvalid" | "workflows.event.howToSend" | "workflows.event.valuesHeading" | "workflows.event.valuesHelp" | "workflows.event.addValue" | "workflows.event.valueName" | "workflows.event.valueNamePlaceholder" | "workflows.event.valueNameInvalid" | "workflows.event.valueType" | "workflows.event.removeValue" | "workflows.fieldType.text" | "workflows.fieldType.number" | "workflows.fieldType.boolean" | "workflows.value.yes" | "workflows.value.no" | "workflows.condition.heading" | "workflows.condition.help" | "workflows.condition.noTrigger" | "workflows.condition.noValues" | "workflows.condition.addRule" | "workflows.condition.ruleLimit" | "workflows.condition.defaultName" | "workflows.condition.defaultLabel" | "workflows.condition.defaultStay" | "workflows.condition.defaultHelp" | "workflows.condition.defaultHint" | "workflows.condition.defaultStays" | "workflows.rule.defaultName" | "workflows.rule.nameLabel" | "workflows.rule.moveUp" | "workflows.rule.moveDown" | "workflows.rule.remove" | "workflows.rule.matchLabel" | "workflows.rule.matchAll" | "workflows.rule.matchAny" | "workflows.rule.noTests" | "workflows.rule.addTest" | "workflows.rule.testLimit" | "workflows.rule.thenGoTo" | "workflows.rule.expand" | "workflows.rule.collapse" | "workflows.rule.testWithValue" | "workflows.rule.testWithoutValue" | "workflows.rule.testAndMore" | "workflows.test.field" | "workflows.test.operator" | "workflows.test.value" | "workflows.test.valuePlaceholder" | "workflows.test.remove" | "workflows.operator.is" | "workflows.operator.isNot" | "workflows.operator.contains" | "workflows.operator.doesNotContain" | "workflows.operator.startsWith" | "workflows.operator.endsWith" | "workflows.operator.greaterThan" | "workflows.operator.atLeast" | "workflows.operator.lessThan" | "workflows.operator.atMost" | "workflows.operator.isEmpty" | "workflows.operator.isNotEmpty" | "workflows.test.heading" | "workflows.test.help" | "workflows.test.close" | "workflows.test.start" | "workflows.test.restart" | "workflows.test.ended" | "workflows.test.noStart" | "workflows.test.noTriggers" | "workflows.test.visitorIsOn" | "workflows.test.fire" | "workflows.test.resultMoved" | "workflows.test.resultStayed" | "workflows.test.resultIgnored" | "workflows.history.heading" | "workflows.history.help" | "workflows.history.close" | "workflows.history.none" | "workflows.history.failed" | "workflows.history.draft" | "workflows.history.draftMeta" | "workflows.history.version" | "workflows.history.live" | "workflows.history.byOn" | "workflows.history.view" | "workflows.history.viewingShort" | "workflows.history.viewing" | "workflows.history.backToDraft" | "workflows.history.restore" | "workflows.history.restoreConfirm" | "workflows.history.restoreTitle" | "workflows.history.restoreMessage" | "workflows.runs.help" | "workflows.runs.flowLabel" | "workflows.runs.rangeLabel" | "workflows.runs.lastDays" | "workflows.runs.versionLabel" | "workflows.runs.allVersions" | "workflows.runs.versionLive" | "workflows.runs.started" | "workflows.runs.entered" | "workflows.runs.stayed" | "workflows.runs.failed" | "workflows.runs.chartStayed" | "workflows.runs.chartFailed" | "workflows.runs.failedTimeout" | "workflows.runs.failedWidgetError" | "workflows.runs.failedBuild" | "workflows.runs.failedOther" | "workflows.runs.failedUnrecorded" | "workflows.runs.pathLabel" | "workflows.runs.none" | "workflows.runs.neverPublished" | "workflows.settings.zoneLabel" | "workflows.settings.zoneHelp" | "workflows.settings.embedHeading" | "workflows.settings.embedHelp" | "workflows.settings.stateHeading" | "workflows.settings.pause" | "workflows.settings.pauseHelp" | "workflows.settings.resume" | "workflows.settings.resumeHelp" | "workflows.settings.archive" | "workflows.settings.archiveHelp" | "workflows.settings.archiveTitle" | "workflows.settings.archiveMessage" | "workflows.settings.unarchive" | "workflows.settings.unarchiveHelp" | "workflows.settings.duplicate" | "workflows.settings.duplicateHelp" | "workflows.settings.delete" | "workflows.settings.deleteHelp" | "workflows.settings.deleteTitle" | "workflows.settings.deleteMessageDraft" | "workflows.settings.deleteMessageLive" | "workflows.settings.deleteMessagePaused" | "workflows.settings.deleteMessageArchived" | "workflows.issue.unknown" | "workflows.issue.malformed" | "workflows.issue.schemaVersion" | "workflows.issue.graphTooLarge" | "workflows.issue.unknownNodeType" | "workflows.issue.unknownTriggerKind" | "workflows.issue.badId" | "workflows.issue.duplicateId" | "workflows.issue.tooManyBlocks" | "workflows.issue.tooManyEdges" | "workflows.issue.noComposition" | "workflows.issue.noStart" | "workflows.issue.manyStarts" | "workflows.issue.compositionMissingId" | "workflows.issue.duplicateComposition" | "workflows.issue.compositionNotAvailable" | "workflows.issue.compositionWebsiteMismatch" | "workflows.issue.unreachableBlock" | "workflows.issue.edgeUnknownNode" | "workflows.issue.edgeBadPort" | "workflows.issue.edgeInvalidConnection" | "workflows.issue.portManyTargets" | "workflows.issue.cycle" | "workflows.issue.triggerNoSource" | "workflows.issue.triggerManySources" | "workflows.issue.triggerNoTarget" | "workflows.issue.triggerConfigIncomplete" | "workflows.issue.triggerNeedsTable" | "workflows.issue.triggerNeedsAction" | "workflows.issue.triggerNeedsName" | "workflows.issue.scheduleInvalid" | "workflows.issue.eventValueInvalid" | "workflows.issue.eventTooManyValues" | "workflows.issue.triggerCapabilityMissing" | "workflows.issue.triggerInputMissing" | "workflows.issue.triggerActionMissing" | "workflows.issue.conditionNoSource" | "workflows.issue.conditionManySources" | "workflows.issue.conditionNoCases" | "workflows.issue.conditionTooManyCases" | "workflows.issue.caseBadId" | "workflows.issue.caseDuplicateId" | "workflows.issue.caseNoTests" | "workflows.issue.caseTooManyTests" | "workflows.issue.caseNoTarget" | "workflows.issue.testBadField" | "workflows.issue.testBadOperator" | "workflows.issue.testMissingValue" | "workflows.issue.fieldUnknown" | "workflows.assistant.title" | "workflows.assistant.newChat" | "workflows.assistant.open" | "workflows.assistant.collapse" | "workflows.assistant.welcome" | "workflows.assistant.emptyCanvas" | "workflows.assistant.openAssistant" | "workflows.assistant.toolbarButton" | "workflows.assistant.planNote" | "workflows.assistant.planFlow" | "workflows.assistant.chipIdeas" | "workflows.assistant.chipLeads" | "workflows.assistant.submit" | "workflows.assistant.estimate" | "workflows.assistant.createWorkflow" | "workflows.assistant.notNow" | "workflows.assistant.ready" | "workflows.assistant.updatedOpen" | "workflows.assistant.createdNew" | "workflows.assistant.attachFiles" | "workflows.assistant.libraryHint" | "workflows.assistant.removeAttachment" | "workflows.assistant.uploadProgress" | "workflows.assistant.attachmentFailed" | "workflows.assistant.composerPlaceholder" | "workflows.assistant.mentionMenuLabel" | "workflows.assistant.compositionReferencesLabel" | "workflows.assistant.removeCompositionReference" | "workflows.assistant.send" | "workflows.assistant.working" | "workflows.assistant.answerSent" | "workflows.assistant.stepWaiting" | "workflows.assistant.stepCreating" | "workflows.assistant.stepDone" | "workflows.assistant.stepFailed" | "workflows.assistant.watchBuild" | "workflows.assistant.openBuilt" | "workflows.assistant.watchNote" | "workflows.assistant.retry" | "workflows.assistant.retryMessage" | "workflows.assistant.buildNote" | "workflows.assistant.templateProjectTitle" | "workflows.assistant.templateProjectHint" | "workflows.assistant.templateProjectUnnamed" | "workflows.assistant.errorRateLimited" | "workflows.assistant.errorNotAvailable" | "workflows.assistant.mentionGroupMcps" | "workflows.assistant.mentionGroupCompositions" | "workflows.assistant.mentionNone" | "workflows.assistant.mentionMcpNeedsSignIn" | "workflows.assistant.mentionMcpNotReachable" | "workflows.assistant.mentionMcpNotChecked" | "workflows.assistant.mentionMcpNoTools" | "workflows.assistant.mentionHint" | "workflows.assistant.mcpReferencesLabel" | "workflows.assistant.removeMcpReference" | "workflows.assistant.previewTitle" | "workflows.assistant.previewSource" | "workflows.assistant.previewPrivate" | "workflows.assistant.previewTableLabel" | "workflows.assistant.previewRowsInAll" | "workflows.assistant.previewRowsLeftOut" | "workflows.assistant.previewDropped" | "workflows.assistant.previewAdjusted" | "workflows.assistant.previewEmpty" | "workflows.assistant.liveDataTitle" | "workflows.assistant.liveDataIntro" | "workflows.assistant.bindingCall" | "workflows.assistant.bindingReadOnly" | "workflows.assistant.bindingMayChange" | "workflows.assistant.bindingReadOnlyUnknown" | "workflows.assistant.bindingRefresh" | "workflows.assistant.bindingCallDetails" | "workflows.assistant.bindingNoArguments" | "workflows.assistant.bindingMappingDetails" | "workflows.assistant.bindingFieldHeading" | "workflows.assistant.bindingSourceHeading" | "workflows.assistant.bindingRowsHeading" | "workflows.assistant.bindingWholeAnswer" | "workflows.assistant.bindingWholeRow" | "workflows.assistant.bindingWaiting" | "workflows.assistant.bindingBinding" | "workflows.assistant.bindingDone" | "workflows.assistant.bindingDoneRows" | "workflows.assistant.bindingFailed" | "workflows.assistant.exposureConsent" | "workflows.assistant.exposureNeeded" | "workflows.assistant.turnOnLiveData" | "workflows.assistant.liveDataReady" | "workflows.assistant.suggestionTabKey" | "workflows.assistant.suggestionTabHint" | "workflows.assistant.suggestionAnnouncement" | "workflows.assistant.referenceHint" | "workflows.assistant.referenceMenuLabel" | "workflows.assistant.referenceRemove" | null;
|
|
65
65
|
search: string;
|
|
66
66
|
/** The status tab that is open (`all` = the API’s default list, not archived). */
|
|
67
67
|
tab: ListTab;
|
|
@@ -88,7 +88,7 @@ export declare class WorkflowListState {
|
|
|
88
88
|
* `idle` until the dialog asks, `ready` once an answer came (even an empty one), `failed` when the answer could not be had.
|
|
89
89
|
* A refresh keeps `ready` and the presets it already has, so a dialog opened a second time does not blink.
|
|
90
90
|
*/
|
|
91
|
-
presetsState: "
|
|
91
|
+
presetsState: "failed" | "loading" | "ready" | "idle";
|
|
92
92
|
/**
|
|
93
93
|
* The key of the preset the person chose in "New workflow"; `null` is a blank start. The dialog sets it back to `null` every
|
|
94
94
|
* time it opens, so a start is blank until somebody chooses otherwise, and a key that is no longer on offer means blank too.
|
|
@@ -175,7 +175,7 @@ export declare class WorkflowListState {
|
|
|
175
175
|
private setBusy;
|
|
176
176
|
private runFor;
|
|
177
177
|
/** The last refusal to make a workflow (shown on the list when "New workflow" fails). */
|
|
178
|
-
createFailure: "workflows.region.label" | "workflows.header.title" | "workflows.common.cancel" | "workflows.common.close" | "workflows.common.dismiss" | "workflows.common.loading" | "workflows.empty.title" | "workflows.empty.hint" | "workflows.error.title" | "workflows.error.hint" | "workflows.error.retry" | "workflows.error.generic" | "workflows.error.network" | "workflows.error.timeout" | "workflows.error.server" | "workflows.error.sessionEnded" | "workflows.error.planRestricted" | "workflows.error.notFound" | "workflows.error.revisionChanged" | "workflows.error.archived" | "workflows.error.nothingToPublish" | "workflows.error.nothingToDiscard" | "workflows.error.wrongState" | "workflows.error.tooManyWorkflows" | "workflows.error.presetGone" | "workflows.error.presetCopyFailed" | "workflows.error.stillWorking" | "workflows.error.publishBlocked" | "workflows.error.invalidGraph" | "workflows.error.tooManyRequests" | "workflows.list.label" | "workflows.list.newWorkflow" | "workflows.list.searchLabel" | "workflows.list.searchPlaceholder" | "workflows.list.filterLabel" | "workflows.list.filterAll" | "workflows.list.statusLabel" | "workflows.list.sortLabel" | "workflows.list.sortCreated" | "workflows.list.sortPublished" | "workflows.list.sortRuns" | "workflows.list.sortName" | "workflows.list.sortAscending" | "workflows.list.sortDescending" | "workflows.list.compositionsCount" | "workflows.list.runsCount" | "workflows.list.publishedOn" | "workflows.list.neverPublished" | "workflows.list.open" | "workflows.list.rowMenu" | "workflows.list.showMore" | "workflows.list.noMatches" | "workflows.list.duplicated" | "workflows.list.deleted" | "workflows.list.editingNamed" | "workflows.list.editingSomeone" | "workflows.create.compositionPlaceholder" | "workflows.status.draft" | "workflows.status.live" | "workflows.status.paused" | "workflows.status.archived" | "workflows.status.unpublishedChanges" | "workflows.top.back" | "workflows.top.renameLabel" | "workflows.top.testRun" | "workflows.top.history" | "workflows.top.embedCode" | "workflows.top.publish" | "workflows.top.publishChanges" | "workflows.top.publishing" | "workflows.top.moreActions" | "workflows.save.saved" | "workflows.save.saving" | "workflows.save.pending" | "workflows.save.failed" | "workflows.save.conflict" | "workflows.tabs.label" | "workflows.tabs.editor" | "workflows.tabs.runs" | "workflows.tabs.settings" | "workflows.banner.unpublishedChanges" | "workflows.banner.discard" | "workflows.banner.discardTitle" | "workflows.banner.discardMessage" | "workflows.banner.neverPublished" | "workflows.banner.paused" | "workflows.banner.archived" | "workflows.banner.conflict" | "workflows.banner.reload" | "workflows.banner.touchOnly" | "workflows.conflict.keepCopy" | "workflows.conflict.keepingCopy" | "workflows.conflict.copyName" | "workflows.conflict.copyKept" | "workflows.conflict.openCopy" | "workflows.conflict.loadTitle" | "workflows.conflict.loadMessage" | "workflows.presence.blockedTitleNamed" | "workflows.presence.blockedTitleYou" | "workflows.presence.blockedTitle" | "workflows.presence.blockedBody" | "workflows.presence.lostTitleNamed" | "workflows.presence.lostTitleYou" | "workflows.presence.lostTitle" | "workflows.presence.lostBody" | "workflows.presence.takeOver" | "workflows.presence.takeOverHint" | "workflows.presence.lookOnly" | "workflows.presence.lookOnlyHint" | "workflows.presence.working" | "workflows.presence.actionFailed" | "workflows.presence.readOnlyNamed" | "workflows.presence.readOnlyYou" | "workflows.presence.readOnly" | "workflows.presence.readOnlyFree" | "workflows.presence.startEditing" | "workflows.editor.published" | "workflows.editor.discarded" | "workflows.editor.restored" | "workflows.editor.reloaded" | "workflows.editor.paused" | "workflows.editor.resumed" | "workflows.editor.archived" | "workflows.editor.unarchived" | "workflows.editor.saveFirst" | "workflows.editor.fixProblems" | "workflows.editor.blockLimit" | "workflows.publish.firstTitle" | "workflows.publish.firstMessage" | "workflows.publish.changesTitle" | "workflows.publish.changesMessage" | "workflows.leave.title" | "workflows.leave.message" | "workflows.leave.confirm" | "workflows.canvas.label" | "workflows.canvas.pointIn" | "workflows.canvas.pointOut" | "workflows.toolbar.label" | "workflows.toolbar.addBlock" | "workflows.toolbar.undo" | "workflows.toolbar.redo" | "workflows.toolbar.zoomIn" | "workflows.toolbar.zoomOut" | "workflows.toolbar.fit" | "workflows.toolbar.zoomLevel" | "workflows.block.publishedMeta" | "workflows.block.draftMeta" | "workflows.block.emptyCompositionHelp" | "workflows.block.conditionNoRulesBadge" | "workflows.addBlock.composition" | "workflows.addBlock.helpComposition" | "workflows.addBlock.condition" | "workflows.addBlock.helpCondition" | "workflows.addBlock.triggerHeading" | "workflows.addBlock.helpInput" | "workflows.addBlock.helpAction" | "workflows.addBlock.helpPageEvent" | "workflows.addBlock.helpScheduled" | "workflows.block.startsHere" | "workflows.block.trigger" | "workflows.block.condition" | "workflows.block.unknown" | "workflows.block.compositionNotChosen" | "workflows.block.compositionLoading" | "workflows.block.compositionUnavailable" | "workflows.block.notPublished" | "workflows.block.numbered" | "workflows.block.problems" | "workflows.panel.label" | "workflows.panel.close" | "workflows.panel.selectionHeading" | "workflows.panel.problemsHeading" | "workflows.panel.problemsLabel" | "workflows.panel.manyBlocksSelected" | "workflows.panel.connectionSelected" | "workflows.panel.removeBlock" | "workflows.panel.removeBlocks" | "workflows.panel.removeConnection" | "workflows.composition.heading" | "workflows.composition.label" | "workflows.composition.help" | "workflows.composition.searchLabel" | "workflows.composition.searchPlaceholder" | "workflows.composition.none" | "workflows.composition.alreadyUsed" | "workflows.composition.isStart" | "workflows.composition.makeStart" | "workflows.composition.capabilitiesHeading" | "workflows.composition.capabilityInput" | "workflows.composition.capabilityAction" | "workflows.composition.capabilityWebsites" | "workflows.composition.inputTables" | "workflows.composition.actionCount" | "workflows.trigger.heading" | "workflows.trigger.help" | "workflows.trigger.kindLabel" | "workflows.trigger.kindInput" | "workflows.trigger.kindAction" | "workflows.trigger.kindPageEvent" | "workflows.trigger.kindScheduled" | "workflows.trigger.unavailable" | "workflows.trigger.tableLabel" | "workflows.trigger.tableHelp" | "workflows.trigger.actionLabel" | "workflows.trigger.actionHelp" | "workflows.trigger.chooseOne" | "workflows.trigger.notFound" | "workflows.trigger.readableValues" | "workflows.trigger.noReadableValues" | "workflows.trigger.nextLabel" | "workflows.trigger.nextHelp" | "workflows.trigger.nextNone" | "workflows.trigger.summaryInput" | "workflows.trigger.summaryAction" | "workflows.trigger.summaryPageEvent" | "workflows.trigger.summaryAt" | "workflows.trigger.summaryUnfinished" | "workflows.reason.widgetKeepsNoData" | "workflows.reason.widgetReportsNoActions" | "workflows.reason.widgetNotPublished" | "workflows.schedule.modeLabel" | "workflows.schedule.modeAfter" | "workflows.schedule.modeAt" | "workflows.schedule.afterHelp" | "workflows.schedule.amountLabel" | "workflows.schedule.unitLabel" | "workflows.schedule.unitSeconds" | "workflows.schedule.unitMinutes" | "workflows.schedule.unitHours" | "workflows.schedule.unitDays" | "workflows.schedule.unitWeeks" | "workflows.schedule.waitSeconds" | "workflows.schedule.waitMinutes" | "workflows.schedule.waitHours" | "workflows.schedule.waitDays" | "workflows.schedule.waitWeeks" | "workflows.schedule.momentLabel" | "workflows.schedule.momentHelp" | "workflows.schedule.invalidMoment" | "workflows.event.nameLabel" | "workflows.event.namePlaceholder" | "workflows.event.nameHelp" | "workflows.event.nameInvalid" | "workflows.event.howToSend" | "workflows.event.valuesHeading" | "workflows.event.valuesHelp" | "workflows.event.addValue" | "workflows.event.valueName" | "workflows.event.valueNamePlaceholder" | "workflows.event.valueNameInvalid" | "workflows.event.valueType" | "workflows.event.removeValue" | "workflows.fieldType.text" | "workflows.fieldType.number" | "workflows.fieldType.boolean" | "workflows.value.yes" | "workflows.value.no" | "workflows.condition.heading" | "workflows.condition.help" | "workflows.condition.noTrigger" | "workflows.condition.noValues" | "workflows.condition.addRule" | "workflows.condition.ruleLimit" | "workflows.condition.defaultName" | "workflows.condition.defaultLabel" | "workflows.condition.defaultStay" | "workflows.condition.defaultHelp" | "workflows.condition.defaultHint" | "workflows.condition.defaultStays" | "workflows.rule.defaultName" | "workflows.rule.nameLabel" | "workflows.rule.moveUp" | "workflows.rule.moveDown" | "workflows.rule.remove" | "workflows.rule.matchLabel" | "workflows.rule.matchAll" | "workflows.rule.matchAny" | "workflows.rule.noTests" | "workflows.rule.addTest" | "workflows.rule.testLimit" | "workflows.rule.thenGoTo" | "workflows.rule.expand" | "workflows.rule.collapse" | "workflows.rule.testWithValue" | "workflows.rule.testWithoutValue" | "workflows.rule.testAndMore" | "workflows.test.field" | "workflows.test.operator" | "workflows.test.value" | "workflows.test.valuePlaceholder" | "workflows.test.remove" | "workflows.operator.is" | "workflows.operator.isNot" | "workflows.operator.contains" | "workflows.operator.doesNotContain" | "workflows.operator.startsWith" | "workflows.operator.endsWith" | "workflows.operator.greaterThan" | "workflows.operator.atLeast" | "workflows.operator.lessThan" | "workflows.operator.atMost" | "workflows.operator.isEmpty" | "workflows.operator.isNotEmpty" | "workflows.test.heading" | "workflows.test.help" | "workflows.test.close" | "workflows.test.start" | "workflows.test.restart" | "workflows.test.ended" | "workflows.test.noStart" | "workflows.test.noTriggers" | "workflows.test.visitorIsOn" | "workflows.test.fire" | "workflows.test.resultMoved" | "workflows.test.resultStayed" | "workflows.test.resultIgnored" | "workflows.history.heading" | "workflows.history.help" | "workflows.history.close" | "workflows.history.none" | "workflows.history.failed" | "workflows.history.draft" | "workflows.history.draftMeta" | "workflows.history.version" | "workflows.history.live" | "workflows.history.byOn" | "workflows.history.view" | "workflows.history.viewingShort" | "workflows.history.viewing" | "workflows.history.backToDraft" | "workflows.history.restore" | "workflows.history.restoreConfirm" | "workflows.history.restoreTitle" | "workflows.history.restoreMessage" | "workflows.runs.help" | "workflows.runs.flowLabel" | "workflows.runs.rangeLabel" | "workflows.runs.lastDays" | "workflows.runs.versionLabel" | "workflows.runs.allVersions" | "workflows.runs.versionLive" | "workflows.runs.started" | "workflows.runs.entered" | "workflows.runs.stayed" | "workflows.runs.failed" | "workflows.runs.chartStayed" | "workflows.runs.chartFailed" | "workflows.runs.failedTimeout" | "workflows.runs.failedWidgetError" | "workflows.runs.failedBuild" | "workflows.runs.failedOther" | "workflows.runs.failedUnrecorded" | "workflows.runs.pathLabel" | "workflows.runs.none" | "workflows.runs.neverPublished" | "workflows.settings.zoneLabel" | "workflows.settings.zoneHelp" | "workflows.settings.embedHeading" | "workflows.settings.embedHelp" | "workflows.settings.stateHeading" | "workflows.settings.pause" | "workflows.settings.pauseHelp" | "workflows.settings.resume" | "workflows.settings.resumeHelp" | "workflows.settings.archive" | "workflows.settings.archiveHelp" | "workflows.settings.archiveTitle" | "workflows.settings.archiveMessage" | "workflows.settings.unarchive" | "workflows.settings.unarchiveHelp" | "workflows.settings.duplicate" | "workflows.settings.duplicateHelp" | "workflows.settings.delete" | "workflows.settings.deleteHelp" | "workflows.settings.deleteTitle" | "workflows.settings.deleteMessageDraft" | "workflows.settings.deleteMessageLive" | "workflows.settings.deleteMessagePaused" | "workflows.settings.deleteMessageArchived" | "workflows.issue.unknown" | "workflows.issue.malformed" | "workflows.issue.schemaVersion" | "workflows.issue.graphTooLarge" | "workflows.issue.unknownNodeType" | "workflows.issue.unknownTriggerKind" | "workflows.issue.badId" | "workflows.issue.duplicateId" | "workflows.issue.tooManyBlocks" | "workflows.issue.tooManyEdges" | "workflows.issue.noComposition" | "workflows.issue.noStart" | "workflows.issue.manyStarts" | "workflows.issue.compositionMissingId" | "workflows.issue.duplicateComposition" | "workflows.issue.compositionNotAvailable" | "workflows.issue.compositionWebsiteMismatch" | "workflows.issue.unreachableBlock" | "workflows.issue.edgeUnknownNode" | "workflows.issue.edgeBadPort" | "workflows.issue.edgeInvalidConnection" | "workflows.issue.portManyTargets" | "workflows.issue.cycle" | "workflows.issue.triggerNoSource" | "workflows.issue.triggerManySources" | "workflows.issue.triggerNoTarget" | "workflows.issue.triggerConfigIncomplete" | "workflows.issue.triggerNeedsTable" | "workflows.issue.triggerNeedsAction" | "workflows.issue.triggerNeedsName" | "workflows.issue.scheduleInvalid" | "workflows.issue.eventValueInvalid" | "workflows.issue.eventTooManyValues" | "workflows.issue.triggerCapabilityMissing" | "workflows.issue.triggerInputMissing" | "workflows.issue.triggerActionMissing" | "workflows.issue.conditionNoSource" | "workflows.issue.conditionManySources" | "workflows.issue.conditionNoCases" | "workflows.issue.conditionTooManyCases" | "workflows.issue.caseBadId" | "workflows.issue.caseDuplicateId" | "workflows.issue.caseNoTests" | "workflows.issue.caseTooManyTests" | "workflows.issue.caseNoTarget" | "workflows.issue.testBadField" | "workflows.issue.testBadOperator" | "workflows.issue.testMissingValue" | "workflows.issue.fieldUnknown" | "workflows.assistant.title" | "workflows.assistant.newChat" | "workflows.assistant.open" | "workflows.assistant.collapse" | "workflows.assistant.welcome" | "workflows.assistant.emptyCanvas" | "workflows.assistant.openAssistant" | "workflows.assistant.toolbarButton" | "workflows.assistant.planNote" | "workflows.assistant.chipIdeas" | "workflows.assistant.chipLeads" | "workflows.assistant.submit" | "workflows.assistant.estimate" | "workflows.assistant.createWorkflow" | "workflows.assistant.notNow" | "workflows.assistant.ready" | "workflows.assistant.createdNew" | "workflows.assistant.openInEditor" | "workflows.assistant.attachFiles" | "workflows.assistant.libraryHint" | "workflows.assistant.composerPlaceholder" | "workflows.assistant.send" | "workflows.assistant.answerSent" | "workflows.assistant.stepWaiting" | "workflows.assistant.stepCreating" | "workflows.assistant.stepDone" | "workflows.assistant.stepFailed" | "workflows.assistant.retry" | "workflows.assistant.retryMessage" | "workflows.assistant.buildNote" | "workflows.assistant.errorRateLimited" | "workflows.assistant.errorNotAvailable" | null;
|
|
178
|
+
createFailure: "workflows.region.label" | "workflows.header.title" | "workflows.common.cancel" | "workflows.common.close" | "workflows.common.dismiss" | "workflows.common.loading" | "workflows.empty.title" | "workflows.empty.hint" | "workflows.error.title" | "workflows.error.hint" | "workflows.error.retry" | "workflows.error.openTitle" | "workflows.error.generic" | "workflows.error.network" | "workflows.error.timeout" | "workflows.error.server" | "workflows.error.sessionEnded" | "workflows.error.planRestricted" | "workflows.error.notFound" | "workflows.error.revisionChanged" | "workflows.error.archived" | "workflows.error.nothingToPublish" | "workflows.error.nothingToDiscard" | "workflows.error.wrongState" | "workflows.error.tooManyWorkflows" | "workflows.error.presetGone" | "workflows.error.presetCopyFailed" | "workflows.error.stillWorking" | "workflows.error.publishBlocked" | "workflows.error.invalidGraph" | "workflows.error.tooManyRequests" | "workflows.list.label" | "workflows.list.newWorkflow" | "workflows.list.searchLabel" | "workflows.list.searchPlaceholder" | "workflows.list.clearSearch" | "workflows.list.recentSearches" | "workflows.list.clearRecentSearches" | "workflows.list.filterLabel" | "workflows.list.filterAll" | "workflows.list.statusLabel" | "workflows.list.sortLabel" | "workflows.list.sortCreated" | "workflows.list.sortPublished" | "workflows.list.sortRuns" | "workflows.list.sortName" | "workflows.list.sortAscending" | "workflows.list.sortDescending" | "workflows.list.compositionsCount" | "workflows.list.runsCount" | "workflows.list.publishedOn" | "workflows.list.neverPublished" | "workflows.list.open" | "workflows.list.rowMenu" | "workflows.list.showMore" | "workflows.list.noMatches" | "workflows.list.duplicated" | "workflows.list.deleted" | "workflows.list.editingNamed" | "workflows.list.editingSomeone" | "workflows.create.compositionPlaceholder" | "workflows.status.draft" | "workflows.status.live" | "workflows.status.paused" | "workflows.status.archived" | "workflows.status.unpublishedChanges" | "workflows.top.back" | "workflows.top.renameLabel" | "workflows.top.testRun" | "workflows.top.history" | "workflows.top.embedCode" | "workflows.top.publish" | "workflows.top.publishChanges" | "workflows.top.publishing" | "workflows.top.moreActions" | "workflows.save.saved" | "workflows.save.saving" | "workflows.save.pending" | "workflows.save.failed" | "workflows.save.conflict" | "workflows.tabs.label" | "workflows.tabs.editor" | "workflows.tabs.runs" | "workflows.tabs.settings" | "workflows.banner.unpublishedChanges" | "workflows.banner.discard" | "workflows.banner.discardTitle" | "workflows.banner.discardMessage" | "workflows.banner.neverPublished" | "workflows.banner.paused" | "workflows.banner.archived" | "workflows.banner.conflict" | "workflows.banner.reload" | "workflows.banner.touchOnly" | "workflows.conflict.keepCopy" | "workflows.conflict.keepingCopy" | "workflows.conflict.copyName" | "workflows.conflict.copyKept" | "workflows.conflict.openCopy" | "workflows.conflict.loadTitle" | "workflows.conflict.loadMessage" | "workflows.presence.blockedTitleNamed" | "workflows.presence.blockedTitleYou" | "workflows.presence.blockedTitle" | "workflows.presence.blockedBody" | "workflows.presence.lostTitleNamed" | "workflows.presence.lostTitleYou" | "workflows.presence.lostTitle" | "workflows.presence.lostBody" | "workflows.presence.takeOver" | "workflows.presence.takeOverHint" | "workflows.presence.lookOnly" | "workflows.presence.lookOnlyHint" | "workflows.presence.working" | "workflows.presence.actionFailed" | "workflows.presence.readOnlyNamed" | "workflows.presence.readOnlyYou" | "workflows.presence.readOnly" | "workflows.presence.readOnlyFree" | "workflows.presence.startEditing" | "workflows.editor.published" | "workflows.editor.discarded" | "workflows.editor.restored" | "workflows.editor.reloaded" | "workflows.stale.updating" | "workflows.stale.updatingDescription" | "workflows.editor.assistantChanged" | "workflows.editor.paused" | "workflows.editor.resumed" | "workflows.editor.archived" | "workflows.editor.unarchived" | "workflows.editor.saveFirst" | "workflows.editor.fixProblems" | "workflows.editor.blockLimit" | "workflows.editor.connectionLimit" | "workflows.publish.firstTitle" | "workflows.publish.firstMessage" | "workflows.publish.changesTitle" | "workflows.publish.changesMessage" | "workflows.leave.title" | "workflows.leave.message" | "workflows.leave.confirm" | "workflows.canvas.label" | "workflows.canvas.pointIn" | "workflows.canvas.pointOut" | "workflows.canvasMenu.label" | "workflows.canvasMenu.cut" | "workflows.canvasMenu.copy" | "workflows.canvasMenu.paste" | "workflows.canvasMenu.duplicate" | "workflows.canvasMenu.selectAll" | "workflows.canvasMenu.delete" | "workflows.canvasMenu.organise" | "workflows.canvasMenu.disconnect" | "workflows.key.ctrl" | "workflows.toolbar.label" | "workflows.toolbar.addBlock" | "workflows.toolbar.undo" | "workflows.toolbar.redo" | "workflows.toolbar.zoomIn" | "workflows.toolbar.zoomOut" | "workflows.toolbar.fit" | "workflows.toolbar.zoomLevel" | "workflows.block.publishedMeta" | "workflows.block.draftMeta" | "workflows.block.emptyCompositionHelp" | "workflows.block.conditionNoRulesBadge" | "workflows.addBlock.composition" | "workflows.addBlock.helpComposition" | "workflows.addBlock.condition" | "workflows.addBlock.helpCondition" | "workflows.addBlock.triggerHeading" | "workflows.addBlock.helpInput" | "workflows.addBlock.helpAction" | "workflows.addBlock.helpPageEvent" | "workflows.addBlock.helpScheduled" | "workflows.block.startsHere" | "workflows.block.trigger" | "workflows.block.condition" | "workflows.block.unknown" | "workflows.block.compositionNotChosen" | "workflows.block.compositionLoading" | "workflows.block.compositionUnavailable" | "workflows.block.notPublished" | "workflows.block.numbered" | "workflows.block.problems" | "workflows.panel.label" | "workflows.panel.close" | "workflows.panel.selectionHeading" | "workflows.panel.problemsHeading" | "workflows.panel.problemsLabel" | "workflows.panel.manyBlocksSelected" | "workflows.panel.connectionSelected" | "workflows.panel.removeBlock" | "workflows.panel.removeBlocks" | "workflows.panel.removeConnection" | "workflows.composition.heading" | "workflows.composition.label" | "workflows.composition.help" | "workflows.composition.searchLabel" | "workflows.composition.searchPlaceholder" | "workflows.composition.none" | "workflows.composition.alreadyUsed" | "workflows.composition.isStart" | "workflows.composition.makeStart" | "workflows.composition.capabilitiesHeading" | "workflows.composition.capabilityInput" | "workflows.composition.capabilityAction" | "workflows.composition.capabilityWebsites" | "workflows.composition.inputTables" | "workflows.composition.actionCount" | "workflows.trigger.heading" | "workflows.trigger.help" | "workflows.trigger.kindLabel" | "workflows.trigger.kindInput" | "workflows.trigger.kindAction" | "workflows.trigger.kindPageEvent" | "workflows.trigger.kindScheduled" | "workflows.trigger.unavailable" | "workflows.trigger.tableLabel" | "workflows.trigger.tableHelp" | "workflows.trigger.actionLabel" | "workflows.trigger.actionHelp" | "workflows.trigger.chooseOne" | "workflows.trigger.notFound" | "workflows.trigger.readableValues" | "workflows.trigger.noReadableValues" | "workflows.trigger.nextLabel" | "workflows.trigger.nextHelp" | "workflows.trigger.nextNone" | "workflows.trigger.summaryInput" | "workflows.trigger.summaryAction" | "workflows.trigger.summaryPageEvent" | "workflows.trigger.summaryAt" | "workflows.trigger.summaryUnfinished" | "workflows.reason.widgetKeepsNoData" | "workflows.reason.widgetReportsNoActions" | "workflows.reason.widgetNotPublished" | "workflows.schedule.modeLabel" | "workflows.schedule.modeAfter" | "workflows.schedule.modeAt" | "workflows.schedule.afterHelp" | "workflows.schedule.amountLabel" | "workflows.schedule.unitLabel" | "workflows.schedule.unitSeconds" | "workflows.schedule.unitMinutes" | "workflows.schedule.unitHours" | "workflows.schedule.unitDays" | "workflows.schedule.unitWeeks" | "workflows.schedule.waitSeconds" | "workflows.schedule.waitMinutes" | "workflows.schedule.waitHours" | "workflows.schedule.waitDays" | "workflows.schedule.waitWeeks" | "workflows.schedule.momentLabel" | "workflows.schedule.momentHelp" | "workflows.schedule.invalidMoment" | "workflows.event.nameLabel" | "workflows.event.namePlaceholder" | "workflows.event.nameHelp" | "workflows.event.nameInvalid" | "workflows.event.howToSend" | "workflows.event.valuesHeading" | "workflows.event.valuesHelp" | "workflows.event.addValue" | "workflows.event.valueName" | "workflows.event.valueNamePlaceholder" | "workflows.event.valueNameInvalid" | "workflows.event.valueType" | "workflows.event.removeValue" | "workflows.fieldType.text" | "workflows.fieldType.number" | "workflows.fieldType.boolean" | "workflows.value.yes" | "workflows.value.no" | "workflows.condition.heading" | "workflows.condition.help" | "workflows.condition.noTrigger" | "workflows.condition.noValues" | "workflows.condition.addRule" | "workflows.condition.ruleLimit" | "workflows.condition.defaultName" | "workflows.condition.defaultLabel" | "workflows.condition.defaultStay" | "workflows.condition.defaultHelp" | "workflows.condition.defaultHint" | "workflows.condition.defaultStays" | "workflows.rule.defaultName" | "workflows.rule.nameLabel" | "workflows.rule.moveUp" | "workflows.rule.moveDown" | "workflows.rule.remove" | "workflows.rule.matchLabel" | "workflows.rule.matchAll" | "workflows.rule.matchAny" | "workflows.rule.noTests" | "workflows.rule.addTest" | "workflows.rule.testLimit" | "workflows.rule.thenGoTo" | "workflows.rule.expand" | "workflows.rule.collapse" | "workflows.rule.testWithValue" | "workflows.rule.testWithoutValue" | "workflows.rule.testAndMore" | "workflows.test.field" | "workflows.test.operator" | "workflows.test.value" | "workflows.test.valuePlaceholder" | "workflows.test.remove" | "workflows.operator.is" | "workflows.operator.isNot" | "workflows.operator.contains" | "workflows.operator.doesNotContain" | "workflows.operator.startsWith" | "workflows.operator.endsWith" | "workflows.operator.greaterThan" | "workflows.operator.atLeast" | "workflows.operator.lessThan" | "workflows.operator.atMost" | "workflows.operator.isEmpty" | "workflows.operator.isNotEmpty" | "workflows.test.heading" | "workflows.test.help" | "workflows.test.close" | "workflows.test.start" | "workflows.test.restart" | "workflows.test.ended" | "workflows.test.noStart" | "workflows.test.noTriggers" | "workflows.test.visitorIsOn" | "workflows.test.fire" | "workflows.test.resultMoved" | "workflows.test.resultStayed" | "workflows.test.resultIgnored" | "workflows.history.heading" | "workflows.history.help" | "workflows.history.close" | "workflows.history.none" | "workflows.history.failed" | "workflows.history.draft" | "workflows.history.draftMeta" | "workflows.history.version" | "workflows.history.live" | "workflows.history.byOn" | "workflows.history.view" | "workflows.history.viewingShort" | "workflows.history.viewing" | "workflows.history.backToDraft" | "workflows.history.restore" | "workflows.history.restoreConfirm" | "workflows.history.restoreTitle" | "workflows.history.restoreMessage" | "workflows.runs.help" | "workflows.runs.flowLabel" | "workflows.runs.rangeLabel" | "workflows.runs.lastDays" | "workflows.runs.versionLabel" | "workflows.runs.allVersions" | "workflows.runs.versionLive" | "workflows.runs.started" | "workflows.runs.entered" | "workflows.runs.stayed" | "workflows.runs.failed" | "workflows.runs.chartStayed" | "workflows.runs.chartFailed" | "workflows.runs.failedTimeout" | "workflows.runs.failedWidgetError" | "workflows.runs.failedBuild" | "workflows.runs.failedOther" | "workflows.runs.failedUnrecorded" | "workflows.runs.pathLabel" | "workflows.runs.none" | "workflows.runs.neverPublished" | "workflows.settings.zoneLabel" | "workflows.settings.zoneHelp" | "workflows.settings.embedHeading" | "workflows.settings.embedHelp" | "workflows.settings.stateHeading" | "workflows.settings.pause" | "workflows.settings.pauseHelp" | "workflows.settings.resume" | "workflows.settings.resumeHelp" | "workflows.settings.archive" | "workflows.settings.archiveHelp" | "workflows.settings.archiveTitle" | "workflows.settings.archiveMessage" | "workflows.settings.unarchive" | "workflows.settings.unarchiveHelp" | "workflows.settings.duplicate" | "workflows.settings.duplicateHelp" | "workflows.settings.delete" | "workflows.settings.deleteHelp" | "workflows.settings.deleteTitle" | "workflows.settings.deleteMessageDraft" | "workflows.settings.deleteMessageLive" | "workflows.settings.deleteMessagePaused" | "workflows.settings.deleteMessageArchived" | "workflows.issue.unknown" | "workflows.issue.malformed" | "workflows.issue.schemaVersion" | "workflows.issue.graphTooLarge" | "workflows.issue.unknownNodeType" | "workflows.issue.unknownTriggerKind" | "workflows.issue.badId" | "workflows.issue.duplicateId" | "workflows.issue.tooManyBlocks" | "workflows.issue.tooManyEdges" | "workflows.issue.noComposition" | "workflows.issue.noStart" | "workflows.issue.manyStarts" | "workflows.issue.compositionMissingId" | "workflows.issue.duplicateComposition" | "workflows.issue.compositionNotAvailable" | "workflows.issue.compositionWebsiteMismatch" | "workflows.issue.unreachableBlock" | "workflows.issue.edgeUnknownNode" | "workflows.issue.edgeBadPort" | "workflows.issue.edgeInvalidConnection" | "workflows.issue.portManyTargets" | "workflows.issue.cycle" | "workflows.issue.triggerNoSource" | "workflows.issue.triggerManySources" | "workflows.issue.triggerNoTarget" | "workflows.issue.triggerConfigIncomplete" | "workflows.issue.triggerNeedsTable" | "workflows.issue.triggerNeedsAction" | "workflows.issue.triggerNeedsName" | "workflows.issue.scheduleInvalid" | "workflows.issue.eventValueInvalid" | "workflows.issue.eventTooManyValues" | "workflows.issue.triggerCapabilityMissing" | "workflows.issue.triggerInputMissing" | "workflows.issue.triggerActionMissing" | "workflows.issue.conditionNoSource" | "workflows.issue.conditionManySources" | "workflows.issue.conditionNoCases" | "workflows.issue.conditionTooManyCases" | "workflows.issue.caseBadId" | "workflows.issue.caseDuplicateId" | "workflows.issue.caseNoTests" | "workflows.issue.caseTooManyTests" | "workflows.issue.caseNoTarget" | "workflows.issue.testBadField" | "workflows.issue.testBadOperator" | "workflows.issue.testMissingValue" | "workflows.issue.fieldUnknown" | "workflows.assistant.title" | "workflows.assistant.newChat" | "workflows.assistant.open" | "workflows.assistant.collapse" | "workflows.assistant.welcome" | "workflows.assistant.emptyCanvas" | "workflows.assistant.openAssistant" | "workflows.assistant.toolbarButton" | "workflows.assistant.planNote" | "workflows.assistant.planFlow" | "workflows.assistant.chipIdeas" | "workflows.assistant.chipLeads" | "workflows.assistant.submit" | "workflows.assistant.estimate" | "workflows.assistant.createWorkflow" | "workflows.assistant.notNow" | "workflows.assistant.ready" | "workflows.assistant.updatedOpen" | "workflows.assistant.createdNew" | "workflows.assistant.attachFiles" | "workflows.assistant.libraryHint" | "workflows.assistant.removeAttachment" | "workflows.assistant.uploadProgress" | "workflows.assistant.attachmentFailed" | "workflows.assistant.composerPlaceholder" | "workflows.assistant.mentionMenuLabel" | "workflows.assistant.compositionReferencesLabel" | "workflows.assistant.removeCompositionReference" | "workflows.assistant.send" | "workflows.assistant.working" | "workflows.assistant.answerSent" | "workflows.assistant.stepWaiting" | "workflows.assistant.stepCreating" | "workflows.assistant.stepDone" | "workflows.assistant.stepFailed" | "workflows.assistant.watchBuild" | "workflows.assistant.openBuilt" | "workflows.assistant.watchNote" | "workflows.assistant.retry" | "workflows.assistant.retryMessage" | "workflows.assistant.buildNote" | "workflows.assistant.templateProjectTitle" | "workflows.assistant.templateProjectHint" | "workflows.assistant.templateProjectUnnamed" | "workflows.assistant.errorRateLimited" | "workflows.assistant.errorNotAvailable" | "workflows.assistant.mentionGroupMcps" | "workflows.assistant.mentionGroupCompositions" | "workflows.assistant.mentionNone" | "workflows.assistant.mentionMcpNeedsSignIn" | "workflows.assistant.mentionMcpNotReachable" | "workflows.assistant.mentionMcpNotChecked" | "workflows.assistant.mentionMcpNoTools" | "workflows.assistant.mentionHint" | "workflows.assistant.mcpReferencesLabel" | "workflows.assistant.removeMcpReference" | "workflows.assistant.previewTitle" | "workflows.assistant.previewSource" | "workflows.assistant.previewPrivate" | "workflows.assistant.previewTableLabel" | "workflows.assistant.previewRowsInAll" | "workflows.assistant.previewRowsLeftOut" | "workflows.assistant.previewDropped" | "workflows.assistant.previewAdjusted" | "workflows.assistant.previewEmpty" | "workflows.assistant.liveDataTitle" | "workflows.assistant.liveDataIntro" | "workflows.assistant.bindingCall" | "workflows.assistant.bindingReadOnly" | "workflows.assistant.bindingMayChange" | "workflows.assistant.bindingReadOnlyUnknown" | "workflows.assistant.bindingRefresh" | "workflows.assistant.bindingCallDetails" | "workflows.assistant.bindingNoArguments" | "workflows.assistant.bindingMappingDetails" | "workflows.assistant.bindingFieldHeading" | "workflows.assistant.bindingSourceHeading" | "workflows.assistant.bindingRowsHeading" | "workflows.assistant.bindingWholeAnswer" | "workflows.assistant.bindingWholeRow" | "workflows.assistant.bindingWaiting" | "workflows.assistant.bindingBinding" | "workflows.assistant.bindingDone" | "workflows.assistant.bindingDoneRows" | "workflows.assistant.bindingFailed" | "workflows.assistant.exposureConsent" | "workflows.assistant.exposureNeeded" | "workflows.assistant.turnOnLiveData" | "workflows.assistant.liveDataReady" | "workflows.assistant.suggestionTabKey" | "workflows.assistant.suggestionTabHint" | "workflows.assistant.suggestionAnnouncement" | "workflows.assistant.referenceHint" | "workflows.assistant.referenceMenuLabel" | "workflows.assistant.referenceRemove" | null;
|
|
179
179
|
/** While a blank workflow is being made from the list (double-clicks are ignored). */
|
|
180
180
|
isCreatingNew: boolean;
|
|
181
181
|
create(input: {
|
|
@@ -357,7 +357,9 @@ export class WorkflowListState {
|
|
|
357
357
|
this.reconcileOpenMenuWithItems();
|
|
358
358
|
}
|
|
359
359
|
}
|
|
360
|
-
|
|
360
|
+
// The loading state is for the very first read and for a read after a failure ("Try again"). A new search, tab or order
|
|
361
|
+
// keeps what is on the screen (rows, or "no matches") until its answer arrives: a search never shows a loading state.
|
|
362
|
+
if (!paintedFromCache && this.loadState !== 'ready') {
|
|
361
363
|
this.loadState = 'loading';
|
|
362
364
|
}
|
|
363
365
|
if (paintedFromCache) {
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The stale-tab guard: when a person comes back to a tab, it asks the server whether what the tab shows is still what the
|
|
3
|
+
* server holds. When the server holds something newer (an MCP client, another tab, a teammate, an automation changed it
|
|
4
|
+
* while the tab sat in the background), the tab is brought up to date on the spot, behind a dark overlay that fades in
|
|
5
|
+
* while it happens and fades out when it is done, so nothing can be edited on a copy that is out of date.
|
|
6
|
+
*
|
|
7
|
+
* It decides nothing about a product. Everything that differs is handed in:
|
|
8
|
+
* - `probe`: how to read what the server holds (a revision, a content version, an `updatedAt`), and with it what is needed
|
|
9
|
+
* to show it (a conditional GET that answers "unchanged" costs no body);
|
|
10
|
+
* - `readCurrentToken`: the version this tab shows now (an own save moves it, so an own save is never "news");
|
|
11
|
+
* - `readBlocker`: whether the tab may be replaced right now (`busy`: a save is on its way, try again in a moment;
|
|
12
|
+
* `dirty`: unsaved work that must never be overwritten; `skip`: nothing to guard at the moment);
|
|
13
|
+
* - `apply`: how to put the newer copy on the screen (the product's own "load the latest").
|
|
14
|
+
*
|
|
15
|
+
* What it does and does not do:
|
|
16
|
+
* - it wakes on `focus`, `visibilitychange` (to visible), `online` and `pageshow`, one check at a time, at most one in
|
|
17
|
+
* `minimumGapMilliseconds` (a click into an iframe and back must not ask again and again);
|
|
18
|
+
* - a check that finds the same version, or an older one than the tab has (the tab saved while the question was out),
|
|
19
|
+
* does nothing and shows nothing;
|
|
20
|
+
* - it never replaces unsaved work: with `dirty` it says `conflict` and leaves the choice to the product's own conflict
|
|
21
|
+
* screen, until `settleConflict()`;
|
|
22
|
+
* - a failed check is silent (the next wake asks again); a failed `apply` leaves the overlay and tells the log;
|
|
23
|
+
* - the overlay (`phase === 'updating'`) stays for at least `minimumOverlayMilliseconds`, so it never reads as a flicker.
|
|
24
|
+
*
|
|
25
|
+
* This file is the same in the site, in the workflows package and in the composition editor, and has no imports on purpose:
|
|
26
|
+
* a change belongs in all three copies (`src/lib/utils/staleGuard.ts`, `src/lib/editor/staleGuard.ts`,
|
|
27
|
+
* `src/lib/composition/staleGuard.ts`), and their tests say the same.
|
|
28
|
+
*/
|
|
29
|
+
/** What the guard is doing. `updating` is the one that puts the overlay up; `conflict` waits for the person. */
|
|
30
|
+
export type StaleGuardPhase = 'idle' | 'checking' | 'updating' | 'conflict';
|
|
31
|
+
/** Why the tab may not be replaced right now. */
|
|
32
|
+
export type StaleGuardBlocker = 'busy' | 'dirty' | 'skip';
|
|
33
|
+
/** What woke the guard: a tab that came back, or a call from the product (`request`). */
|
|
34
|
+
export type StaleGuardReason = 'wake' | 'request' | 'retry';
|
|
35
|
+
/** The server holds what the tab shows (a 304). */
|
|
36
|
+
type ProbeUnchanged = {
|
|
37
|
+
outcome: 'unchanged';
|
|
38
|
+
};
|
|
39
|
+
/** The server holds another version: its token, and what is needed to show it. */
|
|
40
|
+
type ProbeChanged<Token, Snapshot> = {
|
|
41
|
+
outcome: 'changed';
|
|
42
|
+
token: Token;
|
|
43
|
+
snapshot: Snapshot;
|
|
44
|
+
};
|
|
45
|
+
/** What a probe found: `unchanged`, or `changed` with the server's version and what is needed to show it. */
|
|
46
|
+
export type StaleProbeResult<Token, Snapshot> = ProbeUnchanged | ProbeChanged<Token, Snapshot>;
|
|
47
|
+
/** What the guard needs from the browser; a test hands in a fake one. */
|
|
48
|
+
export interface StaleGuardEnvironment {
|
|
49
|
+
now(): number;
|
|
50
|
+
/** `false` while the tab is hidden: a hidden tab asks nothing, it asks when it is shown. */
|
|
51
|
+
isVisible(): boolean;
|
|
52
|
+
/** Calls `listener` whenever the tab may have come back; returns the function that stops listening. */
|
|
53
|
+
onWake(listener: () => void): () => void;
|
|
54
|
+
setTimeout(callback: () => void, milliseconds: number): unknown;
|
|
55
|
+
clearTimeout(handle: unknown): void;
|
|
56
|
+
}
|
|
57
|
+
export interface StaleGuardOptions<Token, Snapshot> {
|
|
58
|
+
/** Reads what the server holds. `currentToken` is what the tab shows, for a conditional request. Abort on `signal`. */
|
|
59
|
+
probe: (request: {
|
|
60
|
+
signal: AbortSignal;
|
|
61
|
+
currentToken: Token | null;
|
|
62
|
+
}) => Promise<StaleProbeResult<Token, Snapshot>>;
|
|
63
|
+
/** The version the tab shows now, or `null` while it shows nothing. */
|
|
64
|
+
readCurrentToken: () => Token | null;
|
|
65
|
+
/** Whether the tab may be replaced now; `null` when it may. Read before the question and again before the answer is used. */
|
|
66
|
+
readBlocker: () => StaleGuardBlocker | null;
|
|
67
|
+
/** Puts the newer copy on the screen. The overlay is up while this runs. */
|
|
68
|
+
apply: (snapshot: Snapshot, token: Token) => Promise<void> | void;
|
|
69
|
+
/** The server holds something newer but the tab has unsaved work: the product shows its own conflict choice. */
|
|
70
|
+
onConflict?: (detail: {
|
|
71
|
+
token: Token;
|
|
72
|
+
}) => void;
|
|
73
|
+
/** Called with every change of phase (not with a repeat of it): the overlay is `phase === 'updating'`. */
|
|
74
|
+
onPhaseChange?: (phase: StaleGuardPhase) => void;
|
|
75
|
+
/** Whether `serverToken` is newer than what the tab shows. Default: bigger numbers, later dates, else "not equal". */
|
|
76
|
+
isNewer?: (serverToken: Token, currentToken: Token | null) => boolean;
|
|
77
|
+
/** One line for the log; the guard never writes to the console itself. */
|
|
78
|
+
log?: (event: string, detail?: unknown) => void;
|
|
79
|
+
environment?: StaleGuardEnvironment;
|
|
80
|
+
/** The least time between two checks (default 5000). */
|
|
81
|
+
minimumGapMilliseconds?: number;
|
|
82
|
+
/** The least time the overlay stays once it is up (default 400). */
|
|
83
|
+
minimumOverlayMilliseconds?: number;
|
|
84
|
+
/** How long to wait before asking again after a `busy` tab (default 1500), at most `maximumBusyRetries` times (default 6). */
|
|
85
|
+
busyRetryMilliseconds?: number;
|
|
86
|
+
maximumBusyRetries?: number;
|
|
87
|
+
}
|
|
88
|
+
export interface StaleGuard {
|
|
89
|
+
/** Starts listening for the tab coming back. Does not check: a tab that has just loaded is up to date. */
|
|
90
|
+
start(): void;
|
|
91
|
+
/**
|
|
92
|
+
* Checks now, unless a check or an update is on, the tab is hidden, or the last check was too recent (`force` skips
|
|
93
|
+
* the last one). Resolves when this check is over. Never rejects.
|
|
94
|
+
*/
|
|
95
|
+
check(reason?: StaleGuardReason, settings?: {
|
|
96
|
+
force?: boolean;
|
|
97
|
+
}): Promise<void>;
|
|
98
|
+
/** The conflict is over (the person chose, or it went away): the guard asks again at the next wake. */
|
|
99
|
+
settleConflict(): void;
|
|
100
|
+
/** Stops listening and aborts a question that is out. Nothing is called afterwards. */
|
|
101
|
+
dispose(): void;
|
|
102
|
+
readonly phase: StaleGuardPhase;
|
|
103
|
+
}
|
|
104
|
+
export declare const DEFAULT_MINIMUM_GAP_MILLISECONDS = 5000;
|
|
105
|
+
export declare const DEFAULT_MINIMUM_OVERLAY_MILLISECONDS = 400;
|
|
106
|
+
export declare const DEFAULT_BUSY_RETRY_MILLISECONDS = 1500;
|
|
107
|
+
export declare const DEFAULT_MAXIMUM_BUSY_RETRIES = 6;
|
|
108
|
+
/** The real browser: the four ways a tab comes back (`focus`, `visibilitychange`, `online`, `pageshow`). */
|
|
109
|
+
export declare function createBrowserStaleGuardEnvironment(): StaleGuardEnvironment;
|
|
110
|
+
export declare function createStaleGuard<Token, Snapshot>(options: StaleGuardOptions<Token, Snapshot>): StaleGuard;
|
|
111
|
+
export {};
|
|
@@ -0,0 +1,279 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The stale-tab guard: when a person comes back to a tab, it asks the server whether what the tab shows is still what the
|
|
3
|
+
* server holds. When the server holds something newer (an MCP client, another tab, a teammate, an automation changed it
|
|
4
|
+
* while the tab sat in the background), the tab is brought up to date on the spot, behind a dark overlay that fades in
|
|
5
|
+
* while it happens and fades out when it is done, so nothing can be edited on a copy that is out of date.
|
|
6
|
+
*
|
|
7
|
+
* It decides nothing about a product. Everything that differs is handed in:
|
|
8
|
+
* - `probe`: how to read what the server holds (a revision, a content version, an `updatedAt`), and with it what is needed
|
|
9
|
+
* to show it (a conditional GET that answers "unchanged" costs no body);
|
|
10
|
+
* - `readCurrentToken`: the version this tab shows now (an own save moves it, so an own save is never "news");
|
|
11
|
+
* - `readBlocker`: whether the tab may be replaced right now (`busy`: a save is on its way, try again in a moment;
|
|
12
|
+
* `dirty`: unsaved work that must never be overwritten; `skip`: nothing to guard at the moment);
|
|
13
|
+
* - `apply`: how to put the newer copy on the screen (the product's own "load the latest").
|
|
14
|
+
*
|
|
15
|
+
* What it does and does not do:
|
|
16
|
+
* - it wakes on `focus`, `visibilitychange` (to visible), `online` and `pageshow`, one check at a time, at most one in
|
|
17
|
+
* `minimumGapMilliseconds` (a click into an iframe and back must not ask again and again);
|
|
18
|
+
* - a check that finds the same version, or an older one than the tab has (the tab saved while the question was out),
|
|
19
|
+
* does nothing and shows nothing;
|
|
20
|
+
* - it never replaces unsaved work: with `dirty` it says `conflict` and leaves the choice to the product's own conflict
|
|
21
|
+
* screen, until `settleConflict()`;
|
|
22
|
+
* - a failed check is silent (the next wake asks again); a failed `apply` leaves the overlay and tells the log;
|
|
23
|
+
* - the overlay (`phase === 'updating'`) stays for at least `minimumOverlayMilliseconds`, so it never reads as a flicker.
|
|
24
|
+
*
|
|
25
|
+
* This file is the same in the site, in the workflows package and in the composition editor, and has no imports on purpose:
|
|
26
|
+
* a change belongs in all three copies (`src/lib/utils/staleGuard.ts`, `src/lib/editor/staleGuard.ts`,
|
|
27
|
+
* `src/lib/composition/staleGuard.ts`), and their tests say the same.
|
|
28
|
+
*/
|
|
29
|
+
export const DEFAULT_MINIMUM_GAP_MILLISECONDS = 5000;
|
|
30
|
+
export const DEFAULT_MINIMUM_OVERLAY_MILLISECONDS = 400;
|
|
31
|
+
export const DEFAULT_BUSY_RETRY_MILLISECONDS = 1500;
|
|
32
|
+
export const DEFAULT_MAXIMUM_BUSY_RETRIES = 6;
|
|
33
|
+
/** The real browser: the four ways a tab comes back (`focus`, `visibilitychange`, `online`, `pageshow`). */
|
|
34
|
+
export function createBrowserStaleGuardEnvironment() {
|
|
35
|
+
return {
|
|
36
|
+
now: () => Date.now(),
|
|
37
|
+
isVisible: () => typeof document === 'undefined' || document.visibilityState !== 'hidden',
|
|
38
|
+
onWake(listener) {
|
|
39
|
+
if (typeof window === 'undefined' || typeof document === 'undefined')
|
|
40
|
+
return () => { };
|
|
41
|
+
const handleVisibilityChange = () => {
|
|
42
|
+
if (document.visibilityState === 'visible')
|
|
43
|
+
listener();
|
|
44
|
+
};
|
|
45
|
+
window.addEventListener('focus', listener);
|
|
46
|
+
window.addEventListener('online', listener);
|
|
47
|
+
window.addEventListener('pageshow', listener);
|
|
48
|
+
document.addEventListener('visibilitychange', handleVisibilityChange);
|
|
49
|
+
return () => {
|
|
50
|
+
window.removeEventListener('focus', listener);
|
|
51
|
+
window.removeEventListener('online', listener);
|
|
52
|
+
window.removeEventListener('pageshow', listener);
|
|
53
|
+
document.removeEventListener('visibilitychange', handleVisibilityChange);
|
|
54
|
+
};
|
|
55
|
+
},
|
|
56
|
+
setTimeout: (callback, milliseconds) => globalThis.setTimeout(callback, milliseconds),
|
|
57
|
+
clearTimeout: (handle) => globalThis.clearTimeout(handle)
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
/** Bigger numbers and later dates are newer; anything else is newer when it is not the same. A tab that shows nothing is behind. */
|
|
61
|
+
function isNewerByDefault(serverToken, currentToken) {
|
|
62
|
+
if (currentToken === null)
|
|
63
|
+
return true;
|
|
64
|
+
if (typeof serverToken === 'number' && typeof currentToken === 'number') {
|
|
65
|
+
return serverToken > currentToken;
|
|
66
|
+
}
|
|
67
|
+
if (typeof serverToken === 'string' && typeof currentToken === 'string') {
|
|
68
|
+
const serverTime = Date.parse(serverToken);
|
|
69
|
+
const currentTime = Date.parse(currentToken);
|
|
70
|
+
if (!Number.isNaN(serverTime) && !Number.isNaN(currentTime))
|
|
71
|
+
return serverTime > currentTime;
|
|
72
|
+
}
|
|
73
|
+
return !Object.is(serverToken, currentToken);
|
|
74
|
+
}
|
|
75
|
+
export function createStaleGuard(options) {
|
|
76
|
+
const environment = options.environment ?? createBrowserStaleGuardEnvironment();
|
|
77
|
+
const minimumGap = options.minimumGapMilliseconds ?? DEFAULT_MINIMUM_GAP_MILLISECONDS;
|
|
78
|
+
const minimumOverlay = options.minimumOverlayMilliseconds ?? DEFAULT_MINIMUM_OVERLAY_MILLISECONDS;
|
|
79
|
+
const busyRetryDelay = options.busyRetryMilliseconds ?? DEFAULT_BUSY_RETRY_MILLISECONDS;
|
|
80
|
+
const maximumBusyRetries = options.maximumBusyRetries ?? DEFAULT_MAXIMUM_BUSY_RETRIES;
|
|
81
|
+
const isNewer = options.isNewer ?? isNewerByDefault;
|
|
82
|
+
let phase = 'idle';
|
|
83
|
+
let isDisposed = false;
|
|
84
|
+
let stopListening = null;
|
|
85
|
+
let activeController = null;
|
|
86
|
+
let lastCheckStartedAt = Number.NEGATIVE_INFINITY;
|
|
87
|
+
let busyRetryTimer = null;
|
|
88
|
+
let busyRetries = 0;
|
|
89
|
+
let overlayTimer = null;
|
|
90
|
+
let releaseOverlayWait = null;
|
|
91
|
+
function log(event, detail) {
|
|
92
|
+
try {
|
|
93
|
+
options.log?.(event, detail);
|
|
94
|
+
}
|
|
95
|
+
catch {
|
|
96
|
+
// A log that throws must never stop a check.
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
function setPhase(next) {
|
|
100
|
+
if (phase === next)
|
|
101
|
+
return;
|
|
102
|
+
phase = next;
|
|
103
|
+
try {
|
|
104
|
+
options.onPhaseChange?.(next);
|
|
105
|
+
}
|
|
106
|
+
catch (error) {
|
|
107
|
+
log('stale-guard: onPhaseChange threw', error);
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
function readBlocker() {
|
|
111
|
+
try {
|
|
112
|
+
return options.readBlocker();
|
|
113
|
+
}
|
|
114
|
+
catch (error) {
|
|
115
|
+
log('stale-guard: readBlocker threw', error);
|
|
116
|
+
return 'skip';
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
function readCurrentToken() {
|
|
120
|
+
try {
|
|
121
|
+
return options.readCurrentToken();
|
|
122
|
+
}
|
|
123
|
+
catch (error) {
|
|
124
|
+
log('stale-guard: readCurrentToken threw', error);
|
|
125
|
+
return null;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
function cancelBusyRetry() {
|
|
129
|
+
if (busyRetryTimer === null)
|
|
130
|
+
return;
|
|
131
|
+
environment.clearTimeout(busyRetryTimer);
|
|
132
|
+
busyRetryTimer = null;
|
|
133
|
+
}
|
|
134
|
+
/** The tab is mid-save: look again in a moment, a few times, and then leave it to the next wake. */
|
|
135
|
+
function scheduleBusyRetry() {
|
|
136
|
+
if (busyRetryTimer !== null || isDisposed)
|
|
137
|
+
return;
|
|
138
|
+
if (busyRetries >= maximumBusyRetries) {
|
|
139
|
+
log('stale-guard: still busy, left to the next wake');
|
|
140
|
+
busyRetries = 0;
|
|
141
|
+
return;
|
|
142
|
+
}
|
|
143
|
+
busyRetries += 1;
|
|
144
|
+
busyRetryTimer = environment.setTimeout(() => {
|
|
145
|
+
busyRetryTimer = null;
|
|
146
|
+
void check('retry', { force: true });
|
|
147
|
+
}, busyRetryDelay);
|
|
148
|
+
}
|
|
149
|
+
/** Waits out what is left of the minimum time the overlay stays; a dispose ends the wait at once. */
|
|
150
|
+
function waitForOverlayMinimum(startedAt) {
|
|
151
|
+
const remaining = minimumOverlay - (environment.now() - startedAt);
|
|
152
|
+
if (remaining <= 0)
|
|
153
|
+
return Promise.resolve();
|
|
154
|
+
return new Promise((resolve) => {
|
|
155
|
+
releaseOverlayWait = () => {
|
|
156
|
+
releaseOverlayWait = null;
|
|
157
|
+
overlayTimer = null;
|
|
158
|
+
resolve();
|
|
159
|
+
};
|
|
160
|
+
overlayTimer = environment.setTimeout(() => releaseOverlayWait?.(), remaining);
|
|
161
|
+
});
|
|
162
|
+
}
|
|
163
|
+
async function applyChange(snapshot, token) {
|
|
164
|
+
setPhase('updating');
|
|
165
|
+
const startedAt = environment.now();
|
|
166
|
+
try {
|
|
167
|
+
await options.apply(snapshot, token);
|
|
168
|
+
log('stale-guard: the tab was brought up to date', { token });
|
|
169
|
+
}
|
|
170
|
+
catch (error) {
|
|
171
|
+
log('stale-guard: the newer copy could not be shown', error);
|
|
172
|
+
}
|
|
173
|
+
await waitForOverlayMinimum(startedAt);
|
|
174
|
+
if (isDisposed)
|
|
175
|
+
return;
|
|
176
|
+
setPhase('idle');
|
|
177
|
+
}
|
|
178
|
+
async function check(reason = 'request', settings = {}) {
|
|
179
|
+
if (isDisposed || phase !== 'idle')
|
|
180
|
+
return;
|
|
181
|
+
// A hidden tab asks nothing; it asks when it is shown
|
|
182
|
+
if (!environment.isVisible())
|
|
183
|
+
return;
|
|
184
|
+
const startedAt = environment.now();
|
|
185
|
+
if (settings.force !== true && startedAt - lastCheckStartedAt < minimumGap)
|
|
186
|
+
return;
|
|
187
|
+
const blockerBefore = readBlocker();
|
|
188
|
+
if (blockerBefore === 'skip')
|
|
189
|
+
return;
|
|
190
|
+
if (blockerBefore === 'busy') {
|
|
191
|
+
scheduleBusyRetry();
|
|
192
|
+
return;
|
|
193
|
+
}
|
|
194
|
+
lastCheckStartedAt = startedAt;
|
|
195
|
+
busyRetries = 0;
|
|
196
|
+
cancelBusyRetry();
|
|
197
|
+
setPhase('checking');
|
|
198
|
+
const controller = new AbortController();
|
|
199
|
+
activeController = controller;
|
|
200
|
+
let result;
|
|
201
|
+
try {
|
|
202
|
+
result = await options.probe({ signal: controller.signal, currentToken: readCurrentToken() });
|
|
203
|
+
}
|
|
204
|
+
catch (error) {
|
|
205
|
+
if (activeController === controller)
|
|
206
|
+
activeController = null;
|
|
207
|
+
if (isDisposed || controller.signal.aborted)
|
|
208
|
+
return;
|
|
209
|
+
// Silent for the person: the next wake asks again
|
|
210
|
+
log(`stale-guard: the check failed (${reason})`, error);
|
|
211
|
+
setPhase('idle');
|
|
212
|
+
return;
|
|
213
|
+
}
|
|
214
|
+
if (activeController === controller)
|
|
215
|
+
activeController = null;
|
|
216
|
+
if (isDisposed || controller.signal.aborted)
|
|
217
|
+
return;
|
|
218
|
+
if (result.outcome === 'unchanged' || !isNewer(result.token, readCurrentToken())) {
|
|
219
|
+
setPhase('idle');
|
|
220
|
+
return;
|
|
221
|
+
}
|
|
222
|
+
// The answer may have been a while coming: the tab is judged again, now
|
|
223
|
+
const blockerAfter = readBlocker();
|
|
224
|
+
if (blockerAfter === 'skip') {
|
|
225
|
+
setPhase('idle');
|
|
226
|
+
return;
|
|
227
|
+
}
|
|
228
|
+
if (blockerAfter === 'busy') {
|
|
229
|
+
setPhase('idle');
|
|
230
|
+
scheduleBusyRetry();
|
|
231
|
+
return;
|
|
232
|
+
}
|
|
233
|
+
if (blockerAfter === 'dirty') {
|
|
234
|
+
log('stale-guard: changed elsewhere, and this tab has unsaved work', { token: result.token });
|
|
235
|
+
setPhase('conflict');
|
|
236
|
+
try {
|
|
237
|
+
options.onConflict?.({ token: result.token });
|
|
238
|
+
}
|
|
239
|
+
catch (error) {
|
|
240
|
+
log('stale-guard: onConflict threw', error);
|
|
241
|
+
}
|
|
242
|
+
return;
|
|
243
|
+
}
|
|
244
|
+
await applyChange(result.snapshot, result.token);
|
|
245
|
+
}
|
|
246
|
+
return {
|
|
247
|
+
start() {
|
|
248
|
+
if (isDisposed || stopListening !== null)
|
|
249
|
+
return;
|
|
250
|
+
stopListening = environment.onWake(() => {
|
|
251
|
+
void check('wake');
|
|
252
|
+
});
|
|
253
|
+
},
|
|
254
|
+
check,
|
|
255
|
+
settleConflict() {
|
|
256
|
+
if (isDisposed || phase !== 'conflict')
|
|
257
|
+
return;
|
|
258
|
+
lastCheckStartedAt = Number.NEGATIVE_INFINITY;
|
|
259
|
+
setPhase('idle');
|
|
260
|
+
},
|
|
261
|
+
dispose() {
|
|
262
|
+
if (isDisposed)
|
|
263
|
+
return;
|
|
264
|
+
isDisposed = true;
|
|
265
|
+
stopListening?.();
|
|
266
|
+
stopListening = null;
|
|
267
|
+
cancelBusyRetry();
|
|
268
|
+
if (overlayTimer !== null)
|
|
269
|
+
environment.clearTimeout(overlayTimer);
|
|
270
|
+
overlayTimer = null;
|
|
271
|
+
releaseOverlayWait?.();
|
|
272
|
+
activeController?.abort();
|
|
273
|
+
activeController = null;
|
|
274
|
+
},
|
|
275
|
+
get phase() {
|
|
276
|
+
return phase;
|
|
277
|
+
}
|
|
278
|
+
};
|
|
279
|
+
}
|