@team-ai/teamai-cli 0.22.9 → 0.22.11
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 +7 -4
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -63335,6 +63335,9 @@ async function syncLocalAgent(context) {
|
|
|
63335
63335
|
}
|
|
63336
63336
|
const pruned = await pruneDeadWorkspaceBindings(config);
|
|
63337
63337
|
const currentPath = await resolveWorkspacePath(context.cwd);
|
|
63338
|
+
if (resolveProjectAssociationMode(config) === "manual" && currentPath && !config.workspaceBindings[currentPath]) {
|
|
63339
|
+
await persistWorkspaceBinding(config, context.cwd, currentPath, 0, "__skipped__");
|
|
63340
|
+
}
|
|
63338
63341
|
const stamped = stampWorkspaceTool(config, currentPath, context.tool ?? "workbuddy");
|
|
63339
63342
|
if (pruned || stamped) {
|
|
63340
63343
|
await saveLocalAgentConfig(config);
|
|
@@ -63516,11 +63519,11 @@ async function initLocalAgentHttp(options2) {
|
|
|
63516
63519
|
createdAt: existing2?.createdAt ?? (/* @__PURE__ */ new Date()).toISOString(),
|
|
63517
63520
|
workspaceBindings: existing2?.workspaceBindings ?? {},
|
|
63518
63521
|
userGroupId: existing2?.userGroupId,
|
|
63519
|
-
userGroupName: existing2?.userGroupName
|
|
63520
|
-
// A re-init keeps auto/manual. A first install, and an older config that
|
|
63521
|
-
// never recorded a choice, both ask once.
|
|
63522
|
-
projectAssociationMode: existing2?.projectAssociationMode === "auto" || existing2?.projectAssociationMode === "manual" ? existing2.projectAssociationMode : "unset"
|
|
63522
|
+
userGroupName: existing2?.userGroupName
|
|
63523
63523
|
};
|
|
63524
|
+
if (existing2?.projectAssociationMode === "auto" || existing2?.projectAssociationMode === "manual") {
|
|
63525
|
+
config.projectAssociationMode = existing2.projectAssociationMode;
|
|
63526
|
+
}
|
|
63524
63527
|
await ensureDir(getLocalAgentHome());
|
|
63525
63528
|
await saveLocalAgentConfig(config);
|
|
63526
63529
|
if (options2.token) {
|