teamai-cli 0.20.0-beta.1 → 0.20.0-beta.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/dist/index.js +10 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -9655,11 +9655,18 @@ async function pushCore(localConfig, teamConfig, options) {
|
|
|
9655
9655
|
log.debug(`Pre-push sync skipped: ${e.message}`);
|
|
9656
9656
|
}
|
|
9657
9657
|
const spin = spinner("Scanning local resources...").start();
|
|
9658
|
+
const scanTeamConfig = selfMode ? {
|
|
9659
|
+
...teamConfig,
|
|
9660
|
+
toolPaths: {
|
|
9661
|
+
...teamConfig.toolPaths,
|
|
9662
|
+
[SELF_KNOWLEDGE_SCAN_KEY]: { skills: ".teamai/skills", rules: ".teamai/rules" }
|
|
9663
|
+
}
|
|
9664
|
+
} : teamConfig;
|
|
9658
9665
|
const pushableTypes = ["skills", "rules", "env", "agents"];
|
|
9659
9666
|
const allItems = [];
|
|
9660
9667
|
for (const type of pushableTypes) {
|
|
9661
9668
|
const handler = getHandler(type);
|
|
9662
|
-
const items = await handler.scanLocalForPush(
|
|
9669
|
+
const items = await handler.scanLocalForPush(scanTeamConfig, localConfig);
|
|
9663
9670
|
allItems.push(...items);
|
|
9664
9671
|
}
|
|
9665
9672
|
spin.stop();
|
|
@@ -9933,6 +9940,7 @@ ${selectedItems.map((i) => `- [${i.type}] ${i.name}`).join("\n")}`
|
|
|
9933
9940
|
}
|
|
9934
9941
|
await saveStateForScope(state, localConfig.scope, localConfig.projectRoot);
|
|
9935
9942
|
}
|
|
9943
|
+
var SELF_KNOWLEDGE_SCAN_KEY;
|
|
9936
9944
|
var init_push = __esm({
|
|
9937
9945
|
"src/push.ts"() {
|
|
9938
9946
|
"use strict";
|
|
@@ -9948,6 +9956,7 @@ var init_push = __esm({
|
|
|
9948
9956
|
init_roles();
|
|
9949
9957
|
init_prompt();
|
|
9950
9958
|
init_fs();
|
|
9959
|
+
SELF_KNOWLEDGE_SCAN_KEY = "__teamai_self_knowledge__";
|
|
9951
9960
|
}
|
|
9952
9961
|
});
|
|
9953
9962
|
|