@amaster.ai/employee-runtime-connector 0.1.1-beta.48 → 0.1.1-beta.49
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.
|
@@ -2858,7 +2858,7 @@ function createManagedPiMcpProfileApi(options = {}) {
|
|
|
2858
2858
|
const SESSION_ROLLOUT_MARKER2 = ".amaster-pi-session-rollout.json";
|
|
2859
2859
|
const DEFAULT_SESSION_ROLLOUT_TTL_MS2 = 24 * 60 * 60 * 1e3;
|
|
2860
2860
|
const PI_VERSION_ATTESTATION_TIMEOUT_MS = 1e4;
|
|
2861
|
-
const PI_EFFECTIVE_TOOLS_ATTESTATION_TIMEOUT_MS =
|
|
2861
|
+
const PI_EFFECTIVE_TOOLS_ATTESTATION_TIMEOUT_MS = 6e4;
|
|
2862
2862
|
const PI_ATTESTATION_MAX_ATTEMPTS = 2;
|
|
2863
2863
|
const PI_ATTESTATION_RECENT_LIVE_TTL_MS = Number.isFinite(options.recentLiveTtlMs) && options.recentLiveTtlMs > 0 ? options.recentLiveTtlMs : 30 * 60 * 1e3;
|
|
2864
2864
|
const recentLivePiVersionProbes = /* @__PURE__ */ new Map();
|
|
@@ -5125,7 +5125,8 @@ function governedBusinessDecisionProjection(state, detailRead) {
|
|
|
5125
5125
|
kind: readString(missing.object_kind) ?? null,
|
|
5126
5126
|
state: readString(missing.instance_state) ?? null,
|
|
5127
5127
|
reason_code: readString(missing.reason_code) ?? null,
|
|
5128
|
-
next_owner: readString(missing.next_owner) ?? null
|
|
5128
|
+
next_owner: readString(missing.next_owner) ?? null,
|
|
5129
|
+
task_relevance: readString(missing.task_relevance) === "informational" ? "informational" : "terminal_prerequisite"
|
|
5129
5130
|
};
|
|
5130
5131
|
}),
|
|
5131
5132
|
unsupported: capabilities.filter((entry) => readString(asRecord(entry).object_kind_support) === "unsupported").map((entry) => readString(asRecord(entry).object_kind)).filter(Boolean),
|
|
@@ -5186,7 +5187,9 @@ function governedBusinessStateSection(context, input) {
|
|
|
5186
5187
|
const governedStates = [current, resume].filter((state) => Object.keys(state).length > 0);
|
|
5187
5188
|
const hasUnsupportedObjects = governedStates.some((state) => Array.isArray(state.capabilities) && state.capabilities.some((entry) => readString(asRecord(entry).object_kind_support) === "unsupported"));
|
|
5188
5189
|
const hasUnavailableRead = governedStates.some((state) => readString(asRecord(state.availability).status) === "unavailable" || Array.isArray(state.capabilities) && state.capabilities.some((entry) => readString(asRecord(entry).read_capability) === "unavailable"));
|
|
5189
|
-
const
|
|
5190
|
+
const missingObjects = governedStates.flatMap((state) => Array.isArray(state.missing_objects) ? state.missing_objects.map(asRecord) : []);
|
|
5191
|
+
const hasTerminalPrerequisiteMissingObjects = missingObjects.some((entry) => readString(entry.task_relevance) !== "informational");
|
|
5192
|
+
const hasInformationalMissingObjects = missingObjects.some((entry) => readString(entry.task_relevance) === "informational");
|
|
5190
5193
|
const hasFreeTextReason = governedStates.some((state) => Boolean(readString(state.free_text_reason)));
|
|
5191
5194
|
const hasChildIssues = Array.isArray(context.childIssueSummaries) && context.childIssueSummaries.length > 0;
|
|
5192
5195
|
const rules = [
|
|
@@ -5195,7 +5198,8 @@ function governedBusinessStateSection(context, input) {
|
|
|
5195
5198
|
hasUnsupportedObjects ? "An object kind listed under unsupported has no governed record type. You may create or update a clearly labeled tracker/document, but never claim a formal record or receipt for that kind." : null,
|
|
5196
5199
|
hasChildIssues ? "For parent aggregation, read Server-owned governed state; never accept child final prose, an Issue, or a Document as a formal object receipt." : null,
|
|
5197
5200
|
hasUnavailableRead ? "An unavailable read does not prove an instance is absent. Unrelated work may continue, but formal-object completion claims must remain fail-closed until a managed read succeeds." : null,
|
|
5198
|
-
|
|
5201
|
+
hasTerminalPrerequisiteMissingObjects ? "When a formal object listed under missing has task_relevance=terminal_prerequisite, or task_relevance is absent in a legacy payload, keep the task incomplete and report its reason_code plus next_owner." : null,
|
|
5202
|
+
hasInformationalMissingObjects ? "task_relevance=informational means the missing Company object is context only, not a current Task terminal blocker. It must not block Task completion; do not create a Board interaction solely because of it." : null,
|
|
5199
5203
|
hasFreeTextReason ? "free_text_reason is explanatory only and is not authority; resolve any conflict in favor of the structured Server-owned state." : null,
|
|
5200
5204
|
retainsFullSnapshot ? "No executable managed detail read is available for at least one state below, so its bounded full snapshot remains inline. Do not guess a tool name or claim that omitted state can be fetched." : "The default body is a decision projection, not the complete process ledger. Use detail_read only when the current task needs omitted diagnosis, recommendation, activation, enrollment, or dispatch details."
|
|
5201
5205
|
].filter(Boolean).join("\n");
|
|
@@ -10126,7 +10130,7 @@ var source_acquisition_compatibility_default = {
|
|
|
10126
10130
|
};
|
|
10127
10131
|
|
|
10128
10132
|
// src/amaster-runtime-daemon.mjs
|
|
10129
|
-
var CONNECTOR_VERSION = "0.1.1-beta.
|
|
10133
|
+
var CONNECTOR_VERSION = "0.1.1-beta.49";
|
|
10130
10134
|
var CONNECTOR_CONTRACT_VERSION = "2026-06-04.v1";
|
|
10131
10135
|
var SOURCE_ACQUISITION_CAPABILITY = source_acquisition_compatibility_default.profileVersion;
|
|
10132
10136
|
var SOURCE_ACQUISITION_PROFILE_VERSION = source_acquisition_compatibility_default.profileVersion;
|
package/dist/amaster-runtime.mjs
CHANGED
|
@@ -6,7 +6,7 @@ import { basename, dirname, join, resolve } from "node:path";
|
|
|
6
6
|
import { homedir, hostname } from "node:os";
|
|
7
7
|
import { fileURLToPath } from "node:url";
|
|
8
8
|
|
|
9
|
-
const CONNECTOR_VERSION = "0.1.1-beta.
|
|
9
|
+
const CONNECTOR_VERSION = "0.1.1-beta.49";
|
|
10
10
|
|
|
11
11
|
const CAPABILITIES = [
|
|
12
12
|
"remote_registration",
|