@zq-silk/yui 0.7.1 → 0.8.2
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 +27 -28
- package/README.md +79 -71
- package/dist/cli/commandCatalog.js +283 -136
- package/dist/cli/completion.js +3 -3
- package/dist/cli/helpRenderer.js +3 -0
- package/dist/cli/interactionPolicy.js +48 -33
- package/dist/cli/interactiveSelection.js +1 -1
- package/dist/cli/invocationRouter.js +3 -2
- package/dist/cli/roleWizard.js +8 -8
- package/dist/cli.js +189 -93
- package/dist/commands/agentCommands.js +5 -5
- package/dist/commands/configCommands.js +351 -104
- package/dist/commands/configOverview.js +60 -0
- package/dist/commands/deliveryGuardPreflight.js +2 -2
- package/dist/commands/globalRoleCommands.js +9 -9
- package/dist/commands/profileCommands.js +8 -8
- package/dist/commands/resourcesCommands.js +6 -5
- package/dist/commands/taskCommands.js +111 -59
- package/dist/commands/taskRoleRuntimeStatus.js +3 -1
- package/dist/commands/telemetryCommands.js +11 -6
- package/dist/config/configCatalog.js +42 -0
- package/dist/config/yuiConfig.js +80 -35
- package/dist/context/sessionBootstrapManifest.js +1 -1
- package/dist/controller/clientRuntime.js +0 -2
- package/dist/controller/controller.js +21 -9
- package/dist/controller/fileSchedulerStoreAdapter.js +409 -79
- package/dist/controller/resourceInventory.js +9 -5
- package/dist/controller/runtime.js +112 -25
- package/dist/controller/runtimeLaunchCoordinator.js +18 -78
- package/dist/controller/structuredProviderObservation.js +273 -0
- package/dist/doctor/doctor.js +2 -2
- package/dist/executor/agentAdapter.js +40 -0
- package/dist/executor/agentExecutor.js +31 -7
- package/dist/executor/executorRegistry.js +11 -49
- package/dist/executor/fileRoleLaunchPlanner.js +115 -37
- package/dist/lifecycle/canonicalLifecycleEvent.js +5 -2
- package/dist/resources/autoResourceGc.js +3 -1
- package/dist/review/reviewConfig.js +0 -2
- package/dist/run/agentRun.js +2 -2
- package/dist/run/providerRetry.js +29 -16
- package/dist/run/providerRetryConfig.js +5 -3
- package/dist/runtime/agentHost.js +767 -158
- package/dist/runtime/builtinAgentDrivers.js +1 -5
- package/dist/runtime/codexAppServerRuntime.js +67 -60
- package/dist/runtime/exactControlPlane.js +7 -2
- package/dist/runtime/index.js +6 -2
- package/dist/runtime/launchBroker.js +30 -8
- package/dist/runtime/launchDiagnostics.js +1 -1
- package/dist/runtime/providerAuthorityFence.js +24 -0
- package/dist/runtime/providerControl.js +63 -0
- package/dist/runtime/providerRecoveryDecision.js +55 -0
- package/dist/runtime/providerRuntimeIdentity.js +269 -19
- package/dist/runtime/runtimeBinding.js +20 -11
- package/dist/runtime/structuredProviderHost.js +476 -0
- package/dist/runtime/tmuxAdapters.js +143 -42
- package/dist/scheduler/activeRoleRunDelivery.js +206 -120
- package/dist/scheduler/leaderWakeupProcessor.js +141 -16
- package/dist/scheduler/roleRunStall.js +12 -9
- package/dist/setup/setupCommand.js +153 -492
- package/dist/storage/compatibleTaskStore.js +9 -5
- package/dist/storage/migration/productionRegistry.js +169 -0
- package/dist/storage/taskStore.js +22 -3
- package/dist/telemetry/sqliteTelemetryStore.js +9 -1
- package/dist/telemetry/telemetryConfig.js +1 -18
- package/dist/telemetry/telemetryStore.js +2 -2
- package/dist/telemetry/telemetryWiring.js +6 -5
- package/dist/tmux/tmuxManager.js +1 -1
- package/dist/web/webSnapshot.js +5 -3
- package/i18n/README.zh-CN.md +48 -40
- package/package.json +1 -1
- package/skills/yui-leader/SKILL.md +12 -5
- package/skills/yui-operator/SKILL.md +44 -6
- package/skills/yui-runtime/SKILL.md +1 -1
|
@@ -296,9 +296,12 @@ Choose before creating the WorkItem:
|
|
|
296
296
|
credentials, user-owned independent Session, durable lifecycle, or repeated
|
|
297
297
|
dispatches to a Task-bound Worker instance.
|
|
298
298
|
|
|
299
|
-
Keep review execution separate from implementation.
|
|
300
|
-
|
|
301
|
-
|
|
299
|
+
Keep review execution separate from implementation. No global Reviewer is
|
|
300
|
+
required: when review is disabled, inspect and decide directly or delegate a
|
|
301
|
+
bounded review to a native subagent or ordinary Worker. When a managed
|
|
302
|
+
ReviewRound is explicitly configured, its reviewer uses the single built-in
|
|
303
|
+
write-capable `reviewer` Profile, but Yui grants that capability only inside a
|
|
304
|
+
fresh ReviewRound-owned worktree created from its exact frozen scope:
|
|
302
305
|
the assigned WorkItem Candidate or the committed Integration heads of a
|
|
303
306
|
Task-final Review. Never reuse the Candidate/Worker workspace or its
|
|
304
307
|
implementation Role Session. Codex and Claude may use their normal configured
|
|
@@ -319,7 +322,7 @@ Before the first delegated WorkItem, or after the Profile catalog changes,
|
|
|
319
322
|
inspect the available Profiles:
|
|
320
323
|
|
|
321
324
|
```sh
|
|
322
|
-
yui profile list
|
|
325
|
+
yui config profile list
|
|
323
326
|
```
|
|
324
327
|
|
|
325
328
|
Choose the Profile by the work's meaning. `worker`, `implementer`, and
|
|
@@ -375,7 +378,7 @@ use `worker`. A Profile is required for this path:
|
|
|
375
378
|
|
|
376
379
|
```sh
|
|
377
380
|
yui task work update <work-id> running
|
|
378
|
-
yui profile show <worker|explorer|implementer|reviewer|profile-id>
|
|
381
|
+
yui config profile show <worker|explorer|implementer|reviewer|profile-id>
|
|
379
382
|
```
|
|
380
383
|
|
|
381
384
|
Read the selected Profile and incorporate all applicable portable constraints
|
|
@@ -495,6 +498,10 @@ After any Candidate is submitted, inspect its exact policy, Run result,
|
|
|
495
498
|
ReviewRounds, checks, and workspace through the exact Run Context Pack and its
|
|
496
499
|
authorized expansions.
|
|
497
500
|
|
|
501
|
+
- No configured review policy: review the Candidate directly, or delegate a
|
|
502
|
+
bounded evidence-gathering review to a native subagent or ordinary Worker,
|
|
503
|
+
then make the Leader-owned accept/reject decision. Do not create a Reviewer
|
|
504
|
+
Role merely to satisfy an old setup convention.
|
|
498
505
|
- `always`: wait for the automatically requested ReviewRound to become
|
|
499
506
|
terminal. Never bypass an active round.
|
|
500
507
|
- `leader`: decide whether the existing evidence is sufficient. Request Agent
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: yui-operator
|
|
3
|
-
description: Route multi-project user requests into Yui Tasks, preserve durable intent, present progress, answer inputs, and administer lifecycle without taking over Leader decisions.
|
|
3
|
+
description: Route multi-project user requests into Yui Tasks, configure Yui through confirmed conversation, preserve durable intent, present progress, answer inputs, and administer lifecycle without taking over Leader decisions.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Yui Operator
|
|
@@ -46,6 +46,44 @@ mind and avoid imposing a fixed heading, field, section, or character
|
|
|
46
46
|
template; one semantic event should have one concise summary unless a later
|
|
47
47
|
role adds a genuinely new decision or impact.
|
|
48
48
|
|
|
49
|
+
## Configure Yui through conversation
|
|
50
|
+
|
|
51
|
+
Treat configuration as an Operator-owned conversation, not a list of commands
|
|
52
|
+
the user must discover or run. Start every configuration discussion by reading
|
|
53
|
+
both the complete effective state and Yui's configuration catalog:
|
|
54
|
+
|
|
55
|
+
```sh
|
|
56
|
+
yui --json config show
|
|
57
|
+
yui --json config describe
|
|
58
|
+
yui --json config describe <system|runtime|workflow|resources|tools|agent|role|profile|completion>
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
Consume the top-level `data` field. Explain the relevant current values, what
|
|
62
|
+
each setting changes, its accepted values or referenced records, and when the
|
|
63
|
+
change takes effect. Distinguish stored values from effective defaults and say
|
|
64
|
+
when a live Role Session must be stopped and relaunched. Do not infer choices
|
|
65
|
+
from old setup conventions: Review, Worker, Profiles, and completion may
|
|
66
|
+
intentionally be absent after the minimum setup. Leader is part of the minimum
|
|
67
|
+
Task-execution configuration and must be present.
|
|
68
|
+
|
|
69
|
+
For Agent-dependent Role choices such as model, effort, provider permission,
|
|
70
|
+
search, settings source, or service tier, also read
|
|
71
|
+
`yui --json config agent capabilities <agent-id>`. Treat that live-or-cached
|
|
72
|
+
catalog and its freshness warnings as the choice authority; never invent a
|
|
73
|
+
provider value from memory.
|
|
74
|
+
|
|
75
|
+
When the user wants a change, narrow the discussion to the affected domains,
|
|
76
|
+
present the exact before/after behavior and material consequences, and obtain
|
|
77
|
+
confirmation before mutating configuration. Then perform only the confirmed
|
|
78
|
+
`yui config ...` commands yourself, read `yui --json config show` back, and
|
|
79
|
+
when the catalog says a Controller restart is required, include that impact in
|
|
80
|
+
the confirmation and run `yui controller restart` after saving. Report the
|
|
81
|
+
verified result. Never make the user execute mechanical CLI steps,
|
|
82
|
+
never parse human tables, never expose secret environment values, and never
|
|
83
|
+
silently create a Reviewer or enable global review. A Leader may review work
|
|
84
|
+
directly or delegate review to an ordinary Worker unless the user explicitly
|
|
85
|
+
configures a review Role and policy.
|
|
86
|
+
|
|
49
87
|
## Route across Projects and Tasks
|
|
50
88
|
|
|
51
89
|
Inspect the catalog, Tasks, and global input Inbox before routing:
|
|
@@ -192,11 +230,11 @@ When the user requires a specific Leader or Worker provider, inspect Roles
|
|
|
192
230
|
before routing:
|
|
193
231
|
|
|
194
232
|
```sh
|
|
195
|
-
yui profile list
|
|
196
|
-
yui profile show <profile>
|
|
197
|
-
yui role list
|
|
198
|
-
yui role show leader
|
|
199
|
-
yui role show worker
|
|
233
|
+
yui config profile list
|
|
234
|
+
yui config profile show <profile>
|
|
235
|
+
yui config role list
|
|
236
|
+
yui config role show leader
|
|
237
|
+
yui config role show worker
|
|
200
238
|
yui task role list <task-id>
|
|
201
239
|
yui task work list <task-id>
|
|
202
240
|
yui task integration list <task-id>
|
|
@@ -41,7 +41,7 @@ For a global Operator or custom GlobalRole Session, load the stable exact view
|
|
|
41
41
|
before routing or acting:
|
|
42
42
|
|
|
43
43
|
```sh
|
|
44
|
-
"$YUI_SESSION_CLI"
|
|
44
|
+
"$YUI_SESSION_CLI" session context "$YUI_ROLE" --json
|
|
45
45
|
```
|
|
46
46
|
|
|
47
47
|
Global context grants no Task implementation workspace. Read a Task only after
|