@zq-silk/yui 0.15.8 → 0.15.11
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/ARCHITECTURE.md +2 -0
- package/ARCHITECTURE.zh-CN.md +151 -0
- package/README.md +211 -14
- package/dist/agent/launchEnvironment.js +7 -0
- package/dist/artifacts/artifactCapability.js +74 -0
- package/dist/artifacts/artifactCommitLock.js +249 -0
- package/dist/artifacts/artifactPaths.js +151 -0
- package/dist/artifacts/gitArtifactRef.js +146 -0
- package/dist/artifacts/managedGit.js +332 -0
- package/dist/artifacts/taskArtifactRepository.js +277 -0
- package/dist/cli/commandCatalog.js +40 -16
- package/dist/cli/interactionPolicy.js +3 -3
- package/dist/cli/updateOrchestrator.js +24 -1
- package/dist/cli/updatePorts.js +7 -3
- package/dist/cli/upgradeCommand.js +42 -2
- package/dist/cli.js +403 -93
- package/dist/commands/globalRoleCommands.js +314 -4
- package/dist/commands/operatorCommands.js +33 -2
- package/dist/commands/projectCommands.js +6 -7
- package/dist/commands/releaseCommands.js +18 -0
- package/dist/commands/taskActivationCommands.js +22 -0
- package/dist/commands/taskActor.js +25 -0
- package/dist/commands/taskCommands.js +846 -155
- package/dist/commands/taskIntegrationCommands.js +16 -38
- package/dist/commands/taskIntegrationQueueCommands.js +1 -1
- package/dist/commands/taskRemoteDeliveryCommand.js +6 -6
- package/dist/commands/taskRoleRuntimeStatus.js +35 -0
- package/dist/context/runContextPack.js +28 -16
- package/dist/context/taskContext.js +64 -5
- package/dist/controller/agentHostObservation.js +155 -0
- package/dist/controller/clientRuntime.js +17 -2
- package/dist/controller/controller.js +11 -2
- package/dist/controller/fileSchedulerStoreAdapter.js +446 -13
- package/dist/controller/globalInputDelivery.js +119 -0
- package/dist/controller/jobControl.js +6 -2
- package/dist/controller/resourceInventory.js +14 -4
- package/dist/controller/resourceInventoryLinux.js +2 -6
- package/dist/controller/runtime.js +81 -6
- package/dist/controller/runtimeEventInbox.js +32 -3
- package/dist/controller/runtimeEventProcessor.js +26 -6
- package/dist/controller/runtimeHookRunFence.js +75 -19
- package/dist/controller/structuredProviderObservation.js +133 -70
- package/dist/coordination/workMailboxQueue.js +5 -0
- package/dist/execution/workItemExecutionProjection.js +1 -1
- package/dist/executor/agentExecutor.js +64 -4
- package/dist/executor/executorRegistry.js +3 -0
- package/dist/executor/fileRoleLaunchPlanner.js +78 -118
- package/dist/integration/deliveryObligation.js +2 -1
- package/dist/integration/gitIntegrationService.js +312 -382
- package/dist/integration/integrationAttempt.js +30 -4
- package/dist/integration/integrationQueueService.js +7 -7
- package/dist/integration/integrationSourceApplication.js +323 -0
- package/dist/kernel/builtinCapabilities.js +32 -24
- package/dist/message/globalInterrupt.js +33 -0
- package/dist/message/inputControlResolution.js +106 -0
- package/dist/message/message.js +423 -0
- package/dist/message/messageContinuation.js +126 -3
- package/dist/message/taskInterrupt.js +34 -0
- package/dist/observability/orchestrationMetrics.js +1 -1
- package/dist/plugins/pluginService.js +11 -3
- package/dist/release/releaseHandover.js +22 -0
- package/dist/release/releaseWorkflowPorts.js +15 -7
- package/dist/repository/gitWorkspace.js +72 -15
- package/dist/repository/taskWorkspaceCoordinator.js +134 -0
- package/dist/repository/taskWorkspacePreparer.js +120 -49
- package/dist/repository/workItemCandidateSnapshot.js +34 -0
- package/dist/resources/projectResource.js +0 -48
- package/dist/resources/projectResourceService.js +3 -81
- package/dist/resources/resourceDiscovery.js +3 -2
- package/dist/runtime/agentHost.js +152 -72
- package/dist/runtime/agentHostCompatibility.js +127 -0
- package/dist/runtime/agentHostProtocol.js +53 -0
- package/dist/runtime/executionEnvironment.js +0 -19
- package/dist/runtime/launchBroker.js +6 -0
- package/dist/runtime/sessionReconciliation.js +4 -4
- package/dist/runtime/taskRuntimeIsolation.js +30 -6
- package/dist/runtime/tmuxAdapters.js +5 -3
- package/dist/scheduler/operatorEvent.js +4 -0
- package/dist/scheduler/taskExecutionProjection.js +12 -1
- package/dist/scheduler/wakeReason.js +7 -1
- package/dist/scheduler/wakeupQueue.js +2 -0
- package/dist/setup/setupCommand.js +29 -16
- package/dist/storage/homeLayout.js +130 -0
- package/dist/storage/migrations/artifactsToGit.js +338 -0
- package/dist/storage/migrations/collapseWorktreeLayout.js +963 -0
- package/dist/storage/migrations/integrationContinuation.js +104 -0
- package/dist/storage/migrations/submitIntent.js +126 -0
- package/dist/storage/migrations/unifyHomeLayout.js +925 -0
- package/dist/storage/sqliteSchema.js +173 -7
- package/dist/storage/sqliteStore.js +41 -22
- package/dist/storage/storageVersions.js +1 -1
- package/dist/storage/storeRpc.js +2 -1
- package/dist/storage/upgrade/upgradeOrchestrator.js +95 -2
- package/dist/task/archiveDiagnostics.js +128 -0
- package/dist/task/nextAction.js +44 -11
- package/dist/task/taskActivation.js +26 -0
- package/dist/task/taskActivationService.js +85 -69
- package/dist/task/taskSubmission.js +236 -0
- package/dist/web/assets/client/app.js +58 -2
- package/dist/web/assets/client/components.js +1 -0
- package/dist/web/assets/client/i18n.js +6 -0
- package/dist/web/assets/client/taskSurface.js +202 -7
- package/dist/web/assets/client/view.js +7 -4
- package/dist/web/assets/shell.js +23 -0
- package/dist/web/assets/styles/layout.js +1 -1
- package/dist/web/assets/styles/widgets.js +12 -0
- package/dist/web/webServer.js +135 -4
- package/dist/web/webSnapshot.js +4 -3
- package/dist/web/webTaskSurface.js +225 -8
- package/dist/workItem/workItem.js +14 -10
- package/dist/workspace/workItemChangeSetManager.js +18 -2
- package/docs/agent-result-consumption.md +2 -0
- package/docs/agent-result-consumption.zh-CN.md +81 -0
- package/docs/agent-runtime-drivers.md +2 -0
- package/docs/agent-runtime-drivers.zh-CN.md +77 -0
- package/docs/architecture/README.md +44 -32
- package/docs/architecture/README.zh-CN.md +43 -0
- package/docs/architecture/capabilities-and-resources.md +118 -79
- package/docs/architecture/capabilities-and-resources.zh-CN.md +83 -0
- package/docs/managed-turn-and-session-runtime.md +2 -0
- package/docs/managed-turn-and-session-runtime.zh-CN.md +180 -0
- package/docs/observability/README.md +2 -0
- package/docs/observability/README.zh-CN.md +71 -0
- package/docs/plugin-sdk.md +320 -217
- package/docs/plugin-sdk.zh-CN.md +293 -0
- package/docs/provider-runtime.md +2 -0
- package/docs/provider-runtime.zh-CN.md +132 -0
- package/docs/release-workflow.md +41 -0
- package/docs/release-workflow.zh-CN.md +266 -0
- package/docs/roles-and-configuration.md +2 -0
- package/docs/roles-and-configuration.zh-CN.md +96 -0
- package/docs/sqlite-control-plane-design.md +225 -1
- package/docs/sqlite-control-plane-design.zh-CN.md +62 -0
- package/docs/task-dag-semantics.md +80 -57
- package/docs/task-dag-semantics.zh-CN.md +59 -0
- package/docs/task-delivery.md +2 -0
- package/docs/task-delivery.zh-CN.md +82 -0
- package/docs/task-local-identity.md +2 -0
- package/docs/task-local-identity.zh-CN.md +58 -0
- package/docs/testing/verification-levels.md +26 -0
- package/docs/testing/verification-levels.zh-CN.md +80 -0
- package/i18n/README.zh-CN.md +199 -10
- package/package.json +2 -1
- package/skills/yui-leader/SKILL.md +88 -331
- package/skills/yui-leader/references/execution.md +405 -0
- package/skills/yui-leader/references/integration.md +52 -2
- package/skills/yui-leader/references/planning.md +109 -0
- package/skills/yui-leader/references/task-plugins.md +8 -4
- package/skills/yui-operator/SKILL.md +22 -4
- package/skills/yui-runtime/SKILL.md +27 -0
- package/skills/yui-runtime/references/publication.md +20 -0
|
@@ -91,6 +91,33 @@ Global context grants no Task implementation workspace. Read a Task only after
|
|
|
91
91
|
the Operator has routed to its public/task-authorized context command; never
|
|
92
92
|
invent a Task AgentRun identity for a GlobalRole.
|
|
93
93
|
|
|
94
|
+
A GlobalRole's durable input uses the same three actions as a Task Role,
|
|
95
|
+
addressed by the Role's own name instead of a Task: `yui role message
|
|
96
|
+
queue|steer <global-role>` and `yui role interrupt <global-role>`. Queue and steer
|
|
97
|
+
save an owned Message; bare interrupt records a control request, not a new
|
|
98
|
+
Message. Each uses a stable request id and that Role's own Session; none fabricates a Task or
|
|
99
|
+
runId to reuse Task-scoped delivery. `queue` delivers at the Role's next legal
|
|
100
|
+
opportunity and is idempotent by request id. `steer` and `interrupt` affect only
|
|
101
|
+
the exact current native Turn — a stale `--expected-target`, an incapable plan,
|
|
102
|
+
or an unproven delivery leaves the Message saved and reports the reason, and
|
|
103
|
+
`interrupt` stops only through the Provider's native cancel with an optional
|
|
104
|
+
`--then-message` naming one already-saved GlobalRole Message. When the Role holds
|
|
105
|
+
no live managed Turn, a steer or interrupt is `NO_ACTIVE_TURN` and never falls
|
|
106
|
+
back to another action.
|
|
107
|
+
|
|
108
|
+
New controlled Global Sessions use the existing Host console, not the native
|
|
109
|
+
TUI, with the configured Agent, permissions and workspace unchanged. A live
|
|
110
|
+
unmanaged Session is not silently replaced or adopted; use an explicit Session
|
|
111
|
+
lifecycle action before enabling controlled delivery.
|
|
112
|
+
|
|
113
|
+
Context reads never consume queue entries. Read the referenced Message in full
|
|
114
|
+
from Session Context. Native/transport acceptance is not implementation, and
|
|
115
|
+
`interrupt-requested` is not a stopped Turn or stopped background resources.
|
|
116
|
+
Only an exact terminal and the original Session/writer boundary can release a
|
|
117
|
+
then handoff. An accepted or unconfirmed steer must not be submitted again by
|
|
118
|
+
changing its request id or composing then. A conclusive rejection permits an
|
|
119
|
+
explicit new control attempt; uncertainty does not.
|
|
120
|
+
|
|
94
121
|
## Preserve intent and authority
|
|
95
122
|
|
|
96
123
|
An analysis, diagnosis, or review request is read-only unless the user also
|
|
@@ -20,3 +20,23 @@ Completion does not authorize archive. The Operator obtains authorization for
|
|
|
20
20
|
the exact Task, checks archive eligibility, then uses `--integrated` for verified
|
|
21
21
|
merged delivery or `--abandon` for deliberate non-delivery. General archive
|
|
22
22
|
approval never implies `--force` authority. Preserve the Task record.
|
|
23
|
+
|
|
24
|
+
With explicit force authorization for a completed or retired Task, use
|
|
25
|
+
`yui task archive <task> (--integrated|--abandon) --force`. Force commits the
|
|
26
|
+
archive and stops new Task scheduling before attempting safe foreground cleanup.
|
|
27
|
+
Missing/stale delivery evidence, unresolved execution and cleanup errors become
|
|
28
|
+
warnings with retained resource references; they do not block that commit.
|
|
29
|
+
Authority, lifecycle, identity and mandatory audit persistence still fail closed.
|
|
30
|
+
|
|
31
|
+
Force does not verify a merge, accept work, stop unknown execution, discard dirty
|
|
32
|
+
data or imply abandonment. Keep the requested disposition and original
|
|
33
|
+
Publication/completion evidence. Unverified local commits and resources that
|
|
34
|
+
cannot be safely released stay owned and traceable. Late runtime events remain
|
|
35
|
+
source evidence, not authority to resume or settle unknown input.
|
|
36
|
+
|
|
37
|
+
Read `task show <task> --json` for `archive.warnings`, `retainedResources` and
|
|
38
|
+
cleanup events; `task context` also retains the original records/events. A
|
|
39
|
+
successful archive exit means `archived=true`, not that cleanup fully succeeded.
|
|
40
|
+
If cleanup was interrupted, the Task stays archived. Repeating archive only
|
|
41
|
+
reports current facts; use explicit, exact-owner resource operations after
|
|
42
|
+
inspection instead of re-running broad cleanup. No background retry is implied.
|