@amaster.ai/employee-runtime-connector 0.1.1-beta.35 → 0.1.1-beta.36
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.
|
@@ -1891,6 +1891,25 @@ var MANAGED_PI_PROVIDER_PROTECTED_ENV_NAMES = Object.freeze([
|
|
|
1891
1891
|
"AMASTER_API_KEY",
|
|
1892
1892
|
"AMASTER_PLATFORM_OAUTH_TOKEN"
|
|
1893
1893
|
]);
|
|
1894
|
+
var MANAGED_PI_HELIGE_EXECUTION_ENV_NAMES = Object.freeze([
|
|
1895
|
+
"HELIGE_ACCESS_TOKEN",
|
|
1896
|
+
"HELIGE_BASE_URL",
|
|
1897
|
+
"HELIGE_USER_ID",
|
|
1898
|
+
"HELIGE_USER_UID",
|
|
1899
|
+
"HELIGE_USER_NAME",
|
|
1900
|
+
"HELIGE_USER_EMAIL"
|
|
1901
|
+
]);
|
|
1902
|
+
var MANAGED_PI_HELIGE_EXECUTION_PROTECTED_ENV_NAMES = Object.freeze([
|
|
1903
|
+
"HELIGE_ACCESS_TOKEN"
|
|
1904
|
+
]);
|
|
1905
|
+
var MANAGED_PI_LEGACY_PLATFORM_EXECUTION_ENV_NAMES = Object.freeze([
|
|
1906
|
+
"PLATFORM_ACCESS_TOKEN",
|
|
1907
|
+
"PLATFORM_BASE_URL",
|
|
1908
|
+
"PLATFORM_USER_ID",
|
|
1909
|
+
"PLATFORM_USER_UID",
|
|
1910
|
+
"PLATFORM_USER_NAME",
|
|
1911
|
+
"PLATFORM_USER_EMAIL"
|
|
1912
|
+
]);
|
|
1894
1913
|
function isRecord(value) {
|
|
1895
1914
|
return value && typeof value === "object" && !Array.isArray(value);
|
|
1896
1915
|
}
|
|
@@ -2700,7 +2719,10 @@ function createManagedPiMcpProfileApi(options = {}) {
|
|
|
2700
2719
|
"PAPERCLIP_API_KEY",
|
|
2701
2720
|
"AMASTER_BOARD_API_KEY"
|
|
2702
2721
|
]);
|
|
2703
|
-
const ALLOWED_COMMAND_ENV2 = new Set(
|
|
2722
|
+
const ALLOWED_COMMAND_ENV2 = /* @__PURE__ */ new Set([
|
|
2723
|
+
...MANAGED_PI_PROVIDER_ENV_NAMES,
|
|
2724
|
+
...MANAGED_PI_HELIGE_EXECUTION_ENV_NAMES
|
|
2725
|
+
]);
|
|
2704
2726
|
const SAFE_INHERITED_ENV2 = /* @__PURE__ */ new Set([
|
|
2705
2727
|
"PATH",
|
|
2706
2728
|
"LANG",
|
|
@@ -3717,7 +3739,10 @@ ${result3.stderr ?? ""}`, "Pi", MINIMUM_PI_VERSION);
|
|
|
3717
3739
|
protectedValues: [.../* @__PURE__ */ new Set([
|
|
3718
3740
|
sessionToken,
|
|
3719
3741
|
...sharedRuntime.protectedValues,
|
|
3720
|
-
...
|
|
3742
|
+
...[
|
|
3743
|
+
...MANAGED_PI_PROVIDER_PROTECTED_ENV_NAMES,
|
|
3744
|
+
...MANAGED_PI_HELIGE_EXECUTION_PROTECTED_ENV_NAMES
|
|
3745
|
+
].map((name) => input.commandEnv?.[name]).filter((value) => typeof value === "string" && value.length > 0)
|
|
3721
3746
|
])],
|
|
3722
3747
|
attestation: {
|
|
3723
3748
|
...attestationFacts,
|
|
@@ -5457,6 +5482,7 @@ function runtimeAuthorizationText(context, mode, { suppressOrdinaryCompletionCon
|
|
|
5457
5482
|
const completion = asRecord(requirements.completion);
|
|
5458
5483
|
const delivery = asRecord(requirements.delivery);
|
|
5459
5484
|
const businessOutcome = asRecord(requirements.businessOutcome);
|
|
5485
|
+
const workDisposition = asRecord(requirements.workDisposition);
|
|
5460
5486
|
const acceptancePolicy = asRecord(businessOutcome.acceptancePolicy);
|
|
5461
5487
|
const acceptanceValidatorIds = Array.isArray(acceptancePolicy.validatorIds) ? acceptancePolicy.validatorIds.filter((value) => typeof value === "string") : [];
|
|
5462
5488
|
const evidenceAutoAcceptance = acceptancePolicy.mode === "evidence_auto" && acceptancePolicy.verdictAuthority === "none" && acceptancePolicy.acceptanceAuthority === null && acceptanceValidatorIds.length === EVIDENCE_AUTO_VALIDATOR_IDS.size && acceptanceValidatorIds.every((value) => EVIDENCE_AUTO_VALIDATOR_IDS.has(value));
|
|
@@ -5465,7 +5491,7 @@ function runtimeAuthorizationText(context, mode, { suppressOrdinaryCompletionCon
|
|
|
5465
5491
|
const manifestRefreshOnly = legacyManifestRefreshOnly(context);
|
|
5466
5492
|
const firstDocumentCheckpoint = completionDeliverable === "document_or_artifact" ? manifestRefreshOnly ? "The current deliverable content already exists and this run is limited to refreshing stale immutable Manifest refs. Do not create or revise a document unless a fresh Delivery readiness read proves a content or acceptance gap beyond stale refs." : mode === "cold" ? "Before the first external browse, search, or research action, call upsert_document with a stable key. Create a checkpoint skeleton containing the acceptance criteria, a source table, and known unknowns; update the same document with each piece of verified evidence instead of waiting until broad research is complete. Immediately after upsert_document, call update_parent with status: in_progress and a concrete next action; complete both control-plane writes before the first external browse, search, or research action." : "Before the first external browse, search, or research action, read the existing stable-key document. Preserve all still-valid verified rows, source URLs, conclusions, and known unknowns; do not replace a populated document with a blank skeleton or less-informative fallback. Only when the document does not exist may you create a checkpoint skeleton. Then call update_parent with status: in_progress and a concrete next action before the first external browse, search, or research action. Update the same document with each piece of verified evidence." : "";
|
|
5467
5493
|
const completionContract = !suppressOrdinaryCompletionContract && completionRole && completionDeliverable ? [
|
|
5468
|
-
"Before ending this run, persist durable progress through Runtime Actions and record one explicit task disposition. Browser and tool history alone are not durable progress.",
|
|
5494
|
+
workDisposition.mode === "required" ? "Before the first business mutation, ensure the current required work disposition is recorded. Read-only governed checks may precede it. If no current valid receipt exists, call runtime_action.describe for record_work_disposition and persist exactly one truthful disposition before upsert_document, update_parent, add_comment, create_interaction, publish_delivery_manifest, or any other business mutation. Before ending this run, persist durable progress through Runtime Actions; browser and tool history alone are not durable progress." : "Before ending this run, persist durable progress through Runtime Actions and record one explicit task disposition. Browser and tool history alone are not durable progress.",
|
|
5469
5495
|
firstDocumentCheckpoint,
|
|
5470
5496
|
"If work remains in an ordinary productive run, call update_parent with status: in_progress and a concrete next action so bounded continuation recovery can preserve a live path. Status: todo does not queue a normal continuation from an ordinary productive run. Only a server-issued successful-run handoff recovery may use status: todo, and only according to its exact Recovery Instruction. Otherwise use a supported terminal or waiting disposition."
|
|
5471
5497
|
].filter(Boolean).join(" ") : "";
|
|
@@ -9626,7 +9652,7 @@ function assertSourceAcquisitionRuntimeAuthority({
|
|
|
9626
9652
|
}
|
|
9627
9653
|
|
|
9628
9654
|
// src/amaster-runtime-daemon.mjs
|
|
9629
|
-
var CONNECTOR_VERSION = "0.1.1-beta.
|
|
9655
|
+
var CONNECTOR_VERSION = "0.1.1-beta.36";
|
|
9630
9656
|
var CONNECTOR_CONTRACT_VERSION = "2026-06-04.v1";
|
|
9631
9657
|
var SOURCE_ACQUISITION_CAPABILITY = "source_acquisition_v1";
|
|
9632
9658
|
var SOURCE_ACQUISITION_PROFILE_VERSION = "source_acquisition_v1";
|
|
@@ -11050,7 +11076,11 @@ function buildExecutorEnv(config, command, workspace) {
|
|
|
11050
11076
|
const issueId = commandIssueId(command) ?? "";
|
|
11051
11077
|
const companyId = readString(runtimeAuth.companyId) ?? readString(asRecord(command.payload).companyId) ?? "";
|
|
11052
11078
|
const baseEnv = { ...process.env };
|
|
11053
|
-
for (const name of
|
|
11079
|
+
for (const name of [
|
|
11080
|
+
...MANAGED_PI_PROVIDER_ENV_NAMES,
|
|
11081
|
+
...MANAGED_PI_HELIGE_EXECUTION_ENV_NAMES,
|
|
11082
|
+
...MANAGED_PI_LEGACY_PLATFORM_EXECUTION_ENV_NAMES
|
|
11083
|
+
]) delete baseEnv[name];
|
|
11054
11084
|
const executorPaths = readStringArray(config.executorPaths);
|
|
11055
11085
|
if (executorPaths.length > 0) {
|
|
11056
11086
|
baseEnv.PATH = [...executorPaths, baseEnv.PATH ?? ""].filter(Boolean).join(delimiter3);
|
|
@@ -14108,7 +14138,12 @@ async function executeRunCommand(config, command) {
|
|
|
14108
14138
|
}
|
|
14109
14139
|
if (executor.kind === "pi") {
|
|
14110
14140
|
piResolvedProviderConfig = executorEnv;
|
|
14111
|
-
for (const envName of [
|
|
14141
|
+
for (const envName of [
|
|
14142
|
+
"AMASTER_API_KEY",
|
|
14143
|
+
"AMASTER_PLATFORM_OAUTH_TOKEN",
|
|
14144
|
+
...MANAGED_PI_HELIGE_EXECUTION_PROTECTED_ENV_NAMES,
|
|
14145
|
+
"PLATFORM_ACCESS_TOKEN"
|
|
14146
|
+
]) {
|
|
14112
14147
|
const protectedValue = readString(piResolvedProviderConfig[envName]);
|
|
14113
14148
|
if (protectedValue && !providerProtectedValues.includes(protectedValue)) {
|
|
14114
14149
|
providerProtectedValues.push(protectedValue);
|
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.36";
|
|
10
10
|
|
|
11
11
|
const CAPABILITIES = [
|
|
12
12
|
"remote_registration",
|