agentic-relay 4.3.0 → 4.3.1
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/bin/lib/api.mjs +3 -1
- package/bin/lib/commands.mjs +4 -0
- package/bin/relay-core.mjs +2 -0
- package/package.json +1 -1
package/bin/lib/api.mjs
CHANGED
|
@@ -73,13 +73,15 @@ export function search(query, { apiKey, userContext, maxResults = 25, timeoutMs
|
|
|
73
73
|
}
|
|
74
74
|
|
|
75
75
|
export function sessionStart(
|
|
76
|
-
{ agentId, initialData },
|
|
76
|
+
{ agentId, initialData, taskContext },
|
|
77
77
|
{ apiKey, timeoutMs },
|
|
78
78
|
) {
|
|
79
79
|
return apiPost(
|
|
80
80
|
"/session/start",
|
|
81
81
|
{
|
|
82
82
|
agent_id: agentId,
|
|
83
|
+
// A2A current-task brief; api-v1 forwards it to capability-session /initiate.
|
|
84
|
+
...(taskContext ? { task_context: taskContext } : {}),
|
|
83
85
|
...(initialData ? { initial_data: initialData } : {}),
|
|
84
86
|
},
|
|
85
87
|
{ apiKey, timeoutMs },
|
package/bin/lib/commands.mjs
CHANGED
|
@@ -211,6 +211,10 @@ export async function cmdSession(sub, positionals, opts) {
|
|
|
211
211
|
const start = await sessionStart(
|
|
212
212
|
{
|
|
213
213
|
agentId: resolved.agentId,
|
|
214
|
+
// A2A current-task brief → forwarded to /session/start → /initiate, where it's
|
|
215
|
+
// stored on capability_sessions.task_context and rendered as the business agent's
|
|
216
|
+
// "## Current task" prompt block. Optional on the CLI path (server stores null when absent).
|
|
217
|
+
taskContext: opts.taskContext || null,
|
|
214
218
|
initialData: parseJsonFlag(opts.initial, "initial"),
|
|
215
219
|
},
|
|
216
220
|
net,
|
package/bin/relay-core.mjs
CHANGED
|
@@ -56,6 +56,7 @@ const FLAGS_WITH_VALUE = new Set([
|
|
|
56
56
|
"--max",
|
|
57
57
|
"--user-context",
|
|
58
58
|
"--initial",
|
|
59
|
+
"--task-context",
|
|
59
60
|
"--message",
|
|
60
61
|
"--data",
|
|
61
62
|
"--score",
|
|
@@ -282,6 +283,7 @@ async function main() {
|
|
|
282
283
|
const payload = await cmdSession(positionals[0], positionals.slice(1), {
|
|
283
284
|
...shared,
|
|
284
285
|
initial: flags.initial || null,
|
|
286
|
+
taskContext: flags["task-context"] || null,
|
|
285
287
|
message: flags.message || null,
|
|
286
288
|
data: flags.data || null,
|
|
287
289
|
credential: flags.credential || null,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agentic-relay",
|
|
3
|
-
"version": "4.3.
|
|
3
|
+
"version": "4.3.1",
|
|
4
4
|
"description": "Install Agent Relay AI search across 17+ agents — Claude Code, Codex, Cursor, Gemini CLI, Goose, Windsurf, Cline, BoltAI, Claude Desktop, VS Code, Amazon Q, Roo Code, Witsy, LibreChat, OpenClaw, Tome, Raycast — plus the `agentrelay` CLI for live agent sessions, payments, and deliverable fetch",
|
|
5
5
|
"bin": {
|
|
6
6
|
"agentrelay": "bin/cli.mjs"
|