@zq-silk/yui 0.6.13 → 0.6.14
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 +34 -5
- package/dist/cli/commandCatalog.js +173 -57
- package/dist/cli/helpRenderer.js +3 -1
- package/dist/cli.js +99 -11
- package/dist/commands/configCommands.js +521 -171
- package/dist/commands/deliveryGuardPreflight.js +2 -2
- package/dist/commands/executionAuditCommands.js +56 -3
- package/dist/commands/projectCommands.js +504 -2
- package/dist/commands/releaseCommands.js +0 -1
- package/dist/commands/taskActor.js +17 -0
- package/dist/commands/taskBaseCommands.js +29 -0
- package/dist/commands/taskCommands.js +577 -126
- package/dist/commands/taskContextCommand.js +36 -2
- package/dist/commands/taskNextActionCommand.js +48 -3
- package/dist/commands/taskPublicationCommands.js +319 -0
- package/dist/commands/taskRoleRuntimeStatus.js +83 -59
- package/dist/commands/telemetryCommands.js +14 -13
- package/dist/config/yuiConfig.js +161 -8
- package/dist/context/sessionContextBudget.js +68 -0
- package/dist/context/wakeNotification.js +65 -0
- package/dist/controller/clientRuntime.js +2 -1
- package/dist/controller/ephemeralResourceReaper.js +2 -1
- package/dist/controller/fileSchedulerStoreAdapter.js +183 -16
- package/dist/controller/jobSupervisor.js +5 -4
- package/dist/controller/resourceCleanupLinux.js +6 -6
- package/dist/controller/resourceInventoryLinux.js +3 -3
- package/dist/controller/runtime.js +88 -10
- package/dist/controller/updateReconciliation.js +4 -3
- package/dist/doctor/doctor.js +26 -7
- package/dist/executor/agentConfigurationCatalog.js +18 -0
- package/dist/executor/fileRoleLaunchPlanner.js +3 -3
- package/dist/lifecycle/contextBudgetRollover.js +81 -0
- package/dist/lifecycle/exactRunTerminalization.js +11 -1
- package/dist/lifecycle/providerErrorClass.js +33 -12
- package/dist/observability/executionAudit.js +214 -6
- package/dist/output/table.js +18 -0
- package/dist/repository/gitWorkspace.js +92 -0
- package/dist/repository/project.js +218 -4
- package/dist/repository/taskBaseFreshness.js +318 -0
- package/dist/repository/taskWorkspacePreparer.js +16 -2
- package/dist/review/deltaRecheck.js +232 -0
- package/dist/review/reviewConfig.js +31 -0
- package/dist/review/reviewFindingLedger.js +5 -1
- package/dist/review/reviewRound.js +156 -1
- package/dist/run/providerRetry.js +21 -3
- package/dist/run/providerRetryConfig.js +13 -60
- package/dist/run/recoveryProjection.js +199 -0
- package/dist/runtime/builtinAgentDrivers.js +3 -0
- package/dist/runtime/builtinTranscriptUsage.js +76 -32
- package/dist/runtime/continuationManager.js +17 -0
- package/dist/runtime/index.js +2 -0
- package/dist/runtime/launchDiagnostics.js +154 -0
- package/dist/runtime/lifecycleReservation.js +13 -0
- package/dist/runtime/providerContinuation.js +38 -0
- package/dist/runtime/providerContinuationReconciliationService.js +1 -0
- package/dist/runtime/providerErrorCodes.js +278 -0
- package/dist/runtime/runtimeHealthPolicy.js +20 -0
- package/dist/runtime/runtimeObservation.js +1 -0
- package/dist/runtime/runtimeProjection.js +115 -23
- package/dist/runtime/tmuxAdapters.js +242 -48
- package/dist/scheduler/activeRoleRunDelivery.js +139 -3
- package/dist/scheduler/activeTaskProgress.js +4 -3
- package/dist/scheduler/leaderWakeupProcessor.js +105 -15
- package/dist/scheduler/roleRunLiveness.js +2 -1
- package/dist/scheduler/roleRunStall.js +3 -2
- package/dist/scheduler/taskWake.js +72 -0
- package/dist/scheduler/wakeReason.js +64 -0
- package/dist/scheduler/wakeupQueue.js +2 -1
- package/dist/setup/setupCommand.js +1 -1
- package/dist/storage/migration/productionRegistry.js +325 -1
- package/dist/storage/sqliteSchema.js +61 -2
- package/dist/storage/sqliteStore.js +129 -2
- package/dist/storage/storeRpc.js +1 -0
- package/dist/storage/taskStore.js +262 -5
- package/dist/storage/upgrade/recordVersions.js +6 -1
- package/dist/storage/upgrade/sqliteStateMigration.js +22 -2
- package/dist/task/completionReadiness.js +282 -0
- package/dist/task/publicationReference.js +123 -0
- package/dist/task/taskRecordReference.js +3 -1
- package/dist/telemetry/telemetryConfig.js +23 -18
- package/dist/telemetry/telemetryWiring.js +8 -8
- package/dist/tmux/tmuxManager.js +50 -9
- package/dist/web/assets/client/i18n.js +4 -0
- package/dist/web/assets/client/view.js +18 -0
- package/dist/web/webSnapshot.js +100 -10
- package/i18n/README.zh-CN.md +5 -5
- package/package.json +1 -1
- package/skills/yui-leader/SKILL.md +49 -10
- package/skills/yui-operator/SKILL.md +13 -3
- package/skills/yui-worker/SKILL.md +8 -0
|
@@ -29,6 +29,23 @@ export function taskActor(environment, taskId) {
|
|
|
29
29
|
}
|
|
30
30
|
return "user";
|
|
31
31
|
}
|
|
32
|
+
export function projectActor(environment) {
|
|
33
|
+
const env = environment ?? {};
|
|
34
|
+
if (env.YUI_SESSION_SCOPE === "task")
|
|
35
|
+
return "agent";
|
|
36
|
+
if (env.YUI_SESSION_SCOPE === "global") {
|
|
37
|
+
if (env.YUI_ROLE === "operator")
|
|
38
|
+
return "operator";
|
|
39
|
+
throw usageError("A managed global Session may manage Project Knowledge only as Operator.");
|
|
40
|
+
}
|
|
41
|
+
if (env.YUI_ROLE !== undefined
|
|
42
|
+
|| env.YUI_AGENT_ID !== undefined
|
|
43
|
+
|| env.YUI_RUN_ID !== undefined
|
|
44
|
+
|| env.YUI_NATIVE_SESSION_ID !== undefined) {
|
|
45
|
+
throw usageError("Managed Agent identity is incomplete; refusing to infer user authority.");
|
|
46
|
+
}
|
|
47
|
+
return "user";
|
|
48
|
+
}
|
|
32
49
|
/**
|
|
33
50
|
* rr8: Resolve the caller identity for a `job.start`/`job.cancel` request from
|
|
34
51
|
* the managed Session environment. The Controller binds the declared job owner
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { usageError } from "../errors/cliError.js";
|
|
2
|
+
import { assertTaskBaseFreshnessForCompletion, inspectTaskBaseFreshness, renderTaskBaseFreshnessReport } from "../repository/taskBaseFreshness.js";
|
|
3
|
+
export async function runTaskBaseStatusCommand(args, store, options = {}) {
|
|
4
|
+
const usage = "Task base status usage: yui task base status <task> [--refresh].";
|
|
5
|
+
const refresh = args.includes("--refresh");
|
|
6
|
+
const positionals = args.filter((arg) => arg !== "--refresh");
|
|
7
|
+
if (positionals.length !== 1 || positionals[0]?.trim() === "") {
|
|
8
|
+
throw usageError(usage);
|
|
9
|
+
}
|
|
10
|
+
const report = await inspectTaskBaseFreshness(positionals[0], store, {
|
|
11
|
+
git: options.git,
|
|
12
|
+
refresh
|
|
13
|
+
});
|
|
14
|
+
assertReportIsDeliverySafe(report);
|
|
15
|
+
return {
|
|
16
|
+
kind: "output",
|
|
17
|
+
output: renderTaskBaseFreshnessReport(report),
|
|
18
|
+
data: report
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
function assertReportIsDeliverySafe(report) {
|
|
22
|
+
try {
|
|
23
|
+
assertTaskBaseFreshnessForCompletion(report);
|
|
24
|
+
}
|
|
25
|
+
catch (error) {
|
|
26
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
27
|
+
throw usageError(`${renderTaskBaseFreshnessReport(report)}${message}`);
|
|
28
|
+
}
|
|
29
|
+
}
|