@themoltnet/pi-runtime 0.6.0 → 0.6.2
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/index.d.ts +3 -0
- package/dist/index.js +58 -11
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -617,6 +617,9 @@ export declare interface GateInput {
|
|
|
617
617
|
analyze: (command: string) => CommandAnalysis;
|
|
618
618
|
}
|
|
619
619
|
|
|
620
|
+
/** Commands guaranteed by the base Gondolin snapshot. */
|
|
621
|
+
export declare const GONDOLIN_BASE_EXECUTABLES: readonly string[];
|
|
622
|
+
|
|
620
623
|
export declare const GONDOLIN_TOOL_NAMES: readonly ["read", "write", "edit", "bash", "ls", "find", "grep"];
|
|
621
624
|
|
|
622
625
|
export declare interface GondolinTemplateDefinition {
|
package/dist/index.js
CHANGED
|
@@ -1616,6 +1616,46 @@ function deepFreeze(value) {
|
|
|
1616
1616
|
deepFreeze(RUNTIME_PROFILE_CONTEXT_CATALOGUE);
|
|
1617
1617
|
Object.freeze(Object.keys(RUNTIME_PROFILE_CONTEXT_CATALOGUE.recipes));
|
|
1618
1618
|
//#endregion
|
|
1619
|
+
//#region ../models/src/credential-scopes.ts
|
|
1620
|
+
var CREDENTIAL_SCOPES = {
|
|
1621
|
+
AgentProfile: "agent:profile",
|
|
1622
|
+
ConnectorInvoke: "connector:invoke",
|
|
1623
|
+
CryptoSign: "crypto:sign",
|
|
1624
|
+
DiaryManage: "diary:manage",
|
|
1625
|
+
DiaryRead: "diary:read",
|
|
1626
|
+
DiaryWrite: "diary:write",
|
|
1627
|
+
HumanProfile: "human:profile",
|
|
1628
|
+
KeyManage: "key:manage",
|
|
1629
|
+
PackRead: "pack:read",
|
|
1630
|
+
PackWrite: "pack:write",
|
|
1631
|
+
RuntimeManage: "runtime:manage",
|
|
1632
|
+
RuntimeRead: "runtime:read",
|
|
1633
|
+
TaskClaim: "task:claim",
|
|
1634
|
+
TaskExecute: "task:execute",
|
|
1635
|
+
TaskManage: "task:manage",
|
|
1636
|
+
TaskRead: "task:read",
|
|
1637
|
+
TeamManage: "team:manage",
|
|
1638
|
+
TeamRead: "team:read"
|
|
1639
|
+
};
|
|
1640
|
+
var ALL_CREDENTIAL_SCOPES = Object.freeze(Object.values(CREDENTIAL_SCOPES));
|
|
1641
|
+
CREDENTIAL_SCOPES.AgentProfile, CREDENTIAL_SCOPES.RuntimeRead, CREDENTIAL_SCOPES.TaskRead, CREDENTIAL_SCOPES.TaskClaim, CREDENTIAL_SCOPES.TaskExecute;
|
|
1642
|
+
Object.freeze(ALL_CREDENTIAL_SCOPES.filter((scope) => scope !== CREDENTIAL_SCOPES.HumanProfile));
|
|
1643
|
+
[
|
|
1644
|
+
CREDENTIAL_SCOPES.AgentProfile,
|
|
1645
|
+
CREDENTIAL_SCOPES.CryptoSign,
|
|
1646
|
+
CREDENTIAL_SCOPES.DiaryManage,
|
|
1647
|
+
CREDENTIAL_SCOPES.DiaryRead,
|
|
1648
|
+
CREDENTIAL_SCOPES.DiaryWrite,
|
|
1649
|
+
CREDENTIAL_SCOPES.HumanProfile,
|
|
1650
|
+
CREDENTIAL_SCOPES.PackRead,
|
|
1651
|
+
CREDENTIAL_SCOPES.PackWrite,
|
|
1652
|
+
CREDENTIAL_SCOPES.TaskExecute,
|
|
1653
|
+
CREDENTIAL_SCOPES.TaskManage,
|
|
1654
|
+
CREDENTIAL_SCOPES.TaskRead,
|
|
1655
|
+
CREDENTIAL_SCOPES.TeamManage,
|
|
1656
|
+
CREDENTIAL_SCOPES.TeamRead
|
|
1657
|
+
].filter((scope) => scope !== CREDENTIAL_SCOPES.HumanProfile);
|
|
1658
|
+
//#endregion
|
|
1619
1659
|
//#region ../models/src/preview-sign.ts
|
|
1620
1660
|
function schemaRef$1(schema, id) {
|
|
1621
1661
|
return Type$1.Unsafe(Type$1.Ref(id));
|
|
@@ -3927,17 +3967,24 @@ Type$1.Object({
|
|
|
3927
3967
|
* The cache key is a hash of the full config. When any input changes,
|
|
3928
3968
|
* a new snapshot is built automatically.
|
|
3929
3969
|
*/
|
|
3970
|
+
/** Alpine packages whose commands are guaranteed in every snapshot. */
|
|
3971
|
+
var BASE_ALPINE_PACKAGE_EXECUTABLES = {
|
|
3972
|
+
curl: "curl",
|
|
3973
|
+
file: "file",
|
|
3974
|
+
git: "git",
|
|
3975
|
+
jq: "jq",
|
|
3976
|
+
ripgrep: "rg",
|
|
3977
|
+
tar: "tar",
|
|
3978
|
+
xz: "xz"
|
|
3979
|
+
};
|
|
3930
3980
|
/** Alpine packages required by every snapshot. */
|
|
3931
|
-
var BASE_ALPINE_PACKAGES = [
|
|
3932
|
-
|
|
3933
|
-
|
|
3934
|
-
|
|
3935
|
-
"
|
|
3936
|
-
"
|
|
3937
|
-
|
|
3938
|
-
"tar",
|
|
3939
|
-
"xz"
|
|
3940
|
-
];
|
|
3981
|
+
var BASE_ALPINE_PACKAGES = ["ca-certificates", ...Object.keys(BASE_ALPINE_PACKAGE_EXECUTABLES)];
|
|
3982
|
+
/** Commands guaranteed by the base Gondolin snapshot. */
|
|
3983
|
+
var GONDOLIN_BASE_EXECUTABLES = Object.freeze([
|
|
3984
|
+
...Object.values(BASE_ALPINE_PACKAGE_EXECUTABLES),
|
|
3985
|
+
"gh",
|
|
3986
|
+
"moltnet"
|
|
3987
|
+
].sort());
|
|
3941
3988
|
/** gh CLI version installed in every snapshot. */
|
|
3942
3989
|
var GH_VERSION = "2.74.0";
|
|
3943
3990
|
/** MoltNet CLI version — downloaded as a binary, no Node needed. */
|
|
@@ -8497,4 +8544,4 @@ function describeToolErrorMessage(result) {
|
|
|
8497
8544
|
}
|
|
8498
8545
|
}
|
|
8499
8546
|
//#endregion
|
|
8500
|
-
export { GONDOLIN_TOOL_NAMES, HOST_EXEC_DEFAULT_BASE_ENV, MOLTNET_TOOL_NAMES, PI_EXECUTOR_MANIFEST_VERSION, PI_RUNTIME_DEFINITION_VERSION, activateAgentEnv, buildAgentSession, buildPiExecutorManifest, buildRuntimeKernel, buildWorkspaceMountInstructions, createGondolinBashOps, createGondolinEditOps, createGondolinFindOps, createGondolinLsOps, createGondolinReadOps, createGondolinToolDefinitions, createGondolinWriteOps, createMoltNetTools, createPiOtelExtension, createPiRetryTriage, createPiTaskExecutor, createSubagentTool, createToolPolicyExtension, decideForEvent, decideToolCall, defineGondolinTemplate, definePiExtension, definePiRuntime, definePiTool, enabledPiToolNames, ensureSnapshot, executeGondolinGrep, executePiTask, filterModelVisibleTools, findMainWorktree, injectRuntimeContext as injectTaskContext, isKernelTool, isResolvedPathInsideRoot, isToolVisible, loadCredentials, materializePiExtensions, materializePiTools, normalizeRetryTriageResult, redactRetryTriageSecrets, resolveSessionToolPolicy, resolveTaskWorktreePath, resumeVm, toGuestPath };
|
|
8547
|
+
export { GONDOLIN_BASE_EXECUTABLES, GONDOLIN_TOOL_NAMES, HOST_EXEC_DEFAULT_BASE_ENV, MOLTNET_TOOL_NAMES, PI_EXECUTOR_MANIFEST_VERSION, PI_RUNTIME_DEFINITION_VERSION, activateAgentEnv, buildAgentSession, buildPiExecutorManifest, buildRuntimeKernel, buildWorkspaceMountInstructions, createGondolinBashOps, createGondolinEditOps, createGondolinFindOps, createGondolinLsOps, createGondolinReadOps, createGondolinToolDefinitions, createGondolinWriteOps, createMoltNetTools, createPiOtelExtension, createPiRetryTriage, createPiTaskExecutor, createSubagentTool, createToolPolicyExtension, decideForEvent, decideToolCall, defineGondolinTemplate, definePiExtension, definePiRuntime, definePiTool, enabledPiToolNames, ensureSnapshot, executeGondolinGrep, executePiTask, filterModelVisibleTools, findMainWorktree, injectRuntimeContext as injectTaskContext, isKernelTool, isResolvedPathInsideRoot, isToolVisible, loadCredentials, materializePiExtensions, materializePiTools, normalizeRetryTriageResult, redactRetryTriageSecrets, resolveSessionToolPolicy, resolveTaskWorktreePath, resumeVm, toGuestPath };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@themoltnet/pi-runtime",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.2",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "Composable MoltNet runtime kernel for Pi agents in Gondolin VMs",
|
|
@@ -31,9 +31,9 @@
|
|
|
31
31
|
"@opentelemetry/api": "^1.9.0",
|
|
32
32
|
"multiformats": "^13.3.0",
|
|
33
33
|
"typebox": "^1.2.8",
|
|
34
|
-
"@themoltnet/
|
|
35
|
-
"@themoltnet/
|
|
36
|
-
"@themoltnet/
|
|
34
|
+
"@themoltnet/sdk": "0.129.0",
|
|
35
|
+
"@themoltnet/shell-command-analyzer": "0.3.0",
|
|
36
|
+
"@themoltnet/agent-runtime": "0.40.1"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
39
39
|
"@earendil-works/pi-ai": "0.79.4",
|