allagents 0.32.2 → 0.33.0-next.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/README.md +1 -1
- package/dist/index.js +21 -11
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -155,7 +155,7 @@ Create `.allagents/template.code-workspace` for VSCode-specific settings, launch
|
|
|
155
155
|
"settings": {
|
|
156
156
|
"cSpell.words": ["myterm"],
|
|
157
157
|
"chat.agent.maxRequests": 999,
|
|
158
|
-
"chat.
|
|
158
|
+
"chat.useAgentSkills": true
|
|
159
159
|
},
|
|
160
160
|
"launch": {
|
|
161
161
|
"configurations": [
|
package/dist/index.js
CHANGED
|
@@ -26087,7 +26087,7 @@ var init_github_fetch = __esm(() => {
|
|
|
26087
26087
|
});
|
|
26088
26088
|
|
|
26089
26089
|
// src/core/workspace.ts
|
|
26090
|
-
import { mkdir as mkdir8, readFile as readFile9, writeFile as writeFile7, copyFile as copyFile2 } from "node:fs/promises";
|
|
26090
|
+
import { mkdir as mkdir8, readFile as readFile9, writeFile as writeFile7, copyFile as copyFile2, unlink as unlink3 } from "node:fs/promises";
|
|
26091
26091
|
import { existsSync as existsSync13 } from "node:fs";
|
|
26092
26092
|
import { join as join16, resolve as resolve10, dirname as dirname8, relative as relative5, sep as sep2, isAbsolute as isAbsolute4 } from "node:path";
|
|
26093
26093
|
import { fileURLToPath } from "node:url";
|
|
@@ -26096,8 +26096,12 @@ async function initWorkspace(targetPath = ".", options = {}) {
|
|
|
26096
26096
|
const configDir = join16(absoluteTarget, CONFIG_DIR);
|
|
26097
26097
|
const configPath = join16(configDir, WORKSPACE_CONFIG_FILE);
|
|
26098
26098
|
if (existsSync13(configPath)) {
|
|
26099
|
-
|
|
26099
|
+
if (options.force) {
|
|
26100
|
+
await unlink3(configPath);
|
|
26101
|
+
} else {
|
|
26102
|
+
throw new Error(`Workspace already exists: ${absoluteTarget}
|
|
26100
26103
|
Found existing ${CONFIG_DIR}/${WORKSPACE_CONFIG_FILE}`);
|
|
26104
|
+
}
|
|
26101
26105
|
}
|
|
26102
26106
|
const currentFilePath = fileURLToPath(import.meta.url);
|
|
26103
26107
|
const currentFileDir = dirname8(currentFilePath);
|
|
@@ -29008,7 +29012,7 @@ var package_default;
|
|
|
29008
29012
|
var init_package = __esm(() => {
|
|
29009
29013
|
package_default = {
|
|
29010
29014
|
name: "allagents",
|
|
29011
|
-
version: "0.
|
|
29015
|
+
version: "0.33.0-next.1",
|
|
29012
29016
|
description: "CLI tool for managing multi-repo AI agent workspaces with plugin synchronization",
|
|
29013
29017
|
type: "module",
|
|
29014
29018
|
bin: {
|
|
@@ -30657,9 +30661,10 @@ var initCmd = import_cmd_ts2.command({
|
|
|
30657
30661
|
args: {
|
|
30658
30662
|
path: import_cmd_ts2.positional({ type: import_cmd_ts2.optional(import_cmd_ts2.string), displayName: "path" }),
|
|
30659
30663
|
from: import_cmd_ts2.option({ type: import_cmd_ts2.optional(import_cmd_ts2.string), long: "from", description: "Copy workspace.yaml from existing template/workspace" }),
|
|
30660
|
-
client: import_cmd_ts2.option({ type: import_cmd_ts2.optional(import_cmd_ts2.string), long: "client", short: "c", description: "Comma-separated clients with optional :mode (e.g., claude:native,copilot,cursor)" })
|
|
30664
|
+
client: import_cmd_ts2.option({ type: import_cmd_ts2.optional(import_cmd_ts2.string), long: "client", short: "c", description: "Comma-separated clients with optional :mode (e.g., claude:native,copilot,cursor)" }),
|
|
30665
|
+
force: import_cmd_ts2.flag({ long: "force", short: "f", description: "Overwrite existing workspace.yaml" })
|
|
30661
30666
|
},
|
|
30662
|
-
handler: async ({ path, from, client }) => {
|
|
30667
|
+
handler: async ({ path, from, client, force }) => {
|
|
30663
30668
|
try {
|
|
30664
30669
|
const targetPath = path ?? ".";
|
|
30665
30670
|
let clients = client ? parseClientEntries(client) : undefined;
|
|
@@ -30676,7 +30681,8 @@ var initCmd = import_cmd_ts2.command({
|
|
|
30676
30681
|
}
|
|
30677
30682
|
const result = await initWorkspace(targetPath, {
|
|
30678
30683
|
...from ? { from } : {},
|
|
30679
|
-
...clients ? { clients } : {}
|
|
30684
|
+
...clients ? { clients } : {},
|
|
30685
|
+
...force ? { force } : {}
|
|
30680
30686
|
});
|
|
30681
30687
|
if (isJsonMode()) {
|
|
30682
30688
|
const syncData = result.syncResult ? buildSyncData(result.syncResult) : null;
|
|
@@ -32308,6 +32314,9 @@ var pluginListCmd = import_cmd_ts4.command({
|
|
|
32308
32314
|
args: {},
|
|
32309
32315
|
handler: async () => {
|
|
32310
32316
|
try {
|
|
32317
|
+
let canonicalKey = function(name, marketplace, scope) {
|
|
32318
|
+
return `${name}:${marketplace}:${scope}`;
|
|
32319
|
+
};
|
|
32311
32320
|
const pluginClients = new Map;
|
|
32312
32321
|
async function loadConfigClients(configPath, scope) {
|
|
32313
32322
|
if (!existsSync19(configPath))
|
|
@@ -32336,13 +32345,13 @@ var pluginListCmd = import_cmd_ts4.command({
|
|
|
32336
32345
|
const projectSyncState = await loadSyncState(process.cwd());
|
|
32337
32346
|
const merged = new Map;
|
|
32338
32347
|
for (const p of allInstalled) {
|
|
32339
|
-
const key =
|
|
32348
|
+
const key = canonicalKey(p.name, p.marketplace, p.scope);
|
|
32340
32349
|
merged.set(key, {
|
|
32341
32350
|
spec: p.spec,
|
|
32342
32351
|
name: p.name,
|
|
32343
32352
|
marketplace: p.marketplace,
|
|
32344
32353
|
scope: p.scope,
|
|
32345
|
-
fileClients: pluginClients.get(
|
|
32354
|
+
fileClients: pluginClients.get(`${p.spec}:${p.scope}`) ?? [],
|
|
32346
32355
|
nativeClients: []
|
|
32347
32356
|
});
|
|
32348
32357
|
}
|
|
@@ -32352,7 +32361,8 @@ var pluginListCmd = import_cmd_ts4.command({
|
|
|
32352
32361
|
]) {
|
|
32353
32362
|
for (const [client, specs] of Object.entries(state?.nativePlugins ?? {})) {
|
|
32354
32363
|
for (const spec of specs) {
|
|
32355
|
-
const
|
|
32364
|
+
const parsed = parsePluginSpec(spec);
|
|
32365
|
+
const key = parsed ? canonicalKey(parsed.plugin, parsed.marketplaceName, scope) : `${spec}::${scope}`;
|
|
32356
32366
|
const existing = merged.get(key);
|
|
32357
32367
|
if (existing) {
|
|
32358
32368
|
if (!existing.nativeClients.includes(client)) {
|
|
@@ -32361,8 +32371,8 @@ var pluginListCmd = import_cmd_ts4.command({
|
|
|
32361
32371
|
} else {
|
|
32362
32372
|
merged.set(key, {
|
|
32363
32373
|
spec,
|
|
32364
|
-
name:
|
|
32365
|
-
marketplace:
|
|
32374
|
+
name: parsed?.plugin ?? spec,
|
|
32375
|
+
marketplace: parsed?.marketplaceName ?? "",
|
|
32366
32376
|
scope,
|
|
32367
32377
|
fileClients: [],
|
|
32368
32378
|
nativeClients: [client]
|