allagents 1.4.2 → 1.4.4
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 +27 -15
- package/package.json +3 -2
package/dist/index.js
CHANGED
|
@@ -6378,7 +6378,7 @@ var require_parse = __commonJS((exports, module) => {
|
|
|
6378
6378
|
var token;
|
|
6379
6379
|
var key;
|
|
6380
6380
|
var root;
|
|
6381
|
-
module.exports = function
|
|
6381
|
+
module.exports = function parse(text, reviver) {
|
|
6382
6382
|
source = String(text);
|
|
6383
6383
|
parseState = "start";
|
|
6384
6384
|
stack = [];
|
|
@@ -13476,7 +13476,7 @@ function gitInstanceFactory(baseDir, options2) {
|
|
|
13476
13476
|
}
|
|
13477
13477
|
var import_file_exists, import_debug, import_promise_deferred, import_promise_deferred2, __defProp2, __getOwnPropDesc2, __getOwnPropNames2, __hasOwnProp2, __esm2 = (fn, res) => function __init() {
|
|
13478
13478
|
return fn && (res = (0, fn[__getOwnPropNames2(fn)[0]])(fn = 0)), res;
|
|
13479
|
-
}, __commonJS2 = (cb, mod) => function
|
|
13479
|
+
}, __commonJS2 = (cb, mod) => function __require() {
|
|
13480
13480
|
return mod || (0, cb[__getOwnPropNames2(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
13481
13481
|
}, __export2 = (target, all) => {
|
|
13482
13482
|
for (var name in all)
|
|
@@ -21963,7 +21963,7 @@ var require_is_extendable = __commonJS((exports, module) => {
|
|
|
21963
21963
|
// node_modules/extend-shallow/index.js
|
|
21964
21964
|
var require_extend_shallow = __commonJS((exports, module) => {
|
|
21965
21965
|
var isObject2 = require_is_extendable();
|
|
21966
|
-
module.exports = function
|
|
21966
|
+
module.exports = function extend(o) {
|
|
21967
21967
|
if (!isObject2(o)) {
|
|
21968
21968
|
o = {};
|
|
21969
21969
|
}
|
|
@@ -22157,7 +22157,7 @@ var require_exception = __commonJS((exports, module) => {
|
|
|
22157
22157
|
}
|
|
22158
22158
|
YAMLException2.prototype = Object.create(Error.prototype);
|
|
22159
22159
|
YAMLException2.prototype.constructor = YAMLException2;
|
|
22160
|
-
YAMLException2.prototype.toString = function
|
|
22160
|
+
YAMLException2.prototype.toString = function toString(compact) {
|
|
22161
22161
|
var result = this.name + ": ";
|
|
22162
22162
|
result += this.reason || "(unknown reason)";
|
|
22163
22163
|
if (!compact && this.mark) {
|
|
@@ -22210,7 +22210,7 @@ var require_mark = __commonJS((exports, module) => {
|
|
|
22210
22210
|
return common2.repeat(" ", indent) + head + snippet2 + tail + `
|
|
22211
22211
|
` + common2.repeat(" ", indent + this.position - start + head.length) + "^";
|
|
22212
22212
|
};
|
|
22213
|
-
Mark.prototype.toString = function
|
|
22213
|
+
Mark.prototype.toString = function toString(compact) {
|
|
22214
22214
|
var snippet2, where = "";
|
|
22215
22215
|
if (this.name) {
|
|
22216
22216
|
where += 'in "' + this.name + '" ';
|
|
@@ -23305,7 +23305,7 @@ var require_loader = __commonJS((exports, module) => {
|
|
|
23305
23305
|
}
|
|
23306
23306
|
}
|
|
23307
23307
|
var directiveHandlers2 = {
|
|
23308
|
-
YAML: function
|
|
23308
|
+
YAML: function handleYamlDirective(state, name, args) {
|
|
23309
23309
|
var match, major, minor;
|
|
23310
23310
|
if (state.version !== null) {
|
|
23311
23311
|
throwError2(state, "duplication of %YAML directive");
|
|
@@ -23328,7 +23328,7 @@ var require_loader = __commonJS((exports, module) => {
|
|
|
23328
23328
|
throwWarning2(state, "unsupported YAML version of the document");
|
|
23329
23329
|
}
|
|
23330
23330
|
},
|
|
23331
|
-
TAG: function
|
|
23331
|
+
TAG: function handleTagDirective(state, name, args) {
|
|
23332
23332
|
var handle, prefix;
|
|
23333
23333
|
if (args.length !== 2) {
|
|
23334
23334
|
throwError2(state, "TAG directive accepts exactly two arguments");
|
|
@@ -26210,14 +26210,14 @@ function isUserConfigPath(workspacePath) {
|
|
|
26210
26210
|
const userConfigPath = getUserWorkspaceConfigPath();
|
|
26211
26211
|
return resolve6(projectConfigPath) === resolve6(userConfigPath);
|
|
26212
26212
|
}
|
|
26213
|
-
async function ensureUserWorkspace() {
|
|
26213
|
+
async function ensureUserWorkspace(clients) {
|
|
26214
26214
|
const configPath = getUserWorkspaceConfigPath();
|
|
26215
26215
|
if (existsSync6(configPath))
|
|
26216
26216
|
return;
|
|
26217
26217
|
const defaultConfig = {
|
|
26218
26218
|
repositories: [],
|
|
26219
26219
|
plugins: [],
|
|
26220
|
-
clients: [...DEFAULT_USER_CLIENTS]
|
|
26220
|
+
clients: clients ? [...clients] : [...DEFAULT_USER_CLIENTS]
|
|
26221
26221
|
};
|
|
26222
26222
|
await mkdir4(getAllagentsDir(), { recursive: true });
|
|
26223
26223
|
await writeFile2(configPath, dump(defaultConfig, { lineWidth: -1 }), "utf-8");
|
|
@@ -26823,8 +26823,6 @@ var init_user_workspace = __esm(() => {
|
|
|
26823
26823
|
"cursor",
|
|
26824
26824
|
"opencode",
|
|
26825
26825
|
"gemini",
|
|
26826
|
-
"factory",
|
|
26827
|
-
"ampcode",
|
|
26828
26826
|
"vscode"
|
|
26829
26827
|
];
|
|
26830
26828
|
});
|
|
@@ -33328,7 +33326,7 @@ async function promptForClients() {
|
|
|
33328
33326
|
const selected = await autocompleteMultiselect({
|
|
33329
33327
|
message: "Which AI clients do you use?",
|
|
33330
33328
|
options: options2,
|
|
33331
|
-
initialValues: ["universal"],
|
|
33329
|
+
initialValues: ["universal", "copilot", "vscode"],
|
|
33332
33330
|
required: false
|
|
33333
33331
|
});
|
|
33334
33332
|
if (Ct(selected)) {
|
|
@@ -33998,7 +33996,7 @@ var package_default;
|
|
|
33998
33996
|
var init_package = __esm(() => {
|
|
33999
33997
|
package_default = {
|
|
34000
33998
|
name: "allagents",
|
|
34001
|
-
version: "1.4.
|
|
33999
|
+
version: "1.4.4",
|
|
34002
34000
|
description: "CLI tool for managing multi-repo AI agent workspaces with plugin synchronization",
|
|
34003
34001
|
type: "module",
|
|
34004
34002
|
bin: {
|
|
@@ -34025,7 +34023,8 @@ var init_package = __esm(() => {
|
|
|
34025
34023
|
prepare: "bun run build && (test -d .git && bunx prek install -t pre-push || true)",
|
|
34026
34024
|
release: "bun run scripts/release.ts",
|
|
34027
34025
|
"release:next": "bun run scripts/release.ts next",
|
|
34028
|
-
|
|
34026
|
+
prepublishOnly: `test "$ALLOW_PUBLISH" = '1' || (echo 'ERROR: Use bun run publish:next, then bun run promote:latest' && exit 1)`,
|
|
34027
|
+
"publish:next": "bun run build && ALLOW_PUBLISH=1 npm publish --tag next",
|
|
34029
34028
|
"promote:latest": "bun scripts/tag-channel.ts latest"
|
|
34030
34029
|
},
|
|
34031
34030
|
keywords: [
|
|
@@ -37998,7 +37997,20 @@ var pluginInstallCmd = import_cmd_ts4.command({
|
|
|
37998
37997
|
handler: async ({ plugin, scope, skills }) => {
|
|
37999
37998
|
try {
|
|
38000
37999
|
const isUser = scope === "user" || !scope && isUserConfigPath(process.cwd());
|
|
38001
|
-
if (
|
|
38000
|
+
if (isUser) {
|
|
38001
|
+
const userConfigPath = getUserWorkspaceConfigPath();
|
|
38002
|
+
if (!existsSync22(userConfigPath)) {
|
|
38003
|
+
const { promptForClients: promptForClients2 } = await Promise.resolve().then(() => (init_prompt_clients(), exports_prompt_clients));
|
|
38004
|
+
const clients = await promptForClients2();
|
|
38005
|
+
if (clients === null) {
|
|
38006
|
+
if (isJsonMode()) {
|
|
38007
|
+
jsonOutput({ success: false, command: "plugin install", error: "Cancelled" });
|
|
38008
|
+
}
|
|
38009
|
+
return;
|
|
38010
|
+
}
|
|
38011
|
+
await ensureUserWorkspace(clients);
|
|
38012
|
+
}
|
|
38013
|
+
} else {
|
|
38002
38014
|
const configPath = join24(process.cwd(), CONFIG_DIR, WORKSPACE_CONFIG_FILE);
|
|
38003
38015
|
if (!existsSync22(configPath)) {
|
|
38004
38016
|
const { promptForClients: promptForClients2 } = await Promise.resolve().then(() => (init_prompt_clients(), exports_prompt_clients));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "allagents",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.4",
|
|
4
4
|
"description": "CLI tool for managing multi-repo AI agent workspaces with plugin synchronization",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -27,7 +27,8 @@
|
|
|
27
27
|
"prepare": "bun run build && (test -d .git && bunx prek install -t pre-push || true)",
|
|
28
28
|
"release": "bun run scripts/release.ts",
|
|
29
29
|
"release:next": "bun run scripts/release.ts next",
|
|
30
|
-
"
|
|
30
|
+
"prepublishOnly": "test \"$ALLOW_PUBLISH\" = '1' || (echo 'ERROR: Use bun run publish:next, then bun run promote:latest' && exit 1)",
|
|
31
|
+
"publish:next": "bun run build && ALLOW_PUBLISH=1 npm publish --tag next",
|
|
31
32
|
"promote:latest": "bun scripts/tag-channel.ts latest"
|
|
32
33
|
},
|
|
33
34
|
"keywords": [
|