@lambdacurry/arbor 0.20.15 → 0.20.16
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/arbor.js +149 -21
- package/package.json +1 -1
package/dist/arbor.js
CHANGED
|
@@ -16831,6 +16831,15 @@ var computerRunDurability = exports_external.looseObject({
|
|
|
16831
16831
|
reasonCode: exports_external.string()
|
|
16832
16832
|
})
|
|
16833
16833
|
});
|
|
16834
|
+
var computerRunDurabilitySummary = exports_external.object({
|
|
16835
|
+
workspace: exports_external.enum(["shared", "isolated"]),
|
|
16836
|
+
parentMutation: exports_external.enum(["direct", "none"]),
|
|
16837
|
+
finishDestroysExecution: exports_external.boolean(),
|
|
16838
|
+
gitPublication: exports_external.object({
|
|
16839
|
+
state: computerRunPublicationState,
|
|
16840
|
+
reasonCode: exports_external.string()
|
|
16841
|
+
})
|
|
16842
|
+
});
|
|
16834
16843
|
var computerRunFinishAssessment = exports_external.looseObject({
|
|
16835
16844
|
state: exports_external.enum(["safe", "blocked", "unknown"]),
|
|
16836
16845
|
requiresDiscard: exports_external.boolean(),
|
|
@@ -16966,6 +16975,43 @@ var computerCapabilityCard = exports_external.looseObject({
|
|
|
16966
16975
|
runtimeActive: exports_external.boolean()
|
|
16967
16976
|
})
|
|
16968
16977
|
});
|
|
16978
|
+
var computerOpenProfile = exports_external.object({
|
|
16979
|
+
id: exports_external.string(),
|
|
16980
|
+
version: exports_external.number(),
|
|
16981
|
+
tools: exports_external.array(exports_external.string()),
|
|
16982
|
+
recommendedEditingPrimitive: exports_external.string()
|
|
16983
|
+
});
|
|
16984
|
+
var computerOpenCapabilities = exports_external.object({
|
|
16985
|
+
capabilities: exports_external.array(exports_external.object({
|
|
16986
|
+
id: exports_external.string(),
|
|
16987
|
+
state: exports_external.enum(["ready", "available"])
|
|
16988
|
+
}))
|
|
16989
|
+
});
|
|
16990
|
+
var computerOpenGuidanceEntry = exports_external.object({
|
|
16991
|
+
class: exports_external.literal("guidance"),
|
|
16992
|
+
scope: exports_external.enum(["space", "topic"]),
|
|
16993
|
+
sourceId: id,
|
|
16994
|
+
strength: exports_external.literal("recommended"),
|
|
16995
|
+
message: exports_external.string()
|
|
16996
|
+
});
|
|
16997
|
+
var computerOpenAgentBrief = exports_external.object({
|
|
16998
|
+
work: exports_external.object({ threadId: id, title: exports_external.string(), objective: exports_external.string() }),
|
|
16999
|
+
guidance: exports_external.array(computerOpenGuidanceEntry),
|
|
17000
|
+
computer: exports_external.object({
|
|
17001
|
+
repositoryState: exports_external.object({
|
|
17002
|
+
source: exports_external.enum(["durable-snapshot", "workspace"]),
|
|
17003
|
+
remoteFreshness: exports_external.literal("unchecked"),
|
|
17004
|
+
guidance: exports_external.string()
|
|
17005
|
+
})
|
|
17006
|
+
}),
|
|
17007
|
+
activeRuns: exports_external.array(exports_external.object({
|
|
17008
|
+
runId: id,
|
|
17009
|
+
label: exports_external.string().nullable(),
|
|
17010
|
+
mode: exports_external.enum(["read", "write"]),
|
|
17011
|
+
execution: exports_external.enum(["shared", "isolated"]),
|
|
17012
|
+
status: exports_external.enum(["active", "finished", "failed", "cancelled"])
|
|
17013
|
+
}))
|
|
17014
|
+
});
|
|
16969
17015
|
var codeSymbol = exports_external.looseObject({
|
|
16970
17016
|
namePath: exports_external.string(),
|
|
16971
17017
|
kind: exports_external.string(),
|
|
@@ -17548,33 +17594,25 @@ var MCP_OUTPUT_SCHEMAS = {
|
|
|
17548
17594
|
guidance: exports_external.array(exports_external.string()).optional(),
|
|
17549
17595
|
contributionLanes: exports_external.array(exports_external.string()).optional()
|
|
17550
17596
|
}),
|
|
17551
|
-
computer_open: exports_external.
|
|
17552
|
-
computerId: id,
|
|
17597
|
+
computer_open: exports_external.object({
|
|
17553
17598
|
computerSessionId: id,
|
|
17554
|
-
|
|
17555
|
-
profile: computerProfile.nullable(),
|
|
17556
|
-
startingSnapshot: snapshot.nullable(),
|
|
17557
|
-
materialized: checkpoint.nullable(),
|
|
17599
|
+
profile: computerOpenProfile.nullable(),
|
|
17558
17600
|
workspaceRoot: exports_external.string(),
|
|
17559
|
-
repositories: exports_external.array(exports_external.
|
|
17601
|
+
repositories: exports_external.array(exports_external.object({ repository: exports_external.string(), path: exports_external.string() })),
|
|
17560
17602
|
defaultCwd: exports_external.string(),
|
|
17561
|
-
capabilities:
|
|
17562
|
-
agentBrief:
|
|
17563
|
-
|
|
17564
|
-
reconciliation: exports_external.looseObject({
|
|
17603
|
+
capabilities: computerOpenCapabilities,
|
|
17604
|
+
agentBrief: computerOpenAgentBrief,
|
|
17605
|
+
reconciliation: exports_external.object({
|
|
17565
17606
|
action: exports_external.literal("automatic_reprovision"),
|
|
17566
17607
|
reason: exports_external.literal("container_profile_revision"),
|
|
17567
17608
|
fromContainerProfileRevision: exports_external.number().int().nullable(),
|
|
17568
17609
|
toContainerProfileRevision: exports_external.number().int().nullable()
|
|
17569
17610
|
}).optional()
|
|
17570
17611
|
}),
|
|
17571
|
-
computer_run_start: exports_external.
|
|
17612
|
+
computer_run_start: exports_external.object({
|
|
17572
17613
|
runId: id,
|
|
17573
17614
|
execution: exports_external.enum(["shared", "isolated"]),
|
|
17574
|
-
|
|
17575
|
-
gitStart: computerRunGitStart.nullable().optional(),
|
|
17576
|
-
durability: computerRunDurability,
|
|
17577
|
-
guidance: exports_external.array(operatingGuidanceEntry),
|
|
17615
|
+
durability: computerRunDurabilitySummary,
|
|
17578
17616
|
status: exports_external.string()
|
|
17579
17617
|
}),
|
|
17580
17618
|
computer_run_finish: exports_external.looseObject({
|
|
@@ -17816,6 +17854,17 @@ function record2(value) {
|
|
|
17816
17854
|
function defined(entries) {
|
|
17817
17855
|
return Object.fromEntries(entries.filter(([, value]) => value !== undefined));
|
|
17818
17856
|
}
|
|
17857
|
+
function selected(value, fields) {
|
|
17858
|
+
const source = record2(value);
|
|
17859
|
+
if (!source)
|
|
17860
|
+
return;
|
|
17861
|
+
return defined(fields.map((field) => [field, source[field]]));
|
|
17862
|
+
}
|
|
17863
|
+
function selectedArray(value, fields) {
|
|
17864
|
+
if (!Array.isArray(value))
|
|
17865
|
+
return;
|
|
17866
|
+
return value.map((entry) => selected(entry, fields) ?? {});
|
|
17867
|
+
}
|
|
17819
17868
|
var OUTPUT_SHAPERS = {
|
|
17820
17869
|
contribute: (result) => defined([
|
|
17821
17870
|
["contributionId", result.contributionId],
|
|
@@ -17852,15 +17901,94 @@ var OUTPUT_SHAPERS = {
|
|
|
17852
17901
|
["withdrawn", result.withdrawn]
|
|
17853
17902
|
]),
|
|
17854
17903
|
dismiss: (result) => defined([["status", result.status]]),
|
|
17904
|
+
computer_open: (result) => {
|
|
17905
|
+
const profile3 = record2(result.profile);
|
|
17906
|
+
const capabilityCard = record2(result.capabilities);
|
|
17907
|
+
const capabilityEntries = Array.isArray(capabilityCard?.capabilities) ? capabilityCard.capabilities.map((value) => {
|
|
17908
|
+
const capability = record2(value) ?? {};
|
|
17909
|
+
return defined([
|
|
17910
|
+
["id", capability.id],
|
|
17911
|
+
["state", capability.state]
|
|
17912
|
+
]);
|
|
17913
|
+
}) : undefined;
|
|
17914
|
+
const agentBrief = record2(result.agentBrief);
|
|
17915
|
+
const work = record2(agentBrief?.work);
|
|
17916
|
+
const computer2 = record2(agentBrief?.computer);
|
|
17917
|
+
const repositories = selectedArray(result.repositories, ["repository", "path"]);
|
|
17918
|
+
const guidance = selectedArray(agentBrief?.guidance, [
|
|
17919
|
+
"class",
|
|
17920
|
+
"scope",
|
|
17921
|
+
"sourceId",
|
|
17922
|
+
"strength",
|
|
17923
|
+
"message"
|
|
17924
|
+
]);
|
|
17925
|
+
const repositoryState = selected(computer2?.repositoryState, [
|
|
17926
|
+
"source",
|
|
17927
|
+
"remoteFreshness",
|
|
17928
|
+
"guidance"
|
|
17929
|
+
]);
|
|
17930
|
+
const activeRuns = selectedArray(agentBrief?.activeRuns, [
|
|
17931
|
+
"runId",
|
|
17932
|
+
"label",
|
|
17933
|
+
"mode",
|
|
17934
|
+
"execution",
|
|
17935
|
+
"status"
|
|
17936
|
+
]);
|
|
17937
|
+
const reconciliation = selected(result.reconciliation, [
|
|
17938
|
+
"action",
|
|
17939
|
+
"reason",
|
|
17940
|
+
"fromContainerProfileRevision",
|
|
17941
|
+
"toContainerProfileRevision"
|
|
17942
|
+
]);
|
|
17943
|
+
return defined([
|
|
17944
|
+
["computerSessionId", result.computerSessionId],
|
|
17945
|
+
[
|
|
17946
|
+
"profile",
|
|
17947
|
+
result.profile === null ? null : profile3 ? defined([
|
|
17948
|
+
["id", profile3.id],
|
|
17949
|
+
["version", profile3.version],
|
|
17950
|
+
["tools", profile3.tools],
|
|
17951
|
+
["recommendedEditingPrimitive", profile3.recommendedEditingPrimitive]
|
|
17952
|
+
]) : undefined
|
|
17953
|
+
],
|
|
17954
|
+
["workspaceRoot", result.workspaceRoot],
|
|
17955
|
+
["repositories", repositories],
|
|
17956
|
+
["defaultCwd", result.defaultCwd],
|
|
17957
|
+
["capabilities", capabilityEntries ? { capabilities: capabilityEntries } : undefined],
|
|
17958
|
+
[
|
|
17959
|
+
"agentBrief",
|
|
17960
|
+
agentBrief ? defined([
|
|
17961
|
+
[
|
|
17962
|
+
"work",
|
|
17963
|
+
work ? defined([
|
|
17964
|
+
["threadId", work.threadId],
|
|
17965
|
+
["title", work.title],
|
|
17966
|
+
["objective", work.objective]
|
|
17967
|
+
]) : undefined
|
|
17968
|
+
],
|
|
17969
|
+
["guidance", guidance],
|
|
17970
|
+
["computer", computer2 ? defined([["repositoryState", repositoryState]]) : undefined],
|
|
17971
|
+
["activeRuns", activeRuns]
|
|
17972
|
+
]) : undefined
|
|
17973
|
+
],
|
|
17974
|
+
["reconciliation", reconciliation]
|
|
17975
|
+
]);
|
|
17976
|
+
},
|
|
17855
17977
|
computer_run_start: (result) => {
|
|
17856
17978
|
const run = record2(result.run) ?? {};
|
|
17979
|
+
const durability = record2(run.durability) ?? {};
|
|
17857
17980
|
return defined([
|
|
17858
17981
|
["runId", run.runId],
|
|
17859
17982
|
["execution", run.execution],
|
|
17860
|
-
[
|
|
17861
|
-
|
|
17862
|
-
|
|
17863
|
-
|
|
17983
|
+
[
|
|
17984
|
+
"durability",
|
|
17985
|
+
defined([
|
|
17986
|
+
["workspace", durability.workspace],
|
|
17987
|
+
["parentMutation", durability.parentMutation],
|
|
17988
|
+
["finishDestroysExecution", durability.finishDestroysExecution],
|
|
17989
|
+
["gitPublication", selected(durability.gitPublication, ["state", "reasonCode"])]
|
|
17990
|
+
])
|
|
17991
|
+
],
|
|
17864
17992
|
["status", run.status]
|
|
17865
17993
|
]);
|
|
17866
17994
|
},
|
|
@@ -18450,7 +18578,7 @@ var ACTION_DEFINITIONS = [
|
|
|
18450
18578
|
{
|
|
18451
18579
|
name: "computer_run_start",
|
|
18452
18580
|
title: "Start a run",
|
|
18453
|
-
description: "Start one bounded unit of work inside an opened Thread Computer when you need a read or write Run. Returns runId
|
|
18581
|
+
description: "Start one bounded unit of work inside an opened Thread Computer when you need a read or write Run. Returns runId, placement/status, and compact durability facts; detailed base Git/snapshot state remains inspectable from the Run receipt, and write Runs default to isolated unless execution='shared' is chosen.",
|
|
18454
18582
|
inputSchema: {
|
|
18455
18583
|
computerSessionId: exports_external.string().describe("the computerSessionId returned by computer_open, cms_…"),
|
|
18456
18584
|
mode: exports_external.enum(["read", "write"]).describe("write for mutable work; read for shared inspection"),
|
package/package.json
CHANGED