agentwheel 0.20.3 → 0.20.5

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.
@@ -5,8 +5,8 @@ import {
5
5
  commitManifestMetadataJournal,
6
6
  recoverPendingApply,
7
7
  uninstall
8
- } from "./chunk-BAJEWUI6.js";
9
- import "./chunk-Z4N7TB6Q.js";
8
+ } from "./chunk-XL4ZATLD.js";
9
+ import "./chunk-JIATNPDH.js";
10
10
  import "./chunk-7VPI5J5Y.js";
11
11
  export {
12
12
  applyCombinedInstallPlan,
@@ -1322,6 +1322,7 @@ var workspaceProfileMemberSchema = z6.object({
1322
1322
  id: z6.string().min(1).regex(/^[a-z0-9][a-z0-9._-]*$/i),
1323
1323
  workspace: z6.string().min(1),
1324
1324
  profile: z6.string().min(1),
1325
+ fleet: fleetIdSchema.optional(),
1325
1326
  transport: z6.enum(["local", "ssh"]).default("local"),
1326
1327
  host: z6.string().min(1).optional(),
1327
1328
  user: z6.string().min(1).optional(),
@@ -2624,8 +2625,8 @@ async function recoverMutationRuntime(operationId, options = {}) {
2624
2625
  }
2625
2626
  mutation = GovernedMutation.activateExisting(receipt, baseline, lock);
2626
2627
  const [{ recoverPendingApply }, { readLinkedLocalApplyJournal: readLinkedLocalApplyJournal2, removeApplyJournal: removeApplyJournal2, localPathExists: localPathExists2 }] = await Promise.all([
2627
- import("./apply-OGC6E2Y4.js"),
2628
- import("./transaction-7CNV5MAQ.js")
2628
+ import("./apply-MGOL643W.js"),
2629
+ import("./transaction-RJ34P3B6.js")
2629
2630
  ]);
2630
2631
  let missingReservation = false;
2631
2632
  for (const entry of pending) {
@@ -24,7 +24,7 @@ import {
24
24
  rollbackCompletedOperations,
25
25
  sourceLockPath,
26
26
  writeApplyJournal
27
- } from "./chunk-Z4N7TB6Q.js";
27
+ } from "./chunk-JIATNPDH.js";
28
28
  import {
29
29
  pathExists,
30
30
  writeJsonAtomic
package/dist/index.js CHANGED
@@ -33,7 +33,7 @@ import {
33
33
  uninstall,
34
34
  withManifestRevision,
35
35
  writeInstallManifest
36
- } from "./chunk-BAJEWUI6.js";
36
+ } from "./chunk-XL4ZATLD.js";
37
37
  import {
38
38
  CURRENT_WORKSPACE_SCHEMA_VERSION,
39
39
  GovernedMutation,
@@ -94,7 +94,7 @@ import {
94
94
  workspaceSelectionImportSchema,
95
95
  writeApplyJournal,
96
96
  writeWorkspaceConfig
97
- } from "./chunk-Z4N7TB6Q.js";
97
+ } from "./chunk-JIATNPDH.js";
98
98
  import {
99
99
  inferSourceDriverName
100
100
  } from "./chunk-EMDIG24I.js";
@@ -3814,6 +3814,7 @@ async function matchingGitAuthProfile(url) {
3814
3814
  const config = await readGitAuthConfig();
3815
3815
  if (!config) return void 0;
3816
3816
  const repository = repositoryKey(url);
3817
+ if (!repository) return void 0;
3817
3818
  return Object.values(config.profiles).find(
3818
3819
  (profile) => profile.repositories.some((pattern) => matchesRepository(pattern, repository))
3819
3820
  );
@@ -3847,8 +3848,13 @@ function parseGitAuthConfig(value, path) {
3847
3848
  return { profiles };
3848
3849
  }
3849
3850
  function repositoryKey(url) {
3850
- const parsed = new URL(url);
3851
- return `${parsed.host}/${parsed.pathname.replace(/^\//, "").replace(/\.git$/, "")}`.toLowerCase();
3851
+ try {
3852
+ const parsed = new URL(url);
3853
+ if (!parsed.host) return void 0;
3854
+ return `${parsed.host}/${parsed.pathname.replace(/^\//, "").replace(/\.git$/, "")}`.toLowerCase();
3855
+ } catch {
3856
+ return void 0;
3857
+ }
3852
3858
  }
3853
3859
  function matchesRepository(pattern, repository) {
3854
3860
  const escaped = pattern.toLowerCase().replace(/[.+^${}()|[\]\\]/g, "\\$&").replace(/\*/g, ".*");
@@ -9928,7 +9934,7 @@ async function collectMember(member, options, chain) {
9928
9934
  }
9929
9935
  }
9930
9936
  async function invokeMemberStatus(member, parentWorkspace, chain, options, cliEntry = process.argv[1]) {
9931
- const args = ["--no-update-check", "status", "--profile", member.profile, "--json"];
9937
+ const args = memberCommandArgs(member, ["status", "--profile", member.profile, "--json"]);
9932
9938
  if (options.refresh) args.push("--refresh");
9933
9939
  if (options.offline) args.push("--offline");
9934
9940
  const env2 = { ...process.env, AGENTWHEEL_COMPOSITE_CHAIN: JSON.stringify(chain) };
@@ -9980,7 +9986,7 @@ async function runMemberAgentwheel(member, parentWorkspace, args, chain) {
9980
9986
  if (member.transport === "local") {
9981
9987
  const result2 = await execFileAsync4(
9982
9988
  process.execPath,
9983
- [process.argv[1], "--no-update-check", ...args],
9989
+ [process.argv[1], ...memberCommandArgs(member, args)],
9984
9990
  {
9985
9991
  cwd: resolve22(parentWorkspace, member.workspace),
9986
9992
  env: env2,
@@ -9994,8 +10000,7 @@ async function runMemberAgentwheel(member, parentWorkspace, args, chain) {
9994
10000
  "&&",
9995
10001
  `AGENTWHEEL_COMPOSITE_CHAIN=${shellQuote2(JSON.stringify(chain))}`,
9996
10002
  "agentwheel",
9997
- "--no-update-check",
9998
- ...args.map(shellQuote2)
10003
+ ...memberCommandArgs(member, args).map(shellQuote2)
9999
10004
  ];
10000
10005
  const result = await execFileAsync4("ssh", [...sshArguments(member), remoteArgs.join(" ")], {
10001
10006
  env: env2,
@@ -10010,6 +10015,12 @@ async function runMemberAgentwheel(member, parentWorkspace, args, chain) {
10010
10015
  throw new Error(`Member ${member.id} command failed: ${detail}`);
10011
10016
  }
10012
10017
  }
10018
+ function memberCommandArgs(member, args) {
10019
+ if (!member.fleet) return ["--no-update-check", ...args];
10020
+ const [command, ...commandArgs] = args;
10021
+ if (!command) throw new Error(`Member ${member.id} command is missing.`);
10022
+ return ["--no-update-check", command, "--fleet", member.fleet, ...commandArgs];
10023
+ }
10013
10024
  function sshArguments(member) {
10014
10025
  const destination = member.user ? `${member.user}@${member.host}` : member.host;
10015
10026
  return [
@@ -18,7 +18,7 @@ import {
18
18
  removeApplyJournal,
19
19
  rollbackCompletedOperations,
20
20
  writeApplyJournal
21
- } from "./chunk-Z4N7TB6Q.js";
21
+ } from "./chunk-JIATNPDH.js";
22
22
  import "./chunk-7VPI5J5Y.js";
23
23
  export {
24
24
  abortApplyJournal,
package/openpack.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "schemaVersion": 2,
3
3
  "name": "NestDevLab/agentwheel",
4
- "version": "0.20.3",
4
+ "version": "0.20.5",
5
5
  "provides": [
6
6
  { "type": "skills", "path": "skills" }
7
7
  ]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agentwheel",
3
- "version": "0.20.3",
3
+ "version": "0.20.5",
4
4
  "description": "Weave skills, rules, and instructions across every AI agent.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -5,7 +5,7 @@ allowed-tools: [Bash]
5
5
  license: MIT
6
6
  metadata:
7
7
  author: NestDevLab
8
- version: "0.20.3"
8
+ version: "0.20.5"
9
9
  ---
10
10
 
11
11
  # agentwheel
@@ -5,7 +5,7 @@ allowed-tools: [Bash]
5
5
  license: MIT
6
6
  metadata:
7
7
  author: NestDevLab
8
- version: "0.20.3"
8
+ version: "0.20.5"
9
9
  ---
10
10
 
11
11
  # Agentwheel Discovery