minimal-agent 0.10.0 → 0.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -3
- package/package.json +52 -5
- package/plugins/computer_use/.claude-plugin/plugin.json +6 -0
- package/plugins/computer_use/README.md +94 -0
- package/plugins/computer_use/app/_template.md +142 -0
- package/plugins/computer_use/app/chrome.md +165 -0
- package/plugins/computer_use/app/finder.md +76 -0
- package/plugins/computer_use/app/macos-system-settings.md +81 -0
- package/plugins/computer_use/app/microsoft-excel.md +80 -0
- package/plugins/computer_use/app/microsoft-powerpoint.md +80 -0
- package/plugins/computer_use/app/microsoft-word.md +79 -0
- package/plugins/computer_use/app/wechat.md +413 -0
- package/plugins/computer_use/app/weread.md +319 -0
- package/plugins/computer_use/commands/computeruse.md +25 -0
- package/plugins/computer_use/commands/cu.md +9 -0
- package/plugins/computer_use/plugin.js +26 -0
- package/plugins/computer_use/plugin.ts +30 -0
- package/plugins/computer_use/src/capture.js +90 -0
- package/plugins/computer_use/src/capture.ts +104 -0
- package/plugins/computer_use/src/commands.js +91 -0
- package/plugins/computer_use/src/commands.ts +103 -0
- package/plugins/computer_use/src/daemon.js +134 -0
- package/plugins/computer_use/src/daemon.ts +161 -0
- package/plugins/computer_use/src/manuals.js +135 -0
- package/plugins/computer_use/src/manuals.ts +159 -0
- package/plugins/computer_use/src/verify.js +168 -0
- package/plugins/computer_use/src/verify.ts +219 -0
- package/plugins/computer_use/test/commands.test.ts +73 -0
- package/plugins/cron-runner/plugin.ts +38 -0
- package/plugins/cron-runner/src/commands.ts +373 -0
- package/plugins/cron-runner/src/cronTime.ts +155 -0
- package/plugins/cron-runner/src/lock.ts +79 -0
- package/plugins/cron-runner/src/runs.ts +99 -0
- package/plugins/cron-runner/src/scheduleEngine.ts +76 -0
- package/plugins/cron-runner/src/scheduler.ts +376 -0
- package/plugins/cron-runner/src/schema.ts +139 -0
- package/plugins/cron-runner/src/service.ts +193 -0
- package/plugins/cron-runner/src/store.ts +333 -0
- package/plugins/cron-runner/src/types.ts +141 -0
- package/plugins/cron-runner/test/cronTime.test.ts +41 -0
- package/plugins/cron-runner/test/plugin-integration.test.ts +47 -0
- package/plugins/cron-runner/test/scheduleEngine.test.ts +41 -0
- package/plugins/cron-runner/test/service.test.ts +76 -0
- package/plugins/cron-runner/test/store-and-scheduler.test.ts +501 -0
- package/plugins/workflow-runner/plugin.js +56 -2
- package/plugins/workflow-runner/plugin.ts +113 -0
- package/plugins/workflow-runner/src/agentCommon.js +43 -4
- package/plugins/workflow-runner/src/agentCommon.ts +435 -0
- package/plugins/workflow-runner/src/controlFlow/branch.js +40 -0
- package/plugins/workflow-runner/src/controlFlow/branch.ts +46 -0
- package/plugins/workflow-runner/src/controlFlow/loop.js +211 -0
- package/plugins/workflow-runner/src/controlFlow/loop.ts +248 -0
- package/plugins/workflow-runner/src/controlFlow/pause.js +129 -0
- package/plugins/workflow-runner/src/controlFlow/pause.ts +141 -0
- package/plugins/workflow-runner/src/controlFlow/signal.js +21 -0
- package/plugins/workflow-runner/src/controlFlow/signal.ts +29 -0
- package/plugins/workflow-runner/src/controlFlow/types.js +18 -0
- package/plugins/workflow-runner/src/controlFlow/types.ts +63 -0
- package/plugins/workflow-runner/src/dslManifest.ts +127 -0
- package/plugins/workflow-runner/src/expressions.ts +622 -0
- package/plugins/workflow-runner/src/index.js +13 -4
- package/plugins/workflow-runner/src/index.ts +338 -0
- package/plugins/workflow-runner/src/jsonPayload.ts +84 -0
- package/plugins/workflow-runner/src/loader.js +23 -0
- package/plugins/workflow-runner/src/loader.ts +721 -0
- package/plugins/workflow-runner/src/multimodal.js +2 -1
- package/plugins/workflow-runner/src/multimodal.ts +64 -0
- package/plugins/workflow-runner/src/recovery.ts +149 -0
- package/plugins/workflow-runner/src/runner.js +75 -659
- package/plugins/workflow-runner/src/runner.ts +604 -0
- package/plugins/workflow-runner/src/stepExecutors/agent.ts +234 -0
- package/plugins/workflow-runner/src/stepExecutors/assert.ts +50 -0
- package/plugins/workflow-runner/src/stepExecutors/echo.js +31 -0
- package/plugins/workflow-runner/src/stepExecutors/echo.ts +38 -0
- package/plugins/workflow-runner/src/stepExecutors/llm.ts +133 -0
- package/plugins/workflow-runner/src/stepExecutors/set.js +49 -0
- package/plugins/workflow-runner/src/stepExecutors/set.ts +56 -0
- package/plugins/workflow-runner/src/stepExecutors/skill.js +5 -6
- package/plugins/workflow-runner/src/stepExecutors/skill.ts +140 -0
- package/plugins/workflow-runner/src/stepExecutors/tool.js +80 -8
- package/plugins/workflow-runner/src/stepExecutors/tool.ts +256 -0
- package/plugins/workflow-runner/src/stepExecutors/verify.ts +68 -0
- package/plugins/workflow-runner/src/stepPipeline.js +277 -0
- package/plugins/workflow-runner/src/stepPipeline.ts +366 -0
- package/plugins/workflow-runner/src/taskIdentity.ts +405 -0
- package/plugins/workflow-runner/src/toolRuntime.js +48 -0
- package/plugins/workflow-runner/src/toolRuntime.ts +64 -0
- package/plugins/workflow-runner/src/types.js +37 -1
- package/plugins/workflow-runner/src/types.ts +602 -0
- package/plugins/workflow-runner/src/workflowState.ts +733 -0
- package/plugins/workflow-runner/test/agent.test.ts +587 -0
- package/plugins/workflow-runner/test/agentLlmError.test.ts +373 -0
- package/plugins/workflow-runner/test/bashBlacklist.sweep.test.ts +65 -0
- package/plugins/workflow-runner/test/captureMisbind.test.ts +99 -0
- package/plugins/workflow-runner/test/cli.e2e.test.ts +147 -0
- package/plugins/workflow-runner/test/context-files.test.ts +320 -0
- package/plugins/workflow-runner/test/e2e.test.ts +370 -0
- package/plugins/workflow-runner/test/engineRobustness.test.ts +226 -0
- package/plugins/workflow-runner/test/expressions.test.ts +397 -0
- package/plugins/workflow-runner/test/foundation.test.ts +126 -0
- package/plugins/workflow-runner/test/graceful.test.ts +139 -0
- package/plugins/workflow-runner/test/greedyInputs.load.test.ts +47 -0
- package/plugins/workflow-runner/test/hostCapability.test.ts +108 -0
- package/plugins/workflow-runner/test/illustrate.load.test.ts +183 -0
- package/plugins/workflow-runner/test/jsonPayload.test.ts +83 -0
- package/plugins/workflow-runner/test/loader.test.ts +617 -0
- package/plugins/workflow-runner/test/maxTurnsRetryDelay.test.ts +33 -0
- package/plugins/workflow-runner/test/multimodal.test.ts +342 -0
- package/plugins/workflow-runner/test/output-schema.test.ts +213 -0
- package/plugins/workflow-runner/test/parseWorkflowArgs.test.ts +87 -0
- package/plugins/workflow-runner/test/pluginRunner.isolation.test.ts +269 -0
- package/plugins/workflow-runner/test/ppt.load.test.ts +1220 -0
- package/plugins/workflow-runner/test/ralphLoop.e2e.test.ts +220 -0
- package/plugins/workflow-runner/test/recovery.test.ts +265 -0
- package/plugins/workflow-runner/test/runner.test.ts +911 -0
- package/plugins/workflow-runner/test/runnerPreflight.test.ts +379 -0
- package/plugins/workflow-runner/test/skillTurnDone.test.ts +71 -0
- package/plugins/workflow-runner/test/stateLifecycle.test.ts +150 -0
- package/plugins/workflow-runner/test/stepPipeline.test.ts +114 -0
- package/plugins/workflow-runner/test/taskArbitration.test.ts +338 -0
- package/plugins/workflow-runner/test/taskIdentity.test.ts +237 -0
- package/plugins/workflow-runner/test/taskLifecycle.test.ts +270 -0
- package/plugins/workflow-runner/test/toolArtifactOverwrite.test.ts +221 -0
- package/plugins/workflow-runner/test/toolCapabilityBoundary.test.ts +29 -0
- package/plugins/workflow-runner/test/toolRuntimeIntegration.test.ts +168 -0
- package/plugins/workflow-runner/test/webppt.load.test.ts +250 -0
- package/plugins/workflow-runner/test/word.load.test.ts +208 -0
- package/plugins/workflow-runner/test/workflows.smoke.test.ts +76 -0
- package/plugins/workflow-runner/test/yamlGuardConditions.test.ts +207 -0
- package/skills/browser-automation/SKILL.md +9 -19
- package/skills/web-crawler/SKILL.md +9 -11
- package/src/askBridge.ts +249 -0
- package/src/bootstrap/cwdArg.js +10 -3
- package/src/bootstrap/cwdArg.ts +31 -0
- package/src/bootstrap/workingDir.ts +48 -0
- package/src/cli/args.js +70 -7
- package/src/cli/args.ts +146 -0
- package/src/cli/computerUse.js +185 -0
- package/src/cli/computerUse.ts +221 -0
- package/src/cli/configMenu.js +274 -202
- package/src/cli/configMenu.tsx +521 -0
- package/src/cli/memoryAccess.js +45 -0
- package/src/cli/memoryAccess.ts +53 -0
- package/src/cli/print.js +119 -5
- package/src/cli/print.ts +597 -0
- package/src/cli/quickModelSetup.js +60 -0
- package/src/cli/quickModelSetup.tsx +96 -0
- package/src/cli/streamJson.js +80 -4
- package/src/cli/streamJson.ts +433 -0
- package/src/cli/wizards/advisorWizard.js +1 -0
- package/src/cli/wizards/advisorWizard.tsx +195 -0
- package/src/cli/wizards/agentRuntimeWizard.js +84 -0
- package/src/cli/wizards/agentRuntimeWizard.tsx +134 -0
- package/src/cli/wizards/browserWizard.js +55 -0
- package/src/cli/wizards/browserWizard.tsx +77 -0
- package/src/cli/wizards/contextAdvisorWizard.js +84 -0
- package/src/cli/wizards/contextAdvisorWizard.tsx +124 -0
- package/src/cli/wizards/fieldForm.js +7 -4
- package/src/cli/wizards/fieldForm.tsx +250 -0
- package/src/cli/wizards/imageWizard.js +4 -5
- package/src/cli/wizards/imageWizard.tsx +96 -0
- package/src/cli/wizards/openRouterWizard.tsx +48 -0
- package/src/cli/wizards/providerPresets.js +1 -8
- package/src/cli/wizards/providerPresets.ts +106 -0
- package/src/cli/wizards/providerWizard.js +152 -205
- package/src/cli/wizards/providerWizard.tsx +266 -0
- package/src/cli/wizards/searchWizard.tsx +47 -0
- package/src/cli/wizards/ttsWizard.js +4 -3
- package/src/cli/wizards/ttsWizard.tsx +61 -0
- package/src/config/configDefaults.js +25 -0
- package/src/config/configDefaults.ts +33 -0
- package/src/config/configDiagnostics.js +117 -0
- package/src/config/configDiagnostics.ts +166 -0
- package/src/config/configFile.js +52 -32
- package/src/config/configFile.ts +633 -0
- package/src/config/configManagement.js +126 -0
- package/src/config/configManagement.ts +159 -0
- package/src/config/configService.js +66 -11
- package/src/config/configService.ts +554 -0
- package/src/config/numericLimits.js +61 -0
- package/src/config/numericLimits.ts +80 -0
- package/src/config.ts +109 -0
- package/src/context/agentHome.ts +11 -0
- package/src/context/archive.ts +144 -0
- package/src/context/budgetPlan.js +54 -0
- package/src/context/budgetPlan.ts +88 -0
- package/src/context/compact.js +179 -106
- package/src/context/compact.ts +584 -0
- package/src/context/contextBundle.js +119 -0
- package/src/context/contextBundle.ts +176 -0
- package/src/context/contextLock.ts +84 -0
- package/src/context/microCompactLite.ts +218 -0
- package/src/context/persistContext.ts +177 -0
- package/src/context/reactiveCompact.js +19 -4
- package/src/context/reactiveCompact.ts +240 -0
- package/src/context/recentDirs.ts +42 -0
- package/src/context/sessionPath.ts +206 -0
- package/src/context/sessionRegistry.js +8 -2
- package/src/context/sessionRegistry.ts +414 -0
- package/src/context/snipCompact.ts +163 -0
- package/src/context/tokenCounter.ts +106 -0
- package/src/context/workspaceIndex.js +2 -2
- package/src/context/workspaceIndex.ts +751 -0
- package/src/entry.compiled.tsx +20 -0
- package/src/harness/claimValidation.js +9 -0
- package/src/harness/claimValidation.ts +22 -0
- package/src/harness/evidenceLedger.js +92 -0
- package/src/harness/evidenceLedger.ts +96 -0
- package/src/harness/stallGuard.js +60 -0
- package/src/harness/stallGuard.ts +81 -0
- package/src/humanIntervention.js +129 -0
- package/src/humanIntervention.ts +216 -0
- package/src/infra/verification.ts +295 -0
- package/src/irreversible/rules.js +216 -0
- package/src/irreversible/rules.ts +261 -0
- package/src/llm/client.js +40 -3
- package/src/llm/client.ts +621 -0
- package/src/llm/promptCache.js +27 -0
- package/src/llm/promptCache.ts +41 -0
- package/src/llm/providers/anthropicFormat.js +41 -5
- package/src/llm/providers/anthropicFormat.ts +290 -0
- package/src/llm/providers/openaiFormat.js +186 -8
- package/src/llm/providers/openaiFormat.ts +428 -0
- package/src/loop.js +614 -63
- package/src/loop.ts +1454 -0
- package/src/main.js +67 -10
- package/src/main.tsx +344 -0
- package/src/memory/codec.js +204 -0
- package/src/memory/codec.ts +249 -0
- package/src/memory/constants.js +34 -0
- package/src/memory/constants.ts +50 -0
- package/src/memory/episodicMemory.js +684 -0
- package/src/memory/episodicMemory.ts +815 -0
- package/src/memory/fileStore.js +148 -0
- package/src/memory/fileStore.ts +184 -0
- package/src/memory/memoryService.js +570 -0
- package/src/memory/memoryService.ts +859 -0
- package/src/memory/migration.js +128 -0
- package/src/memory/migration.ts +160 -0
- package/src/memory/repository.js +789 -0
- package/src/memory/repository.ts +893 -0
- package/src/memory/retrieval.js +108 -0
- package/src/memory/retrieval.ts +145 -0
- package/src/memory/searchIndex.js +107 -0
- package/src/memory/searchIndex.ts +153 -0
- package/src/memory/topicView.js +82 -0
- package/src/memory/topicView.ts +95 -0
- package/src/memory/turnJournal.js +95 -0
- package/src/memory/turnJournal.ts +120 -0
- package/src/memory/types.js +2 -0
- package/src/memory/types.ts +186 -0
- package/src/messageQueue.ts +123 -0
- package/src/multimodal.js +128 -46
- package/src/multimodal.ts +349 -0
- package/src/plugin-sdk.js +21 -1
- package/src/plugin-sdk.ts +134 -0
- package/src/plugins/builtinPluginIds.js +47 -0
- package/src/plugins/builtinPluginIds.ts +51 -0
- package/src/plugins/builtinRegistry.ts +43 -0
- package/src/plugins/commandRouter.js +40 -26
- package/src/plugins/commandRouter.ts +261 -0
- package/src/plugins/hookEngine.ts +341 -0
- package/src/plugins/pluginApi.ts +133 -0
- package/src/plugins/pluginLifecycle.ts +34 -0
- package/src/plugins/pluginLoader.ts +147 -0
- package/src/plugins/pluginManifest.js +127 -0
- package/src/plugins/pluginManifest.ts +152 -0
- package/src/plugins/pluginRunner.js +47 -2
- package/src/plugins/pluginRunner.ts +207 -0
- package/src/plugins/transcript.ts +208 -0
- package/src/prompts/lint.js +169 -0
- package/src/prompts/lint.ts +220 -0
- package/src/prompts/pluginList.js +32 -16
- package/src/prompts/pluginList.ts +86 -0
- package/src/prompts/policyRegistry.js +318 -0
- package/src/prompts/policyRegistry.ts +358 -0
- package/src/prompts/projectInstructions.js +24 -0
- package/src/prompts/projectInstructions.ts +81 -0
- package/src/prompts/promptAssembly.js +311 -202
- package/src/prompts/promptAssembly.ts +510 -0
- package/src/prompts/skillList.js +106 -45
- package/src/prompts/skillList.ts +198 -0
- package/src/prompts/system.js +31 -6
- package/src/prompts/system.ts +81 -0
- package/src/runtime/agentRuntimeContext.js +53 -0
- package/src/runtime/agentRuntimeContext.ts +112 -0
- package/src/session/runAgentTurn.js +71 -12
- package/src/session/runAgentTurn.ts +181 -0
- package/src/session/runTurn.js +29 -0
- package/src/session/runTurn.ts +160 -0
- package/src/session/runtimeStore.js +149 -0
- package/src/session/runtimeStore.ts +197 -0
- package/src/session/sessionState.js +79 -3
- package/src/session/sessionState.ts +134 -0
- package/src/toolGate.ts +50 -0
- package/src/tools/advisor/advisor.js +76 -15
- package/src/tools/advisor/advisor.ts +512 -0
- package/src/tools/agent/agent.js +245 -29
- package/src/tools/agent/agent.ts +837 -0
- package/src/tools/agent/agentTaskService.js +60 -0
- package/src/tools/agent/agentTaskService.ts +113 -0
- package/src/tools/agent/agentTypes.js +20 -8
- package/src/tools/agent/agentTypes.ts +94 -0
- package/src/tools/agent/coordinator.ts +111 -0
- package/src/tools/agent/worktree.ts +296 -0
- package/src/tools/ask/ask.js +17 -0
- package/src/tools/ask/ask.ts +122 -0
- package/src/tools/bash/attachImage.js +223 -0
- package/src/tools/bash/attachImage.ts +281 -0
- package/src/tools/bash/bash.js +132 -14
- package/src/tools/bash/bash.ts +642 -0
- package/src/tools/bash/semantics.ts +103 -0
- package/src/tools/bash/warnings.js +17 -11
- package/src/tools/bash/warnings.ts +117 -0
- package/src/tools/capabilities.js +42 -0
- package/src/tools/capabilities.ts +69 -0
- package/src/tools/computeruse/accessibilityPermission.js +261 -0
- package/src/tools/computeruse/accessibilityPermission.ts +294 -0
- package/src/tools/computeruse/axSearch.js +96 -0
- package/src/tools/computeruse/axSearch.ts +120 -0
- package/src/tools/computeruse/axSnap.js +272 -0
- package/src/tools/computeruse/axSnap.ts +349 -0
- package/src/tools/computeruse/capabilityLabels.js +95 -0
- package/src/tools/computeruse/capabilityLabels.ts +115 -0
- package/src/tools/computeruse/computerUseService.js +2235 -0
- package/src/tools/computeruse/computerUseService.ts +2686 -0
- package/src/tools/computeruse/computeruse.js +2742 -0
- package/src/tools/computeruse/computeruse.ts +3265 -0
- package/src/tools/computeruse/diagnosticTrace.js +154 -0
- package/src/tools/computeruse/diagnosticTrace.ts +195 -0
- package/src/tools/computeruse/diagnostics.js +369 -0
- package/src/tools/computeruse/diagnostics.ts +453 -0
- package/src/tools/computeruse/grants.js +53 -0
- package/src/tools/computeruse/grants.ts +70 -0
- package/src/tools/computeruse/humanBoundary.js +159 -0
- package/src/tools/computeruse/humanBoundary.ts +199 -0
- package/src/tools/computeruse/intervention.js +77 -0
- package/src/tools/computeruse/intervention.ts +110 -0
- package/src/tools/computeruse/manualSchema.js +709 -0
- package/src/tools/computeruse/manualSchema.ts +916 -0
- package/src/tools/computeruse/observationImages.js +705 -0
- package/src/tools/computeruse/observationImages.ts +889 -0
- package/src/tools/computeruse/protocol.js +60 -0
- package/src/tools/computeruse/protocol.ts +515 -0
- package/src/tools/computeruse/telemetryLog.js +57 -0
- package/src/tools/computeruse/telemetryLog.ts +67 -0
- package/src/tools/computeruse/vision/appGuide.js +325 -0
- package/src/tools/computeruse/vision/appGuide.ts +482 -0
- package/src/tools/computeruse/vision/focus.js +291 -0
- package/src/tools/computeruse/vision/focus.ts +382 -0
- package/src/tools/computeruse/vision/frames.js +248 -0
- package/src/tools/computeruse/vision/frames.ts +329 -0
- package/src/tools/computeruse/vision/geometry.js +131 -0
- package/src/tools/computeruse/vision/geometry.ts +163 -0
- package/src/tools/computeruse/vision/imaging.js +201 -0
- package/src/tools/computeruse/vision/imaging.ts +281 -0
- package/src/tools/computeruse/vision/png.js +274 -0
- package/src/tools/computeruse/vision/png.ts +317 -0
- package/src/tools/computeruse/vision/raster.js +320 -0
- package/src/tools/computeruse/vision/raster.ts +408 -0
- package/src/tools/computeruse/vision/settle.js +131 -0
- package/src/tools/computeruse/vision/settle.ts +220 -0
- package/src/tools/computeruse/vision/telemetry.js +196 -0
- package/src/tools/computeruse/vision/telemetry.ts +241 -0
- package/src/tools/computeruse/visionOcr.js +115 -0
- package/src/tools/computeruse/visionOcr.ts +128 -0
- package/src/tools/computeruse/waitFor.js +237 -0
- package/src/tools/computeruse/waitFor.ts +291 -0
- package/src/tools/download/download.js +10 -6
- package/src/tools/download/download.ts +187 -0
- package/src/tools/edit/edit.js +30 -18
- package/src/tools/edit/edit.ts +349 -0
- package/src/tools/edit/multi-edit.js +25 -14
- package/src/tools/edit/multi-edit.ts +223 -0
- package/src/tools/effectiveToolSet.js +73 -0
- package/src/tools/effectiveToolSet.ts +91 -0
- package/src/tools/genimage/genimage.ts +257 -0
- package/src/tools/genspeech/genspeech.ts +83 -0
- package/src/tools/glob/glob.js +176 -29
- package/src/tools/glob/glob.ts +283 -0
- package/src/tools/grep/grep.js +61 -19
- package/src/tools/grep/grep.ts +239 -0
- package/src/tools/grep/rgPath.ts +206 -0
- package/src/tools/index.js +99 -5
- package/src/tools/index.ts +293 -0
- package/src/tools/lsp/config.js +113 -0
- package/src/tools/lsp/config.ts +113 -0
- package/src/tools/lsp/lsp.js +256 -0
- package/src/tools/lsp/lsp.ts +274 -0
- package/src/tools/lsp/service.js +303 -0
- package/src/tools/lsp/service.ts +296 -0
- package/src/tools/memory/memory.js +520 -0
- package/src/tools/memory/memory.ts +625 -0
- package/src/tools/memory/policy.js +53 -0
- package/src/tools/memory/policy.ts +72 -0
- package/src/tools/notebook/notebookEdit.js +114 -0
- package/src/tools/notebook/notebookEdit.ts +126 -0
- package/src/tools/powershell/powershell.js +210 -0
- package/src/tools/powershell/powershell.ts +239 -0
- package/src/tools/presentresult/presentresult.js +145 -0
- package/src/tools/presentresult/presentresult.ts +156 -0
- package/src/tools/read/read.js +371 -163
- package/src/tools/read/read.ts +558 -0
- package/src/tools/shared/diffSummary.js +44 -0
- package/src/tools/shared/diffSummary.ts +63 -0
- package/src/tools/shared/fileActivity.js +51 -0
- package/src/tools/shared/fileActivity.ts +66 -0
- package/src/tools/shared/fileMutationBus.js +13 -0
- package/src/tools/shared/fileMutationBus.ts +14 -0
- package/src/tools/shared/fileState.js +73 -65
- package/src/tools/shared/fileState.ts +145 -0
- package/src/tools/shared/fileUtils.js +81 -4
- package/src/tools/shared/fileUtils.ts +504 -0
- package/src/tools/shared/killTree.ts +50 -0
- package/src/tools/shared/permanentDeleteGuard.js +26 -0
- package/src/tools/shared/permanentDeleteGuard.ts +34 -0
- package/src/tools/shared/schemas.ts +20 -0
- package/src/tools/shared/toolOutputStore.js +97 -0
- package/src/tools/shared/toolOutputStore.ts +110 -0
- package/src/tools/skill/skill.js +86 -0
- package/src/tools/skill/skill.ts +94 -0
- package/src/tools/snip/snip.js +67 -0
- package/src/tools/snip/snip.ts +80 -0
- package/src/tools/tasks/backgroundTaskService.js +275 -0
- package/src/tools/tasks/backgroundTaskService.ts +369 -0
- package/src/tools/tasks/processEvidence.js +24 -0
- package/src/tools/tasks/processEvidence.ts +34 -0
- package/src/tools/tasks/taskManagement.js +163 -0
- package/src/tools/tasks/taskManagement.ts +180 -0
- package/src/tools/tasks/taskOutput.js +113 -0
- package/src/tools/tasks/taskOutput.ts +145 -0
- package/src/tools/tasks/taskStop.js +74 -0
- package/src/tools/tasks/taskStop.ts +99 -0
- package/src/tools/tasks/taskStore.js +46 -0
- package/src/tools/tasks/taskStore.ts +77 -0
- package/src/tools/terminal/terminalCapture.js +167 -0
- package/src/tools/terminal/terminalCapture.ts +179 -0
- package/src/tools/trash/trash.js +233 -0
- package/src/tools/trash/trash.ts +283 -0
- package/src/tools/types.js +1 -1
- package/src/tools/types.ts +24 -0
- package/src/tools/webbrowser/agentBrowserPath.ts +286 -0
- package/src/tools/webbrowser/browser.js +214 -11
- package/src/tools/webbrowser/browser.ts +293 -0
- package/src/tools/webbrowser/browserControl.js +153 -48
- package/src/tools/webbrowser/browserControl.ts +262 -0
- package/src/tools/webbrowser/browserDaemon.js +147 -39
- package/src/tools/webbrowser/browserDaemon.ts +270 -0
- package/src/tools/webbrowser/browserOutcome.js +273 -0
- package/src/tools/webbrowser/browserOutcome.ts +306 -0
- package/src/tools/webbrowser/browserRunRegistry.js +150 -0
- package/src/tools/webbrowser/browserRunRegistry.ts +179 -0
- package/src/tools/webbrowser/browserService.js +20 -6
- package/src/tools/webbrowser/browserService.ts +56 -0
- package/src/tools/webbrowser/browserStream.js +30 -1
- package/src/tools/webbrowser/browserStream.ts +216 -0
- package/src/tools/webbrowser/browserTabs.js +143 -0
- package/src/tools/webbrowser/browserTabs.ts +210 -0
- package/src/tools/webbrowser/webbrowser.js +831 -150
- package/src/tools/webbrowser/webbrowser.ts +1537 -0
- package/src/tools/webfetch/preapproved.ts +274 -0
- package/src/tools/webfetch/webfetch.js +24 -23
- package/src/tools/webfetch/webfetch.ts +383 -0
- package/src/tools/websearch/websearch.js +12 -11
- package/src/tools/websearch/websearch.ts +292 -0
- package/src/tools/worktree/sessionWorktree.js +128 -0
- package/src/tools/worktree/sessionWorktree.ts +158 -0
- package/src/tools/write/write.js +27 -44
- package/src/tools/write/write.ts +136 -0
- package/src/types.ts +960 -0
- package/src/ui/App.js +216 -12
- package/src/ui/App.tsx +879 -0
- package/src/ui/AskQuestion.tsx +300 -0
- package/src/ui/InputBox.js +77 -1
- package/src/ui/InputBox.tsx +567 -0
- package/src/ui/LiveArea.tsx +344 -0
- package/src/ui/MessageList.js +27 -6
- package/src/ui/MessageList.tsx +559 -0
- package/src/ui/ModelPicker.tsx +107 -0
- package/src/ui/QueuedMessagesBanner.tsx +51 -0
- package/src/ui/Root.js +6 -8
- package/src/ui/Root.tsx +100 -0
- package/src/ui/SessionPicker.tsx +169 -0
- package/src/ui/StatusLine.js +22 -1
- package/src/ui/StatusLine.tsx +145 -0
- package/src/ui/WorkspacePicker.tsx +84 -0
- package/src/ui/advisorCommand.js +54 -0
- package/src/ui/advisorCommand.ts +63 -0
- package/src/ui/computerCommand.js +19 -0
- package/src/ui/computerCommand.ts +35 -0
- package/src/ui/figures.ts +45 -0
- package/src/ui/hooks/askSlot.ts +112 -0
- package/src/ui/hooks/useChat.js +271 -7
- package/src/ui/hooks/useChat.ts +1578 -0
- package/src/ui/hooks/useInputHistory.ts +235 -0
- package/src/ui/hooks/usePasteHandler.ts +220 -0
- package/src/ui/hooks/useTerminalSize.ts +41 -0
- package/src/ui/hooks/useTextBuffer.ts +108 -0
- package/src/ui/hooks/useTokenUsage.ts +44 -0
- package/src/ui/liveViewport.ts +189 -0
- package/src/ui/markdown.ts +230 -0
- package/src/ui/textBuffer.ts +239 -0
- package/src/ui/theme.ts +35 -0
- package/src/utils/clipboardImage.js +358 -0
- package/src/utils/clipboardImage.ts +420 -0
- package/src/utils/debugLog.ts +50 -0
- package/src/utils/greenRoot.ts +35 -0
- package/src/utils/packageRoot.ts +40 -0
- package/src/utils/pathContains.js +28 -0
- package/src/utils/pathContains.ts +31 -0
- package/src/utils/resourcePaths.ts +71 -0
- package/src/utils/stripThink.ts +49 -0
- package/src/utils/zodToJson.ts +73 -0
- package/src/web/browserBridge.js +365 -66
- package/src/web/browserBridge.ts +672 -0
- package/src/web/protocol.ts +1804 -0
- package/vendor/computer-use/arm64-darwin/cu-helperd +0 -0
- package/workflows/ppt.yaml +13 -2
- package/workflows/wechat-reading-shots.yaml +315 -0
- package/workflows/word.yaml +11 -1
- package/skills/docx/scripts/office/helpers/__pycache__/__init__.cpython-314.pyc +0 -0
- package/skills/docx/scripts/office/helpers/__pycache__/merge_runs.cpython-314.pyc +0 -0
- package/skills/docx/scripts/office/helpers/__pycache__/simplify_redlines.cpython-314.pyc +0 -0
- package/skills/docx/scripts/office/validators/__pycache__/__init__.cpython-314.pyc +0 -0
- package/skills/docx/scripts/office/validators/__pycache__/base.cpython-314.pyc +0 -0
- package/skills/docx/scripts/office/validators/__pycache__/docx.cpython-314.pyc +0 -0
- package/skills/docx/scripts/office/validators/__pycache__/pptx.cpython-314.pyc +0 -0
- package/skills/docx/scripts/office/validators/__pycache__/redlining.cpython-314.pyc +0 -0
- package/skills/image-stats/scripts/__pycache__/image_stats.cpython-314.pyc +0 -0
- package/skills/image-stats/scripts/__pycache__/image_stats_test.cpython-314.pyc +0 -0
- package/skills/ui-design/scripts/__pycache__/assemble_material.cpython-314.pyc +0 -0
- package/skills/ui-design/scripts/__pycache__/assemble_material_test.cpython-314.pyc +0 -0
- package/skills/ui-design/scripts/__pycache__/chart_sanity_check.cpython-314.pyc +0 -0
- package/skills/ui-design/scripts/__pycache__/check_language_policy.cpython-314.pyc +0 -0
- package/skills/ui-design/scripts/__pycache__/check_ui_artifact.cpython-314.pyc +0 -0
- package/skills/ui-design/scripts/__pycache__/check_ui_artifact_pptx_test.cpython-314.pyc +0 -0
- package/skills/ui-design/scripts/__pycache__/deck_pages_check.cpython-314.pyc +0 -0
- package/skills/ui-design/scripts/__pycache__/deck_pages_check_test.cpython-314.pyc +0 -0
- package/skills/ui-design/scripts/__pycache__/deck_visual_style_check.cpython-314.pyc +0 -0
- package/skills/ui-design/scripts/__pycache__/deck_visual_style_check_test.cpython-314.pyc +0 -0
- package/skills/ui-design/scripts/__pycache__/design_budget_check.cpython-314.pyc +0 -0
- package/skills/ui-design/scripts/__pycache__/design_budget_check_test.cpython-314.pyc +0 -0
- package/skills/ui-design/scripts/__pycache__/design_repair_hints.cpython-314.pyc +0 -0
- package/skills/ui-design/scripts/__pycache__/design_repair_hints_test.cpython-314.pyc +0 -0
- package/skills/ui-design/scripts/__pycache__/design_style_check.cpython-314.pyc +0 -0
- package/skills/ui-design/scripts/__pycache__/design_style_check_test.cpython-314.pyc +0 -0
- package/skills/ui-design/scripts/__pycache__/draft_coverage_check.cpython-314.pyc +0 -0
- package/skills/ui-design/scripts/__pycache__/extract_source_assets.cpython-314.pyc +0 -0
- package/skills/ui-design/scripts/__pycache__/extract_source_assets_test.cpython-314.pyc +0 -0
- package/skills/ui-design/scripts/__pycache__/generated_image_review_collect.cpython-314.pyc +0 -0
- package/skills/ui-design/scripts/__pycache__/generated_image_review_collect_test.cpython-314.pyc +0 -0
- package/skills/ui-design/scripts/__pycache__/image_plan_lint.cpython-314.pyc +0 -0
- package/skills/ui-design/scripts/__pycache__/image_plan_lint_test.cpython-314.pyc +0 -0
- package/skills/ui-design/scripts/__pycache__/image_prompt_rewrite.cpython-314.pyc +0 -0
- package/skills/ui-design/scripts/__pycache__/image_prompt_rewrite_test.cpython-314.pyc +0 -0
- package/skills/ui-design/scripts/__pycache__/layout_balance.cpython-314.pyc +0 -0
- package/skills/ui-design/scripts/__pycache__/layout_balance_test.cpython-314.pyc +0 -0
- package/skills/ui-design/scripts/__pycache__/normalize_design_json.cpython-314.pyc +0 -0
- package/skills/ui-design/scripts/__pycache__/normalize_design_json_test.cpython-314.pyc +0 -0
- package/skills/ui-design/scripts/__pycache__/plan_source_layout.cpython-314.pyc +0 -0
- package/skills/ui-design/scripts/__pycache__/plan_source_layout_test.cpython-314.pyc +0 -0
- package/skills/ui-design/scripts/__pycache__/resolve_source_hint.cpython-314.pyc +0 -0
- package/skills/ui-design/scripts/__pycache__/resolve_source_hint_test.cpython-314.pyc +0 -0
- package/skills/ui-design/scripts/__pycache__/resolve_source_input.cpython-314.pyc +0 -0
- package/skills/ui-design/scripts/__pycache__/resolve_source_input_test.cpython-314.pyc +0 -0
- package/skills/ui-design/scripts/__pycache__/scaffold_ui_artifact.cpython-314.pyc +0 -0
- package/skills/ui-design/scripts/__pycache__/source_usage_check.cpython-314.pyc +0 -0
- package/skills/ui-design/scripts/__pycache__/source_usage_check_test.cpython-314.pyc +0 -0
- package/skills/ui-design/scripts/__pycache__/text_readability_pixel.cpython-314.pyc +0 -0
- package/skills/ui-design/scripts/__pycache__/visual_quality_gate.cpython-314.pyc +0 -0
- package/skills/ui-design/scripts/__pycache__/visual_quality_gate_test.cpython-314.pyc +0 -0
- /package/skills/ai-image/scripts/{generate_test.mjs → generate.selftest.mjs} +0 -0
- /package/skills/ai-image/scripts/{generate_from_plan_test.mjs → generate_from_plan.selftest.mjs} +0 -0
|
@@ -0,0 +1,250 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* test/webppt.load.test.ts
|
|
3
|
+
* ------------------------------------------------------------
|
|
4
|
+
* 锁定 workflows/webppt.yaml(网页设计驱动版)的「可解析 + 关键骨架」:
|
|
5
|
+
* - loader 校验通过(含 type:loop while 模式 + do[] + break 嵌套)
|
|
6
|
+
* - 11 个顶层步、title 分母 /11、inputs 含 topic(greedy)/style/mode/illustrations/out
|
|
7
|
+
* - 新流程三段:设计文档(design.json/md+img_plan) → 对抗评审 → 分批生成 loop(deck_pages_check 收口)
|
|
8
|
+
* - 复用段衔接正确:img_route_gate 吃 design.json、生图先于闸门、export 只查重叠+每页≤3次+页数兜底
|
|
9
|
+
* - 所有 ${} 表达式可被引擎解析(防 bash 参数扩展等畸形语法)
|
|
10
|
+
*
|
|
11
|
+
* 定位法:packageRoot/workflows/webppt.yaml + parseWorkflowFile。
|
|
12
|
+
* 注意:webppt(topic 驱动)与 ppt(文档素材驱动,见 ppt.load.test.ts)是**两个并列的独立工作流**,
|
|
13
|
+
* 内部 name 分别为 webppt / ppt,互不影响——改 ppt 时绝不动 webppt(用户红线)。
|
|
14
|
+
*/
|
|
15
|
+
|
|
16
|
+
import { describe, expect, it } from 'bun:test';
|
|
17
|
+
import { join } from 'node:path';
|
|
18
|
+
|
|
19
|
+
import { interpolate } from '../src/expressions.js';
|
|
20
|
+
import { parseWorkflowFile } from '../src/loader.js';
|
|
21
|
+
import { VarStack } from '../src/types.js';
|
|
22
|
+
import type { StepDef } from '../src/types.js';
|
|
23
|
+
|
|
24
|
+
const webpptPath = join(
|
|
25
|
+
import.meta.dir.replace(/[/\\]test$/, ''), // plugins/workflow-runner
|
|
26
|
+
'..', // plugins
|
|
27
|
+
'..', // 仓库根
|
|
28
|
+
'workflows',
|
|
29
|
+
'webppt.yaml',
|
|
30
|
+
);
|
|
31
|
+
|
|
32
|
+
describe('workflows/webppt.yaml', () => {
|
|
33
|
+
it('解析通过且 11 步骨架正确', async () => {
|
|
34
|
+
const def = await parseWorkflowFile(webpptPath);
|
|
35
|
+
|
|
36
|
+
expect(def.name).toBe('webppt');
|
|
37
|
+
expect(typeof def.description).toBe('string');
|
|
38
|
+
|
|
39
|
+
// inputs:topic(greedy, 首位) + 高级覆盖项
|
|
40
|
+
const inputNames = (def.inputs ?? []).map((i) => i.name);
|
|
41
|
+
expect(inputNames).toEqual(
|
|
42
|
+
expect.arrayContaining(['topic', 'illustrations', 'style', 'mode', 'out', 'image_intensity']),
|
|
43
|
+
);
|
|
44
|
+
expect(inputNames[0]).toBe('topic');
|
|
45
|
+
// AI 生图积极性配置(2026-06-19):enum minimal/balanced/rich,默认 balanced
|
|
46
|
+
const intensity = (def.inputs ?? []).find((i) => i.name === 'image_intensity');
|
|
47
|
+
expect(intensity?.default).toBe('balanced');
|
|
48
|
+
expect((def.inputs ?? []).find((i) => i.name === 'topic')?.greedy).toBe(true);
|
|
49
|
+
expect(inputNames).not.toContain('pages'); // 页数内容驱动,不是输入
|
|
50
|
+
|
|
51
|
+
// 11 个顶层步 + title 分母 /11
|
|
52
|
+
const ids = def.steps.map((s) => s.id);
|
|
53
|
+
for (const id of [
|
|
54
|
+
'stage0_clarify',
|
|
55
|
+
'stage_research',
|
|
56
|
+
'stage_design_doc',
|
|
57
|
+
'stage_design_review',
|
|
58
|
+
'stage_build_loop',
|
|
59
|
+
'stage_img_route_gate',
|
|
60
|
+
'stage_gen_images',
|
|
61
|
+
'stage_export',
|
|
62
|
+
'verify_output',
|
|
63
|
+
'cleanup_intermediates',
|
|
64
|
+
'final_report',
|
|
65
|
+
]) {
|
|
66
|
+
expect(ids).toContain(id);
|
|
67
|
+
}
|
|
68
|
+
expect(def.steps.length).toBe(11);
|
|
69
|
+
for (const s of def.steps) {
|
|
70
|
+
expect(String(s.title)).toContain('/11');
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
// 收尾报告 echo;artifacts 只列最终交付物、不在被 rm 的 ./build 下
|
|
74
|
+
expect(def.steps.find((s) => s.id === 'final_report')?.type).toBe('echo');
|
|
75
|
+
const declared = def.artifacts ?? [];
|
|
76
|
+
expect(declared).toContain('./out/deck.pptx');
|
|
77
|
+
for (const a of declared) expect(a.startsWith('./build')).toBe(false);
|
|
78
|
+
});
|
|
79
|
+
|
|
80
|
+
it('需求分析步:style 为空时必问视觉样式(VI 选项 + 自定义输入),AskUserQuestion 可用', async () => {
|
|
81
|
+
const def = await parseWorkflowFile(webpptPath);
|
|
82
|
+
const s0 = def.steps.find((s) => s.id === 'stage0_clarify');
|
|
83
|
+
expect(s0?.allowed_tools).toContain('AskUserQuestion');
|
|
84
|
+
const a = String(s0?.agent);
|
|
85
|
+
// 样式问是「必做」的强约束(防回归:弱模型曾跳过样式题直接进下一步)。
|
|
86
|
+
expect(a).toContain('必须调用一次 AskUserQuestion');
|
|
87
|
+
expect(a).toContain('style 为空');
|
|
88
|
+
expect(a).toContain('替用户拍板样式');
|
|
89
|
+
// 仍提供几个最贴合主题的 VI 选项 + 自定义输入。
|
|
90
|
+
expect(a).toContain('最贴合本主题');
|
|
91
|
+
expect(a).toContain('自定义');
|
|
92
|
+
});
|
|
93
|
+
|
|
94
|
+
it('设计文档步:产 design.md/json + img_plan,含构图法/渲染决策/呼应提示词/背景变化', async () => {
|
|
95
|
+
const def = await parseWorkflowFile(webpptPath);
|
|
96
|
+
const dd = def.steps.find((s) => s.id === 'stage_design_doc');
|
|
97
|
+
expect(typeof dd?.agent).toBe('string');
|
|
98
|
+
const a = String(dd?.agent);
|
|
99
|
+
expect(a).toContain('design.md');
|
|
100
|
+
expect(a).toContain('design.json');
|
|
101
|
+
expect(a).toContain('img_plan.json');
|
|
102
|
+
expect(a).toContain('composition'); // 空间构图法
|
|
103
|
+
expect(a).toContain('render'); // 元素级渲染决策
|
|
104
|
+
expect(a).toContain('呼应'); // 生图提示词与文案呼应(治"搬文案")
|
|
105
|
+
expect(a).toContain('背景'); // 页面级背景变化
|
|
106
|
+
expect(a).toContain('每页 ≥1 视觉元素'); // 区别于 Word
|
|
107
|
+
// 配色解耦(用户裁决):VI 管底,图表分类色 + 插图内容色
|
|
108
|
+
expect(a).toContain('配色解耦');
|
|
109
|
+
expect(a).toContain('分类色');
|
|
110
|
+
// 保留 visual.{route,note} 字段名 → 下游 image_plan_lint 兼容
|
|
111
|
+
expect(a).toContain('visual');
|
|
112
|
+
expect(a).toContain('route');
|
|
113
|
+
// AI 生图积极性配置接入设计步(2026-06-19)
|
|
114
|
+
expect(a).toContain('${inputs.image_intensity}'); // 积极性配置驱动配图分流
|
|
115
|
+
expect(a).toContain('积极性');
|
|
116
|
+
// design.json 紧凑单行(治 doubao 推理模型写大 JSON 尾部截断 Unterminated string)
|
|
117
|
+
expect(a).toContain('紧凑单行');
|
|
118
|
+
expect(String(dd?.done_when)).toContain('design.json');
|
|
119
|
+
// 编辑式最高标准(第三轮·webppt 也转编辑式,用户授权覆盖红线):强制默认 + 每页背景层 + cards 罕见例外
|
|
120
|
+
expect(a).toContain('编辑式最高标准·强制默认');
|
|
121
|
+
expect(a).toContain('每个内容页都必须有背景层');
|
|
122
|
+
expect(a).toContain('卡片墙 / 网格 / 表格 = 罕见例外');
|
|
123
|
+
expect(a).toContain('`cards` 已降为罕见例外、默认别选');
|
|
124
|
+
// 第五轮:AI 背景默认(渐变只作失败兜底)+ 动笔前三问/苹果式精炼
|
|
125
|
+
expect(a).toContain('默认高清 AI 图,渐变只作失败兜底');
|
|
126
|
+
expect(a).toContain('优先配高清 AI 全幅底图');
|
|
127
|
+
expect(a).toContain('动笔前三问');
|
|
128
|
+
expect(a).toContain('MacBook Pro');
|
|
129
|
+
});
|
|
130
|
+
|
|
131
|
+
it('对抗评审步:回顾原始需求挑刺并修订定稿(全自动、无人工 pause)', async () => {
|
|
132
|
+
const def = await parseWorkflowFile(webpptPath);
|
|
133
|
+
const rv = def.steps.find((s) => s.id === 'stage_design_review');
|
|
134
|
+
expect(typeof rv?.agent).toBe('string');
|
|
135
|
+
const a = String(rv?.agent);
|
|
136
|
+
expect(a).toContain('对抗');
|
|
137
|
+
expect(a).toContain('原始需求');
|
|
138
|
+
expect(a).toContain('修订');
|
|
139
|
+
// 稀疏页标准(用户裁决):不再一律禁「一句话占一页」,而是 ≤20% 且必须配图/底图避免简陋。
|
|
140
|
+
expect(a).toContain('20%');
|
|
141
|
+
expect(a).toContain('简陋');
|
|
142
|
+
// 配色解耦 + 字号可读性评审子项(用户裁决)
|
|
143
|
+
expect(a).toContain('分类色'); // 图表数据系列可区分
|
|
144
|
+
expect(a).toContain('38px'); // 正文放映级可读(≈1.5×)
|
|
145
|
+
// 新增评审子项(2026-06-19):封面对比 / 真实 DOM 文本 / 稀疏页满画布
|
|
146
|
+
expect(a).toContain('对比度'); // 封面/章节文字在浅底图上对比达标
|
|
147
|
+
expect(a).toContain('DOM 文本'); // 文字皆真实 DOM 文本(无伪元素/烧图文字)
|
|
148
|
+
expect(a).toContain('占满画布'); // list/目录满宽不留空半
|
|
149
|
+
// 改 design 文档(Edit/Write),不是只读评审
|
|
150
|
+
expect(rv?.allowed_tools).toContain('Edit');
|
|
151
|
+
// 不是 pause(webppt 定位=自动产出,无人工打断)
|
|
152
|
+
expect(rv?.type).not.toBe('pause');
|
|
153
|
+
});
|
|
154
|
+
|
|
155
|
+
it('分批生成 loop:while + fresh_context + deck_pages_check 收口(防大 deck 烂尾)', async () => {
|
|
156
|
+
const def = await parseWorkflowFile(webpptPath);
|
|
157
|
+
const loop = def.steps.find((s) => s.id === 'stage_build_loop');
|
|
158
|
+
expect(loop?.type).toBe('loop');
|
|
159
|
+
expect(loop?.fresh_context).toBe(true); // 每轮重置 history 防膨胀
|
|
160
|
+
expect(loop?.over).toBeUndefined(); // while 模式(非 for-each)
|
|
161
|
+
expect(typeof loop?.max_iterations === 'number' || typeof loop?.max_iterations === 'string').toBe(true);
|
|
162
|
+
const dos = (loop?.do ?? []) as StepDef[];
|
|
163
|
+
const batch = dos.find((s) => s.id === 'build_batch');
|
|
164
|
+
const brk = dos.find((s) => s.id === 'build_done');
|
|
165
|
+
// 生成步:跑 deck_pages_check 自查 + ≤5 页 + 每页视觉元素 + COMPLETE 标记
|
|
166
|
+
expect(typeof batch?.agent).toBe('string');
|
|
167
|
+
expect(String(batch?.agent)).toContain('deck_pages_check.py');
|
|
168
|
+
expect(String(batch?.agent)).toContain('WEBPPT_BUILD_COMPLETE');
|
|
169
|
+
expect(String(batch?.agent)).toContain('5 页'); // 每轮最多 5 页
|
|
170
|
+
// 字号阶梯(放映级正文 ≈1.5×)+ 配色解耦(图表分类色)注入生成步
|
|
171
|
+
expect(String(batch?.agent)).toContain('38px'); // 正文/卡片正文放映级下限(≈1.5×)
|
|
172
|
+
expect(String(batch?.agent)).toContain('分类色'); // 图表数据系列分类色
|
|
173
|
+
// 文本必须真实 DOM(禁伪元素/烧图)+ 封面对比 + 稀疏页满画布(2026-06-19)
|
|
174
|
+
expect(String(batch?.agent)).toContain('真实 DOM 文本'); // 禁 ::before/::after / 禁烧进图
|
|
175
|
+
expect(String(batch?.agent)).toContain('::before/::after'); // 明示禁用伪元素文字
|
|
176
|
+
expect(String(batch?.agent)).toContain('对比度铁律'); // 封面浅底图深字+浅板
|
|
177
|
+
expect(String(batch?.agent)).toContain('占满整宽'); // list/目录满宽不留空半
|
|
178
|
+
// 递归切图:可拖结构离散 HTML + 卡片填实/不溢出(2026-06-19)
|
|
179
|
+
expect(String(batch?.agent)).toContain('可拖结构'); // 离散 HTML 元素、递归切成各自可拖对象
|
|
180
|
+
expect(String(batch?.agent)).toContain('递归切'); // 导出递归切
|
|
181
|
+
expect(String(batch?.agent)).toContain('卡片/分组填充不足'); // 填实/不溢出 WARNING 提示
|
|
182
|
+
// 对比度铁律 + 文案精炼说人话 + 排不下自救(2026-06-19 第三轮)
|
|
183
|
+
expect(String(batch?.agent)).toContain('文字对比度铁律'); // 深底白字、绝不深底深字
|
|
184
|
+
expect(String(batch?.agent)).toContain('说人话'); // 文案精炼·类比/例子
|
|
185
|
+
expect(String(batch?.agent)).toContain('两列'); // 排不下改 grid 两列
|
|
186
|
+
// deck 纵向流式(人可滚动审阅,不再各页叠在一起)
|
|
187
|
+
expect(String(batch?.agent)).toContain('流式'); // 纵向流式版式
|
|
188
|
+
expect(String(batch?.agent)).toContain('position:relative'); // 每页 position:relative 排开
|
|
189
|
+
expect(batch?.capture).toBeTruthy();
|
|
190
|
+
// break:页数 COMPLETE 时跳出循环
|
|
191
|
+
expect(brk?.type).toBe('break');
|
|
192
|
+
expect(String(brk?.when)).toContain('WEBPPT_BUILD_COMPLETE');
|
|
193
|
+
});
|
|
194
|
+
|
|
195
|
+
it('衔接:img_route_gate 吃 design.json、生图先于闸门、export 只查重叠+每页≤3次+页数兜底', async () => {
|
|
196
|
+
const def = await parseWorkflowFile(webpptPath);
|
|
197
|
+
const ids = def.steps.map((s) => s.id);
|
|
198
|
+
|
|
199
|
+
// 配图分流闸门:image_plan_lint 的 --outline 直接吃 design.json
|
|
200
|
+
const gate = def.steps.find((s) => s.id === 'stage_img_route_gate');
|
|
201
|
+
expect(String(gate?.agent)).toContain('image_plan_lint.py');
|
|
202
|
+
expect(String(gate?.agent)).toContain('--outline ./build/design.json');
|
|
203
|
+
expect(String(gate?.done_when)).toContain('img_route_ok');
|
|
204
|
+
// 顺序:build_loop → img_route_gate → gen_images
|
|
205
|
+
expect(ids.indexOf('stage_img_route_gate')).toBeGreaterThan(ids.indexOf('stage_build_loop'));
|
|
206
|
+
expect(ids.indexOf('stage_img_route_gate')).toBeLessThan(ids.indexOf('stage_gen_images'));
|
|
207
|
+
// 生图先于构图闸门(闸门量含图成品)——分层/时序不变量
|
|
208
|
+
expect(ids.indexOf('stage_gen_images')).toBeLessThan(ids.indexOf('stage_export'));
|
|
209
|
+
|
|
210
|
+
// 导出步:页数兜底 + measure-only 渲染含图成品 + 只查重叠 + 修法序(移动>精炼>缩字≤20%) + 每页≤3次配额 + 哨兵
|
|
211
|
+
const exp = def.steps.find((s) => s.id === 'stage_export');
|
|
212
|
+
expect(String(exp?.agent)).toContain('deck_pages_check.py'); // 页数兜底
|
|
213
|
+
expect(String(exp?.agent)).toContain('layout_balance.py');
|
|
214
|
+
expect(String(exp?.agent)).toContain('--measure-only'); // 渲染真实 deck 量含图成品
|
|
215
|
+
expect(String(exp?.agent)).toContain('重叠'); // 不可妥协硬门之一
|
|
216
|
+
expect(String(exp?.agent)).toContain('截图夹带文本'); // 底图/切图绝不能带 HTML 文字(硬门,2026-06-19)
|
|
217
|
+
// 改 deck.html 只准用 Edit、禁 Bash 文本替换(治弱模型 type/findstr/PowerShell 把 HTML 改崩→halt,2026-06-19 第三轮)
|
|
218
|
+
expect(String(exp?.agent)).toContain('只准用 Edit');
|
|
219
|
+
expect(String(exp?.agent)).toContain('编码损坏');
|
|
220
|
+
expect(String(exp?.agent)).toContain('移动'); // 修重叠优先移动/重排(不是一味缩字)
|
|
221
|
+
expect(String(exp?.agent)).toContain('20%'); // 缩字单次封顶 20%
|
|
222
|
+
expect(String(exp?.agent)).toContain('3 次'); // 每页最多修 3 次
|
|
223
|
+
expect(String(exp?.agent)).toContain('放行'); // 第 3 次后必放行
|
|
224
|
+
expect(String(exp?.done_when)).toContain('layout_ok');
|
|
225
|
+
expect(String(exp?.done_when)).toContain('inputs.out');
|
|
226
|
+
expect(exp?.maxTurns).toBe(200);
|
|
227
|
+
});
|
|
228
|
+
|
|
229
|
+
it('所有 ${} 表达式都能被引擎解析(不含畸形语法)', async () => {
|
|
230
|
+
const def = await parseWorkflowFile(webpptPath);
|
|
231
|
+
const vars = new VarStack();
|
|
232
|
+
const inputsObj: Record<string, unknown> = {};
|
|
233
|
+
for (const inp of def.inputs ?? []) inputsObj[inp.name] = inp.default ?? '';
|
|
234
|
+
vars.setGlobal('inputs', inputsObj);
|
|
235
|
+
|
|
236
|
+
const strings: string[] = [];
|
|
237
|
+
const walk = (v: unknown): void => {
|
|
238
|
+
if (typeof v === 'string') strings.push(v);
|
|
239
|
+
else if (Array.isArray(v)) for (const x of v) walk(x);
|
|
240
|
+
else if (v && typeof v === 'object')
|
|
241
|
+
for (const x of Object.values(v as Record<string, unknown>)) walk(x);
|
|
242
|
+
};
|
|
243
|
+
walk(def);
|
|
244
|
+
expect(strings.length).toBeGreaterThan(10);
|
|
245
|
+
for (const s of strings) {
|
|
246
|
+
if (!s.includes('${')) continue;
|
|
247
|
+
expect(() => interpolate(s, vars)).not.toThrow();
|
|
248
|
+
}
|
|
249
|
+
});
|
|
250
|
+
});
|
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* test/word.load.test.ts
|
|
3
|
+
* ------------------------------------------------------------
|
|
4
|
+
* 锁定 workflows/word.yaml(素材驱动知乎深度长文 Word 工作流)的
|
|
5
|
+
* 「可解析 + 关键骨架」:
|
|
6
|
+
* - name=word,最终产物是 ./out/article.docx
|
|
7
|
+
* - inputs 支持 topic(greedy) / source / out / image_intensity / quality / debug_keep_build
|
|
8
|
+
* - Markdown-first:material → outline → article.md → image_map/img_plan → docx skill → OPC
|
|
9
|
+
* - 客户图必须使用;需要解释型视觉时积极文生图,提示词必须结合上下文
|
|
10
|
+
* - 不引入 PPT 专属 deck.html / design.json / 构图门 / PPTX 导出链路
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
import { describe, expect, it } from 'bun:test';
|
|
14
|
+
import { join } from 'node:path';
|
|
15
|
+
|
|
16
|
+
import { parseWorkflowFile } from '../src/loader.js';
|
|
17
|
+
|
|
18
|
+
const wordPath = join(
|
|
19
|
+
import.meta.dir.replace(/[/\\]test$/, ''), // plugins/workflow-runner
|
|
20
|
+
'..', // plugins
|
|
21
|
+
'..', // minimal-agent 根
|
|
22
|
+
'workflows',
|
|
23
|
+
'word.yaml',
|
|
24
|
+
);
|
|
25
|
+
|
|
26
|
+
describe('workflows/word.yaml(素材驱动·知乎深度长文 Word)', () => {
|
|
27
|
+
it('解析通过且 name/artifacts/inputs 骨架正确', async () => {
|
|
28
|
+
const def = await parseWorkflowFile(wordPath);
|
|
29
|
+
|
|
30
|
+
expect(def.name).toBe('word');
|
|
31
|
+
expect(typeof def.description).toBe('string');
|
|
32
|
+
expect(def.description).toContain('知乎深度文章');
|
|
33
|
+
|
|
34
|
+
const declared = def.artifacts ?? [];
|
|
35
|
+
expect(declared).toContain('./out/article.docx');
|
|
36
|
+
for (const a of declared) expect(a.startsWith('./build')).toBe(false);
|
|
37
|
+
|
|
38
|
+
const inputNames = (def.inputs ?? []).map((i) => i.name);
|
|
39
|
+
expect(inputNames).toEqual(
|
|
40
|
+
expect.arrayContaining([
|
|
41
|
+
'topic',
|
|
42
|
+
'source',
|
|
43
|
+
'out',
|
|
44
|
+
'image_intensity',
|
|
45
|
+
'quality',
|
|
46
|
+
'debug_keep_build',
|
|
47
|
+
]),
|
|
48
|
+
);
|
|
49
|
+
expect(inputNames[0]).toBe('topic');
|
|
50
|
+
expect((def.inputs ?? []).find((i) => i.name === 'topic')?.greedy).toBe(true);
|
|
51
|
+
expect((def.inputs ?? []).find((i) => i.name === 'out')?.default).toBe(
|
|
52
|
+
'./out/article.docx',
|
|
53
|
+
);
|
|
54
|
+
});
|
|
55
|
+
|
|
56
|
+
it('步骤骨架包含素材、识图、长文、图文混排、docx 导出与校验', async () => {
|
|
57
|
+
const def = await parseWorkflowFile(wordPath);
|
|
58
|
+
const ids = def.steps.map((s) => s.id);
|
|
59
|
+
|
|
60
|
+
for (const id of [
|
|
61
|
+
'stage0_analyze',
|
|
62
|
+
'stage_extract',
|
|
63
|
+
'stage_vision_loop',
|
|
64
|
+
'stage_assemble_material',
|
|
65
|
+
'stage_outline',
|
|
66
|
+
'stage_write_article',
|
|
67
|
+
'stage_img_plan',
|
|
68
|
+
'stage_gen_images',
|
|
69
|
+
'stage_generated_image_gate',
|
|
70
|
+
'stage_finalize_markdown',
|
|
71
|
+
'stage_topic_image_gate',
|
|
72
|
+
'stage_customer_image_gate',
|
|
73
|
+
'stage_export_docx',
|
|
74
|
+
'stage_verify_docx',
|
|
75
|
+
'final_report',
|
|
76
|
+
]) {
|
|
77
|
+
expect(ids).toContain(id);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
expect(def.steps.find((s) => s.id === 'stage_export_docx')?.skill).toBe(
|
|
81
|
+
'docx',
|
|
82
|
+
);
|
|
83
|
+
expect(def.steps.find((s) => s.id === 'stage_verify_docx')?.tool).toBe(
|
|
84
|
+
'Bash',
|
|
85
|
+
);
|
|
86
|
+
expect(def.steps.find((s) => s.id === 'final_report')?.type).toBe('echo');
|
|
87
|
+
});
|
|
88
|
+
|
|
89
|
+
it('锁定 Word 核心约束:知乎长文、客户图全用、上下文生图、docx OPC', async () => {
|
|
90
|
+
const def = await parseWorkflowFile(wordPath);
|
|
91
|
+
const all = JSON.stringify(def, null, 2);
|
|
92
|
+
|
|
93
|
+
for (const needle of [
|
|
94
|
+
'知乎深度文章',
|
|
95
|
+
'总结',
|
|
96
|
+
'扩写',
|
|
97
|
+
'观点',
|
|
98
|
+
'论证',
|
|
99
|
+
'图文混排',
|
|
100
|
+
'所有客户图',
|
|
101
|
+
'必须使用',
|
|
102
|
+
'source_file',
|
|
103
|
+
'final_file',
|
|
104
|
+
'article_section',
|
|
105
|
+
'material.md',
|
|
106
|
+
'article.md',
|
|
107
|
+
'skill: docx',
|
|
108
|
+
'markdown-implicit_figures',
|
|
109
|
+
'implicit_figures',
|
|
110
|
+
'OPC',
|
|
111
|
+
'opc_check.py',
|
|
112
|
+
'WORD_DOCX_PNG_CONTENT_TYPE_ADDED',
|
|
113
|
+
'无客户图',
|
|
114
|
+
'纯 topic',
|
|
115
|
+
'至少 3',
|
|
116
|
+
'至少 5',
|
|
117
|
+
'不得为空',
|
|
118
|
+
'text-to-image',
|
|
119
|
+
]) {
|
|
120
|
+
expect(all).toContain(needle);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
expect(all).toContain('现代科技风');
|
|
124
|
+
expect(all).toContain('知乎配图');
|
|
125
|
+
expect(all).toContain('抽象背景');
|
|
126
|
+
expect(all).toContain('禁止空泛');
|
|
127
|
+
expect(all).toContain('避免 Markdown 图片 alt 文本被渲染成额外可见图注');
|
|
128
|
+
});
|
|
129
|
+
|
|
130
|
+
it('纯 topic 模式:无客户图也必须按 image_intensity 生成文生图并闸门校验', async () => {
|
|
131
|
+
const def = await parseWorkflowFile(wordPath);
|
|
132
|
+
const gate = def.steps.find((s) => s.id === 'stage_topic_image_gate');
|
|
133
|
+
const all = JSON.stringify(def, null, 2);
|
|
134
|
+
const gateText = JSON.stringify(gate, null, 2);
|
|
135
|
+
const gateCommand = String(gate?.args?.command ?? '');
|
|
136
|
+
|
|
137
|
+
expect(gate?.tool).toBe('Bash');
|
|
138
|
+
expect(gateText).toContain('pure topic mode');
|
|
139
|
+
expect(gateText).toContain('WORD_TOPIC_IMAGE_GATE_FAILED');
|
|
140
|
+
expect(gateCommand).toContain('"minimal": 1');
|
|
141
|
+
expect(gateCommand).toContain('"balanced": 3');
|
|
142
|
+
expect(gateCommand).toContain('"rich": 5');
|
|
143
|
+
expect(gateText).toContain('img_plan.json');
|
|
144
|
+
expect(gateText).toContain('image_map.json');
|
|
145
|
+
expect(gateText).toContain('article.md');
|
|
146
|
+
expect(gateText).toContain('text-to-image');
|
|
147
|
+
|
|
148
|
+
for (const needle of [
|
|
149
|
+
'img_plan.json` 不得为空',
|
|
150
|
+
'`minimal`:至少 1 张',
|
|
151
|
+
'`balanced`:至少 3 张',
|
|
152
|
+
'`rich`:至少 5 张',
|
|
153
|
+
'`file`、`mode`、`aspect`、`prompt`',
|
|
154
|
+
'`mode` 必须是 `text-to-image`',
|
|
155
|
+
'章节观点、上下文、场景和图注意图',
|
|
156
|
+
]) {
|
|
157
|
+
expect(all).toContain(needle);
|
|
158
|
+
}
|
|
159
|
+
});
|
|
160
|
+
|
|
161
|
+
it('stage_extract 清理旧素材残留,纯 topic 不会误读上次 source/assets', async () => {
|
|
162
|
+
const def = await parseWorkflowFile(wordPath);
|
|
163
|
+
const extract = def.steps.find((s) => s.id === 'stage_extract');
|
|
164
|
+
const command = String(extract?.args?.command ?? '');
|
|
165
|
+
|
|
166
|
+
expect(command).toContain('./build/source.md');
|
|
167
|
+
expect(command).toContain('rm -rf ./build/assets');
|
|
168
|
+
expect(command).toContain('mkdir -p ./build/assets');
|
|
169
|
+
expect(command).toContain('./build/word_topic_image_gate.json');
|
|
170
|
+
expect(command).toContain('./build/word_topic_image_gate.md');
|
|
171
|
+
});
|
|
172
|
+
|
|
173
|
+
it('生成配图失败时会在导出前硬失败,不会把渐变占位图交付进 Word', async () => {
|
|
174
|
+
const def = await parseWorkflowFile(wordPath);
|
|
175
|
+
const gate = def.steps.find((s) => s.id === 'stage_generated_image_gate');
|
|
176
|
+
const command = String(gate?.args?.command ?? '');
|
|
177
|
+
|
|
178
|
+
expect(gate?.tool).toBe('Bash');
|
|
179
|
+
expect(gate?.onError).toBe('halt');
|
|
180
|
+
expect(String(gate?.when)).toContain('image_generation_report.json');
|
|
181
|
+
expect(command).toContain('qualityOk');
|
|
182
|
+
expect(command).toContain('8192');
|
|
183
|
+
expect(command).toContain('WORD_GENERATED_IMAGE_GATE_FAILED');
|
|
184
|
+
});
|
|
185
|
+
|
|
186
|
+
it('不包含 PPT 专属固定画布 / HTML deck / PPTX 导出链路', async () => {
|
|
187
|
+
const def = await parseWorkflowFile(wordPath);
|
|
188
|
+
const all = JSON.stringify(def, null, 2);
|
|
189
|
+
const ids = def.steps.map((s) => s.id);
|
|
190
|
+
|
|
191
|
+
for (const forbiddenId of [
|
|
192
|
+
'stage_design_doc',
|
|
193
|
+
'stage_build_loop',
|
|
194
|
+
'visual_quality_gate',
|
|
195
|
+
'stage_export_pptx',
|
|
196
|
+
]) {
|
|
197
|
+
expect(ids).not.toContain(forbiddenId);
|
|
198
|
+
}
|
|
199
|
+
for (const forbidden of [
|
|
200
|
+
'deck.html',
|
|
201
|
+
'design.json',
|
|
202
|
+
'export_pptx',
|
|
203
|
+
'visual_quality_gate',
|
|
204
|
+
]) {
|
|
205
|
+
expect(all).not.toContain(forbidden);
|
|
206
|
+
}
|
|
207
|
+
});
|
|
208
|
+
});
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ============================================================
|
|
3
|
+
* test/workflows.smoke.test.ts
|
|
4
|
+
* ------------------------------------------------------------
|
|
5
|
+
* 内置工作流「解析+校验」冒烟测试 —— 守护「引擎对所有 workflows/*.yaml 的通用支持」。
|
|
6
|
+
*
|
|
7
|
+
* 为什么需要它(真实缺口):
|
|
8
|
+
* `listWorkflows()` 对损坏 yaml 是**静默跳过**(loader.ts catch→warn→continue),
|
|
9
|
+
* 而既有 loader 单测只显式校验了 book-review-short.yaml 一个内置工作流。
|
|
10
|
+
* 于是若某次引擎/loader/schema 改动破坏了 plan / youtube-shorts / adaptive-research /
|
|
11
|
+
* e2e-write-greet 等的结构,**没有任何测试会失败**——它只会被悄悄忽略。
|
|
12
|
+
* 本文件把「每个内置工作流都能 parse + validate 通过」锁成不变量:任一被改坏即红。
|
|
13
|
+
*
|
|
14
|
+
* 隔离性(同 loader.test.ts 的教训):
|
|
15
|
+
* 直接定位 packageRoot 的 workflows 目录 + `parseWorkflowFile()` 逐个解析,
|
|
16
|
+
* **零依赖 getWorkingDir() 全局状态**,避免其它测试文件经 mock.module 留下的污染。
|
|
17
|
+
* ============================================================
|
|
18
|
+
*/
|
|
19
|
+
|
|
20
|
+
import { describe, expect, it } from 'bun:test';
|
|
21
|
+
import { readdirSync } from 'node:fs';
|
|
22
|
+
import { join } from 'node:path';
|
|
23
|
+
|
|
24
|
+
import { parseWorkflowFile } from '../src/loader.js';
|
|
25
|
+
|
|
26
|
+
// packageRoot 下的 workflows 目录(不依赖 getWorkingDir)。
|
|
27
|
+
// import.meta.dir = plugins/workflow-runner/test;向上三级到 minimal-agent 根。
|
|
28
|
+
// 兼容 Windows:用 [/\\] 同时匹配两种路径分隔符(同 loader.test.ts:94 的教训)。
|
|
29
|
+
const WORKFLOWS_DIR = join(
|
|
30
|
+
import.meta.dir.replace(/[/\\]test$/, ''), // plugins/workflow-runner
|
|
31
|
+
'..', // plugins
|
|
32
|
+
'..', // minimal-agent 根
|
|
33
|
+
'workflows',
|
|
34
|
+
);
|
|
35
|
+
|
|
36
|
+
// 内置工作流的「全集快照」:意外删除/改名任一个即红(防止悄悄少掉一个工作流)。
|
|
37
|
+
const EXPECTED_WORKFLOWS = [
|
|
38
|
+
'adaptive-research',
|
|
39
|
+
'book-review-short',
|
|
40
|
+
'e2e-write-greet',
|
|
41
|
+
'plan',
|
|
42
|
+
'ppt',
|
|
43
|
+
'ralph-loop',
|
|
44
|
+
'webppt',
|
|
45
|
+
'word',
|
|
46
|
+
'youtube-shorts',
|
|
47
|
+
].sort();
|
|
48
|
+
|
|
49
|
+
function yamlFiles(): string[] {
|
|
50
|
+
return readdirSync(WORKFLOWS_DIR)
|
|
51
|
+
.filter((f) => f.endsWith('.yaml') || f.endsWith('.yml'))
|
|
52
|
+
.sort();
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
describe('内置 workflows/*.yaml 解析+校验冒烟', () => {
|
|
56
|
+
// 逐个文件成测:哪个被改坏,失败信息直接点名是哪个工作流。
|
|
57
|
+
for (const file of yamlFiles()) {
|
|
58
|
+
it(`${file} 能被 parseWorkflowFile 解析且通过校验`, async () => {
|
|
59
|
+
const def = await parseWorkflowFile(join(WORKFLOWS_DIR, file));
|
|
60
|
+
expect(typeof def.name).toBe('string');
|
|
61
|
+
expect(def.name.length).toBeGreaterThan(0);
|
|
62
|
+
expect(def.description.length).toBeGreaterThan(0);
|
|
63
|
+
expect(def.steps.length).toBeGreaterThan(0);
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
it('内置工作流全集齐全(没有被悄悄删除/改名)', async () => {
|
|
68
|
+
const defs = await Promise.all(
|
|
69
|
+
yamlFiles().map((f) => parseWorkflowFile(join(WORKFLOWS_DIR, f))),
|
|
70
|
+
);
|
|
71
|
+
const names = defs.map((d) => d.name).sort();
|
|
72
|
+
for (const expected of EXPECTED_WORKFLOWS) {
|
|
73
|
+
expect(names).toContain(expected);
|
|
74
|
+
}
|
|
75
|
+
});
|
|
76
|
+
});
|