@zq-silk/yui 2.3.0 → 2.5.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 +15 -1
- package/dist/artifacts/artifactCapability.js +39 -10
- package/dist/artifacts/imageMetadata.js +120 -0
- package/dist/artifacts/managedGit.js +7 -4
- package/dist/artifacts/taskArtifactRepository.js +6 -0
- package/dist/cli/commandCatalog.js +18 -9
- package/dist/cli/invocationAuthority.js +1 -1
- package/dist/commands/executionAuditCommands.js +5 -0
- package/dist/commands/globalRoleCommands.js +41 -3
- package/dist/commands/projectCommands.js +89 -94
- package/dist/commands/roleSkillValidation.js +4 -8
- package/dist/commands/taskCommands.js +65 -14
- package/dist/commands/taskUsageCommand.js +38 -0
- package/dist/context/roleSessionContext.js +18 -2
- package/dist/context/runContextPack.js +5 -1
- package/dist/context/sessionBootstrapManifest.js +18 -3
- package/dist/context/skillCatalog.js +108 -0
- package/dist/context/skillPackage.js +161 -0
- package/dist/context/taskContext.js +3 -2
- package/dist/context/taskSearch.js +127 -0
- package/dist/controlPlaneCli.js +25 -20
- package/dist/controller/fileSchedulerStoreAdapter.js +39 -8
- package/dist/controller/globalInputDelivery.js +2 -4
- package/dist/controller/jobControl.js +2 -0
- package/dist/controller/nativeHostInput.js +37 -0
- package/dist/controller/providerRetryDelivery.js +4 -2
- package/dist/controller/runtime.js +93 -2
- package/dist/controller/runtimeEventInbox.js +2 -2
- package/dist/controller/runtimeEventProcessor.js +3 -3
- package/dist/doctor/doctor.js +10 -0
- package/dist/execution/reviewMainRun.js +1 -0
- package/dist/execution/workItemMainRun.js +1 -0
- package/dist/executor/agentAdapter.js +3 -5
- package/dist/executor/codexConfigConflict.js +6 -4
- package/dist/executor/effectiveLaunch.js +24 -1
- package/dist/executor/fileRoleLaunchPlanner.js +15 -7
- package/dist/integration/gitIntegrationService.js +7 -12
- package/dist/integration/integrationSourceApplication.js +4 -2
- package/dist/interaction/notificationPresentation.js +85 -0
- package/dist/interaction/operatorPresentation.js +1 -2
- package/dist/job/httpPreview.js +61 -0
- package/dist/job/jobRunner.js +12 -2
- package/dist/kernel/builtinCapabilities.js +3 -1
- package/dist/message/message.js +15 -1
- package/dist/output/rolePresentation.js +4 -1
- package/dist/repository/executionLaneGitSnapshot.js +2 -1
- package/dist/repository/gitCompatibility.js +62 -0
- package/dist/repository/gitWorkspace.js +48 -71
- package/dist/repository/gitWorktreeInventory.js +121 -0
- package/dist/repository/project.js +74 -25
- package/dist/resources/resourceDiscovery.js +2 -2
- package/dist/resources/resourceGc.js +7 -4
- package/dist/resources/resourceRegistrar.js +2 -1
- package/dist/runtime/agentEndpoint.js +8 -0
- package/dist/runtime/agentHost.js +170 -3
- package/dist/runtime/codexAppServerRuntime.js +1 -1
- package/dist/runtime/codexNativeAccess.js +175 -0
- package/dist/runtime/controlledCodexTui.js +116 -0
- package/dist/runtime/publicReply.js +23 -0
- package/dist/runtime/runtimeObservation.js +48 -0
- package/dist/runtime/structuredProviderHost.js +16 -7
- package/dist/runtime/taskCostMetrics.js +133 -0
- package/dist/runtime/taskUsageMetrics.js +11 -2
- package/dist/runtime/taskUsageQuery.js +38 -0
- package/dist/scheduler/leaderWakeupProcessor.js +1 -9
- package/dist/scheduler/taskExecutionProjection.js +2 -0
- package/dist/scheduler/taskObservabilityProjection.js +9 -1
- package/dist/storage/homeLayout.js +13 -0
- package/dist/storage/sqliteSchema.js +44 -0
- package/dist/storage/sqliteStore.js +53 -0
- package/dist/storage/storageVersions.js +1 -1
- package/dist/storage/storeRpc.js +2 -0
- package/dist/storage/taskSearch.js +35 -0
- package/dist/storage/upgrade/projectKnowledgeMigration.js +52 -0
- package/dist/task/ordinaryArchive.js +42 -0
- package/dist/tmux/tmuxManager.js +8 -8
- package/dist/web/assets/assetManifest.js +11 -51
- package/dist/web/assets/client/app/catalog.js +215 -0
- package/dist/web/assets/client/app/main.js +148 -0
- package/dist/web/assets/client/app/selection.js +139 -0
- package/dist/web/assets/client/app/settings.js +326 -0
- package/dist/web/assets/client/app/taskView.js +280 -0
- package/dist/web/assets/client/domain/context.js +96 -0
- package/dist/web/assets/client/domain/records.js +126 -0
- package/dist/web/assets/client/domain/runs.js +119 -0
- package/dist/web/assets/client/domain/taskForms.js +197 -0
- package/dist/web/assets/client/domain/vocab.js +69 -0
- package/dist/web/assets/client/domain/work.js +116 -0
- package/dist/web/assets/client/i18n/en.js +900 -0
- package/dist/web/assets/client/i18n/zh-CN.js +898 -0
- package/dist/web/assets/client/index.js +114 -0
- package/dist/web/assets/client/layout/resizer.js +37 -0
- package/dist/web/assets/client/layout/router.js +35 -0
- package/dist/web/assets/client/layout/shortcuts.js +45 -0
- package/dist/web/assets/client/layout/sizing.js +95 -0
- package/dist/web/assets/client/layout/workspace.js +247 -0
- package/dist/web/assets/client/{api.js → lib/api.js} +20 -4
- package/dist/web/assets/client/{dom.js → lib/dom.js} +24 -12
- package/dist/web/assets/client/{format.js → lib/format.js} +7 -0
- package/dist/web/assets/client/lib/i18n.js +54 -0
- package/dist/web/assets/client/lib/markdown.js +167 -0
- package/dist/web/assets/client/lib/prefs.js +28 -0
- package/dist/web/assets/client/lib/theme.js +68 -0
- package/dist/web/assets/client/ui/containers.js +101 -0
- package/dist/web/assets/client/ui/controls.js +51 -0
- package/dist/web/assets/client/ui/forms.js +48 -0
- package/dist/web/assets/client/ui/metrics.js +137 -0
- package/dist/web/assets/client/ui/primitives.js +92 -0
- package/dist/web/assets/client/ui/text.js +33 -0
- package/dist/web/assets/client/ui/toast.js +12 -0
- package/dist/web/assets/client/views/bodySearch.js +172 -0
- package/dist/web/assets/client/views/createTask.js +85 -0
- package/dist/web/assets/client/views/dock/conversation.js +612 -0
- package/dist/web/assets/client/views/dock/discussion.js +173 -0
- package/dist/web/assets/client/views/dock/preview.js +129 -0
- package/dist/web/assets/client/views/dock/terminal.js +199 -0
- package/dist/web/assets/client/views/globalInput.js +67 -0
- package/dist/web/assets/client/{overview.js → views/overview.js} +61 -51
- package/dist/web/assets/client/{sidebar.js → views/sidebar.js} +56 -62
- package/dist/web/assets/client/views/skills.js +152 -0
- package/dist/web/assets/client/views/task/actions.js +36 -0
- package/dist/web/assets/client/views/task/delivery.js +185 -0
- package/dist/web/assets/client/views/task/deliveryResults.js +159 -0
- package/dist/web/assets/client/views/task/files.js +272 -0
- package/dist/web/assets/client/views/task/observation.js +153 -0
- package/dist/web/assets/client/views/task/overview.js +161 -0
- package/dist/web/assets/client/views/task/page.js +131 -0
- package/dist/web/assets/client/views/task/records.js +163 -0
- package/dist/web/assets/client/views/task/runtime.js +130 -0
- package/dist/web/assets/client/views/task/timeline.js +190 -0
- package/dist/web/assets/shared/geometry.js +19 -0
- package/dist/web/assets/shared/taskTabs.js +8 -0
- package/dist/web/assets/shared/themes.js +93 -0
- package/dist/web/assets/shell/dialogs.js +63 -0
- package/dist/web/assets/shell/dock.js +40 -0
- package/dist/web/assets/shell/index.js +40 -0
- package/dist/web/assets/shell/settings.js +34 -0
- package/dist/web/assets/shell/sidebar.js +45 -0
- package/dist/web/assets/styles/index.js +41 -0
- package/dist/web/assets/styles/{responsive.js → layout/responsive.js} +10 -10
- package/dist/web/assets/styles/{layout.js → layout/workspace.js} +17 -24
- package/dist/web/assets/styles/markdown.js +22 -3
- package/dist/web/assets/styles/tokens.js +10 -63
- package/dist/web/assets/styles/ui/controls.js +76 -0
- package/dist/web/assets/styles/ui/forms.js +46 -0
- package/dist/web/assets/styles/ui/surfaces.js +122 -0
- package/dist/web/assets/styles/views/delivery.js +29 -0
- package/dist/web/assets/styles/views/dock.js +71 -0
- package/dist/web/assets/styles/views/page.js +32 -0
- package/dist/web/assets/styles/views/records.js +70 -0
- package/dist/web/assets/styles/views/settings.js +26 -0
- package/dist/web/assets/styles/views/sidebar.js +74 -0
- package/dist/web/assets/styles/views/task.js +80 -0
- package/dist/web/assets/styles/views/terminal.js +38 -0
- package/dist/web/taskPreviews.js +205 -0
- package/dist/web/tmuxWebTerminal.js +16 -9
- package/dist/web/webConversation.js +373 -0
- package/dist/web/webMaterials.js +155 -0
- package/dist/web/webServer.js +295 -18
- package/dist/web/webSettings.js +331 -0
- package/dist/web/webSkills.js +86 -0
- package/dist/web/webSnapshot.js +40 -8
- package/dist/web/webTaskSurface.js +106 -8
- package/dist/workspace/gitChangeSetCapture.js +3 -1
- package/docs/cli-information-contract.md +1 -1
- package/docs/cli-information-contract.zh-CN.md +1 -1
- package/docs/managed-turn-and-session-runtime.md +31 -0
- package/docs/managed-turn-and-session-runtime.zh-CN.md +22 -0
- package/docs/release-workflow.md +54 -0
- package/docs/release-workflow.zh-CN.md +39 -0
- package/docs/storage-baseline.md +38 -1
- package/docs/storage-baseline.zh-CN.md +22 -0
- package/docs/task-discovery.md +28 -0
- package/docs/testing/verification-levels.md +2 -2
- package/i18n/README.zh-CN.md +1 -1
- package/package.json +1 -1
- package/skills/yui-leader/SKILL.md +5 -4
- package/skills/yui-leader/references/execution.md +2 -1
- package/skills/yui-operator/SKILL.md +3 -0
- package/skills/yui-reviewer/SKILL.md +4 -2
- package/skills/yui-runtime/SKILL.md +43 -2
- package/skills/yui-worker/SKILL.md +3 -2
- package/dist/web/assets/client/app.js +0 -808
- package/dist/web/assets/client/components.js +0 -477
- package/dist/web/assets/client/detail.js +0 -379
- package/dist/web/assets/client/dock.js +0 -309
- package/dist/web/assets/client/evidence.js +0 -364
- package/dist/web/assets/client/forms.js +0 -230
- package/dist/web/assets/client/i18n.js +0 -1277
- package/dist/web/assets/client/markdown.js +0 -114
- package/dist/web/assets/client/records.js +0 -198
- package/dist/web/assets/client/sections.js +0 -349
- package/dist/web/assets/client/theme.js +0 -71
- package/dist/web/assets/shell.js +0 -161
- package/dist/web/assets/styles/components.js +0 -216
- package/dist/web/assets/styles/views.js +0 -309
- /package/dist/web/assets/{icons.js → shared/icons.js} +0 -0
|
@@ -16,6 +16,24 @@ workspace layout, native transcript, or an earlier AgentRun.
|
|
|
16
16
|
|
|
17
17
|
## Enter through the current context
|
|
18
18
|
|
|
19
|
+
Stable instructions and dynamic facts have different lifetimes. On first entry,
|
|
20
|
+
new Session, Manifest/version change, or missing instructions (including after
|
|
21
|
+
compaction/recovery), read the exact Session Manifest and fully load its profile
|
|
22
|
+
and named Skills: `yui-runtime` plus the referenced `yui-leader`, `yui-worker`,
|
|
23
|
+
`yui-reviewer`, `yui-operator`, or custom Role Skills. Resolve IDs to paths and
|
|
24
|
+
versions through that Manifest, never another installed namesake. If those exact
|
|
25
|
+
same-version instructions are already fully available in current context, apply
|
|
26
|
+
them without mechanically rereading. Same Session, prior delivery, and prior
|
|
27
|
+
reads do not prove availability. The short Manifest pointer remains a recovery
|
|
28
|
+
entry, not a cache or authority receipt.
|
|
29
|
+
|
|
30
|
+
Refresh dynamic Task/Session facts before the relevant decision regardless of
|
|
31
|
+
instruction reuse. Leader notifications use the Manifest's `currentCommand`;
|
|
32
|
+
explicit AgentRuns use `loadCommand`/`expandCommand` with the actual newest
|
|
33
|
+
dispatched Run identity. Never execute `<run-id>` placeholders or substitute a
|
|
34
|
+
notification's wake ID for a Run. CLI/Controller identity, scope, Snapshot and
|
|
35
|
+
permission checks remain authoritative on every operation.
|
|
36
|
+
|
|
19
37
|
There are two normal Task entry points. A user may continue directly with the
|
|
20
38
|
current, unrevoked Leader Session: read current context using
|
|
21
39
|
`yui task context <task-id> --json`. Do not request a self-wake, reopen a Task,
|
|
@@ -167,8 +185,13 @@ and digest. A source-change error requires a fresh read, not mixing old and
|
|
|
167
185
|
new chunks. Never use a read cursor to repeat a mutation.
|
|
168
186
|
|
|
169
187
|
Read all pages of a relevant original requirement, result, or authorization
|
|
170
|
-
before acting on it. For a wake, read its complete
|
|
171
|
-
|
|
188
|
+
before acting on it. For a wake, read its complete focused input/result view and
|
|
189
|
+
relevant original Messages. `task wake show <task> <wake>` preserves the fixed
|
|
190
|
+
window and explicit older refs, deduplicates inputs, and provides exact original
|
|
191
|
+
reads. Use `--history` when window history or diagnostics is needed; unrelated
|
|
192
|
+
events and merely started Runs are not required for ordinary result disposition.
|
|
193
|
+
Follow any `contentPage` continuation for either view. The wake contains pointers
|
|
194
|
+
and attributed summaries, not complete reports.
|
|
172
195
|
For unrelated discovery, stop once the necessary evidence is found. Task
|
|
173
196
|
event deltas retain their fixed upper bound and are history, not replacement
|
|
174
197
|
current state. No read acknowledges implementation or consumes a queue.
|
|
@@ -244,6 +267,24 @@ create an InputRequest merely to solicit permission for it.
|
|
|
244
267
|
|
|
245
268
|
## Return evidence and recover within scope
|
|
246
269
|
|
|
270
|
+
When authoring a durable Message or managed final report, put a concise
|
|
271
|
+
`Yui-Summary: <one line>` first when useful for notification readers. Keep the
|
|
272
|
+
summary itself at most 512 UTF-8 bytes, and preserve material failure,
|
|
273
|
+
unverified-result, pending-decision and authority qualifications. Do this as
|
|
274
|
+
part of producing the original, not a separate model call. The optional line
|
|
275
|
+
remains part of the original text; missing or oversized summaries use factual
|
|
276
|
+
templates without blocking delivery. Core may reuse that line as explicitly
|
|
277
|
+
attributed presentation, never parse it into acceptance, review verdict or
|
|
278
|
+
Task state. A returned execution result is not completed requirements; a
|
|
279
|
+
returned review is not approval. Summaries do not replace reading full
|
|
280
|
+
requirements, results or authorizations before decisions.
|
|
281
|
+
|
|
282
|
+
Ordinary Task/Global notifications grant no new Assignment or authority and
|
|
283
|
+
require no separate execution report. Read the referenced originals and advance
|
|
284
|
+
outstanding work within existing authority under the relevant Role Skill.
|
|
285
|
+
Reading context or accepting notification delivery does not implement input.
|
|
286
|
+
Unknown delivery must not be replayed; use the recovery contract below.
|
|
287
|
+
|
|
247
288
|
Provider acceptance, Context load, AgentRun completion, and Task completion are
|
|
248
289
|
separate facts. For an explicitly dispatched managed Task AgentRun, end with one truthful
|
|
249
290
|
final report. Yui automatically correlates that native terminal with the exact
|
|
@@ -104,8 +104,9 @@ once and stop without wrappers, permission broadening, or another AgentRun targe
|
|
|
104
104
|
|
|
105
105
|
Use clear prose. A helpful default is Outcome, Changes, Verification, Risks or
|
|
106
106
|
blockers, and Recommended next action. This is a communication convention, not
|
|
107
|
-
a protocol: Yui preserves the original text and does not
|
|
108
|
-
|
|
107
|
+
a disposition protocol: Yui preserves the original text and does not reject
|
|
108
|
+
missing headings or invalid JSON. The optional `Yui-Summary:` first line
|
|
109
|
+
described in `yui-runtime` is reused only as attributed notification text.
|
|
109
110
|
|
|
110
111
|
Leave managed workspaces intact after handoff. Their owner lifecycle and
|
|
111
112
|
cleanup belong to the Leader and Yui Core.
|