agentwheel 0.16.0 → 0.16.1
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/dist/index.js +21 -8
- package/openpack.json +1 -1
- package/package.json +1 -1
- package/skills/agentwheel/SKILL.md +1 -1
package/dist/index.js
CHANGED
|
@@ -4623,9 +4623,10 @@ function formatPlan(plan) {
|
|
|
4623
4623
|
);
|
|
4624
4624
|
return lines.join("\n");
|
|
4625
4625
|
}
|
|
4626
|
-
function planReport(targets, warnings = []) {
|
|
4626
|
+
function planReport(targets, warnings = [], applied = false) {
|
|
4627
4627
|
return {
|
|
4628
4628
|
schemaVersion: 1,
|
|
4629
|
+
applied,
|
|
4629
4630
|
targets: [...targets].sort(comparePlanReportTargets),
|
|
4630
4631
|
warnings: [...warnings].sort((a, b) => a.localeCompare(b))
|
|
4631
4632
|
};
|
|
@@ -12348,6 +12349,14 @@ async function runInstallCommand(nameOrSource, options, behavior) {
|
|
|
12348
12349
|
if (outputFormat !== "human") {
|
|
12349
12350
|
const report = await buildPlanReport(nameOrSource, normalizedOptions);
|
|
12350
12351
|
if (report.targets.some((target) => target.hasBlockingChanges)) process.exitCode = 1;
|
|
12352
|
+
if (behavior.apply) {
|
|
12353
|
+
await runInstallCommand(
|
|
12354
|
+
nameOrSource,
|
|
12355
|
+
{ ...normalizedOptions, format: "human", json: false },
|
|
12356
|
+
{ apply: true, quiet: true }
|
|
12357
|
+
);
|
|
12358
|
+
report.applied = true;
|
|
12359
|
+
}
|
|
12351
12360
|
process.stdout.write(`${renderReport(report, outputFormat)}
|
|
12352
12361
|
`);
|
|
12353
12362
|
return;
|
|
@@ -12387,12 +12396,14 @@ async function runInstallCommand(nameOrSource, options, behavior) {
|
|
|
12387
12396
|
warn: (message) => console.warn(message)
|
|
12388
12397
|
});
|
|
12389
12398
|
for (const result of results) {
|
|
12390
|
-
|
|
12391
|
-
|
|
12392
|
-
|
|
12399
|
+
if (!behavior.quiet) {
|
|
12400
|
+
console.log(`Profile ${normalizedOptions.profile} / ${result.runtime} / ${result.packageName} at ${result.targetRoot} (${result.transport}):`);
|
|
12401
|
+
console.log(formatPlan(result.plan));
|
|
12402
|
+
if (result.reloaded) console.log(`Reloaded runtime via ${result.reloadCommandSummary}.`);
|
|
12403
|
+
}
|
|
12393
12404
|
if (result.plan.hasBlockingChanges) process.exitCode = 1;
|
|
12394
12405
|
}
|
|
12395
|
-
if (behavior.apply) {
|
|
12406
|
+
if (behavior.apply && !behavior.quiet) {
|
|
12396
12407
|
console.log("Applied.");
|
|
12397
12408
|
}
|
|
12398
12409
|
return;
|
|
@@ -12419,7 +12430,7 @@ async function runInstallCommand(nameOrSource, options, behavior) {
|
|
|
12419
12430
|
}
|
|
12420
12431
|
}
|
|
12421
12432
|
for (const result of await buildGraphPlansForTarget(target, source, { ...targetOptions, scope, extraPackage, reportFormat: outputFormat }, { mode: "install" })) {
|
|
12422
|
-
console.log(formatGraphPlan(result));
|
|
12433
|
+
if (!behavior.quiet) console.log(formatGraphPlan(result));
|
|
12423
12434
|
if (behavior.apply) {
|
|
12424
12435
|
const transport = transportForTarget(target);
|
|
12425
12436
|
const executePlugins = target.executePlugins ?? targetOptions.executePlugins;
|
|
@@ -12433,8 +12444,10 @@ async function runInstallCommand(nameOrSource, options, behavior) {
|
|
|
12433
12444
|
enabled: target.reloadRuntimes ?? shouldReloadRuntimes(targetOptions),
|
|
12434
12445
|
executePlugins
|
|
12435
12446
|
});
|
|
12436
|
-
|
|
12437
|
-
|
|
12447
|
+
if (!behavior.quiet) {
|
|
12448
|
+
console.log(`Applied ${result.plan.adapter} at ${result.plan.targetRoot}.`);
|
|
12449
|
+
if (reloaded) console.log(`Reloaded runtime via ${formatReloadCommands(target.reloadCommands)}.`);
|
|
12450
|
+
}
|
|
12438
12451
|
}
|
|
12439
12452
|
await rm12(result.bundle.root, { recursive: true, force: true });
|
|
12440
12453
|
if (result.plan.hasBlockingChanges) process.exitCode = 1;
|
package/openpack.json
CHANGED
package/package.json
CHANGED