agent-relay 6.0.8 → 6.0.9
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.cjs +35 -0
- package/package.json +10 -10
package/dist/index.cjs
CHANGED
|
@@ -62021,6 +62021,7 @@ var WorkflowBuilder = class {
|
|
|
62021
62021
|
_timeoutMs;
|
|
62022
62022
|
_channel;
|
|
62023
62023
|
_idleNudge;
|
|
62024
|
+
_paths;
|
|
62024
62025
|
_agents = [];
|
|
62025
62026
|
_steps = [];
|
|
62026
62027
|
_errorHandling;
|
|
@@ -62091,6 +62092,37 @@ var WorkflowBuilder = class {
|
|
|
62091
62092
|
this._previousRunId = id;
|
|
62092
62093
|
return this;
|
|
62093
62094
|
}
|
|
62095
|
+
/**
|
|
62096
|
+
* Declare named paths to additional directories the workflow needs.
|
|
62097
|
+
*
|
|
62098
|
+
* For multi-repo cloud workflows (relay#774, cloud#302), each entry is
|
|
62099
|
+
* tarballed by the CLI at submit time and mounted at
|
|
62100
|
+
* `/home/daytona/workspace/{name}/` in the sandbox. Locally, the runner
|
|
62101
|
+
* resolves `path` relative to the workflow file's parent directory and
|
|
62102
|
+
* agents reference each entry by its declared `name`.
|
|
62103
|
+
*
|
|
62104
|
+
* Calling this is a no-op for the runtime — the runner doesn't need
|
|
62105
|
+
* `paths` to execute steps. The CLI and the cloud bootstrap consume
|
|
62106
|
+
* it. Declaring via the builder keeps single-source-of-truth for tools
|
|
62107
|
+
* that walk the built config (e.g. dashboards, dry-run reports).
|
|
62108
|
+
*/
|
|
62109
|
+
paths(paths) {
|
|
62110
|
+
if (!Array.isArray(paths)) {
|
|
62111
|
+
throw new Error(".paths() expects an array of PathDefinition objects");
|
|
62112
|
+
}
|
|
62113
|
+
const seen = /* @__PURE__ */ new Set();
|
|
62114
|
+
for (const p2 of paths) {
|
|
62115
|
+
if (!p2 || typeof p2.name !== "string" || typeof p2.path !== "string") {
|
|
62116
|
+
throw new Error(".paths() entries must each have string `name` and `path` fields");
|
|
62117
|
+
}
|
|
62118
|
+
if (seen.has(p2.name)) {
|
|
62119
|
+
throw new Error(`.paths() got duplicate entry name "${p2.name}"`);
|
|
62120
|
+
}
|
|
62121
|
+
seen.add(p2.name);
|
|
62122
|
+
}
|
|
62123
|
+
this._paths = paths.map((p2) => ({ ...p2 }));
|
|
62124
|
+
return this;
|
|
62125
|
+
}
|
|
62094
62126
|
/** Add an agent definition. */
|
|
62095
62127
|
agent(name, options) {
|
|
62096
62128
|
const def = {
|
|
@@ -62236,6 +62268,9 @@ var WorkflowBuilder = class {
|
|
|
62236
62268
|
};
|
|
62237
62269
|
if (this._description !== void 0)
|
|
62238
62270
|
config2.description = this._description;
|
|
62271
|
+
if (this._paths !== void 0 && this._paths.length > 0) {
|
|
62272
|
+
config2.paths = this._paths.map((p2) => ({ ...p2 }));
|
|
62273
|
+
}
|
|
62239
62274
|
if (this._maxConcurrency !== void 0)
|
|
62240
62275
|
config2.swarm.maxConcurrency = this._maxConcurrency;
|
|
62241
62276
|
if (this._timeoutMs !== void 0)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agent-relay",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.9",
|
|
4
4
|
"description": "Real-time agent-to-agent communication system",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
@@ -130,14 +130,14 @@
|
|
|
130
130
|
},
|
|
131
131
|
"homepage": "https://github.com/AgentWorkforce/relay#readme",
|
|
132
132
|
"dependencies": {
|
|
133
|
-
"@agent-relay/cloud": "6.0.
|
|
134
|
-
"@agent-relay/config": "6.0.
|
|
135
|
-
"@agent-relay/hooks": "6.0.
|
|
136
|
-
"@agent-relay/sdk": "6.0.
|
|
137
|
-
"@agent-relay/telemetry": "6.0.
|
|
138
|
-
"@agent-relay/trajectory": "6.0.
|
|
139
|
-
"@agent-relay/user-directory": "6.0.
|
|
140
|
-
"@agent-relay/utils": "6.0.
|
|
133
|
+
"@agent-relay/cloud": "6.0.9",
|
|
134
|
+
"@agent-relay/config": "6.0.9",
|
|
135
|
+
"@agent-relay/hooks": "6.0.9",
|
|
136
|
+
"@agent-relay/sdk": "6.0.9",
|
|
137
|
+
"@agent-relay/telemetry": "6.0.9",
|
|
138
|
+
"@agent-relay/trajectory": "6.0.9",
|
|
139
|
+
"@agent-relay/user-directory": "6.0.9",
|
|
140
|
+
"@agent-relay/utils": "6.0.9",
|
|
141
141
|
"@aws-sdk/client-s3": "3.1020.0",
|
|
142
142
|
"@modelcontextprotocol/sdk": "^1.0.0",
|
|
143
143
|
"@relayauth/core": "^0.1.2",
|
|
@@ -147,7 +147,7 @@
|
|
|
147
147
|
"@relayfile/local-mount": "^0.2.2",
|
|
148
148
|
"@relayfile/sdk": "^0.6.0",
|
|
149
149
|
"@sinclair/typebox": "^0.34.14",
|
|
150
|
-
"agent-trajectories": "^0.5.
|
|
150
|
+
"agent-trajectories": "^0.5.7",
|
|
151
151
|
"chalk": "^4.1.2",
|
|
152
152
|
"chokidar": "^5.0.0",
|
|
153
153
|
"commander": "^12.1.0",
|