agentwheel 0.20.3 → 0.20.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.
@@ -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";
@@ -9928,7 +9928,7 @@ async function collectMember(member, options, chain) {
9928
9928
  }
9929
9929
  }
9930
9930
  async function invokeMemberStatus(member, parentWorkspace, chain, options, cliEntry = process.argv[1]) {
9931
- const args = ["--no-update-check", "status", "--profile", member.profile, "--json"];
9931
+ const args = memberCommandArgs(member, ["status", "--profile", member.profile, "--json"]);
9932
9932
  if (options.refresh) args.push("--refresh");
9933
9933
  if (options.offline) args.push("--offline");
9934
9934
  const env2 = { ...process.env, AGENTWHEEL_COMPOSITE_CHAIN: JSON.stringify(chain) };
@@ -9980,7 +9980,7 @@ async function runMemberAgentwheel(member, parentWorkspace, args, chain) {
9980
9980
  if (member.transport === "local") {
9981
9981
  const result2 = await execFileAsync4(
9982
9982
  process.execPath,
9983
- [process.argv[1], "--no-update-check", ...args],
9983
+ [process.argv[1], ...memberCommandArgs(member, args)],
9984
9984
  {
9985
9985
  cwd: resolve22(parentWorkspace, member.workspace),
9986
9986
  env: env2,
@@ -9994,8 +9994,7 @@ async function runMemberAgentwheel(member, parentWorkspace, args, chain) {
9994
9994
  "&&",
9995
9995
  `AGENTWHEEL_COMPOSITE_CHAIN=${shellQuote2(JSON.stringify(chain))}`,
9996
9996
  "agentwheel",
9997
- "--no-update-check",
9998
- ...args.map(shellQuote2)
9997
+ ...memberCommandArgs(member, args).map(shellQuote2)
9999
9998
  ];
10000
9999
  const result = await execFileAsync4("ssh", [...sshArguments(member), remoteArgs.join(" ")], {
10001
10000
  env: env2,
@@ -10010,6 +10009,12 @@ async function runMemberAgentwheel(member, parentWorkspace, args, chain) {
10010
10009
  throw new Error(`Member ${member.id} command failed: ${detail}`);
10011
10010
  }
10012
10011
  }
10012
+ function memberCommandArgs(member, args) {
10013
+ if (!member.fleet) return ["--no-update-check", ...args];
10014
+ const [command, ...commandArgs] = args;
10015
+ if (!command) throw new Error(`Member ${member.id} command is missing.`);
10016
+ return ["--no-update-check", command, "--fleet", member.fleet, ...commandArgs];
10017
+ }
10013
10018
  function sshArguments(member) {
10014
10019
  const destination = member.user ? `${member.user}@${member.host}` : member.host;
10015
10020
  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.4",
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.4",
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.4"
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.4"
9
9
  ---
10
10
 
11
11
  # Agentwheel Discovery