allagents 1.4.3 → 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.
Files changed (2) hide show
  1. package/dist/index.js +27 -13
  2. 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 parse2(text, reviver) {
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 __require2() {
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 extend3(o) {
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 toString2(compact) {
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 toString2(compact) {
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 handleYamlDirective2(state, name, args) {
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 handleTagDirective2(state, name, args) {
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");
@@ -33326,7 +33326,7 @@ async function promptForClients() {
33326
33326
  const selected = await autocompleteMultiselect({
33327
33327
  message: "Which AI clients do you use?",
33328
33328
  options: options2,
33329
- initialValues: ["universal"],
33329
+ initialValues: ["universal", "copilot", "vscode"],
33330
33330
  required: false
33331
33331
  });
33332
33332
  if (Ct(selected)) {
@@ -33996,7 +33996,7 @@ var package_default;
33996
33996
  var init_package = __esm(() => {
33997
33997
  package_default = {
33998
33998
  name: "allagents",
33999
- version: "1.4.3",
33999
+ version: "1.4.4",
34000
34000
  description: "CLI tool for managing multi-repo AI agent workspaces with plugin synchronization",
34001
34001
  type: "module",
34002
34002
  bin: {
@@ -34023,7 +34023,8 @@ var init_package = __esm(() => {
34023
34023
  prepare: "bun run build && (test -d .git && bunx prek install -t pre-push || true)",
34024
34024
  release: "bun run scripts/release.ts",
34025
34025
  "release:next": "bun run scripts/release.ts next",
34026
- "publish:next": "bun run build && bun publish --tag next",
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",
34027
34028
  "promote:latest": "bun scripts/tag-channel.ts latest"
34028
34029
  },
34029
34030
  keywords: [
@@ -37996,7 +37997,20 @@ var pluginInstallCmd = import_cmd_ts4.command({
37996
37997
  handler: async ({ plugin, scope, skills }) => {
37997
37998
  try {
37998
37999
  const isUser = scope === "user" || !scope && isUserConfigPath(process.cwd());
37999
- if (!isUser) {
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 {
38000
38014
  const configPath = join24(process.cwd(), CONFIG_DIR, WORKSPACE_CONFIG_FILE);
38001
38015
  if (!existsSync22(configPath)) {
38002
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",
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
- "publish:next": "bun run build && bun publish --tag next",
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": [