allagents 0.31.0-next.1 → 0.31.0-next.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 +11 -7
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -28815,7 +28815,7 @@ var package_default;
|
|
|
28815
28815
|
var init_package = __esm(() => {
|
|
28816
28816
|
package_default = {
|
|
28817
28817
|
name: "allagents",
|
|
28818
|
-
version: "0.31.0-next.
|
|
28818
|
+
version: "0.31.0-next.2",
|
|
28819
28819
|
description: "CLI tool for managing multi-repo AI agent workspaces with plugin synchronization",
|
|
28820
28820
|
type: "module",
|
|
28821
28821
|
bin: {
|
|
@@ -29164,20 +29164,24 @@ async function runInit() {
|
|
|
29164
29164
|
if (Ct(fromSource)) {
|
|
29165
29165
|
return;
|
|
29166
29166
|
}
|
|
29167
|
-
|
|
29168
|
-
if (
|
|
29169
|
-
|
|
29167
|
+
let selectedClients;
|
|
29168
|
+
if (!fromSource) {
|
|
29169
|
+
const prompted = await promptForClients();
|
|
29170
|
+
if (prompted === null) {
|
|
29171
|
+
return;
|
|
29172
|
+
}
|
|
29173
|
+
selectedClients = prompted;
|
|
29170
29174
|
}
|
|
29171
29175
|
const s = Ie();
|
|
29172
29176
|
s.start("Initializing workspace...");
|
|
29173
29177
|
const options = {
|
|
29174
29178
|
...fromSource ? { from: fromSource } : {},
|
|
29175
|
-
...selectedClients.length > 0 ? { clients: selectedClients } : {}
|
|
29179
|
+
...selectedClients && selectedClients.length > 0 ? { clients: selectedClients } : {}
|
|
29176
29180
|
};
|
|
29177
29181
|
const result = await initWorkspace(targetPath, options);
|
|
29178
29182
|
s.stop("Workspace initialized");
|
|
29179
29183
|
const lines = [`Path: ${result.path}`];
|
|
29180
|
-
if (selectedClients.length > 0) {
|
|
29184
|
+
if (selectedClients && selectedClients.length > 0) {
|
|
29181
29185
|
lines.push(`Clients: ${selectedClients.join(", ")}`);
|
|
29182
29186
|
}
|
|
29183
29187
|
if (result.syncResult) {
|
|
@@ -30464,7 +30468,7 @@ var initCmd = import_cmd_ts2.command({
|
|
|
30464
30468
|
try {
|
|
30465
30469
|
const targetPath = path ?? ".";
|
|
30466
30470
|
let clients = client ? parseClientEntries(client) : undefined;
|
|
30467
|
-
if (!clients) {
|
|
30471
|
+
if (!clients && !from) {
|
|
30468
30472
|
const { promptForClients: promptForClients2 } = await Promise.resolve().then(() => (init_prompt_clients(), exports_prompt_clients));
|
|
30469
30473
|
const prompted = await promptForClients2();
|
|
30470
30474
|
if (prompted === null) {
|