@amaster.ai/employee-runtime-connector 0.1.0-beta.50 → 0.1.0-beta.51
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.
|
@@ -3155,6 +3155,35 @@ function resolvedDependencySections(context, input, contextScope, snapshotFreshn
|
|
|
3155
3155
|
}
|
|
3156
3156
|
};
|
|
3157
3157
|
}
|
|
3158
|
+
function verifiedCompanyContextSection(context) {
|
|
3159
|
+
const companyContext = asRecord(context.verifiedCompanyContext);
|
|
3160
|
+
if (Object.keys(companyContext).length === 0) return { content: "", sourceRef: [], observedAt: [] };
|
|
3161
|
+
if (companyContext.schemaVersion !== "mirrorx.verified-company-context.v1") {
|
|
3162
|
+
throw new Error("verified_company_context_invalid: unsupported schemaVersion");
|
|
3163
|
+
}
|
|
3164
|
+
const company = asRecord(companyContext.company);
|
|
3165
|
+
const registration = asRecord(companyContext.registration);
|
|
3166
|
+
const companyId = readString(company.id);
|
|
3167
|
+
const companyName = readString(company.name);
|
|
3168
|
+
if (!companyId || !companyName) {
|
|
3169
|
+
throw new Error("verified_company_context_invalid: company id and name are required");
|
|
3170
|
+
}
|
|
3171
|
+
return {
|
|
3172
|
+
content: [
|
|
3173
|
+
"Use these server-snapshotted current Company facts as authoritative context for this run.",
|
|
3174
|
+
"The current verification contract does not supply shareholder structure or a financial baseline; treat them as unknown unless separate evidence is present, and do not describe the verified registration facts below as missing.",
|
|
3175
|
+
stringifyBoundedJson(companyContext, 8e3)
|
|
3176
|
+
].join("\n"),
|
|
3177
|
+
sourceRef: [
|
|
3178
|
+
`company:${companyId}`,
|
|
3179
|
+
...readString(registration.verificationId) ? [`company_business_verification:${readString(registration.verificationId)}`] : []
|
|
3180
|
+
],
|
|
3181
|
+
observedAt: [
|
|
3182
|
+
readString(companyContext.confirmedProfileObservedAt),
|
|
3183
|
+
readString(registration.verifiedAt)
|
|
3184
|
+
].filter(Boolean)
|
|
3185
|
+
};
|
|
3186
|
+
}
|
|
3158
3187
|
function fixedRules(input, includeIssueLine) {
|
|
3159
3188
|
return [
|
|
3160
3189
|
"## AMaster Runtime Connector Task",
|
|
@@ -3425,6 +3454,7 @@ function compileCommandPromptWithManifest(input, options = {}) {
|
|
|
3425
3454
|
const completeRecoveryInstruction = [recoveryInstruction, recoveryContinuationOption].filter(Boolean).join("\n\n");
|
|
3426
3455
|
const suppressOrdinaryCompletionContract = completeRecoveryInstruction.length > 0;
|
|
3427
3456
|
const governedReads = governedReadSection(context);
|
|
3457
|
+
const verifiedCompanyContext = verifiedCompanyContextSection(context);
|
|
3428
3458
|
const hasTask = Boolean(readString(input.taskMarkdown));
|
|
3429
3459
|
const taskText = readString(input.taskMarkdown) ?? "";
|
|
3430
3460
|
const continuationSummary = continuationText(context);
|
|
@@ -3474,6 +3504,7 @@ ${resolvedDependencies.details.content}` : ""
|
|
|
3474
3504
|
{ name: "runtime_decomposition_requirement", title: "Required Task Decomposition", priority: 98, sourceRef: `issue:${input.issueId ?? "unknown"}`, content: runtimeDecompositionRequirementText(context) },
|
|
3475
3505
|
...piMcpProxyExamples ? [{ name: "pi_mcp_proxy_examples", title: "Pi MCP Proxy Examples", priority: 96, sourceRef: "amaster_governed_mcp_proxy_contract", content: piMcpProxyExamples }] : [],
|
|
3476
3506
|
{ name: "continuation_summary", title: "Continuation Summary", priority: 97, sourceRef: readString(asRecord(context.paperclipContinuationSummary).key) ?? `issue:${input.issueId ?? "unknown"}`, observedAt: readString(asRecord(context.paperclipContinuationSummary).updatedAt), originalContent: continuationSummary, content: mode === "cold" ? "" : continuationSummary, truncationReason: mode === "cold" ? "mode_selection" : null },
|
|
3507
|
+
...verifiedCompanyContext.content ? [{ name: "verified_company_context", title: "Verified Company Context", priority: 96, sourceRef: verifiedCompanyContext.sourceRef, observedAt: verifiedCompanyContext.observedAt, freshness: { kind: "run_snapshot" }, content: verifiedCompanyContext.content }] : [],
|
|
3477
3508
|
{ name: "wake_comments", title: wakeDeltaTitle, priority: interactionResolution ? 99 : 95, sourceRef: wakeDeltaSourceRefs, originalContent: wakeDeltaOriginal, content: wakeDeltaContent, truncationReason: commentsSelected ? null : "duplicate_task_context" },
|
|
3478
3509
|
{ name: "task", title: "Task Context", priority: 90, sourceRef: `issue:${input.issueId ?? "unknown"}`, originalContent: taskText, content: includeTask ? taskText : "", truncationReason: includeTask ? null : "mode_selection" },
|
|
3479
3510
|
{ name: "governed_reads", title: "Governed External Reads", priority: 88, sourceRef: governedReads.provenance.map((entry) => entry.sourceRef), observedAt: governedReads.provenance.map((entry) => entry.observedAt), freshness: governedReads.provenance.map((entry) => entry.freshness), scope: governedReads.provenance.map((entry) => entry.scope), content: governedReads.content },
|
|
@@ -8666,7 +8697,7 @@ function createPublicNetworkScope(options = {}) {
|
|
|
8666
8697
|
}
|
|
8667
8698
|
|
|
8668
8699
|
// src/amaster-runtime-daemon.mjs
|
|
8669
|
-
var CONNECTOR_VERSION = "0.1.0-beta.
|
|
8700
|
+
var CONNECTOR_VERSION = "0.1.0-beta.51";
|
|
8670
8701
|
var CONNECTOR_CONTRACT_VERSION = "2026-06-04.v1";
|
|
8671
8702
|
var MAX_CHECKPOINT_BYTES = 20 * 1024 * 1024;
|
|
8672
8703
|
var CHECKPOINT_TTL_MS = 24 * 60 * 60 * 1e3;
|
package/dist/amaster-runtime.mjs
CHANGED
|
@@ -5,7 +5,7 @@ import { dirname, join, resolve } from "node:path";
|
|
|
5
5
|
import { homedir, hostname } from "node:os";
|
|
6
6
|
import { fileURLToPath } from "node:url";
|
|
7
7
|
|
|
8
|
-
const CONNECTOR_VERSION = "0.1.0-beta.
|
|
8
|
+
const CONNECTOR_VERSION = "0.1.0-beta.51";
|
|
9
9
|
|
|
10
10
|
const CAPABILITIES = [
|
|
11
11
|
"remote_registration",
|