@alan-ai-hq/agent-manager-linux-arm64 0.1.144 → 0.1.145
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 +631 -453
- package/alan-holder.cjs +52 -27
- package/package.json +1 -1
package/alan-holder.cjs
CHANGED
|
@@ -23663,6 +23663,13 @@ var init_notice_visibility = __esm({
|
|
|
23663
23663
|
}
|
|
23664
23664
|
});
|
|
23665
23665
|
|
|
23666
|
+
// ../shared/dist/agent/acp/presentation/turn-artifacts.js
|
|
23667
|
+
var init_turn_artifacts = __esm({
|
|
23668
|
+
"../shared/dist/agent/acp/presentation/turn-artifacts.js"() {
|
|
23669
|
+
"use strict";
|
|
23670
|
+
}
|
|
23671
|
+
});
|
|
23672
|
+
|
|
23666
23673
|
// ../shared/dist/agent/acp/presentation/prepare-conversation-turns.js
|
|
23667
23674
|
var init_prepare_conversation_turns = __esm({
|
|
23668
23675
|
"../shared/dist/agent/acp/presentation/prepare-conversation-turns.js"() {
|
|
@@ -23753,6 +23760,7 @@ var init_acp = __esm({
|
|
|
23753
23760
|
init_notice_visibility();
|
|
23754
23761
|
init_prepare_conversation_turns();
|
|
23755
23762
|
init_terminal_events();
|
|
23763
|
+
init_turn_artifacts();
|
|
23756
23764
|
init_types3();
|
|
23757
23765
|
init_read();
|
|
23758
23766
|
init_reduce();
|
|
@@ -24601,7 +24609,21 @@ var init_chunk_54ZRJOQP = __esm({
|
|
|
24601
24609
|
}
|
|
24602
24610
|
});
|
|
24603
24611
|
|
|
24604
|
-
// ../agent-core/dist/chunk-
|
|
24612
|
+
// ../agent-core/dist/chunk-72NSEYHK.js
|
|
24613
|
+
function detectImageMimeType(buffer) {
|
|
24614
|
+
if (buffer.length >= 8 && buffer.subarray(0, 8).equals(PNG_SIGNATURE)) return "image/png";
|
|
24615
|
+
if (buffer.length >= 3 && buffer[0] === 255 && buffer[1] === 216 && buffer[2] === 255) {
|
|
24616
|
+
return "image/jpeg";
|
|
24617
|
+
}
|
|
24618
|
+
if (buffer.length >= 6) {
|
|
24619
|
+
const signature = buffer.subarray(0, 6).toString("ascii");
|
|
24620
|
+
if (signature === "GIF87a" || signature === "GIF89a") return "image/gif";
|
|
24621
|
+
}
|
|
24622
|
+
if (buffer.length >= 12 && buffer.subarray(0, 4).toString("ascii") === "RIFF" && buffer.subarray(8, 12).toString("ascii") === "WEBP") {
|
|
24623
|
+
return "image/webp";
|
|
24624
|
+
}
|
|
24625
|
+
return null;
|
|
24626
|
+
}
|
|
24605
24627
|
function collectStrings(value, out) {
|
|
24606
24628
|
if (typeof value === "string") out.push(value);
|
|
24607
24629
|
else if (Array.isArray(value)) for (const item of value) collectStrings(item, out);
|
|
@@ -24970,9 +24992,9 @@ function silentStartError(name, timeoutMs) {
|
|
|
24970
24992
|
message: `${name} printed nothing for ${seconds}s after it started and was stopped. Send your message again.`
|
|
24971
24993
|
};
|
|
24972
24994
|
}
|
|
24973
|
-
var import_crypto3, import_fs4, import_path3, IMAGE_MIME_BY_EXT, VIDEO_MIME_BY_EXT, IMAGE_EXTENSIONS, VIDEO_EXTENSIONS, MAX_IMAGE_BYTES, MAX_VIDEO_BYTES, AGENT_BROWSER_MENTION, LocalMediaReader, SessionOpenRefusal, JsonRpcError, ACP_PROTOCOL_VERSION, ACP_ERROR, STDERR_TAIL_LINES, RESULT_EXIT_GRACE_MS, PerTurnSession;
|
|
24974
|
-
var
|
|
24975
|
-
"../agent-core/dist/chunk-
|
|
24995
|
+
var import_crypto3, import_fs4, import_path3, PNG_SIGNATURE, IMAGE_MIME_BY_EXT, VIDEO_MIME_BY_EXT, IMAGE_EXTENSIONS, VIDEO_EXTENSIONS, MAX_IMAGE_BYTES, MAX_VIDEO_BYTES, AGENT_BROWSER_MENTION, LocalMediaReader, SessionOpenRefusal, JsonRpcError, ACP_PROTOCOL_VERSION, ACP_ERROR, STDERR_TAIL_LINES, RESULT_EXIT_GRACE_MS, PerTurnSession;
|
|
24996
|
+
var init_chunk_72NSEYHK = __esm({
|
|
24997
|
+
"../agent-core/dist/chunk-72NSEYHK.js"() {
|
|
24976
24998
|
"use strict";
|
|
24977
24999
|
init_chunk_XC5676SG();
|
|
24978
25000
|
init_chunk_54ZRJOQP();
|
|
@@ -24983,6 +25005,7 @@ var init_chunk_VMGVHPBB = __esm({
|
|
|
24983
25005
|
import_path3 = require("path");
|
|
24984
25006
|
init_agent2();
|
|
24985
25007
|
init_acp();
|
|
25008
|
+
PNG_SIGNATURE = Buffer.from([137, 80, 78, 71, 13, 10, 26, 10]);
|
|
24986
25009
|
IMAGE_MIME_BY_EXT = {
|
|
24987
25010
|
".gif": "image/gif",
|
|
24988
25011
|
".jpeg": "image/jpeg",
|
|
@@ -25438,7 +25461,7 @@ var init_chunk_J2KTV5FP = __esm({
|
|
|
25438
25461
|
}
|
|
25439
25462
|
});
|
|
25440
25463
|
|
|
25441
|
-
// ../agent-core/dist/chunk-
|
|
25464
|
+
// ../agent-core/dist/chunk-FPGAN4XO.js
|
|
25442
25465
|
function truncate(value, limit) {
|
|
25443
25466
|
const normalized2 = Array.from(value, (character) => {
|
|
25444
25467
|
const code = character.charCodeAt(0);
|
|
@@ -25701,7 +25724,7 @@ function cloudExecutionSection(spec) {
|
|
|
25701
25724
|
);
|
|
25702
25725
|
if (!isReadOnlyMode(spec.mode) && !isReadOnlyAgent(spec.agentId)) {
|
|
25703
25726
|
lines.push(
|
|
25704
|
-
"Own the authorized work end to end: inspect context, make reasonable assumptions, implement, test, review and create or update the pull request for code changes when the repository workflow calls for one. Do not stop at a plan or ask for routine implementation choices or permission already granted. Ask only for a missing secret, an essential decision you cannot derive, or an action requiring explicit approval. Respect the user's scope, repository rules and tool authorization; report
|
|
25727
|
+
"Own the authorized work end to end: inspect context, make reasonable assumptions, implement, test, review and create or update the pull request for code changes when the repository workflow calls for one. Do not stop at a plan or ask for routine implementation choices or permission already granted. For application changes, check the repository's setup instructions and configured start commands, start the app if needed, and verify it is reachable before testing. For user-facing flows, use alan-test-feature when installed to test the running app, capture a video, and create a test report. Ask only for a missing secret, an essential decision you cannot derive, or an action requiring explicit approval. Respect the user's scope, repository rules and tool authorization; report blocked capabilities and validation gaps while continuing independent work."
|
|
25705
25728
|
);
|
|
25706
25729
|
}
|
|
25707
25730
|
const skills = spec.promptContext?.availableSkills ?? [];
|
|
@@ -25799,8 +25822,8 @@ ${body}` : body;
|
|
|
25799
25822
|
return spec.mode === "plan" ? planModePrefix(prefixed) : prefixed;
|
|
25800
25823
|
}
|
|
25801
25824
|
var MAX_PARSED_ATTACHMENTS, MAX_PARSED_ATTACHMENT_CHARS, MAX_METADATA_CHARS, UNAVAILABLE, READ_ONLY_MODES, AGENT_MODES;
|
|
25802
|
-
var
|
|
25803
|
-
"../agent-core/dist/chunk-
|
|
25825
|
+
var init_chunk_FPGAN4XO = __esm({
|
|
25826
|
+
"../agent-core/dist/chunk-FPGAN4XO.js"() {
|
|
25804
25827
|
"use strict";
|
|
25805
25828
|
init_agent2();
|
|
25806
25829
|
MAX_PARSED_ATTACHMENTS = 3;
|
|
@@ -26881,12 +26904,12 @@ var init_claude = __esm({
|
|
|
26881
26904
|
"../agent-core/dist/providers/claude.js"() {
|
|
26882
26905
|
"use strict";
|
|
26883
26906
|
init_chunk_SBT5W7L4();
|
|
26884
|
-
|
|
26907
|
+
init_chunk_72NSEYHK();
|
|
26885
26908
|
init_chunk_XC5676SG();
|
|
26886
26909
|
init_chunk_54ZRJOQP();
|
|
26887
26910
|
init_chunk_J2KTV5FP();
|
|
26888
26911
|
init_chunk_M6YHY2EZ();
|
|
26889
|
-
|
|
26912
|
+
init_chunk_FPGAN4XO();
|
|
26890
26913
|
init_chunk_YXWJW7I5();
|
|
26891
26914
|
init_effort();
|
|
26892
26915
|
import_crypto6 = require("crypto");
|
|
@@ -28066,7 +28089,7 @@ function elicitationAnswer(elicitation, answer) {
|
|
|
28066
28089
|
return { action: "accept", content };
|
|
28067
28090
|
}
|
|
28068
28091
|
function inferImageMimeType(buffer) {
|
|
28069
|
-
if (buffer.length >= 8 && buffer.subarray(0, 8).equals(
|
|
28092
|
+
if (buffer.length >= 8 && buffer.subarray(0, 8).equals(PNG_SIGNATURE2)) return "image/png";
|
|
28070
28093
|
if (buffer.length >= 3 && buffer[0] === 255 && buffer[1] === 216 && buffer[2] === 255) {
|
|
28071
28094
|
return "image/jpeg";
|
|
28072
28095
|
}
|
|
@@ -29020,17 +29043,17 @@ function codexTurnInput(run, context) {
|
|
|
29020
29043
|
...images.length ? { imagePaths: images.map((image) => image.path) } : {}
|
|
29021
29044
|
};
|
|
29022
29045
|
}
|
|
29023
|
-
var import_fs6, import_path6, import_crypto8, import_crypto9, import_crypto10, TokenRefresher, MCP_STARTUP_TIMEOUT_SEC, FIELD_TYPES, YES_NO, ACCEPT_DECLINE, MAX_INLINE_GENERATED_IMAGE_BYTES,
|
|
29046
|
+
var import_fs6, import_path6, import_crypto8, import_crypto9, import_crypto10, TokenRefresher, MCP_STARTUP_TIMEOUT_SEC, FIELD_TYPES, YES_NO, ACCEPT_DECLINE, MAX_INLINE_GENERATED_IMAGE_BYTES, PNG_SIGNATURE2, JPEG_NON_FRAME_MARKERS, IMAGE_GEN_CALL, PROMPT_LITERAL, RELOCATE_EVERY_MS, CodexImageGenerationFold, CodexRolloutImages, USER_INPUT_METHOD, PERMISSIONS_METHOD, ELICITATION_METHOD, COMMAND_OR_FILE, LEGACY, DECISIONS, COORDINATION_TOOLS, SETTLED_AGENT, STATUS, CHANGE_OPERATIONS, SILENT_ON_START, IGNORED_ITEMS, PLAN_STATUS, WORKER_LIFECYCLE, INFO_KINDS, SILENT, CodexTurn, STDERR_TAIL_LINES3, MAX_BETWEEN_UPDATES, UNSUPPORTED_REQUEST, DECLINED_ELICITATION, IMAGE_CATCH_UP_MS, IMAGE_POLL_MS, CodexSession, CODEX_MIN_VERSION, CODEX_REQUIREMENT, CODEX_TESTED_LINE, DEFAULTS2, CLIENT_INFO, STATUS2, EXITED_WITHOUT_RESPONSE, CodexExecTurn, DEFAULTS22, CodexExecSession;
|
|
29024
29047
|
var init_codex = __esm({
|
|
29025
29048
|
"../agent-core/dist/providers/codex.js"() {
|
|
29026
29049
|
"use strict";
|
|
29027
29050
|
init_chunk_SBT5W7L4();
|
|
29028
|
-
|
|
29051
|
+
init_chunk_72NSEYHK();
|
|
29029
29052
|
init_chunk_XC5676SG();
|
|
29030
29053
|
init_chunk_54ZRJOQP();
|
|
29031
29054
|
init_chunk_J2KTV5FP();
|
|
29032
29055
|
init_chunk_M6YHY2EZ();
|
|
29033
|
-
|
|
29056
|
+
init_chunk_FPGAN4XO();
|
|
29034
29057
|
init_chunk_YXWJW7I5();
|
|
29035
29058
|
import_fs6 = require("fs");
|
|
29036
29059
|
import_path6 = require("path");
|
|
@@ -29080,7 +29103,7 @@ var init_codex = __esm({
|
|
|
29080
29103
|
];
|
|
29081
29104
|
ACCEPT_DECLINE = [{ label: "Accept" }, { label: "Decline" }];
|
|
29082
29105
|
MAX_INLINE_GENERATED_IMAGE_BYTES = 20 * 1024 * 1024;
|
|
29083
|
-
|
|
29106
|
+
PNG_SIGNATURE2 = Buffer.from([137, 80, 78, 71, 13, 10, 26, 10]);
|
|
29084
29107
|
JPEG_NON_FRAME_MARKERS = /* @__PURE__ */ new Set([196, 200, 204]);
|
|
29085
29108
|
IMAGE_GEN_CALL = /\bimage_gen\w*\s*\(/;
|
|
29086
29109
|
PROMPT_LITERAL = /\bprompt\s*:\s*("(?:[^"\\]|\\.)*")/;
|
|
@@ -37799,7 +37822,7 @@ var require_dist = __commonJS({
|
|
|
37799
37822
|
var init_dist = __esm({
|
|
37800
37823
|
"../agent-core/dist/index.js"() {
|
|
37801
37824
|
"use strict";
|
|
37802
|
-
|
|
37825
|
+
init_chunk_72NSEYHK();
|
|
37803
37826
|
init_chunk_XC5676SG();
|
|
37804
37827
|
init_chunk_54ZRJOQP();
|
|
37805
37828
|
init_chunk_M6YHY2EZ();
|
|
@@ -38546,12 +38569,12 @@ var import_promises23, import_path9, import_crypto12, import_promises24, CURSOR_
|
|
|
38546
38569
|
var init_acp3 = __esm({
|
|
38547
38570
|
"../agent-core/dist/providers/acp.js"() {
|
|
38548
38571
|
"use strict";
|
|
38549
|
-
|
|
38572
|
+
init_chunk_72NSEYHK();
|
|
38550
38573
|
init_chunk_XC5676SG();
|
|
38551
38574
|
init_chunk_54ZRJOQP();
|
|
38552
38575
|
init_chunk_J2KTV5FP();
|
|
38553
38576
|
init_chunk_M6YHY2EZ();
|
|
38554
|
-
|
|
38577
|
+
init_chunk_FPGAN4XO();
|
|
38555
38578
|
init_chunk_YXWJW7I5();
|
|
38556
38579
|
import_promises23 = require("fs/promises");
|
|
38557
38580
|
import_path9 = require("path");
|
|
@@ -40280,12 +40303,12 @@ var import_http4, import_crypto13, import_promises25, import_path10, import_path
|
|
|
40280
40303
|
var init_opencode = __esm({
|
|
40281
40304
|
"../agent-core/dist/providers/opencode.js"() {
|
|
40282
40305
|
"use strict";
|
|
40283
|
-
|
|
40306
|
+
init_chunk_72NSEYHK();
|
|
40284
40307
|
init_chunk_XC5676SG();
|
|
40285
40308
|
init_chunk_54ZRJOQP();
|
|
40286
40309
|
init_chunk_J2KTV5FP();
|
|
40287
40310
|
init_chunk_M6YHY2EZ();
|
|
40288
|
-
|
|
40311
|
+
init_chunk_FPGAN4XO();
|
|
40289
40312
|
init_chunk_YXWJW7I5();
|
|
40290
40313
|
import_http4 = require("http");
|
|
40291
40314
|
init_runtime_v2();
|
|
@@ -42096,12 +42119,12 @@ var import_crypto15, import_promises26, FACTORY_API_VERSION, FACTORY_PROTOCOL_VE
|
|
|
42096
42119
|
var init_droid = __esm({
|
|
42097
42120
|
"../agent-core/dist/providers/droid.js"() {
|
|
42098
42121
|
"use strict";
|
|
42099
|
-
|
|
42122
|
+
init_chunk_72NSEYHK();
|
|
42100
42123
|
init_chunk_XC5676SG();
|
|
42101
42124
|
init_chunk_54ZRJOQP();
|
|
42102
42125
|
init_chunk_J2KTV5FP();
|
|
42103
42126
|
init_chunk_M6YHY2EZ();
|
|
42104
|
-
|
|
42127
|
+
init_chunk_FPGAN4XO();
|
|
42105
42128
|
init_chunk_YXWJW7I5();
|
|
42106
42129
|
init_runtime_v2();
|
|
42107
42130
|
import_crypto15 = require("crypto");
|
|
@@ -43203,11 +43226,11 @@ var init_antigravity = __esm({
|
|
|
43203
43226
|
"../agent-core/dist/providers/antigravity.js"() {
|
|
43204
43227
|
"use strict";
|
|
43205
43228
|
init_chunk_SBT5W7L4();
|
|
43206
|
-
|
|
43229
|
+
init_chunk_72NSEYHK();
|
|
43207
43230
|
init_chunk_XC5676SG();
|
|
43208
43231
|
init_chunk_54ZRJOQP();
|
|
43209
43232
|
init_chunk_M6YHY2EZ();
|
|
43210
|
-
|
|
43233
|
+
init_chunk_FPGAN4XO();
|
|
43211
43234
|
init_chunk_YXWJW7I5();
|
|
43212
43235
|
import_promises27 = require("fs/promises");
|
|
43213
43236
|
import_path12 = require("path");
|
|
@@ -43907,12 +43930,12 @@ var import_promises28, import_path15, import_crypto17, COMMAND_CODE_GRAMMAR_NAME
|
|
|
43907
43930
|
var init_command_code = __esm({
|
|
43908
43931
|
"../agent-core/dist/providers/command-code.js"() {
|
|
43909
43932
|
"use strict";
|
|
43910
|
-
|
|
43933
|
+
init_chunk_72NSEYHK();
|
|
43911
43934
|
init_chunk_XC5676SG();
|
|
43912
43935
|
init_chunk_54ZRJOQP();
|
|
43913
43936
|
init_chunk_J2KTV5FP();
|
|
43914
43937
|
init_chunk_M6YHY2EZ();
|
|
43915
|
-
|
|
43938
|
+
init_chunk_FPGAN4XO();
|
|
43916
43939
|
init_chunk_YXWJW7I5();
|
|
43917
43940
|
import_promises28 = require("fs/promises");
|
|
43918
43941
|
import_path15 = require("path");
|
|
@@ -46914,6 +46937,7 @@ function createHelperMcpAccess(options) {
|
|
|
46914
46937
|
// src/holder/run-inputs.ts
|
|
46915
46938
|
var import_promises30 = require("fs/promises");
|
|
46916
46939
|
var import_node_path18 = require("path");
|
|
46940
|
+
init_dist();
|
|
46917
46941
|
var NO_RUN_INPUTS = {
|
|
46918
46942
|
attachments: [],
|
|
46919
46943
|
providerEnv: {},
|
|
@@ -46938,11 +46962,12 @@ async function prepareRunInputs(spec, { source, tmpDir, signal, skills = [] }) {
|
|
|
46938
46962
|
const bytes = await source.downloadAttachment(spec.runId, attachment.id, signal);
|
|
46939
46963
|
const path = (0, import_node_path18.join)(dir, `${index}-${safeFilename(attachment.filename)}`);
|
|
46940
46964
|
await (0, import_promises30.writeFile)(path, bytes, { mode: 384 });
|
|
46965
|
+
const imageMimeType = attachment.kind === "image" ? detectImageMimeType(Buffer.from(bytes.buffer, bytes.byteOffset, bytes.byteLength)) : null;
|
|
46941
46966
|
attachments.push({
|
|
46942
46967
|
id: attachment.id,
|
|
46943
46968
|
kind: attachment.kind,
|
|
46944
46969
|
filename: attachment.filename,
|
|
46945
|
-
mimeType: attachment.mimeType,
|
|
46970
|
+
mimeType: imageMimeType ?? attachment.mimeType,
|
|
46946
46971
|
size: bytes.byteLength,
|
|
46947
46972
|
path,
|
|
46948
46973
|
...attachment.label === void 0 ? {} : { label: attachment.label },
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alan-ai-hq/agent-manager-linux-arm64",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.145",
|
|
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",
|