@alan-ai-hq/agent-manager-darwin-arm64 0.1.142 → 0.1.143
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/alan-agent.cjs +14 -9
- package/alan-holder.cjs +9 -4
- package/package.json +1 -1
package/alan-agent.cjs
CHANGED
|
@@ -54219,7 +54219,7 @@ var require_websocket_server = __commonJS({
|
|
|
54219
54219
|
// package.json
|
|
54220
54220
|
var package_default = {
|
|
54221
54221
|
name: "@alan-ai-hq/agent-manager",
|
|
54222
|
-
version: "0.1.
|
|
54222
|
+
version: "0.1.143",
|
|
54223
54223
|
private: true,
|
|
54224
54224
|
type: "module",
|
|
54225
54225
|
description: "Alan machine runtime (alan-agent): identity, link, reconciler, session holders, run log, uploader, local API",
|
|
@@ -64718,6 +64718,9 @@ function uuidV5(name, namespace) {
|
|
|
64718
64718
|
function alanSkillId(slug) {
|
|
64719
64719
|
return uuidV5(`alan:${slug}`, ALAN_SKILL_NAMESPACE);
|
|
64720
64720
|
}
|
|
64721
|
+
function alanSkillVersionId(slug, contentHash) {
|
|
64722
|
+
return uuidV5(`alan:${slug}:${contentHash}`, ALAN_SKILL_NAMESPACE);
|
|
64723
|
+
}
|
|
64721
64724
|
|
|
64722
64725
|
// src/capabilities/skills/store.ts
|
|
64723
64726
|
init_runtime_v2();
|
|
@@ -64797,18 +64800,20 @@ async function isIntact(layout, skill) {
|
|
|
64797
64800
|
return false;
|
|
64798
64801
|
}
|
|
64799
64802
|
}
|
|
64800
|
-
async function resolveNativeBuiltIn(layout, invocation) {
|
|
64803
|
+
async function resolveNativeBuiltIn(layout, invocation, baked) {
|
|
64801
64804
|
const slug = invocation.displayName;
|
|
64802
64805
|
if (layout.nativeDir === null || invocation.skillId !== alanSkillId(slug)) return null;
|
|
64803
64806
|
const directory = (0, import_node_path42.join)(layout.nativeDir, slug);
|
|
64804
64807
|
try {
|
|
64805
|
-
await inspectSkillPackage(directory, { expectedName: slug });
|
|
64808
|
+
const inspected = await inspectSkillPackage(directory, { expectedName: slug });
|
|
64809
|
+
if (baked === "exact" && alanSkillVersionId(slug, inspected.contentHash) !== invocation.versionId)
|
|
64810
|
+
return null;
|
|
64806
64811
|
return { packageDirectory: directory };
|
|
64807
64812
|
} catch {
|
|
64808
64813
|
return null;
|
|
64809
64814
|
}
|
|
64810
64815
|
}
|
|
64811
|
-
async function resolveSkillInvocations(layout, invocations) {
|
|
64816
|
+
async function resolveSkillInvocations(layout, invocations, baked = "any") {
|
|
64812
64817
|
if (invocations.length === 0) return { kind: "resolved", skills: [] };
|
|
64813
64818
|
const installed = await readInstalledSkills(layout);
|
|
64814
64819
|
const local = invocations.some((invocation) => invocation.kind === "local_skill") ? await readLocalSkills(layout) : null;
|
|
@@ -64828,7 +64833,7 @@ async function resolveSkillInvocations(layout, invocations) {
|
|
|
64828
64833
|
resolved.push({ packageDirectory: packageDirectory(layout, skill.versionId) });
|
|
64829
64834
|
continue;
|
|
64830
64835
|
}
|
|
64831
|
-
const native = await resolveNativeBuiltIn(layout, invocation);
|
|
64836
|
+
const native = await resolveNativeBuiltIn(layout, invocation, baked);
|
|
64832
64837
|
if (native === null) missing.push(invocation.displayName);
|
|
64833
64838
|
else resolved.push(native);
|
|
64834
64839
|
}
|
|
@@ -65427,14 +65432,14 @@ function openMachineSkills(options) {
|
|
|
65427
65432
|
const running = flight.running;
|
|
65428
65433
|
if (running !== void 0) {
|
|
65429
65434
|
await running;
|
|
65430
|
-
if ((await resolveSkillInvocations(layout, named)).kind === "resolved") return;
|
|
65435
|
+
if ((await resolveSkillInvocations(layout, named, "exact")).kind === "resolved") return;
|
|
65431
65436
|
}
|
|
65432
65437
|
await exchange3();
|
|
65433
65438
|
};
|
|
65434
65439
|
const rescanUntilResolved = async (named) => {
|
|
65435
65440
|
for (let pass = 0; pass < 2; pass += 1) {
|
|
65436
65441
|
await rescan();
|
|
65437
|
-
if ((await resolveSkillInvocations(layout, named)).kind === "resolved") return;
|
|
65442
|
+
if ((await resolveSkillInvocations(layout, named, "exact")).kind === "resolved") return;
|
|
65438
65443
|
}
|
|
65439
65444
|
};
|
|
65440
65445
|
const recordedUntilResolved = (named, until) => new Promise((resolve12) => {
|
|
@@ -65444,7 +65449,7 @@ function openMachineSkills(options) {
|
|
|
65444
65449
|
resolve12();
|
|
65445
65450
|
};
|
|
65446
65451
|
const check3 = () => {
|
|
65447
|
-
void resolveSkillInvocations(layout, named).then((resolution) => {
|
|
65452
|
+
void resolveSkillInvocations(layout, named, "exact").then((resolution) => {
|
|
65448
65453
|
if (resolution.kind === "resolved") done();
|
|
65449
65454
|
});
|
|
65450
65455
|
};
|
|
@@ -65461,7 +65466,7 @@ function openMachineSkills(options) {
|
|
|
65461
65466
|
rescan,
|
|
65462
65467
|
prepare: async (invocations, signal) => {
|
|
65463
65468
|
const named = invocations ?? [];
|
|
65464
|
-
if ((await resolveSkillInvocations(layout, named)).kind === "resolved") return;
|
|
65469
|
+
if ((await resolveSkillInvocations(layout, named, "exact")).kind === "resolved") return;
|
|
65465
65470
|
const picksLocal = named.some((invocation) => invocation.kind === "local_skill");
|
|
65466
65471
|
const settled2 = new AbortController();
|
|
65467
65472
|
const until = AbortSignal.any([signal, AbortSignal.timeout(waitMs), settled2.signal]);
|
package/alan-holder.cjs
CHANGED
|
@@ -46187,6 +46187,9 @@ function uuidV5(name, namespace) {
|
|
|
46187
46187
|
function alanSkillId(slug) {
|
|
46188
46188
|
return uuidV5(`alan:${slug}`, ALAN_SKILL_NAMESPACE);
|
|
46189
46189
|
}
|
|
46190
|
+
function alanSkillVersionId(slug, contentHash) {
|
|
46191
|
+
return uuidV5(`alan:${slug}:${contentHash}`, ALAN_SKILL_NAMESPACE);
|
|
46192
|
+
}
|
|
46190
46193
|
|
|
46191
46194
|
// src/capabilities/skills/store.ts
|
|
46192
46195
|
init_runtime_v2();
|
|
@@ -46260,18 +46263,20 @@ async function isIntact(layout, skill) {
|
|
|
46260
46263
|
return false;
|
|
46261
46264
|
}
|
|
46262
46265
|
}
|
|
46263
|
-
async function resolveNativeBuiltIn(layout, invocation) {
|
|
46266
|
+
async function resolveNativeBuiltIn(layout, invocation, baked) {
|
|
46264
46267
|
const slug = invocation.displayName;
|
|
46265
46268
|
if (layout.nativeDir === null || invocation.skillId !== alanSkillId(slug)) return null;
|
|
46266
46269
|
const directory = (0, import_node_path11.join)(layout.nativeDir, slug);
|
|
46267
46270
|
try {
|
|
46268
|
-
await inspectSkillPackage(directory, { expectedName: slug });
|
|
46271
|
+
const inspected = await inspectSkillPackage(directory, { expectedName: slug });
|
|
46272
|
+
if (baked === "exact" && alanSkillVersionId(slug, inspected.contentHash) !== invocation.versionId)
|
|
46273
|
+
return null;
|
|
46269
46274
|
return { packageDirectory: directory };
|
|
46270
46275
|
} catch {
|
|
46271
46276
|
return null;
|
|
46272
46277
|
}
|
|
46273
46278
|
}
|
|
46274
|
-
async function resolveSkillInvocations(layout, invocations) {
|
|
46279
|
+
async function resolveSkillInvocations(layout, invocations, baked = "any") {
|
|
46275
46280
|
if (invocations.length === 0) return { kind: "resolved", skills: [] };
|
|
46276
46281
|
const installed = await readInstalledSkills(layout);
|
|
46277
46282
|
const local = invocations.some((invocation) => invocation.kind === "local_skill") ? await readLocalSkills(layout) : null;
|
|
@@ -46291,7 +46296,7 @@ async function resolveSkillInvocations(layout, invocations) {
|
|
|
46291
46296
|
resolved.push({ packageDirectory: packageDirectory(layout, skill.versionId) });
|
|
46292
46297
|
continue;
|
|
46293
46298
|
}
|
|
46294
|
-
const native = await resolveNativeBuiltIn(layout, invocation);
|
|
46299
|
+
const native = await resolveNativeBuiltIn(layout, invocation, baked);
|
|
46295
46300
|
if (native === null) missing.push(invocation.displayName);
|
|
46296
46301
|
else resolved.push(native);
|
|
46297
46302
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alan-ai-hq/agent-manager-darwin-arm64",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.143",
|
|
4
4
|
"description": "Alan machine runtime (alan-agent) for one platform: the official Node.js binary, the runtime bundle and its launcher. Installed by @alan-ai-hq/agent-manager.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"homepage": "https://tryalan.ai",
|