@amaster.ai/employee-runtime-connector 0.1.3 → 0.1.5

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.
@@ -30326,30 +30326,6 @@ function fixedRules(input, includeIssueLine, runContract = "producer") {
30326
30326
  "- A URL mentioned only in an Issue document, comment, assistant message, or provider tool output is not a collected work product. Persist the typed work product and use its returned workProductId as the durable receipt before marking the task done."
30327
30327
  ].filter(Boolean).join("\n");
30328
30328
  }
30329
- function conversationAgentRosterText(context) {
30330
- const roster = asRecord(context.paperclipCompanyAgentRoster);
30331
- const agents = Array.isArray(roster.agents) ? roster.agents : [];
30332
- if (agents.length === 0) return "";
30333
- const lines = agents.map((agent) => {
30334
- const record11 = asRecord(agent);
30335
- const name = readString(record11.name) ?? "unknown";
30336
- const id = readString(record11.id) ?? "unknown";
30337
- const role = readString(record11.role);
30338
- const title = readString(record11.title);
30339
- const details = [
30340
- role ? `role: ${role}` : "",
30341
- title ? `title: ${title}` : ""
30342
- ].filter(Boolean).join(", ");
30343
- const status = readString(record11.status);
30344
- return `- ${name} (agentId: ${id})${details ? ` \u2014 ${details}` : ""}${status && status !== "active" ? ` [${status}]` : ""}`;
30345
- });
30346
- return [
30347
- "Company agent roster:",
30348
- 'When the user refers to a Company employee by name, role, or pronoun (e.g. @-mention or "\u95EE\u4ED6"), resolve them from this roster and invoke them with the invoke_employee runtime action using their exact agentId. Never substitute a local subagent for a Company employee.',
30349
- ...lines,
30350
- ...roster.truncated === true ? ["(roster truncated; use the governed member-list read for the full roster)"] : []
30351
- ].join("\n");
30352
- }
30353
30329
  function compileConversationPrompt(input, context, maxChars) {
30354
30330
  const mode = promptContextMode(input);
30355
30331
  const taskText = readString(input.taskMarkdown) ?? "";
@@ -30374,7 +30350,6 @@ function compileConversationPrompt(input, context, maxChars) {
30374
30350
  { name: "runtime_safety", title: "Runtime Safety", priority: 100, sourceRef: `command:${input.commandId}`, content: runtimeSafety },
30375
30351
  ...piGovernedTools ? [{ name: "pi_governed_tools", title: "Pi Governed Tools", priority: 96, sourceRef: "amaster_governed_mcp_direct_typed_contract", content: piGovernedTools }] : [],
30376
30352
  { name: "agent_instructions", title: "Agent Instructions", priority: 100, sourceRef: "agent_instructions_bundle", content: readString(input.agentInstructions) ?? "" },
30377
- { name: "agent_roster", title: "Company Agent Roster", priority: 86, sourceRef: "company_agent_roster", content: conversationAgentRosterText(context) },
30378
30353
  { name: "mention_context", title: "Mentioned Context", priority: 85, sourceRef: "paperclip_mention_context", content: readString(input.mentionContextText) ?? "" },
30379
30354
  { name: "attachments", title: "Materialized Inputs", priority: 80, sourceRef: "materialized_attachments", content: readString(input.attachmentsText) ?? "" },
30380
30355
  { name: "raw_snapshot", title: "Raw Context Snapshot", priority: 0, sourceRef: `run:${input.runId ?? "unknown"}`, originalChars: jsonCharLength(context), content: "", truncationReason: "on_demand_large_object" }
@@ -31066,7 +31041,6 @@ var COMPANY_INITIALIZATION_PRE_AUTHORITY_SECTIONS = /* @__PURE__ */ new Set([
31066
31041
  "governed_reads",
31067
31042
  "optional_task_wiki_context",
31068
31043
  "mention_context",
31069
- "agent_roster",
31070
31044
  "attachments"
31071
31045
  ]);
31072
31046
  var COMPANY_INITIALIZATION_POST_AUTHORITY_SECTIONS = /* @__PURE__ */ new Set([
@@ -31245,7 +31219,6 @@ var CONTEXT_AVAILABILITY_SECTION_TITLES = Object.freeze({
31245
31219
  optional_task_wiki_context: "Optional Company Wiki Context",
31246
31220
  agent_instructions: "Agent Instructions",
31247
31221
  mention_context: "Mentioned Context",
31248
- agent_roster: "Company Agent Roster",
31249
31222
  attachments: "Materialized Inputs",
31250
31223
  on_demand_refs: "On-demand Context References",
31251
31224
  raw_snapshot: "Raw Context Snapshot"
@@ -34454,7 +34427,7 @@ function assertRequiredTaskAttachmentMaterialized(input, materialized) {
34454
34427
  }
34455
34428
 
34456
34429
  // src/amaster-runtime-daemon.mjs
34457
- var CONNECTOR_VERSION = "0.1.3";
34430
+ var CONNECTOR_VERSION = "0.1.5";
34458
34431
  var CONNECTOR_CONTRACT_VERSION = "2026-06-04.v1";
34459
34432
  var SUPPORTED_TASK_CONTEXT_VERSIONS = Object.freeze([TASK_CONTEXT_MANIFEST_VERSION, TASK_CONTEXT_V2]);
34460
34433
  var daemonRequire = createRequire(import.meta.url);
@@ -7,7 +7,7 @@ import { homedir, hostname } from "node:os";
7
7
  import { fileURLToPath } from "node:url";
8
8
  import { BUILD_SUPPORTED_CAPABILITIES } from "./amaster-runtime-daemon/capability-registry.mjs";
9
9
 
10
- const CONNECTOR_VERSION = "0.1.3";
10
+ const CONNECTOR_VERSION = "0.1.5";
11
11
 
12
12
  const CONFIG_KEY_MAP = new Map([
13
13
  ["server_url", "AMASTER_EMPLOYEE_SERVER_URL"],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@amaster.ai/employee-runtime-connector",
3
- "version": "0.1.3",
3
+ "version": "0.1.5",
4
4
  "description": "MirrorX runtime connector CLI and daemon",
5
5
  "license": "MIT",
6
6
  "type": "module",