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,81 @@
|
|
|
1
|
+
---
|
|
2
|
+
schemaVersion: 2
|
|
3
|
+
guideVersion: 1
|
|
4
|
+
status: identity-verified
|
|
5
|
+
platforms: [macOS]
|
|
6
|
+
match:
|
|
7
|
+
bundleId: [com.apple.systempreferences]
|
|
8
|
+
processName: [System Settings, 系统设置]
|
|
9
|
+
displayName: [System Settings, 系统设置]
|
|
10
|
+
irreversible:
|
|
11
|
+
- intent:change-security-setting
|
|
12
|
+
- intent:remove-account
|
|
13
|
+
- intent:remove-profile
|
|
14
|
+
- intent:forget-network
|
|
15
|
+
- intent:reset-or-erase-device
|
|
16
|
+
- intent:disable-protection
|
|
17
|
+
verifiedRange:
|
|
18
|
+
macOS: package identity on macOS 26.5.2 only
|
|
19
|
+
windows: not-applicable
|
|
20
|
+
lastVerifiedAt: 2026-07-29
|
|
21
|
+
verification:
|
|
22
|
+
environment: macOS 26.5.2
|
|
23
|
+
verifiedAt: 2026-07-29
|
|
24
|
+
verifiedItems: [identity]
|
|
25
|
+
unverifiedItems: [layout, controls, flows]
|
|
26
|
+
---
|
|
27
|
+
|
|
28
|
+
# macOS 系统设置 App Guide
|
|
29
|
+
|
|
30
|
+
## 稳定身份
|
|
31
|
+
|
|
32
|
+
### macOS
|
|
33
|
+
|
|
34
|
+
- Bundle ID:`com.apple.systempreferences`
|
|
35
|
+
- 进程名:`System Settings`
|
|
36
|
+
- 常见显示名:`System Settings`、`系统设置`
|
|
37
|
+
|
|
38
|
+
### Windows
|
|
39
|
+
|
|
40
|
+
- 不适用;Windows Settings 应建立独立指南,不能复用本指南的身份和交互事实。
|
|
41
|
+
|
|
42
|
+
## AX / UIA 可发现线索
|
|
43
|
+
|
|
44
|
+
- **macOS AX 候选线索**:设置窗口、搜索框、侧边栏、详情区、开关、弹出菜单、Sheet 和认证面板应从当前 AX 快照确认。
|
|
45
|
+
- **焦点通道可用层级**:未实机验证。
|
|
46
|
+
- 搜索结果、侧边栏选择和详情页标题必须同时核对;不能因同名设置项推断当前页面。
|
|
47
|
+
|
|
48
|
+
## 常见自绘区
|
|
49
|
+
|
|
50
|
+
- Apple ID、隐私与安全、网络详情、软件更新、扩展和第三方设置面板可能包含 SwiftUI、自定义列表、系统认证 Sheet 或外部扩展视图;AX 完整度尚未实机验证。
|
|
51
|
+
|
|
52
|
+
## 风险动作与不可逆动作
|
|
53
|
+
|
|
54
|
+
- 修改隐私、安全、登录项、辅助功能、屏幕录制或开发者设置。
|
|
55
|
+
- 移除账户、配置描述文件、VPN、证书或已保存网络。
|
|
56
|
+
- 关闭防护、自动更新、磁盘加密或其他安全能力。
|
|
57
|
+
- 重置、抹掉、退出 Apple ID 或改变系统级数据同步。
|
|
58
|
+
- 任何要求管理员密码、生物识别或恢复密钥的动作。
|
|
59
|
+
|
|
60
|
+
## 弹窗与恢复
|
|
61
|
+
|
|
62
|
+
| 弹窗或状态 | 可观察线索 | 安全恢复出口 |
|
|
63
|
+
|---|---|---|
|
|
64
|
+
| 管理员认证或生物识别 | 系统认证 Sheet、密码或 Touch ID 提示 | 交还用户处理,不读取密码或恢复密钥 |
|
|
65
|
+
| 需要重启/注销 | 系统确认 Sheet | 保持未提交状态,等待用户明确确认 |
|
|
66
|
+
| 设置被组织管理 | 管理提示、灰显控件或描述文件信息 | 停止尝试,不绕过策略并报告管理来源 |
|
|
67
|
+
| 软件更新正在准备/安装 | 进度、重启提示或不可交互状态 | 不强制结束进程,等待系统状态稳定 |
|
|
68
|
+
| 搜索后页面切换失败 | 搜索结果仍选中但详情标题未变化 | 清除搜索,重新确认侧边栏与详情标题 |
|
|
69
|
+
|
|
70
|
+
## 可替代 API
|
|
71
|
+
|
|
72
|
+
- 读取可由官方系统命令或受控 Runtime API可靠获得的状态时,优先使用系统通道。
|
|
73
|
+
- 仅使用 Apple公开支持的命令或配置接口;无公开接口的设置必须通过系统设置并接受系统认证。
|
|
74
|
+
- 不使用私有 defaults key、数据库修改或权限数据库写入代替用户授权。
|
|
75
|
+
|
|
76
|
+
## 已验证范围
|
|
77
|
+
|
|
78
|
+
- **验证环境**:macOS 26.5.2;应用包元数据版本显示 15.0。
|
|
79
|
+
- **已验证**:Bundle ID、进程/显示名候选和应用包版本元数据。
|
|
80
|
+
- **仍需验证**:AX 层级、搜索、各设置页、认证 Sheet、组织管理、更新与重启恢复。
|
|
81
|
+
- 不把应用包版本 15.0 推断为已验证的界面版本范围。
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
---
|
|
2
|
+
schemaVersion: 2
|
|
3
|
+
guideVersion: 1
|
|
4
|
+
status: draft
|
|
5
|
+
platforms: [macOS, Windows]
|
|
6
|
+
match:
|
|
7
|
+
bundleId: [com.microsoft.Excel]
|
|
8
|
+
processName: [Microsoft Excel, EXCEL.EXE]
|
|
9
|
+
displayName: [Microsoft Excel, Excel]
|
|
10
|
+
irreversible:
|
|
11
|
+
- intent:replace-workbook
|
|
12
|
+
- intent:discard-unsaved-changes
|
|
13
|
+
- intent:delete-worksheet
|
|
14
|
+
- intent:publish-or-share-workbook
|
|
15
|
+
- intent:run-macro
|
|
16
|
+
verifiedRange:
|
|
17
|
+
macOS: not-verified
|
|
18
|
+
windows: not-verified
|
|
19
|
+
lastVerifiedAt: never
|
|
20
|
+
verification:
|
|
21
|
+
environment: 未验证
|
|
22
|
+
verifiedAt: never
|
|
23
|
+
verifiedItems: []
|
|
24
|
+
unverifiedItems: [identity, layout, controls, flows]
|
|
25
|
+
---
|
|
26
|
+
|
|
27
|
+
# Microsoft Excel App Guide
|
|
28
|
+
|
|
29
|
+
## 稳定身份
|
|
30
|
+
|
|
31
|
+
### macOS
|
|
32
|
+
|
|
33
|
+
- Bundle ID 候选:`com.microsoft.Excel`
|
|
34
|
+
- 进程名候选:`Microsoft Excel`
|
|
35
|
+
|
|
36
|
+
### Windows
|
|
37
|
+
|
|
38
|
+
- 可执行文件名候选:`EXCEL.EXE`
|
|
39
|
+
- 常见显示名:`Microsoft Excel`、`Excel`
|
|
40
|
+
|
|
41
|
+
## AX / UIA 可发现线索
|
|
42
|
+
|
|
43
|
+
- **macOS AX 候选线索**:工作簿窗口、功能区、名称框、公式栏、工作表标签和状态栏应从当前 AX 快照确认。
|
|
44
|
+
- **Windows UIA 候选线索**:Ribbon、名称框、公式栏、工作表区域、工作表标签和 Backstage 页面应从当前 UIA 树确认。
|
|
45
|
+
- **焦点通道可用层级**:macOS 与 Windows 均未实机验证。
|
|
46
|
+
- 活动单元格、编辑模式、选区范围和筛选状态必须从当前应用状态确认,不能从旧截图推断。
|
|
47
|
+
|
|
48
|
+
## 常见自绘区
|
|
49
|
+
|
|
50
|
+
- 单元格网格、图表、数据透视表、切片器、条件格式、公式建议和大型工作表可能只有部分 Accessibility 信息,需视觉或文件级验证;尚未实机验证。
|
|
51
|
+
|
|
52
|
+
## 风险动作与不可逆动作
|
|
53
|
+
|
|
54
|
+
- 覆盖已有工作簿或关闭时放弃修改。
|
|
55
|
+
- 删除工作表、表格列、名称、查询或连接。
|
|
56
|
+
- 运行宏、刷新外部连接或启用外部内容。
|
|
57
|
+
- 对外共享、发布或导出包含敏感数据的工作簿。
|
|
58
|
+
- 批量粘贴、填充和排序可能改变大范围数据。
|
|
59
|
+
|
|
60
|
+
## 弹窗与恢复
|
|
61
|
+
|
|
62
|
+
| 弹窗或状态 | 可观察线索 | 安全恢复出口 |
|
|
63
|
+
|---|---|---|
|
|
64
|
+
| 格式兼容性或功能丢失警告 | 保存时出现模态说明 | 另存目标格式副本,未获授权不覆盖 |
|
|
65
|
+
| 文件锁定/共同编辑冲突 | 只读、上传失败或冲突副本提示 | 停止覆盖并保留本地副本 |
|
|
66
|
+
| 公式或数据连接警告 | 安全横幅、凭据或刷新确认 | 不启用连接,不输入凭据,等待用户决定 |
|
|
67
|
+
| 大数据操作未完成 | 状态栏仍在计算/刷新或应用无响应 | 等待状态完成并通过文件/工作簿状态复核 |
|
|
68
|
+
|
|
69
|
+
## 可替代 API
|
|
70
|
+
|
|
71
|
+
- 创建、读取和校验 XLSX 优先使用现有电子表格/Open XML 工具。
|
|
72
|
+
- Microsoft Graph 仅用于已授权的云端工作簿。
|
|
73
|
+
- 数据正确性优先通过结构化单元格值、公式和工作簿重开验证,视觉检查用于布局和图表。
|
|
74
|
+
|
|
75
|
+
## 已验证范围
|
|
76
|
+
|
|
77
|
+
- **验证环境**:当前机器未安装 Microsoft Excel。
|
|
78
|
+
- **已验证**:无。
|
|
79
|
+
- **仍需验证**:macOS/Windows 身份、AX/UIA 层级、单元格导航、公式编辑、图表、保存冲突和外部连接流程。
|
|
80
|
+
- 不声明任何 Excel 版本已受支持。
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
---
|
|
2
|
+
schemaVersion: 2
|
|
3
|
+
guideVersion: 1
|
|
4
|
+
status: draft
|
|
5
|
+
platforms: [macOS, Windows]
|
|
6
|
+
match:
|
|
7
|
+
bundleId: [com.microsoft.Powerpoint]
|
|
8
|
+
processName: [Microsoft PowerPoint, POWERPNT.EXE]
|
|
9
|
+
displayName: [Microsoft PowerPoint, PowerPoint]
|
|
10
|
+
irreversible:
|
|
11
|
+
- intent:replace-presentation
|
|
12
|
+
- intent:discard-unsaved-changes
|
|
13
|
+
- intent:delete-slides
|
|
14
|
+
- intent:publish-or-share-presentation
|
|
15
|
+
- intent:run-macro
|
|
16
|
+
verifiedRange:
|
|
17
|
+
macOS: not-verified
|
|
18
|
+
windows: not-verified
|
|
19
|
+
lastVerifiedAt: never
|
|
20
|
+
verification:
|
|
21
|
+
environment: 未验证
|
|
22
|
+
verifiedAt: never
|
|
23
|
+
verifiedItems: []
|
|
24
|
+
unverifiedItems: [identity, layout, controls, flows]
|
|
25
|
+
---
|
|
26
|
+
|
|
27
|
+
# Microsoft PowerPoint App Guide
|
|
28
|
+
|
|
29
|
+
## 稳定身份
|
|
30
|
+
|
|
31
|
+
### macOS
|
|
32
|
+
|
|
33
|
+
- Bundle ID 候选:`com.microsoft.Powerpoint`
|
|
34
|
+
- 进程名候选:`Microsoft PowerPoint`
|
|
35
|
+
|
|
36
|
+
### Windows
|
|
37
|
+
|
|
38
|
+
- 可执行文件名候选:`POWERPNT.EXE`
|
|
39
|
+
- 常见显示名:`Microsoft PowerPoint`、`PowerPoint`
|
|
40
|
+
|
|
41
|
+
## AX / UIA 可发现线索
|
|
42
|
+
|
|
43
|
+
- **macOS AX 候选线索**:演示文稿窗口、功能区、缩略图窗格、幻灯片画布、备注区和状态栏应从当前 AX 快照确认。
|
|
44
|
+
- **Windows UIA 候选线索**:Ribbon、缩略图列表、编辑画布、备注区、状态栏和 Backstage 页面应从当前 UIA 树确认。
|
|
45
|
+
- **焦点通道可用层级**:macOS 与 Windows 均未实机验证。
|
|
46
|
+
- 当前幻灯片、选中对象、文本编辑态和放映态必须在每次操作前重新确认。
|
|
47
|
+
|
|
48
|
+
## 常见自绘区
|
|
49
|
+
|
|
50
|
+
- 幻灯片画布、母版、动画时间线、SmartArt、图表、媒体和放映窗口可能只有部分 Accessibility 信息,需视觉兜底;尚未实机验证。
|
|
51
|
+
|
|
52
|
+
## 风险动作与不可逆动作
|
|
53
|
+
|
|
54
|
+
- 覆盖已有演示文稿或关闭时放弃修改。
|
|
55
|
+
- 删除多张幻灯片、母版、媒体或批量对象。
|
|
56
|
+
- 对外共享、发布、广播或导出演示文稿。
|
|
57
|
+
- 运行宏、启用外部内容或更新链接媒体。
|
|
58
|
+
- 替换字体、主题或版式可能影响全部幻灯片。
|
|
59
|
+
|
|
60
|
+
## 弹窗与恢复
|
|
61
|
+
|
|
62
|
+
| 弹窗或状态 | 可观察线索 | 安全恢复出口 |
|
|
63
|
+
|---|---|---|
|
|
64
|
+
| 字体/媒体/格式兼容性提示 | 保存或导出时出现警告 | 保留源文件并另存副本 |
|
|
65
|
+
| 文件锁定或云端冲突 | 只读、冲突副本或上传失败 | 停止覆盖,保留本地副本 |
|
|
66
|
+
| 放映窗口占据前台 | 出现独立放映窗口或全屏状态 | 退出放映后重新确认编辑窗口和当前幻灯片 |
|
|
67
|
+
| 媒体导出仍在处理 | 进度窗口或状态仍未完成 | 等待输出文件存在且大小稳定,再重新打开验证 |
|
|
68
|
+
|
|
69
|
+
## 可替代 API
|
|
70
|
+
|
|
71
|
+
- 创建、修改和校验 PPTX 优先使用现有演示文稿/Open XML 工具。
|
|
72
|
+
- Microsoft Graph 仅用于已授权的云端文件。
|
|
73
|
+
- PowerPoint Computer Use 主要用于视觉验收、特殊编辑和放映检查,不替代结构化文档管线。
|
|
74
|
+
|
|
75
|
+
## 已验证范围
|
|
76
|
+
|
|
77
|
+
- **验证环境**:当前机器未安装 Microsoft PowerPoint。
|
|
78
|
+
- **已验证**:无。
|
|
79
|
+
- **仍需验证**:macOS/Windows 身份、AX/UIA 层级、普通/母版/放映视图、媒体、保存冲突和导出流程。
|
|
80
|
+
- 不声明任何 PowerPoint 版本已受支持。
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
---
|
|
2
|
+
schemaVersion: 2
|
|
3
|
+
guideVersion: 1
|
|
4
|
+
status: draft
|
|
5
|
+
platforms: [macOS, Windows]
|
|
6
|
+
match:
|
|
7
|
+
bundleId: [com.microsoft.Word]
|
|
8
|
+
processName: [Microsoft Word, WINWORD.EXE]
|
|
9
|
+
displayName: [Microsoft Word, Word]
|
|
10
|
+
irreversible:
|
|
11
|
+
- intent:replace-document
|
|
12
|
+
- intent:discard-unsaved-changes
|
|
13
|
+
- intent:publish-or-share-document
|
|
14
|
+
- intent:run-macro
|
|
15
|
+
verifiedRange:
|
|
16
|
+
macOS: not-verified
|
|
17
|
+
windows: not-verified
|
|
18
|
+
lastVerifiedAt: never
|
|
19
|
+
verification:
|
|
20
|
+
environment: 未验证
|
|
21
|
+
verifiedAt: never
|
|
22
|
+
verifiedItems: []
|
|
23
|
+
unverifiedItems: [identity, layout, controls, flows]
|
|
24
|
+
---
|
|
25
|
+
|
|
26
|
+
# Microsoft Word App Guide
|
|
27
|
+
|
|
28
|
+
## 稳定身份
|
|
29
|
+
|
|
30
|
+
### macOS
|
|
31
|
+
|
|
32
|
+
- Bundle ID 候选:`com.microsoft.Word`
|
|
33
|
+
- 进程名候选:`Microsoft Word`
|
|
34
|
+
|
|
35
|
+
### Windows
|
|
36
|
+
|
|
37
|
+
- 可执行文件名候选:`WINWORD.EXE`
|
|
38
|
+
- 常见显示名:`Microsoft Word`、`Word`
|
|
39
|
+
|
|
40
|
+
## AX / UIA 可发现线索
|
|
41
|
+
|
|
42
|
+
- **macOS AX 候选线索**:文档窗口、标题栏、功能区/工具栏、文档编辑区、导航窗格和状态栏应从当前 AX 快照分别确认。
|
|
43
|
+
- **Windows UIA 候选线索**:Ribbon、文档视图、导航窗格、状态栏和 Backstage 页面应从当前 UIA 树确认,不能依赖固定 AutomationId。
|
|
44
|
+
- **焦点通道可用层级**:macOS 与 Windows 均未实机验证。
|
|
45
|
+
- 当前插入点、选区和受保护状态必须通过焦点/选区状态确认,不能仅凭页面外观判断。
|
|
46
|
+
|
|
47
|
+
## 常见自绘区
|
|
48
|
+
|
|
49
|
+
- 页面画布、批注/修订气泡、浮动对象、公式、图表和嵌入对象可能只有部分 Accessibility 信息,需视觉兜底;尚未实机验证。
|
|
50
|
+
|
|
51
|
+
## 风险动作与不可逆动作
|
|
52
|
+
|
|
53
|
+
- 覆盖已有文档或将新格式覆盖回原文件。
|
|
54
|
+
- 关闭时选择“不保存”。
|
|
55
|
+
- 对外共享、发布或发送文档。
|
|
56
|
+
- 运行宏、启用外部内容或解除受保护视图。
|
|
57
|
+
- 接受/拒绝全部修订会批量改变文档内容。
|
|
58
|
+
|
|
59
|
+
## 弹窗与恢复
|
|
60
|
+
|
|
61
|
+
| 弹窗或状态 | 可观察线索 | 安全恢复出口 |
|
|
62
|
+
|---|---|---|
|
|
63
|
+
| 保存格式兼容性警告 | 模态对话框提示功能可能丢失 | 保留原格式或另存副本,未获授权不覆盖 |
|
|
64
|
+
| 文件已被修改或锁定 | 冲突、只读或上传失败提示 | 停止覆盖,保留编辑副本并报告冲突 |
|
|
65
|
+
| 受保护视图/宏安全提示 | 文档上方安全横幅或模态提示 | 不启用内容,除非用户明确授权 |
|
|
66
|
+
| 恢复文档窗格 | 出现多个自动恢复版本 | 保留全部候选,交由用户选择权威版本 |
|
|
67
|
+
|
|
68
|
+
## 可替代 API
|
|
69
|
+
|
|
70
|
+
- 结构化创建或修改 DOCX 优先使用 Open XML/现有文档工具,再由 Word 做最终视觉验收。
|
|
71
|
+
- Microsoft Graph 仅适用于已授权的 OneDrive/SharePoint 文件,不代替本机文件权限。
|
|
72
|
+
- 文件保存成功以文件存在、哈希/修改时间和可重新打开验证为准。
|
|
73
|
+
|
|
74
|
+
## 已验证范围
|
|
75
|
+
|
|
76
|
+
- **验证环境**:当前机器未安装 Microsoft Word。
|
|
77
|
+
- **已验证**:无。
|
|
78
|
+
- **仍需验证**:macOS/Windows 身份、AX/UIA 层级、不同视图、修订、保存冲突、宏安全和恢复流程。
|
|
79
|
+
- 不声明任何 Word 版本已受支持。
|