@hanamorilabs/tab 0.1.17 → 0.1.18
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/cli.js +10 -2
- package/dist/version.js +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -365,9 +365,17 @@ async function resolveAgent(config, opts = {}) {
|
|
|
365
365
|
let created;
|
|
366
366
|
if (project) {
|
|
367
367
|
chosen = byName.get(project.agent);
|
|
368
|
-
if (chosen &&
|
|
368
|
+
if (chosen && harness !== "any" && (chosen.harness ?? "any") !== "any" && chosen.harness !== harness) {
|
|
369
|
+
// An older one-Agent-per-folder file (or a hand edit) points this harness at an Agent tied to
|
|
370
|
+
// another one. The proxies would refuse every call (wrong_harness), so pick the right Agent now;
|
|
371
|
+
// the answer is written for this harness only and the file's other harnesses keep theirs.
|
|
372
|
+
warn(`${project.file} names Agent ${bold(chosen.name)} for ${harness}, but it is a ${chosen.harness} Agent. Pick the Agent this folder runs ${harness} as.`);
|
|
373
|
+
chosen = undefined;
|
|
374
|
+
}
|
|
375
|
+
else if (chosen && cached) {
|
|
369
376
|
return cached;
|
|
370
|
-
|
|
377
|
+
}
|
|
378
|
+
else if (!chosen) {
|
|
371
379
|
warn(`${project.file} names Agent ${bold(project.agent)}, which ${listed.flock.name} no longer has (archived or deleted). Pick the Agent this folder runs as now.`);
|
|
372
380
|
}
|
|
373
381
|
}
|
package/dist/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/** Written by scripts/write-version.mjs from package.json at build; `tab version` prints it. */
|
|
2
|
-
export const TAB_VERSION = "0.1.
|
|
2
|
+
export const TAB_VERSION = "0.1.18";
|