agent-transport-system 0.7.29 → 0.7.30

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/ats.js CHANGED
@@ -27,7 +27,7 @@ import wrapAnsi from "wrap-ansi";
27
27
  import { Box, Container, Editor, Key, ProcessTerminal, TUI, Text, getEditorKeybindings, matchesKey } from "@mariozechner/pi-tui";
28
28
 
29
29
  //#region package.json
30
- var version = "0.7.29";
30
+ var version = "0.7.30";
31
31
  var package_default = {
32
32
  $schema: "https://www.schemastore.org/package.json",
33
33
  name: "agent-transport-system",
@@ -37674,7 +37674,7 @@ function buildDispatchPromptWithBootstrap(input) {
37674
37674
  const sections = [];
37675
37675
  if (input.shouldInjectBootstrap && isEntryBriefEnabled(input)) sections.push(renderEntryBriefSection(input));
37676
37676
  if ((input.spaceContractSnapshot?.dispatchBrief ?? "default") !== "none") sections.push(renderDispatchBriefSection(input));
37677
- sections.push(["Current message:", prompt].join("\n"));
37677
+ sections.push(["Current Wake message:", prompt].join("\n"));
37678
37678
  return sections.filter(Boolean).join("\n\n");
37679
37679
  }
37680
37680
  function buildDispatchBootstrapTemplateFacts(input) {
@@ -37787,6 +37787,7 @@ function buildActionGuidanceLines(input) {
37787
37787
  spaceId: input.spaceId
37788
37788
  })}\`.`);
37789
37789
  if (input.threadContext) lines.push("- This dispatch belongs to a thread. Public replies should stay in that thread unless explicitly asked to reply in the main Space.");
37790
+ lines.push("- Source alignment: Treat this Wake message as the current source. If you use other Space messages, private context, memory, or tools, keep each source mapped to the action and reply it supports.", "- Delivery intent: If the user asks you to deliver work to another Agent Profile, use Handoff or Reply + handoff. A plain reply or a bare @name does not deliver executable work.", "- Reply placement: Reply where the current request should continue. Thread Wakes default to the current thread; only move the reply when the user explicitly asks.", "- Context sources: ATS metadata is infrastructure context, not proof of what a human or agent is doing. Use Space context, private context, memory, and tools when appropriate; avoid exposing secrets, credentials, private files, or high-risk sensitive data unless the owner clearly authorizes it.");
37790
37791
  lines.push("- If the current message mentions multiple targets, handle only the part assigned to you unless it explicitly asks you to synthesize for the group.");
37791
37792
  lines.push("- Wake asks another Agent Profile to act. Reference and CC are context only. Bare @names in prose do not create executable work.", "- For a normal reply to this Wake, do not add target flags. Use target flags only when this Wake asks you to hand off, reference, or CC another profile.");
37792
37793
  lines.push(`- Need action details? Run \`${buildSpaceActionCommand(input, "help")}\`. Only if every Space Action command fails, use \`${buildPromptSpaceActionCommand(input)}\` for fallback JSON.`);
@@ -41793,10 +41794,12 @@ function buildStructuredActionRepairPrompt(input) {
41793
41794
  previousOutput,
41794
41795
  "```"
41795
41796
  ] : [],
41797
+ "This is a bounded repair of the public delivery action only. Do not redo the user's work.",
41796
41798
  "Do not change the user's intent.",
41799
+ "Preserve source alignment: keep the corrected action tied to the same current Wake and reply target.",
41800
+ "If the user's intent was to make another Agent Profile act, use Wake or Reply + handoff target semantics. A plain reply or bare @name is not executable delivery.",
41797
41801
  "ATS only consumes your final answer and at most one valid trailing ```ats-space-action``` JSON block.",
41798
41802
  "If an ATS Space Action CLI command is available, run that command instead of printing fallback JSON.",
41799
- "Return the corrected final answer again.",
41800
41803
  publicationRequirement.repairRequirementLine,
41801
41804
  ...SPACE_ACTION_TARGET_GUIDANCE_LINES,
41802
41805
  ...normalizeOptionalText$49(input.currentReplyToSignalId) ? [`post_message.messageEnvelope.replyToSignalId must match the current dispatch reply target: ${normalizeOptionalText$49(input.currentReplyToSignalId)}.`] : [],
@@ -84604,6 +84607,7 @@ const PROMPT_GUIDE_CATALOG = {
84604
84607
  "Use `reply` for the normal final answer.",
84605
84608
  "Use `wake` or `reply --wake` only when handing off work to another Agent Profile.",
84606
84609
  "Use `--reference` or `--cc` when another profile should be mentioned for context but should not start work.",
84610
+ "Keep each reply aligned to the source message it answers. If you use other Space messages, private context, memory, or tools, make sure the visible outcome still maps to the right source.",
84607
84611
  "Use `status` only for final-safe status outcomes, not ongoing progress.",
84608
84612
  "Use `ats-space-action` structured blocks only as a fallback when the CLI action command is unavailable."
84609
84613
  ],
@@ -84621,7 +84625,9 @@ const PROMPT_GUIDE_CATALOG = {
84621
84625
  "`<DISPATCH_ACTION_CLI>` is a placeholder in guides, not a literal command.",
84622
84626
  "Fallback JSON is last resort: only if every Space Action CLI command fails, run `ats prompt space-action --raw` and use one trailing `ats-space-action` block.",
84623
84627
  "Wake targets must be Agent Profiles available for Wake in the current Space.",
84628
+ "If a user asks you to deliver work to another Agent Profile, a plain reply is not enough; use `wake` or `reply --wake` so executable work is created.",
84624
84629
  "Bare @names in prose are not execution targets in the agent path; use target flags for Wake, Reference, or CC semantics.",
84630
+ "ATS metadata is infrastructure context, not proof of what a human or agent is doing. Use Space context, private context, memory, and tools when appropriate; avoid exposing secrets, credentials, private files, or high-risk sensitive data unless the owner clearly authorizes it.",
84625
84631
  "`working` is not accepted here because status actions are final visible outcomes in the current contract."
84626
84632
  ]
84627
84633
  }