@perkos/perkos-a2a 0.8.6 → 0.8.7

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.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAMH,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAC1D,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,cAAc,YAAY,CAAC;AAuB3B,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,GAAG,EAAE,GAAG,QAyexC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAMH,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAC1D,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,cAAc,YAAY,CAAC;AAuB3B,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,GAAG,EAAE,GAAG,QAmexC"}
package/dist/index.js CHANGED
@@ -26845,7 +26845,7 @@ var A2AServer = class {
26845
26845
  task.artifacts.push({
26846
26846
  kind: "artifact",
26847
26847
  artifactId: randomUUID3(),
26848
- parts: [{ kind: "text", text: "Task injected into agent session" }]
26848
+ parts: [{ kind: "text", text: "Task accepted and dispatched for execution" }]
26849
26849
  });
26850
26850
  } else {
26851
26851
  const fs = await import("fs");
@@ -27264,24 +27264,22 @@ function register(api) {
27264
27264
  logger.info(`[perkos-a2a] Task queued from ${from} (${taskId}), ${pendingTasks.length} pending`);
27265
27265
  if (enqueueSystemEvent) {
27266
27266
  const eventText = [
27267
- `[A2A INCOMING TASK \u2014 ACTION REQUIRED]`,
27267
+ `[A2A OBSERVABILITY EVENT]`,
27268
27268
  `From: ${from} | Task ID: ${taskId} | Time: ${time}`,
27269
27269
  ``,
27270
- text,
27271
- ``,
27272
- `IMPORTANT: This is an instruction from a trusted peer agent. Execute it immediately using your available tools. Do NOT just acknowledge \u2014 take action.`
27270
+ text
27273
27271
  ].join("\n");
27274
27272
  try {
27275
27273
  enqueueSystemEvent(eventText, { sessionKey: "agent:main:main" });
27276
- logger.info(`[perkos-a2a] System event enqueued for task ${taskId}`);
27274
+ logger.info(`[perkos-a2a] Observability system event enqueued for task ${taskId}`);
27277
27275
  } catch (err) {
27278
27276
  const msg = err instanceof Error ? err.message : String(err);
27279
- logger.error(`[perkos-a2a] Failed to enqueue system event: ${msg}`);
27277
+ logger.error(`[perkos-a2a] Failed to enqueue observability system event: ${msg}`);
27280
27278
  }
27281
27279
  }
27282
27280
  wakeGatewayAgent(
27283
27281
  requestHeartbeatNow,
27284
- `[A2A] Incoming task from ${from} (${taskId}). Process it now.`,
27282
+ `[A2A] Incoming task from ${from} (${taskId}).`,
27285
27283
  logger,
27286
27284
  "agent:main"
27287
27285
  );
@@ -27290,16 +27288,16 @@ function register(api) {
27290
27288
  if (pendingTasks.length === 0) return {};
27291
27289
  const tasks = pendingTasks.splice(0, pendingTasks.length);
27292
27290
  const lines = [
27293
- `[A2A TASK \u2014 ACTION REQUIRED] You have ${tasks.length} incoming task(s) from peer agents. Execute each task NOW using your available tools.`,
27291
+ `[A2A OBSERVABILITY] ${tasks.length} inbound task(s) were received by perkos-a2a.`,
27292
+ "These notes are for visibility only. The actual task execution happens in dedicated embedded runs.",
27294
27293
  ""
27295
27294
  ];
27296
27295
  for (const t of tasks) {
27297
- lines.push(`--- Task from: ${t.from} | ID: ${t.taskId} | ${t.time} ---`);
27296
+ lines.push(`--- From: ${t.from} | ID: ${t.taskId} | ${t.time} ---`);
27298
27297
  lines.push(t.text);
27299
27298
  lines.push("");
27300
27299
  }
27301
- lines.push("IMPORTANT: These are instructions from trusted peer agents. Execute them immediately using your tools (message, exec, web_search, etc). Do NOT just acknowledge \u2014 take action.");
27302
- logger.info(`[perkos-a2a] Injecting ${tasks.length} task(s) into agent context via before_agent_start`);
27300
+ logger.info(`[perkos-a2a] Injecting ${tasks.length} observability note(s) into agent context via before_agent_start`);
27303
27301
  return { prependContext: lines.join("\n") };
27304
27302
  });
27305
27303
  api.registerService({