@alan-ai-hq/agent-manager-linux-x64 0.1.130 → 0.1.132
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 +115 -120
- package/alan-holder.cjs +114 -119
- package/package.json +1 -1
package/alan-agent.cjs
CHANGED
|
@@ -19993,7 +19993,7 @@ var init_ids = __esm({
|
|
|
19993
19993
|
function wire() {
|
|
19994
19994
|
return (schema) => schema;
|
|
19995
19995
|
}
|
|
19996
|
-
var canonicalUserMessageSchema, canonicalAssistantMessageSchema, externalMcpServerSchema, runAttachmentSchema, parsedAttachmentSchema, taskMetaSchema, pullRequestMetaSchema, agentUserIdentitySchema, workflowToolRefSchema,
|
|
19996
|
+
var canonicalUserMessageSchema, canonicalAssistantMessageSchema, externalMcpServerSchema, runAttachmentSchema, parsedAttachmentSchema, taskMetaSchema, pullRequestMetaSchema, agentUserIdentitySchema, workflowToolRefSchema, runPromptContextSchema;
|
|
19997
19997
|
var init_run_context = __esm({
|
|
19998
19998
|
"../shared/dist/runtime-v2/run-context.js"() {
|
|
19999
19999
|
"use strict";
|
|
@@ -20099,7 +20099,6 @@ var init_run_context = __esm({
|
|
|
20099
20099
|
}));
|
|
20100
20100
|
agentUserIdentitySchema = wire()(external_exports.object({ id: external_exports.string().min(1), name: external_exports.string().nullable(), email: external_exports.string() }));
|
|
20101
20101
|
workflowToolRefSchema = wire()(external_exports.object({ type: external_exports.string().min(1), id: external_exports.string().min(1) }));
|
|
20102
|
-
relevantContextRecallSchema = wire()(external_exports.object({ query: external_exports.string(), envelope: external_exports.record(external_exports.string(), external_exports.unknown()) }));
|
|
20103
20102
|
runPromptContextSchema = external_exports.object({
|
|
20104
20103
|
taskMeta: taskMetaSchema.optional(),
|
|
20105
20104
|
prMeta: pullRequestMetaSchema.optional(),
|
|
@@ -20356,10 +20355,8 @@ var init_desired_state = __esm({
|
|
|
20356
20355
|
promptContext: runPromptContextSchema.optional(),
|
|
20357
20356
|
/** Absent means entitled, so a spec from an older server keeps the code-index prompts. */
|
|
20358
20357
|
codeIndexEnabled: external_exports.boolean().optional(),
|
|
20359
|
-
/**
|
|
20358
|
+
/** Omitted by older servers; only an explicit entitlement enables context-search guidance. */
|
|
20360
20359
|
contextGraphEnabled: external_exports.boolean().optional(),
|
|
20361
|
-
/** Already appended to `content` as `<relevantContext>`; the holder records it as a recall. */
|
|
20362
|
-
relevantContext: relevantContextRecallSchema.optional(),
|
|
20363
20360
|
cloudEnvironmentId: external_exports.guid().optional(),
|
|
20364
20361
|
localRepoUrls: external_exports.array(external_exports.string().min(1)).optional()
|
|
20365
20362
|
// Never here: the provider API key. The holder fetches it per run (RUN_PROVIDER_CREDENTIAL_PATH).
|
|
@@ -21433,7 +21430,7 @@ Use these tools, in roughly this order of frequency:
|
|
|
21433
21430
|
4. \`get_session_context\` \u2014 check what a worker accomplished
|
|
21434
21431
|
5. \`update_task\` \u2014 keep status, priority, labels current
|
|
21435
21432
|
6. \`send_session_message\` / \`start_task_session\` \u2014 continue a specific session or force a new session only when needed
|
|
21436
|
-
7. \`list_sessions\` / \`find_records\` / \`
|
|
21433
|
+
7. \`list_sessions\` / \`find_records\` / \`search_code_context\` / \`Read\` / \`Glob\` / \`Grep\` \u2014 situational awareness (\`find_records\` locates canonical records; \`search_code_context\` handles source-code discovery; read exact cited sources before claiming authoritative details)
|
|
21437
21434
|
8. \`create_plan\` \u2014 document implementation plans and durable specs as artifacts
|
|
21438
21435
|
9. \`add_task_comment\` \u2014 human-facing collaboration: answer questions, post explicit status updates, escalate blockers, or leave comments the user asked you to post. Do not use comments as running notes or context storage.
|
|
21439
21436
|
|
|
@@ -21508,8 +21505,7 @@ You work on the Alan platform. The platform is where product truth lives: tasks,
|
|
|
21508
21505
|
| Scope, status, priority, or history of work | \`get_task\`, \`list_subtasks\`, \`list_tasks\` | \`git log\`, commit messages |
|
|
21509
21506
|
| What was decided and why | \`list_task_decisions\`, \`list_task_events\` | code comments, in-repo ADRs |
|
|
21510
21507
|
| What an agent did or is doing | \`list_sessions\`, \`get_session_context\` | \`git log\`, diffing the worktree |
|
|
21511
|
-
| Prior agent context | \`
|
|
21512
|
-
| Relevant non-code context with no exact source | \`search_context\` | guessing IDs, container tags, or provider filters |
|
|
21508
|
+
| Prior agent context | \`list_task_events\`, \`get_session_context\` | scratch files |
|
|
21513
21509
|
| Outputs of completed work | \`list_artifacts\`, \`get_artifact\` | build output, generated files |
|
|
21514
21510
|
| Where code lives or how it works | \`search_code_context\` first, then \`Read\` the cited files | \`Grep\`/\`Glob\` sweeps |
|
|
21515
21511
|
|
|
@@ -21538,8 +21534,7 @@ Use these tools, in roughly this order of frequency:
|
|
|
21538
21534
|
4. \`get_session_context\` / \`list_sessions\` \u2014 track progress
|
|
21539
21535
|
5. \`update_task\` \u2014 keep status and priority current
|
|
21540
21536
|
6. \`list_task_events\` / \`add_task_event\` \u2014 persist only high-signal human-readable decisions, learnings, checkpoints, and outcomes in the Agent Log
|
|
21541
|
-
7. \`
|
|
21542
|
-
8. \`add_task_comment\` \u2014 human-facing collaboration: answer questions, post explicit status updates, escalate blockers, or leave comments the user asked you to post. Do not use comments as running notes or context storage.
|
|
21537
|
+
7. \`add_task_comment\` \u2014 human-facing collaboration: answer questions, post explicit status updates, escalate blockers, or leave comments the user asked you to post. Do not use comments as running notes or context storage.
|
|
21543
21538
|
|
|
21544
21539
|
## How to think like a PM
|
|
21545
21540
|
|
|
@@ -21740,13 +21735,6 @@ var init_browser_surface = __esm({
|
|
|
21740
21735
|
}
|
|
21741
21736
|
});
|
|
21742
21737
|
|
|
21743
|
-
// ../shared/dist/agent/context-intent.js
|
|
21744
|
-
var init_context_intent = __esm({
|
|
21745
|
-
"../shared/dist/agent/context-intent.js"() {
|
|
21746
|
-
"use strict";
|
|
21747
|
-
}
|
|
21748
|
-
});
|
|
21749
|
-
|
|
21750
21738
|
// ../shared/dist/agent/gated-mcp-tools.js
|
|
21751
21739
|
var CODE_INDEX_MCP_TOOLS, CONTEXT_GRAPH_MCP_TOOLS, ENTITLEMENT_GATED_MCP_TOOLS;
|
|
21752
21740
|
var init_gated_mcp_tools = __esm({
|
|
@@ -22065,13 +22053,13 @@ var init_system_prompt = __esm({
|
|
|
22065
22053
|
|
|
22066
22054
|
The codebase records what the system does. It does not record why it is that way, what was ruled out, what an outside constraint forbids, or what someone was left owed. That record lives in \`search_context\` \u2014 this team's decisions, constraints, procedures, ownership, rejected approaches and unfinished work.
|
|
22067
22055
|
|
|
22056
|
+
Before answering or acting on a question about a past decision, ownership, history, or unfinished work whose exact source is unknown, call \`search_context\` first.
|
|
22057
|
+
|
|
22068
22058
|
So when a turn depends on something the repository cannot tell you \u2014 a value chosen rather than tuned, an approach that may already have been tried, a boundary another team owns, work someone else left half-done \u2014 recover it before you answer or act. Reading the code, or the document someone named, does not settle it: those answer a different question, and one turn can need both.
|
|
22069
22059
|
|
|
22070
22060
|
What comes back is the answer, not a step towards it. Carry its specifics into what you write or change \u2014 the value, the constraint, the reason, the person \u2014 and say plainly when the evidence contradicts what was asked for. Retrieving a decision and then producing work that ignores it is worse than never having searched, because it looks informed.
|
|
22071
22061
|
|
|
22072
|
-
Skip it when nothing team-specific is at stake: source-code questions, general knowledge, mechanical work fully specified in the request, or an exact ID already in hand
|
|
22073
|
-
|
|
22074
|
-
A \`relevantContext\` block, when present, is evidence already retrieved. Use it, do not search again for what it answers, and do not mention that it was loaded.`;
|
|
22062
|
+
Skip it when nothing team-specific is at stake: source-code questions, general knowledge, mechanical work fully specified in the request, or an exact ID already in hand.`;
|
|
22075
22063
|
ALAN_PLATFORM_TOOL_ROUTING_PROMPT = `## Alan platform tools
|
|
22076
22064
|
|
|
22077
22065
|
When an action reads, creates, changes, links, sends, or controls Alan-owned state \u2014 or uses a provider identity connected through Alan \u2014 use the matching Alan MCP tool. This applies whether the agent runs locally or in the cloud. Do not substitute a shell CLI, browser automation, raw HTTP, or a local file; those paths bypass Alan's identity, authorization, audit trail, and task linkage.
|
|
@@ -22114,8 +22102,6 @@ Team
|
|
|
22114
22102
|
|
|
22115
22103
|
${ALAN_PLATFORM_TOOL_ROUTING_PROMPT}
|
|
22116
22104
|
|
|
22117
|
-
${ALAN_CONTEXT_SEARCH_PROMPT}
|
|
22118
|
-
|
|
22119
22105
|
## Record & Entity Resolution (Tasks, PRs, Docs, Epics)
|
|
22120
22106
|
|
|
22121
22107
|
When the user refers to a specific task, pull request, document, or epic by human identifier (e.g. \`AL-2980\`, \`2980\`, \`#45\`), title, or topic phrase:
|
|
@@ -22258,7 +22244,6 @@ var init_agent2 = __esm({
|
|
|
22258
22244
|
init_agent_definitions();
|
|
22259
22245
|
init_attachment_mention();
|
|
22260
22246
|
init_browser_surface();
|
|
22261
|
-
init_context_intent();
|
|
22262
22247
|
init_gated_mcp_tools();
|
|
22263
22248
|
init_generated_images();
|
|
22264
22249
|
init_iframe_embeddability();
|
|
@@ -23731,6 +23716,13 @@ var init_background_task = __esm({
|
|
|
23731
23716
|
}
|
|
23732
23717
|
});
|
|
23733
23718
|
|
|
23719
|
+
// ../shared/dist/agent/acp/conversation-messages.js
|
|
23720
|
+
var init_conversation_messages = __esm({
|
|
23721
|
+
"../shared/dist/agent/acp/conversation-messages.js"() {
|
|
23722
|
+
"use strict";
|
|
23723
|
+
}
|
|
23724
|
+
});
|
|
23725
|
+
|
|
23734
23726
|
// ../shared/dist/agent/acp/event.js
|
|
23735
23727
|
var init_event = __esm({
|
|
23736
23728
|
"../shared/dist/agent/acp/event.js"() {
|
|
@@ -23738,11 +23730,46 @@ var init_event = __esm({
|
|
|
23738
23730
|
}
|
|
23739
23731
|
});
|
|
23740
23732
|
|
|
23733
|
+
// ../shared/dist/agent/acp/presentation/terminal-events.js
|
|
23734
|
+
var init_terminal_events = __esm({
|
|
23735
|
+
"../shared/dist/agent/acp/presentation/terminal-events.js"() {
|
|
23736
|
+
"use strict";
|
|
23737
|
+
}
|
|
23738
|
+
});
|
|
23739
|
+
|
|
23740
|
+
// ../shared/dist/agent/acp/presentation/file-edits.js
|
|
23741
|
+
var init_file_edits = __esm({
|
|
23742
|
+
"../shared/dist/agent/acp/presentation/file-edits.js"() {
|
|
23743
|
+
"use strict";
|
|
23744
|
+
}
|
|
23745
|
+
});
|
|
23746
|
+
|
|
23747
|
+
// ../shared/dist/agent/acp/presentation/notice-visibility.js
|
|
23748
|
+
var init_notice_visibility = __esm({
|
|
23749
|
+
"../shared/dist/agent/acp/presentation/notice-visibility.js"() {
|
|
23750
|
+
"use strict";
|
|
23751
|
+
}
|
|
23752
|
+
});
|
|
23753
|
+
|
|
23754
|
+
// ../shared/dist/agent/acp/presentation/prepare-conversation-turns.js
|
|
23755
|
+
var init_prepare_conversation_turns = __esm({
|
|
23756
|
+
"../shared/dist/agent/acp/presentation/prepare-conversation-turns.js"() {
|
|
23757
|
+
"use strict";
|
|
23758
|
+
}
|
|
23759
|
+
});
|
|
23760
|
+
|
|
23761
|
+
// ../shared/dist/agent/acp/presentation/types.js
|
|
23762
|
+
var init_types2 = __esm({
|
|
23763
|
+
"../shared/dist/agent/acp/presentation/types.js"() {
|
|
23764
|
+
"use strict";
|
|
23765
|
+
}
|
|
23766
|
+
});
|
|
23767
|
+
|
|
23741
23768
|
// ../shared/dist/agent/acp/types.js
|
|
23742
23769
|
function isUpdate(update, kind) {
|
|
23743
23770
|
return update.sessionUpdate === kind;
|
|
23744
23771
|
}
|
|
23745
|
-
var
|
|
23772
|
+
var init_types3 = __esm({
|
|
23746
23773
|
"../shared/dist/agent/acp/types.js"() {
|
|
23747
23774
|
"use strict";
|
|
23748
23775
|
}
|
|
@@ -23776,6 +23803,13 @@ var init_transcript_http = __esm({
|
|
|
23776
23803
|
}
|
|
23777
23804
|
});
|
|
23778
23805
|
|
|
23806
|
+
// ../shared/dist/agent/acp/transcript-fold.js
|
|
23807
|
+
var init_transcript_fold = __esm({
|
|
23808
|
+
"../shared/dist/agent/acp/transcript-fold.js"() {
|
|
23809
|
+
"use strict";
|
|
23810
|
+
}
|
|
23811
|
+
});
|
|
23812
|
+
|
|
23779
23813
|
// ../shared/dist/agent/acp/transcript-live.js
|
|
23780
23814
|
var TRANSCRIPT_LIVE_BATCH_BYTES;
|
|
23781
23815
|
var init_transcript_live = __esm({
|
|
@@ -23785,47 +23819,30 @@ var init_transcript_live = __esm({
|
|
|
23785
23819
|
}
|
|
23786
23820
|
});
|
|
23787
23821
|
|
|
23788
|
-
// ../shared/dist/agent/acp/transcript-local.js
|
|
23789
|
-
var init_transcript_local = __esm({
|
|
23790
|
-
"../shared/dist/agent/acp/transcript-local.js"() {
|
|
23791
|
-
"use strict";
|
|
23792
|
-
}
|
|
23793
|
-
});
|
|
23794
|
-
|
|
23795
|
-
// ../shared/dist/agent/acp/transcript-validation.js
|
|
23796
|
-
var init_transcript_validation = __esm({
|
|
23797
|
-
"../shared/dist/agent/acp/transcript-validation.js"() {
|
|
23798
|
-
"use strict";
|
|
23799
|
-
}
|
|
23800
|
-
});
|
|
23801
|
-
|
|
23802
|
-
// ../shared/dist/agent/acp/transcript-view-model.js
|
|
23803
|
-
var init_transcript_view_model = __esm({
|
|
23804
|
-
"../shared/dist/agent/acp/transcript-view-model.js"() {
|
|
23805
|
-
"use strict";
|
|
23806
|
-
}
|
|
23807
|
-
});
|
|
23808
|
-
|
|
23809
23822
|
// ../shared/dist/agent/acp/index.js
|
|
23810
23823
|
var init_acp = __esm({
|
|
23811
23824
|
"../shared/dist/agent/acp/index.js"() {
|
|
23812
23825
|
"use strict";
|
|
23813
23826
|
init_background_task();
|
|
23827
|
+
init_conversation_messages();
|
|
23814
23828
|
init_event();
|
|
23829
|
+
init_file_edits();
|
|
23830
|
+
init_notice_visibility();
|
|
23831
|
+
init_prepare_conversation_turns();
|
|
23832
|
+
init_terminal_events();
|
|
23833
|
+
init_types2();
|
|
23815
23834
|
init_read();
|
|
23816
23835
|
init_reduce();
|
|
23817
23836
|
init_transcript_byte_decoder();
|
|
23837
|
+
init_transcript_fold();
|
|
23818
23838
|
init_transcript_http();
|
|
23819
23839
|
init_transcript_ingestion();
|
|
23820
23840
|
init_transcript_live();
|
|
23821
|
-
|
|
23822
|
-
init_transcript_validation();
|
|
23823
|
-
init_transcript_view_model();
|
|
23824
|
-
init_types2();
|
|
23841
|
+
init_types3();
|
|
23825
23842
|
}
|
|
23826
23843
|
});
|
|
23827
23844
|
|
|
23828
|
-
// ../agent-core/dist/chunk-
|
|
23845
|
+
// ../agent-core/dist/chunk-UGRKZTAD.js
|
|
23829
23846
|
function textBlock(text2) {
|
|
23830
23847
|
return { type: "text", text: text2 };
|
|
23831
23848
|
}
|
|
@@ -23853,18 +23870,6 @@ function noticeUpdate(severity, kind, title, description) {
|
|
|
23853
23870
|
_meta: { [NOTICE_KIND_META]: kind }
|
|
23854
23871
|
};
|
|
23855
23872
|
}
|
|
23856
|
-
function contextRecallUpdate(toolCallId, recall) {
|
|
23857
|
-
return {
|
|
23858
|
-
sessionUpdate: "tool_call_update",
|
|
23859
|
-
toolCallId,
|
|
23860
|
-
name: "search_context",
|
|
23861
|
-
kind: "search",
|
|
23862
|
-
status: "completed",
|
|
23863
|
-
rawInput: { query: recall.query },
|
|
23864
|
-
rawOutput: JSON.stringify(recall.envelope),
|
|
23865
|
-
_meta: { [CONTEXT_RECALL_META]: "prefetch" }
|
|
23866
|
-
};
|
|
23867
|
-
}
|
|
23868
23873
|
function usageUpdate(breakdown, fallbackModel = "") {
|
|
23869
23874
|
const used = (breakdown.inputTokens ?? 0) + (breakdown.outputTokens ?? 0) + (breakdown.cacheReadTokens ?? 0) + (breakdown.cacheCreationTokens ?? 0);
|
|
23870
23875
|
const model = breakdown.model || fallbackModel;
|
|
@@ -24067,9 +24072,9 @@ function withoutInlineMedia(update) {
|
|
|
24067
24072
|
...nextRawOutput === rawOutput ? {} : { rawOutput: nextRawOutput }
|
|
24068
24073
|
};
|
|
24069
24074
|
}
|
|
24070
|
-
var PROVIDER_PAYLOAD_META, TOOL_RESULT_ONLY_META, PARENT_TOOL_CALL_META, SUBAGENT_LAUNCHER_META, SUBAGENT_TASK_ID_META, SUBAGENT_OUTPUT_FILE_META, USAGE_META, TODOS_META, NOTICE_KIND_META,
|
|
24071
|
-
var
|
|
24072
|
-
"../agent-core/dist/chunk-
|
|
24075
|
+
var PROVIDER_PAYLOAD_META, TOOL_RESULT_ONLY_META, PARENT_TOOL_CALL_META, SUBAGENT_LAUNCHER_META, SUBAGENT_TASK_ID_META, SUBAGENT_OUTPUT_FILE_META, USAGE_META, TODOS_META, NOTICE_KIND_META, ASK_USER_QUESTIONS_META, USER_ANSWER_META, AWAITING_TOOL_CALLS_META, EXIT_PLAN_MODE_INPUT_META, BACKGROUND_TASK_META, TASK_PROGRESS_META, RATE_LIMIT_META, MODEL_META, TOOLS_META, SLASH_COMMANDS_META, TOOL_KIND_RULES, ANSWER_PREFIX, ACCEPT_WORDS, MIN_INLINE_MEDIA_CHARS, DATA_URL_PREFIX, BASE64_BODY;
|
|
24076
|
+
var init_chunk_UGRKZTAD = __esm({
|
|
24077
|
+
"../agent-core/dist/chunk-UGRKZTAD.js"() {
|
|
24073
24078
|
"use strict";
|
|
24074
24079
|
init_chunk_YXWJW7I5();
|
|
24075
24080
|
init_constants();
|
|
@@ -24083,7 +24088,6 @@ var init_chunk_OUQ7HMD3 = __esm({
|
|
|
24083
24088
|
USAGE_META = "alan.dev/usage";
|
|
24084
24089
|
TODOS_META = "alan.dev/todos";
|
|
24085
24090
|
NOTICE_KIND_META = "alan.dev/noticeKind";
|
|
24086
|
-
CONTEXT_RECALL_META = "alan.dev/contextRecall";
|
|
24087
24091
|
ASK_USER_QUESTIONS_META = "alan.dev/askUserQuestions";
|
|
24088
24092
|
USER_ANSWER_META = "alan.dev/userAnswer";
|
|
24089
24093
|
AWAITING_TOOL_CALLS_META = "alan.dev/awaitingToolCallIds";
|
|
@@ -24120,12 +24124,12 @@ var init_chunk_OUQ7HMD3 = __esm({
|
|
|
24120
24124
|
var init_acp2 = __esm({
|
|
24121
24125
|
"../agent-core/dist/acp.js"() {
|
|
24122
24126
|
"use strict";
|
|
24123
|
-
|
|
24127
|
+
init_chunk_UGRKZTAD();
|
|
24124
24128
|
init_chunk_YXWJW7I5();
|
|
24125
24129
|
}
|
|
24126
24130
|
});
|
|
24127
24131
|
|
|
24128
|
-
// ../agent-core/dist/chunk-
|
|
24132
|
+
// ../agent-core/dist/chunk-DALFHI4B.js
|
|
24129
24133
|
function isRecordValue(value2) {
|
|
24130
24134
|
return value2 !== null;
|
|
24131
24135
|
}
|
|
@@ -24304,10 +24308,10 @@ function readTranscriptTurns(transcript, chunk, baseOffset, skipped = []) {
|
|
|
24304
24308
|
return { turns, consumedBytes: consumedEnd - baseOffset };
|
|
24305
24309
|
}
|
|
24306
24310
|
var import_fs3, NEWLINE2, TranscriptCursor, TranscriptLineLookup, CONTENT_UPDATES;
|
|
24307
|
-
var
|
|
24308
|
-
"../agent-core/dist/chunk-
|
|
24311
|
+
var init_chunk_DALFHI4B = __esm({
|
|
24312
|
+
"../agent-core/dist/chunk-DALFHI4B.js"() {
|
|
24309
24313
|
"use strict";
|
|
24310
|
-
|
|
24314
|
+
init_chunk_UGRKZTAD();
|
|
24311
24315
|
init_chunk_YXWJW7I5();
|
|
24312
24316
|
import_fs3 = require("fs");
|
|
24313
24317
|
NEWLINE2 = 10;
|
|
@@ -24816,7 +24820,7 @@ var init_chunk_R32NAS3B = __esm({
|
|
|
24816
24820
|
}
|
|
24817
24821
|
});
|
|
24818
24822
|
|
|
24819
|
-
// ../agent-core/dist/chunk-
|
|
24823
|
+
// ../agent-core/dist/chunk-X5JKSBTB.js
|
|
24820
24824
|
function collectStrings(value2, out) {
|
|
24821
24825
|
if (typeof value2 === "string") out.push(value2);
|
|
24822
24826
|
else if (Array.isArray(value2)) for (const item of value2) collectStrings(item, out);
|
|
@@ -25186,10 +25190,10 @@ function silentStartError(name, timeoutMs) {
|
|
|
25186
25190
|
};
|
|
25187
25191
|
}
|
|
25188
25192
|
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;
|
|
25189
|
-
var
|
|
25190
|
-
"../agent-core/dist/chunk-
|
|
25193
|
+
var init_chunk_X5JKSBTB = __esm({
|
|
25194
|
+
"../agent-core/dist/chunk-X5JKSBTB.js"() {
|
|
25191
25195
|
"use strict";
|
|
25192
|
-
|
|
25196
|
+
init_chunk_UGRKZTAD();
|
|
25193
25197
|
init_chunk_R32NAS3B();
|
|
25194
25198
|
init_chunk_NDAB5G24();
|
|
25195
25199
|
init_chunk_YXWJW7I5();
|
|
@@ -25653,7 +25657,7 @@ var init_chunk_J2KTV5FP = __esm({
|
|
|
25653
25657
|
}
|
|
25654
25658
|
});
|
|
25655
25659
|
|
|
25656
|
-
// ../agent-core/dist/chunk-
|
|
25660
|
+
// ../agent-core/dist/chunk-6WN2R725.js
|
|
25657
25661
|
function truncate(value2, limit) {
|
|
25658
25662
|
const normalized2 = Array.from(value2, (character) => {
|
|
25659
25663
|
const code = character.charCodeAt(0);
|
|
@@ -25924,7 +25928,7 @@ Prefer relative paths and keep your work scoped to this project.` : void 0;
|
|
|
25924
25928
|
]),
|
|
25925
25929
|
append: present([
|
|
25926
25930
|
ALAN_PLATFORM_TOOL_ROUTING_PROMPT,
|
|
25927
|
-
spec.contextGraphEnabled ===
|
|
25931
|
+
spec.contextGraphEnabled === true ? ALAN_CONTEXT_SEARCH_PROMPT : void 0,
|
|
25928
25932
|
overlay
|
|
25929
25933
|
])
|
|
25930
25934
|
};
|
|
@@ -25980,8 +25984,8 @@ ${body}` : body;
|
|
|
25980
25984
|
return spec.mode === "plan" ? planModePrefix(prefixed) : prefixed;
|
|
25981
25985
|
}
|
|
25982
25986
|
var MAX_PARSED_ATTACHMENTS, MAX_PARSED_ATTACHMENT_CHARS, MAX_METADATA_CHARS, UNAVAILABLE, READ_ONLY_MODES, AGENT_MODES;
|
|
25983
|
-
var
|
|
25984
|
-
"../agent-core/dist/chunk-
|
|
25987
|
+
var init_chunk_6WN2R725 = __esm({
|
|
25988
|
+
"../agent-core/dist/chunk-6WN2R725.js"() {
|
|
25985
25989
|
"use strict";
|
|
25986
25990
|
init_agent2();
|
|
25987
25991
|
MAX_PARSED_ATTACHMENTS = 3;
|
|
@@ -27244,13 +27248,13 @@ var import_crypto6, import_fs5, import_path5, import_crypto7, import_promises30,
|
|
|
27244
27248
|
var init_claude = __esm({
|
|
27245
27249
|
"../agent-core/dist/providers/claude.js"() {
|
|
27246
27250
|
"use strict";
|
|
27247
|
-
|
|
27248
|
-
|
|
27249
|
-
|
|
27251
|
+
init_chunk_DALFHI4B();
|
|
27252
|
+
init_chunk_X5JKSBTB();
|
|
27253
|
+
init_chunk_UGRKZTAD();
|
|
27250
27254
|
init_chunk_R32NAS3B();
|
|
27251
27255
|
init_chunk_J2KTV5FP();
|
|
27252
27256
|
init_chunk_NDAB5G24();
|
|
27253
|
-
|
|
27257
|
+
init_chunk_6WN2R725();
|
|
27254
27258
|
init_chunk_YXWJW7I5();
|
|
27255
27259
|
init_effort();
|
|
27256
27260
|
import_crypto6 = require("crypto");
|
|
@@ -28554,7 +28558,7 @@ function basenameOf(path4) {
|
|
|
28554
28558
|
return path4.split(/[\\/]/).at(-1) ?? "";
|
|
28555
28559
|
}
|
|
28556
28560
|
function mayMatter(line) {
|
|
28557
|
-
return line.includes("image_gen")
|
|
28561
|
+
return line.includes("image_gen");
|
|
28558
28562
|
}
|
|
28559
28563
|
function imageKey(update) {
|
|
28560
28564
|
if (update.sessionUpdate !== "_alan/generated_image") return void 0;
|
|
@@ -30016,17 +30020,17 @@ function codexTurnInput(run2, context) {
|
|
|
30016
30020
|
...images.length ? { imagePaths: images.map((image) => image.path) } : {}
|
|
30017
30021
|
};
|
|
30018
30022
|
}
|
|
30019
|
-
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_SIGNATURE, JPEG_NON_FRAME_MARKERS, IMAGE_GEN_CALL, PROMPT_LITERAL,
|
|
30023
|
+
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_SIGNATURE, 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, INJECTED_USER_PREFIXES, SHELL_TOOL_NAMES, ANNOUNCING_ITEM_TYPES, OUTPUT_MARKER, OPEN_PAGE_ACTIONS, FIND_IN_PAGE_ACTIONS, FILE_OPERATIONS, UNDERSTOOD_ITEM_TYPES, PRELUDE_TYPES2, PRELUDE_EVENTS, codexRolloutFile;
|
|
30020
30024
|
var init_codex = __esm({
|
|
30021
30025
|
"../agent-core/dist/providers/codex.js"() {
|
|
30022
30026
|
"use strict";
|
|
30023
|
-
|
|
30024
|
-
|
|
30025
|
-
|
|
30027
|
+
init_chunk_DALFHI4B();
|
|
30028
|
+
init_chunk_X5JKSBTB();
|
|
30029
|
+
init_chunk_UGRKZTAD();
|
|
30026
30030
|
init_chunk_R32NAS3B();
|
|
30027
30031
|
init_chunk_J2KTV5FP();
|
|
30028
30032
|
init_chunk_NDAB5G24();
|
|
30029
|
-
|
|
30033
|
+
init_chunk_6WN2R725();
|
|
30030
30034
|
init_chunk_YXWJW7I5();
|
|
30031
30035
|
import_fs6 = require("fs");
|
|
30032
30036
|
import_path6 = require("path");
|
|
@@ -30080,19 +30084,17 @@ var init_codex = __esm({
|
|
|
30080
30084
|
JPEG_NON_FRAME_MARKERS = /* @__PURE__ */ new Set([196, 200, 204]);
|
|
30081
30085
|
IMAGE_GEN_CALL = /\bimage_gen\w*\s*\(/;
|
|
30082
30086
|
PROMPT_LITERAL = /\bprompt\s*:\s*("(?:[^"\\]|\\.)*")/;
|
|
30083
|
-
TURN_END_EVENTS = /* @__PURE__ */ new Set(["task_complete", "turn_aborted"]);
|
|
30084
30087
|
RELOCATE_EVERY_MS = 1e3;
|
|
30085
30088
|
CodexImageGenerationFold = class {
|
|
30086
30089
|
#clock;
|
|
30087
30090
|
#pending = [];
|
|
30088
30091
|
#updates = [];
|
|
30089
|
-
#turnEnded = false;
|
|
30090
30092
|
constructor(clock) {
|
|
30091
30093
|
this.#clock = clock;
|
|
30092
30094
|
}
|
|
30093
|
-
/** A call is still waiting for its image
|
|
30095
|
+
/** A call is still waiting for its image. */
|
|
30094
30096
|
get waiting() {
|
|
30095
|
-
return this.#pending.length > 0
|
|
30097
|
+
return this.#pending.length > 0;
|
|
30096
30098
|
}
|
|
30097
30099
|
foldLine(text2) {
|
|
30098
30100
|
if (!mayMatter(text2)) return;
|
|
@@ -30115,7 +30117,6 @@ var init_codex = __esm({
|
|
|
30115
30117
|
}
|
|
30116
30118
|
if (entryType !== "event_msg") return;
|
|
30117
30119
|
const type = asString(payload.type);
|
|
30118
|
-
if (TURN_END_EVENTS.has(type)) this.#turnEnded = true;
|
|
30119
30120
|
if (type === "image_generation_end") {
|
|
30120
30121
|
this.#finish(payload, ts);
|
|
30121
30122
|
return;
|
|
@@ -30199,7 +30200,7 @@ var init_codex = __esm({
|
|
|
30199
30200
|
settle() {
|
|
30200
30201
|
return [...this.drain(), ...this.#fold.settlePending()];
|
|
30201
30202
|
}
|
|
30202
|
-
/** Waits, up to `ms`, for
|
|
30203
|
+
/** Waits, up to `ms`, for pending images. A prior turn's end can trail this turn's start. */
|
|
30203
30204
|
async catchUp(ms, pollMs) {
|
|
30204
30205
|
const updates = this.drain();
|
|
30205
30206
|
const deadline = this.#clock.monotonic() + ms;
|
|
@@ -41261,8 +41262,8 @@ var require_tar_stream = __commonJS({
|
|
|
41261
41262
|
var init_dist = __esm({
|
|
41262
41263
|
"../agent-core/dist/index.js"() {
|
|
41263
41264
|
"use strict";
|
|
41264
|
-
|
|
41265
|
-
|
|
41265
|
+
init_chunk_X5JKSBTB();
|
|
41266
|
+
init_chunk_UGRKZTAD();
|
|
41266
41267
|
init_chunk_R32NAS3B();
|
|
41267
41268
|
init_chunk_NDAB5G24();
|
|
41268
41269
|
init_chunk_YXWJW7I5();
|
|
@@ -42008,12 +42009,12 @@ var import_promises46, import_path9, import_crypto12, import_promises47, CURSOR_
|
|
|
42008
42009
|
var init_acp3 = __esm({
|
|
42009
42010
|
"../agent-core/dist/providers/acp.js"() {
|
|
42010
42011
|
"use strict";
|
|
42011
|
-
|
|
42012
|
-
|
|
42012
|
+
init_chunk_X5JKSBTB();
|
|
42013
|
+
init_chunk_UGRKZTAD();
|
|
42013
42014
|
init_chunk_R32NAS3B();
|
|
42014
42015
|
init_chunk_J2KTV5FP();
|
|
42015
42016
|
init_chunk_NDAB5G24();
|
|
42016
|
-
|
|
42017
|
+
init_chunk_6WN2R725();
|
|
42017
42018
|
init_chunk_YXWJW7I5();
|
|
42018
42019
|
import_promises46 = require("fs/promises");
|
|
42019
42020
|
import_path9 = require("path");
|
|
@@ -43672,12 +43673,12 @@ var import_http10, import_crypto13, import_path10, import_url2, import_crypto14,
|
|
|
43672
43673
|
var init_opencode = __esm({
|
|
43673
43674
|
"../agent-core/dist/providers/opencode.js"() {
|
|
43674
43675
|
"use strict";
|
|
43675
|
-
|
|
43676
|
-
|
|
43676
|
+
init_chunk_X5JKSBTB();
|
|
43677
|
+
init_chunk_UGRKZTAD();
|
|
43677
43678
|
init_chunk_R32NAS3B();
|
|
43678
43679
|
init_chunk_J2KTV5FP();
|
|
43679
43680
|
init_chunk_NDAB5G24();
|
|
43680
|
-
|
|
43681
|
+
init_chunk_6WN2R725();
|
|
43681
43682
|
init_chunk_YXWJW7I5();
|
|
43682
43683
|
import_http10 = require("http");
|
|
43683
43684
|
init_runtime_v2();
|
|
@@ -45431,12 +45432,12 @@ var import_crypto15, import_promises48, FACTORY_API_VERSION, FACTORY_PROTOCOL_VE
|
|
|
45431
45432
|
var init_droid = __esm({
|
|
45432
45433
|
"../agent-core/dist/providers/droid.js"() {
|
|
45433
45434
|
"use strict";
|
|
45434
|
-
|
|
45435
|
-
|
|
45435
|
+
init_chunk_X5JKSBTB();
|
|
45436
|
+
init_chunk_UGRKZTAD();
|
|
45436
45437
|
init_chunk_R32NAS3B();
|
|
45437
45438
|
init_chunk_J2KTV5FP();
|
|
45438
45439
|
init_chunk_NDAB5G24();
|
|
45439
|
-
|
|
45440
|
+
init_chunk_6WN2R725();
|
|
45440
45441
|
init_chunk_YXWJW7I5();
|
|
45441
45442
|
init_runtime_v2();
|
|
45442
45443
|
import_crypto15 = require("crypto");
|
|
@@ -46500,12 +46501,12 @@ var import_fs8, import_path11, import_path12, import_url3, import_crypto16, NO_A
|
|
|
46500
46501
|
var init_antigravity = __esm({
|
|
46501
46502
|
"../agent-core/dist/providers/antigravity.js"() {
|
|
46502
46503
|
"use strict";
|
|
46503
|
-
|
|
46504
|
-
|
|
46505
|
-
|
|
46504
|
+
init_chunk_DALFHI4B();
|
|
46505
|
+
init_chunk_X5JKSBTB();
|
|
46506
|
+
init_chunk_UGRKZTAD();
|
|
46506
46507
|
init_chunk_R32NAS3B();
|
|
46507
46508
|
init_chunk_NDAB5G24();
|
|
46508
|
-
|
|
46509
|
+
init_chunk_6WN2R725();
|
|
46509
46510
|
init_chunk_YXWJW7I5();
|
|
46510
46511
|
import_fs8 = require("fs");
|
|
46511
46512
|
import_path11 = require("path");
|
|
@@ -47185,12 +47186,12 @@ var import_promises49, import_path13, import_crypto17, COMMAND_CODE_GRAMMAR_NAME
|
|
|
47185
47186
|
var init_command_code = __esm({
|
|
47186
47187
|
"../agent-core/dist/providers/command-code.js"() {
|
|
47187
47188
|
"use strict";
|
|
47188
|
-
|
|
47189
|
-
|
|
47189
|
+
init_chunk_X5JKSBTB();
|
|
47190
|
+
init_chunk_UGRKZTAD();
|
|
47190
47191
|
init_chunk_R32NAS3B();
|
|
47191
47192
|
init_chunk_J2KTV5FP();
|
|
47192
47193
|
init_chunk_NDAB5G24();
|
|
47193
|
-
|
|
47194
|
+
init_chunk_6WN2R725();
|
|
47194
47195
|
init_chunk_YXWJW7I5();
|
|
47195
47196
|
import_promises49 = require("fs/promises");
|
|
47196
47197
|
import_path13 = require("path");
|
|
@@ -52385,7 +52386,7 @@ var require_websocket_server = __commonJS({
|
|
|
52385
52386
|
// package.json
|
|
52386
52387
|
var package_default = {
|
|
52387
52388
|
name: "@alan-ai-hq/agent-manager",
|
|
52388
|
-
version: "0.1.
|
|
52389
|
+
version: "0.1.132",
|
|
52389
52390
|
private: true,
|
|
52390
52391
|
type: "module",
|
|
52391
52392
|
description: "Alan machine runtime (alan-agent): identity, link, reconciler, session holders, run log, uploader, local API",
|
|
@@ -65129,10 +65130,6 @@ async function runWithInputs({ spec, leaseTargets, skills }, context, sink, sign
|
|
|
65129
65130
|
_promise2 && await _promise2;
|
|
65130
65131
|
}
|
|
65131
65132
|
}
|
|
65132
|
-
function recordRelevantContext(spec, append) {
|
|
65133
|
-
if (spec.relevantContext === void 0) return;
|
|
65134
|
-
append(fitForRunLog(contextRecallUpdate(`relevant-context-${spec.runId}`, spec.relevantContext)));
|
|
65135
|
-
}
|
|
65136
65133
|
async function admitAndRun(spec, context, append, sink, signal) {
|
|
65137
65134
|
if (context.workspace === void 0) {
|
|
65138
65135
|
if (spec.skillInvocations?.length) {
|
|
@@ -65142,7 +65139,6 @@ async function admitAndRun(spec, context, append, sink, signal) {
|
|
|
65142
65139
|
message: "Selected skills need this computer's skill sync, which this holder does not have."
|
|
65143
65140
|
};
|
|
65144
65141
|
}
|
|
65145
|
-
recordRelevantContext(spec, append);
|
|
65146
65142
|
return runWithInputs({ spec, leaseTargets: [], skills: [] }, context, sink, signal);
|
|
65147
65143
|
}
|
|
65148
65144
|
const admission = await admitRun(spec, context.workspace.admission, signal);
|
|
@@ -65151,7 +65147,6 @@ async function admitAndRun(spec, context, append, sink, signal) {
|
|
|
65151
65147
|
return { outcome: "rejected", rejection: admission.rejection, message: admission.message };
|
|
65152
65148
|
}
|
|
65153
65149
|
if (admission.relocated !== null) append(admission.relocated);
|
|
65154
|
-
recordRelevantContext(spec, append);
|
|
65155
65150
|
return runWithInputs(admission, context, sink, signal);
|
|
65156
65151
|
}
|
|
65157
65152
|
async function claimRun(spec, context) {
|
package/alan-holder.cjs
CHANGED
|
@@ -19993,7 +19993,7 @@ var init_ids = __esm({
|
|
|
19993
19993
|
function wire() {
|
|
19994
19994
|
return (schema) => schema;
|
|
19995
19995
|
}
|
|
19996
|
-
var canonicalUserMessageSchema, canonicalAssistantMessageSchema, externalMcpServerSchema, runAttachmentSchema, parsedAttachmentSchema, taskMetaSchema, pullRequestMetaSchema, agentUserIdentitySchema, workflowToolRefSchema,
|
|
19996
|
+
var canonicalUserMessageSchema, canonicalAssistantMessageSchema, externalMcpServerSchema, runAttachmentSchema, parsedAttachmentSchema, taskMetaSchema, pullRequestMetaSchema, agentUserIdentitySchema, workflowToolRefSchema, runPromptContextSchema;
|
|
19997
19997
|
var init_run_context = __esm({
|
|
19998
19998
|
"../shared/dist/runtime-v2/run-context.js"() {
|
|
19999
19999
|
"use strict";
|
|
@@ -20099,7 +20099,6 @@ var init_run_context = __esm({
|
|
|
20099
20099
|
}));
|
|
20100
20100
|
agentUserIdentitySchema = wire()(external_exports.object({ id: external_exports.string().min(1), name: external_exports.string().nullable(), email: external_exports.string() }));
|
|
20101
20101
|
workflowToolRefSchema = wire()(external_exports.object({ type: external_exports.string().min(1), id: external_exports.string().min(1) }));
|
|
20102
|
-
relevantContextRecallSchema = wire()(external_exports.object({ query: external_exports.string(), envelope: external_exports.record(external_exports.string(), external_exports.unknown()) }));
|
|
20103
20102
|
runPromptContextSchema = external_exports.object({
|
|
20104
20103
|
taskMeta: taskMetaSchema.optional(),
|
|
20105
20104
|
prMeta: pullRequestMetaSchema.optional(),
|
|
@@ -20353,10 +20352,8 @@ var init_desired_state = __esm({
|
|
|
20353
20352
|
promptContext: runPromptContextSchema.optional(),
|
|
20354
20353
|
/** Absent means entitled, so a spec from an older server keeps the code-index prompts. */
|
|
20355
20354
|
codeIndexEnabled: external_exports.boolean().optional(),
|
|
20356
|
-
/**
|
|
20355
|
+
/** Omitted by older servers; only an explicit entitlement enables context-search guidance. */
|
|
20357
20356
|
contextGraphEnabled: external_exports.boolean().optional(),
|
|
20358
|
-
/** Already appended to `content` as `<relevantContext>`; the holder records it as a recall. */
|
|
20359
|
-
relevantContext: relevantContextRecallSchema.optional(),
|
|
20360
20357
|
cloudEnvironmentId: external_exports.guid().optional(),
|
|
20361
20358
|
localRepoUrls: external_exports.array(external_exports.string().min(1)).optional()
|
|
20362
20359
|
// Never here: the provider API key. The holder fetches it per run (RUN_PROVIDER_CREDENTIAL_PATH).
|
|
@@ -21374,7 +21371,7 @@ Use these tools, in roughly this order of frequency:
|
|
|
21374
21371
|
4. \`get_session_context\` \u2014 check what a worker accomplished
|
|
21375
21372
|
5. \`update_task\` \u2014 keep status, priority, labels current
|
|
21376
21373
|
6. \`send_session_message\` / \`start_task_session\` \u2014 continue a specific session or force a new session only when needed
|
|
21377
|
-
7. \`list_sessions\` / \`find_records\` / \`
|
|
21374
|
+
7. \`list_sessions\` / \`find_records\` / \`search_code_context\` / \`Read\` / \`Glob\` / \`Grep\` \u2014 situational awareness (\`find_records\` locates canonical records; \`search_code_context\` handles source-code discovery; read exact cited sources before claiming authoritative details)
|
|
21378
21375
|
8. \`create_plan\` \u2014 document implementation plans and durable specs as artifacts
|
|
21379
21376
|
9. \`add_task_comment\` \u2014 human-facing collaboration: answer questions, post explicit status updates, escalate blockers, or leave comments the user asked you to post. Do not use comments as running notes or context storage.
|
|
21380
21377
|
|
|
@@ -21449,8 +21446,7 @@ You work on the Alan platform. The platform is where product truth lives: tasks,
|
|
|
21449
21446
|
| Scope, status, priority, or history of work | \`get_task\`, \`list_subtasks\`, \`list_tasks\` | \`git log\`, commit messages |
|
|
21450
21447
|
| What was decided and why | \`list_task_decisions\`, \`list_task_events\` | code comments, in-repo ADRs |
|
|
21451
21448
|
| What an agent did or is doing | \`list_sessions\`, \`get_session_context\` | \`git log\`, diffing the worktree |
|
|
21452
|
-
| Prior agent context | \`
|
|
21453
|
-
| Relevant non-code context with no exact source | \`search_context\` | guessing IDs, container tags, or provider filters |
|
|
21449
|
+
| Prior agent context | \`list_task_events\`, \`get_session_context\` | scratch files |
|
|
21454
21450
|
| Outputs of completed work | \`list_artifacts\`, \`get_artifact\` | build output, generated files |
|
|
21455
21451
|
| Where code lives or how it works | \`search_code_context\` first, then \`Read\` the cited files | \`Grep\`/\`Glob\` sweeps |
|
|
21456
21452
|
|
|
@@ -21479,8 +21475,7 @@ Use these tools, in roughly this order of frequency:
|
|
|
21479
21475
|
4. \`get_session_context\` / \`list_sessions\` \u2014 track progress
|
|
21480
21476
|
5. \`update_task\` \u2014 keep status and priority current
|
|
21481
21477
|
6. \`list_task_events\` / \`add_task_event\` \u2014 persist only high-signal human-readable decisions, learnings, checkpoints, and outcomes in the Agent Log
|
|
21482
|
-
7. \`
|
|
21483
|
-
8. \`add_task_comment\` \u2014 human-facing collaboration: answer questions, post explicit status updates, escalate blockers, or leave comments the user asked you to post. Do not use comments as running notes or context storage.
|
|
21478
|
+
7. \`add_task_comment\` \u2014 human-facing collaboration: answer questions, post explicit status updates, escalate blockers, or leave comments the user asked you to post. Do not use comments as running notes or context storage.
|
|
21484
21479
|
|
|
21485
21480
|
## How to think like a PM
|
|
21486
21481
|
|
|
@@ -21681,13 +21676,6 @@ var init_browser_surface = __esm({
|
|
|
21681
21676
|
}
|
|
21682
21677
|
});
|
|
21683
21678
|
|
|
21684
|
-
// ../shared/dist/agent/context-intent.js
|
|
21685
|
-
var init_context_intent = __esm({
|
|
21686
|
-
"../shared/dist/agent/context-intent.js"() {
|
|
21687
|
-
"use strict";
|
|
21688
|
-
}
|
|
21689
|
-
});
|
|
21690
|
-
|
|
21691
21679
|
// ../shared/dist/agent/gated-mcp-tools.js
|
|
21692
21680
|
var CODE_INDEX_MCP_TOOLS, CONTEXT_GRAPH_MCP_TOOLS, ENTITLEMENT_GATED_MCP_TOOLS;
|
|
21693
21681
|
var init_gated_mcp_tools = __esm({
|
|
@@ -21951,13 +21939,13 @@ var init_system_prompt = __esm({
|
|
|
21951
21939
|
|
|
21952
21940
|
The codebase records what the system does. It does not record why it is that way, what was ruled out, what an outside constraint forbids, or what someone was left owed. That record lives in \`search_context\` \u2014 this team's decisions, constraints, procedures, ownership, rejected approaches and unfinished work.
|
|
21953
21941
|
|
|
21942
|
+
Before answering or acting on a question about a past decision, ownership, history, or unfinished work whose exact source is unknown, call \`search_context\` first.
|
|
21943
|
+
|
|
21954
21944
|
So when a turn depends on something the repository cannot tell you \u2014 a value chosen rather than tuned, an approach that may already have been tried, a boundary another team owns, work someone else left half-done \u2014 recover it before you answer or act. Reading the code, or the document someone named, does not settle it: those answer a different question, and one turn can need both.
|
|
21955
21945
|
|
|
21956
21946
|
What comes back is the answer, not a step towards it. Carry its specifics into what you write or change \u2014 the value, the constraint, the reason, the person \u2014 and say plainly when the evidence contradicts what was asked for. Retrieving a decision and then producing work that ignores it is worse than never having searched, because it looks informed.
|
|
21957
21947
|
|
|
21958
|
-
Skip it when nothing team-specific is at stake: source-code questions, general knowledge, mechanical work fully specified in the request, or an exact ID already in hand
|
|
21959
|
-
|
|
21960
|
-
A \`relevantContext\` block, when present, is evidence already retrieved. Use it, do not search again for what it answers, and do not mention that it was loaded.`;
|
|
21948
|
+
Skip it when nothing team-specific is at stake: source-code questions, general knowledge, mechanical work fully specified in the request, or an exact ID already in hand.`;
|
|
21961
21949
|
ALAN_PLATFORM_TOOL_ROUTING_PROMPT = `## Alan platform tools
|
|
21962
21950
|
|
|
21963
21951
|
When an action reads, creates, changes, links, sends, or controls Alan-owned state \u2014 or uses a provider identity connected through Alan \u2014 use the matching Alan MCP tool. This applies whether the agent runs locally or in the cloud. Do not substitute a shell CLI, browser automation, raw HTTP, or a local file; those paths bypass Alan's identity, authorization, audit trail, and task linkage.
|
|
@@ -22000,8 +21988,6 @@ Team
|
|
|
22000
21988
|
|
|
22001
21989
|
${ALAN_PLATFORM_TOOL_ROUTING_PROMPT}
|
|
22002
21990
|
|
|
22003
|
-
${ALAN_CONTEXT_SEARCH_PROMPT}
|
|
22004
|
-
|
|
22005
21991
|
## Record & Entity Resolution (Tasks, PRs, Docs, Epics)
|
|
22006
21992
|
|
|
22007
21993
|
When the user refers to a specific task, pull request, document, or epic by human identifier (e.g. \`AL-2980\`, \`2980\`, \`#45\`), title, or topic phrase:
|
|
@@ -22144,7 +22130,6 @@ var init_agent2 = __esm({
|
|
|
22144
22130
|
init_agent_definitions();
|
|
22145
22131
|
init_attachment_mention();
|
|
22146
22132
|
init_browser_surface();
|
|
22147
|
-
init_context_intent();
|
|
22148
22133
|
init_gated_mcp_tools();
|
|
22149
22134
|
init_generated_images();
|
|
22150
22135
|
init_iframe_embeddability();
|
|
@@ -23617,6 +23602,13 @@ var init_background_task = __esm({
|
|
|
23617
23602
|
}
|
|
23618
23603
|
});
|
|
23619
23604
|
|
|
23605
|
+
// ../shared/dist/agent/acp/conversation-messages.js
|
|
23606
|
+
var init_conversation_messages = __esm({
|
|
23607
|
+
"../shared/dist/agent/acp/conversation-messages.js"() {
|
|
23608
|
+
"use strict";
|
|
23609
|
+
}
|
|
23610
|
+
});
|
|
23611
|
+
|
|
23620
23612
|
// ../shared/dist/agent/acp/event.js
|
|
23621
23613
|
var init_event = __esm({
|
|
23622
23614
|
"../shared/dist/agent/acp/event.js"() {
|
|
@@ -23624,11 +23616,46 @@ var init_event = __esm({
|
|
|
23624
23616
|
}
|
|
23625
23617
|
});
|
|
23626
23618
|
|
|
23619
|
+
// ../shared/dist/agent/acp/presentation/terminal-events.js
|
|
23620
|
+
var init_terminal_events = __esm({
|
|
23621
|
+
"../shared/dist/agent/acp/presentation/terminal-events.js"() {
|
|
23622
|
+
"use strict";
|
|
23623
|
+
}
|
|
23624
|
+
});
|
|
23625
|
+
|
|
23626
|
+
// ../shared/dist/agent/acp/presentation/file-edits.js
|
|
23627
|
+
var init_file_edits = __esm({
|
|
23628
|
+
"../shared/dist/agent/acp/presentation/file-edits.js"() {
|
|
23629
|
+
"use strict";
|
|
23630
|
+
}
|
|
23631
|
+
});
|
|
23632
|
+
|
|
23633
|
+
// ../shared/dist/agent/acp/presentation/notice-visibility.js
|
|
23634
|
+
var init_notice_visibility = __esm({
|
|
23635
|
+
"../shared/dist/agent/acp/presentation/notice-visibility.js"() {
|
|
23636
|
+
"use strict";
|
|
23637
|
+
}
|
|
23638
|
+
});
|
|
23639
|
+
|
|
23640
|
+
// ../shared/dist/agent/acp/presentation/prepare-conversation-turns.js
|
|
23641
|
+
var init_prepare_conversation_turns = __esm({
|
|
23642
|
+
"../shared/dist/agent/acp/presentation/prepare-conversation-turns.js"() {
|
|
23643
|
+
"use strict";
|
|
23644
|
+
}
|
|
23645
|
+
});
|
|
23646
|
+
|
|
23647
|
+
// ../shared/dist/agent/acp/presentation/types.js
|
|
23648
|
+
var init_types2 = __esm({
|
|
23649
|
+
"../shared/dist/agent/acp/presentation/types.js"() {
|
|
23650
|
+
"use strict";
|
|
23651
|
+
}
|
|
23652
|
+
});
|
|
23653
|
+
|
|
23627
23654
|
// ../shared/dist/agent/acp/types.js
|
|
23628
23655
|
function isUpdate(update, kind) {
|
|
23629
23656
|
return update.sessionUpdate === kind;
|
|
23630
23657
|
}
|
|
23631
|
-
var
|
|
23658
|
+
var init_types3 = __esm({
|
|
23632
23659
|
"../shared/dist/agent/acp/types.js"() {
|
|
23633
23660
|
"use strict";
|
|
23634
23661
|
}
|
|
@@ -23662,6 +23689,13 @@ var init_transcript_http = __esm({
|
|
|
23662
23689
|
}
|
|
23663
23690
|
});
|
|
23664
23691
|
|
|
23692
|
+
// ../shared/dist/agent/acp/transcript-fold.js
|
|
23693
|
+
var init_transcript_fold = __esm({
|
|
23694
|
+
"../shared/dist/agent/acp/transcript-fold.js"() {
|
|
23695
|
+
"use strict";
|
|
23696
|
+
}
|
|
23697
|
+
});
|
|
23698
|
+
|
|
23665
23699
|
// ../shared/dist/agent/acp/transcript-live.js
|
|
23666
23700
|
var TRANSCRIPT_LIVE_BATCH_BYTES;
|
|
23667
23701
|
var init_transcript_live = __esm({
|
|
@@ -23671,47 +23705,30 @@ var init_transcript_live = __esm({
|
|
|
23671
23705
|
}
|
|
23672
23706
|
});
|
|
23673
23707
|
|
|
23674
|
-
// ../shared/dist/agent/acp/transcript-local.js
|
|
23675
|
-
var init_transcript_local = __esm({
|
|
23676
|
-
"../shared/dist/agent/acp/transcript-local.js"() {
|
|
23677
|
-
"use strict";
|
|
23678
|
-
}
|
|
23679
|
-
});
|
|
23680
|
-
|
|
23681
|
-
// ../shared/dist/agent/acp/transcript-validation.js
|
|
23682
|
-
var init_transcript_validation = __esm({
|
|
23683
|
-
"../shared/dist/agent/acp/transcript-validation.js"() {
|
|
23684
|
-
"use strict";
|
|
23685
|
-
}
|
|
23686
|
-
});
|
|
23687
|
-
|
|
23688
|
-
// ../shared/dist/agent/acp/transcript-view-model.js
|
|
23689
|
-
var init_transcript_view_model = __esm({
|
|
23690
|
-
"../shared/dist/agent/acp/transcript-view-model.js"() {
|
|
23691
|
-
"use strict";
|
|
23692
|
-
}
|
|
23693
|
-
});
|
|
23694
|
-
|
|
23695
23708
|
// ../shared/dist/agent/acp/index.js
|
|
23696
23709
|
var init_acp = __esm({
|
|
23697
23710
|
"../shared/dist/agent/acp/index.js"() {
|
|
23698
23711
|
"use strict";
|
|
23699
23712
|
init_background_task();
|
|
23713
|
+
init_conversation_messages();
|
|
23700
23714
|
init_event();
|
|
23715
|
+
init_file_edits();
|
|
23716
|
+
init_notice_visibility();
|
|
23717
|
+
init_prepare_conversation_turns();
|
|
23718
|
+
init_terminal_events();
|
|
23719
|
+
init_types2();
|
|
23701
23720
|
init_read();
|
|
23702
23721
|
init_reduce();
|
|
23703
23722
|
init_transcript_byte_decoder();
|
|
23723
|
+
init_transcript_fold();
|
|
23704
23724
|
init_transcript_http();
|
|
23705
23725
|
init_transcript_ingestion();
|
|
23706
23726
|
init_transcript_live();
|
|
23707
|
-
|
|
23708
|
-
init_transcript_validation();
|
|
23709
|
-
init_transcript_view_model();
|
|
23710
|
-
init_types2();
|
|
23727
|
+
init_types3();
|
|
23711
23728
|
}
|
|
23712
23729
|
});
|
|
23713
23730
|
|
|
23714
|
-
// ../agent-core/dist/chunk-
|
|
23731
|
+
// ../agent-core/dist/chunk-UGRKZTAD.js
|
|
23715
23732
|
function textBlock(text2) {
|
|
23716
23733
|
return { type: "text", text: text2 };
|
|
23717
23734
|
}
|
|
@@ -23739,18 +23756,6 @@ function noticeUpdate(severity, kind, title, description) {
|
|
|
23739
23756
|
_meta: { [NOTICE_KIND_META]: kind }
|
|
23740
23757
|
};
|
|
23741
23758
|
}
|
|
23742
|
-
function contextRecallUpdate(toolCallId, recall) {
|
|
23743
|
-
return {
|
|
23744
|
-
sessionUpdate: "tool_call_update",
|
|
23745
|
-
toolCallId,
|
|
23746
|
-
name: "search_context",
|
|
23747
|
-
kind: "search",
|
|
23748
|
-
status: "completed",
|
|
23749
|
-
rawInput: { query: recall.query },
|
|
23750
|
-
rawOutput: JSON.stringify(recall.envelope),
|
|
23751
|
-
_meta: { [CONTEXT_RECALL_META]: "prefetch" }
|
|
23752
|
-
};
|
|
23753
|
-
}
|
|
23754
23759
|
function usageUpdate(breakdown, fallbackModel = "") {
|
|
23755
23760
|
const used = (breakdown.inputTokens ?? 0) + (breakdown.outputTokens ?? 0) + (breakdown.cacheReadTokens ?? 0) + (breakdown.cacheCreationTokens ?? 0);
|
|
23756
23761
|
const model = breakdown.model || fallbackModel;
|
|
@@ -23953,9 +23958,9 @@ function withoutInlineMedia(update) {
|
|
|
23953
23958
|
...nextRawOutput === rawOutput ? {} : { rawOutput: nextRawOutput }
|
|
23954
23959
|
};
|
|
23955
23960
|
}
|
|
23956
|
-
var PROVIDER_PAYLOAD_META, TOOL_RESULT_ONLY_META, PARENT_TOOL_CALL_META, SUBAGENT_LAUNCHER_META, SUBAGENT_TASK_ID_META, SUBAGENT_OUTPUT_FILE_META, USAGE_META, TODOS_META, NOTICE_KIND_META,
|
|
23957
|
-
var
|
|
23958
|
-
"../agent-core/dist/chunk-
|
|
23961
|
+
var PROVIDER_PAYLOAD_META, TOOL_RESULT_ONLY_META, PARENT_TOOL_CALL_META, SUBAGENT_LAUNCHER_META, SUBAGENT_TASK_ID_META, SUBAGENT_OUTPUT_FILE_META, USAGE_META, TODOS_META, NOTICE_KIND_META, ASK_USER_QUESTIONS_META, USER_ANSWER_META, AWAITING_TOOL_CALLS_META, EXIT_PLAN_MODE_INPUT_META, BACKGROUND_TASK_META, TASK_PROGRESS_META, RATE_LIMIT_META, MODEL_META, TOOLS_META, SLASH_COMMANDS_META, TOOL_KIND_RULES, ANSWER_PREFIX, ACCEPT_WORDS, MIN_INLINE_MEDIA_CHARS, DATA_URL_PREFIX, BASE64_BODY;
|
|
23962
|
+
var init_chunk_UGRKZTAD = __esm({
|
|
23963
|
+
"../agent-core/dist/chunk-UGRKZTAD.js"() {
|
|
23959
23964
|
"use strict";
|
|
23960
23965
|
init_chunk_YXWJW7I5();
|
|
23961
23966
|
init_constants();
|
|
@@ -23969,7 +23974,6 @@ var init_chunk_OUQ7HMD3 = __esm({
|
|
|
23969
23974
|
USAGE_META = "alan.dev/usage";
|
|
23970
23975
|
TODOS_META = "alan.dev/todos";
|
|
23971
23976
|
NOTICE_KIND_META = "alan.dev/noticeKind";
|
|
23972
|
-
CONTEXT_RECALL_META = "alan.dev/contextRecall";
|
|
23973
23977
|
ASK_USER_QUESTIONS_META = "alan.dev/askUserQuestions";
|
|
23974
23978
|
USER_ANSWER_META = "alan.dev/userAnswer";
|
|
23975
23979
|
AWAITING_TOOL_CALLS_META = "alan.dev/awaitingToolCallIds";
|
|
@@ -24006,17 +24010,17 @@ var init_chunk_OUQ7HMD3 = __esm({
|
|
|
24006
24010
|
var init_acp2 = __esm({
|
|
24007
24011
|
"../agent-core/dist/acp.js"() {
|
|
24008
24012
|
"use strict";
|
|
24009
|
-
|
|
24013
|
+
init_chunk_UGRKZTAD();
|
|
24010
24014
|
init_chunk_YXWJW7I5();
|
|
24011
24015
|
}
|
|
24012
24016
|
});
|
|
24013
24017
|
|
|
24014
|
-
// ../agent-core/dist/chunk-
|
|
24018
|
+
// ../agent-core/dist/chunk-DALFHI4B.js
|
|
24015
24019
|
var import_fs3, NEWLINE2, TranscriptCursor, TranscriptLineLookup;
|
|
24016
|
-
var
|
|
24017
|
-
"../agent-core/dist/chunk-
|
|
24020
|
+
var init_chunk_DALFHI4B = __esm({
|
|
24021
|
+
"../agent-core/dist/chunk-DALFHI4B.js"() {
|
|
24018
24022
|
"use strict";
|
|
24019
|
-
|
|
24023
|
+
init_chunk_UGRKZTAD();
|
|
24020
24024
|
init_chunk_YXWJW7I5();
|
|
24021
24025
|
import_fs3 = require("fs");
|
|
24022
24026
|
NEWLINE2 = 10;
|
|
@@ -24516,7 +24520,7 @@ var init_chunk_R32NAS3B = __esm({
|
|
|
24516
24520
|
}
|
|
24517
24521
|
});
|
|
24518
24522
|
|
|
24519
|
-
// ../agent-core/dist/chunk-
|
|
24523
|
+
// ../agent-core/dist/chunk-X5JKSBTB.js
|
|
24520
24524
|
function collectStrings(value, out) {
|
|
24521
24525
|
if (typeof value === "string") out.push(value);
|
|
24522
24526
|
else if (Array.isArray(value)) for (const item of value) collectStrings(item, out);
|
|
@@ -24886,10 +24890,10 @@ function silentStartError(name, timeoutMs) {
|
|
|
24886
24890
|
};
|
|
24887
24891
|
}
|
|
24888
24892
|
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;
|
|
24889
|
-
var
|
|
24890
|
-
"../agent-core/dist/chunk-
|
|
24893
|
+
var init_chunk_X5JKSBTB = __esm({
|
|
24894
|
+
"../agent-core/dist/chunk-X5JKSBTB.js"() {
|
|
24891
24895
|
"use strict";
|
|
24892
|
-
|
|
24896
|
+
init_chunk_UGRKZTAD();
|
|
24893
24897
|
init_chunk_R32NAS3B();
|
|
24894
24898
|
init_chunk_NDAB5G24();
|
|
24895
24899
|
init_chunk_YXWJW7I5();
|
|
@@ -25353,7 +25357,7 @@ var init_chunk_J2KTV5FP = __esm({
|
|
|
25353
25357
|
}
|
|
25354
25358
|
});
|
|
25355
25359
|
|
|
25356
|
-
// ../agent-core/dist/chunk-
|
|
25360
|
+
// ../agent-core/dist/chunk-6WN2R725.js
|
|
25357
25361
|
function truncate(value, limit) {
|
|
25358
25362
|
const normalized2 = Array.from(value, (character) => {
|
|
25359
25363
|
const code = character.charCodeAt(0);
|
|
@@ -25624,7 +25628,7 @@ Prefer relative paths and keep your work scoped to this project.` : void 0;
|
|
|
25624
25628
|
]),
|
|
25625
25629
|
append: present([
|
|
25626
25630
|
ALAN_PLATFORM_TOOL_ROUTING_PROMPT,
|
|
25627
|
-
spec.contextGraphEnabled ===
|
|
25631
|
+
spec.contextGraphEnabled === true ? ALAN_CONTEXT_SEARCH_PROMPT : void 0,
|
|
25628
25632
|
overlay
|
|
25629
25633
|
])
|
|
25630
25634
|
};
|
|
@@ -25680,8 +25684,8 @@ ${body}` : body;
|
|
|
25680
25684
|
return spec.mode === "plan" ? planModePrefix(prefixed) : prefixed;
|
|
25681
25685
|
}
|
|
25682
25686
|
var MAX_PARSED_ATTACHMENTS, MAX_PARSED_ATTACHMENT_CHARS, MAX_METADATA_CHARS, UNAVAILABLE, READ_ONLY_MODES, AGENT_MODES;
|
|
25683
|
-
var
|
|
25684
|
-
"../agent-core/dist/chunk-
|
|
25687
|
+
var init_chunk_6WN2R725 = __esm({
|
|
25688
|
+
"../agent-core/dist/chunk-6WN2R725.js"() {
|
|
25685
25689
|
"use strict";
|
|
25686
25690
|
init_agent2();
|
|
25687
25691
|
MAX_PARSED_ATTACHMENTS = 3;
|
|
@@ -26750,13 +26754,13 @@ var import_crypto6, import_fs5, import_path5, import_crypto7, import_promises13,
|
|
|
26750
26754
|
var init_claude = __esm({
|
|
26751
26755
|
"../agent-core/dist/providers/claude.js"() {
|
|
26752
26756
|
"use strict";
|
|
26753
|
-
|
|
26754
|
-
|
|
26755
|
-
|
|
26757
|
+
init_chunk_DALFHI4B();
|
|
26758
|
+
init_chunk_X5JKSBTB();
|
|
26759
|
+
init_chunk_UGRKZTAD();
|
|
26756
26760
|
init_chunk_R32NAS3B();
|
|
26757
26761
|
init_chunk_J2KTV5FP();
|
|
26758
26762
|
init_chunk_NDAB5G24();
|
|
26759
|
-
|
|
26763
|
+
init_chunk_6WN2R725();
|
|
26760
26764
|
init_chunk_YXWJW7I5();
|
|
26761
26765
|
init_effort();
|
|
26762
26766
|
import_crypto6 = require("crypto");
|
|
@@ -28037,7 +28041,7 @@ function basenameOf(path) {
|
|
|
28037
28041
|
return path.split(/[\\/]/).at(-1) ?? "";
|
|
28038
28042
|
}
|
|
28039
28043
|
function mayMatter(line) {
|
|
28040
|
-
return line.includes("image_gen")
|
|
28044
|
+
return line.includes("image_gen");
|
|
28041
28045
|
}
|
|
28042
28046
|
function imageKey(update) {
|
|
28043
28047
|
if (update.sessionUpdate !== "_alan/generated_image") return void 0;
|
|
@@ -28878,17 +28882,17 @@ function codexTurnInput(run, context) {
|
|
|
28878
28882
|
...images.length ? { imagePaths: images.map((image) => image.path) } : {}
|
|
28879
28883
|
};
|
|
28880
28884
|
}
|
|
28881
|
-
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_SIGNATURE, JPEG_NON_FRAME_MARKERS, IMAGE_GEN_CALL, PROMPT_LITERAL,
|
|
28885
|
+
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_SIGNATURE, 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;
|
|
28882
28886
|
var init_codex = __esm({
|
|
28883
28887
|
"../agent-core/dist/providers/codex.js"() {
|
|
28884
28888
|
"use strict";
|
|
28885
|
-
|
|
28886
|
-
|
|
28887
|
-
|
|
28889
|
+
init_chunk_DALFHI4B();
|
|
28890
|
+
init_chunk_X5JKSBTB();
|
|
28891
|
+
init_chunk_UGRKZTAD();
|
|
28888
28892
|
init_chunk_R32NAS3B();
|
|
28889
28893
|
init_chunk_J2KTV5FP();
|
|
28890
28894
|
init_chunk_NDAB5G24();
|
|
28891
|
-
|
|
28895
|
+
init_chunk_6WN2R725();
|
|
28892
28896
|
init_chunk_YXWJW7I5();
|
|
28893
28897
|
import_fs6 = require("fs");
|
|
28894
28898
|
import_path6 = require("path");
|
|
@@ -28942,19 +28946,17 @@ var init_codex = __esm({
|
|
|
28942
28946
|
JPEG_NON_FRAME_MARKERS = /* @__PURE__ */ new Set([196, 200, 204]);
|
|
28943
28947
|
IMAGE_GEN_CALL = /\bimage_gen\w*\s*\(/;
|
|
28944
28948
|
PROMPT_LITERAL = /\bprompt\s*:\s*("(?:[^"\\]|\\.)*")/;
|
|
28945
|
-
TURN_END_EVENTS = /* @__PURE__ */ new Set(["task_complete", "turn_aborted"]);
|
|
28946
28949
|
RELOCATE_EVERY_MS = 1e3;
|
|
28947
28950
|
CodexImageGenerationFold = class {
|
|
28948
28951
|
#clock;
|
|
28949
28952
|
#pending = [];
|
|
28950
28953
|
#updates = [];
|
|
28951
|
-
#turnEnded = false;
|
|
28952
28954
|
constructor(clock) {
|
|
28953
28955
|
this.#clock = clock;
|
|
28954
28956
|
}
|
|
28955
|
-
/** A call is still waiting for its image
|
|
28957
|
+
/** A call is still waiting for its image. */
|
|
28956
28958
|
get waiting() {
|
|
28957
|
-
return this.#pending.length > 0
|
|
28959
|
+
return this.#pending.length > 0;
|
|
28958
28960
|
}
|
|
28959
28961
|
foldLine(text2) {
|
|
28960
28962
|
if (!mayMatter(text2)) return;
|
|
@@ -28977,7 +28979,6 @@ var init_codex = __esm({
|
|
|
28977
28979
|
}
|
|
28978
28980
|
if (entryType !== "event_msg") return;
|
|
28979
28981
|
const type = asString(payload.type);
|
|
28980
|
-
if (TURN_END_EVENTS.has(type)) this.#turnEnded = true;
|
|
28981
28982
|
if (type === "image_generation_end") {
|
|
28982
28983
|
this.#finish(payload, ts);
|
|
28983
28984
|
return;
|
|
@@ -29061,7 +29062,7 @@ var init_codex = __esm({
|
|
|
29061
29062
|
settle() {
|
|
29062
29063
|
return [...this.drain(), ...this.#fold.settlePending()];
|
|
29063
29064
|
}
|
|
29064
|
-
/** Waits, up to `ms`, for
|
|
29065
|
+
/** Waits, up to `ms`, for pending images. A prior turn's end can trail this turn's start. */
|
|
29065
29066
|
async catchUp(ms, pollMs) {
|
|
29066
29067
|
const updates = this.drain();
|
|
29067
29068
|
const deadline = this.#clock.monotonic() + ms;
|
|
@@ -37632,8 +37633,8 @@ var require_dist = __commonJS({
|
|
|
37632
37633
|
var init_dist = __esm({
|
|
37633
37634
|
"../agent-core/dist/index.js"() {
|
|
37634
37635
|
"use strict";
|
|
37635
|
-
|
|
37636
|
-
|
|
37636
|
+
init_chunk_X5JKSBTB();
|
|
37637
|
+
init_chunk_UGRKZTAD();
|
|
37637
37638
|
init_chunk_R32NAS3B();
|
|
37638
37639
|
init_chunk_NDAB5G24();
|
|
37639
37640
|
init_chunk_YXWJW7I5();
|
|
@@ -38379,12 +38380,12 @@ var import_promises20, import_path9, import_crypto12, import_promises21, CURSOR_
|
|
|
38379
38380
|
var init_acp3 = __esm({
|
|
38380
38381
|
"../agent-core/dist/providers/acp.js"() {
|
|
38381
38382
|
"use strict";
|
|
38382
|
-
|
|
38383
|
-
|
|
38383
|
+
init_chunk_X5JKSBTB();
|
|
38384
|
+
init_chunk_UGRKZTAD();
|
|
38384
38385
|
init_chunk_R32NAS3B();
|
|
38385
38386
|
init_chunk_J2KTV5FP();
|
|
38386
38387
|
init_chunk_NDAB5G24();
|
|
38387
|
-
|
|
38388
|
+
init_chunk_6WN2R725();
|
|
38388
38389
|
init_chunk_YXWJW7I5();
|
|
38389
38390
|
import_promises20 = require("fs/promises");
|
|
38390
38391
|
import_path9 = require("path");
|
|
@@ -40043,12 +40044,12 @@ var import_http4, import_crypto13, import_path10, import_url2, import_crypto14,
|
|
|
40043
40044
|
var init_opencode = __esm({
|
|
40044
40045
|
"../agent-core/dist/providers/opencode.js"() {
|
|
40045
40046
|
"use strict";
|
|
40046
|
-
|
|
40047
|
-
|
|
40047
|
+
init_chunk_X5JKSBTB();
|
|
40048
|
+
init_chunk_UGRKZTAD();
|
|
40048
40049
|
init_chunk_R32NAS3B();
|
|
40049
40050
|
init_chunk_J2KTV5FP();
|
|
40050
40051
|
init_chunk_NDAB5G24();
|
|
40051
|
-
|
|
40052
|
+
init_chunk_6WN2R725();
|
|
40052
40053
|
init_chunk_YXWJW7I5();
|
|
40053
40054
|
import_http4 = require("http");
|
|
40054
40055
|
init_runtime_v2();
|
|
@@ -41802,12 +41803,12 @@ var import_crypto15, import_promises22, FACTORY_API_VERSION, FACTORY_PROTOCOL_VE
|
|
|
41802
41803
|
var init_droid = __esm({
|
|
41803
41804
|
"../agent-core/dist/providers/droid.js"() {
|
|
41804
41805
|
"use strict";
|
|
41805
|
-
|
|
41806
|
-
|
|
41806
|
+
init_chunk_X5JKSBTB();
|
|
41807
|
+
init_chunk_UGRKZTAD();
|
|
41807
41808
|
init_chunk_R32NAS3B();
|
|
41808
41809
|
init_chunk_J2KTV5FP();
|
|
41809
41810
|
init_chunk_NDAB5G24();
|
|
41810
|
-
|
|
41811
|
+
init_chunk_6WN2R725();
|
|
41811
41812
|
init_chunk_YXWJW7I5();
|
|
41812
41813
|
init_runtime_v2();
|
|
41813
41814
|
import_crypto15 = require("crypto");
|
|
@@ -42871,12 +42872,12 @@ var import_fs8, import_path11, import_path12, import_url3, import_crypto16, NO_A
|
|
|
42871
42872
|
var init_antigravity = __esm({
|
|
42872
42873
|
"../agent-core/dist/providers/antigravity.js"() {
|
|
42873
42874
|
"use strict";
|
|
42874
|
-
|
|
42875
|
-
|
|
42876
|
-
|
|
42875
|
+
init_chunk_DALFHI4B();
|
|
42876
|
+
init_chunk_X5JKSBTB();
|
|
42877
|
+
init_chunk_UGRKZTAD();
|
|
42877
42878
|
init_chunk_R32NAS3B();
|
|
42878
42879
|
init_chunk_NDAB5G24();
|
|
42879
|
-
|
|
42880
|
+
init_chunk_6WN2R725();
|
|
42880
42881
|
init_chunk_YXWJW7I5();
|
|
42881
42882
|
import_fs8 = require("fs");
|
|
42882
42883
|
import_path11 = require("path");
|
|
@@ -43556,12 +43557,12 @@ var import_promises23, import_path13, import_crypto17, COMMAND_CODE_GRAMMAR_NAME
|
|
|
43556
43557
|
var init_command_code = __esm({
|
|
43557
43558
|
"../agent-core/dist/providers/command-code.js"() {
|
|
43558
43559
|
"use strict";
|
|
43559
|
-
|
|
43560
|
-
|
|
43560
|
+
init_chunk_X5JKSBTB();
|
|
43561
|
+
init_chunk_UGRKZTAD();
|
|
43561
43562
|
init_chunk_R32NAS3B();
|
|
43562
43563
|
init_chunk_J2KTV5FP();
|
|
43563
43564
|
init_chunk_NDAB5G24();
|
|
43564
|
-
|
|
43565
|
+
init_chunk_6WN2R725();
|
|
43565
43566
|
init_chunk_YXWJW7I5();
|
|
43566
43567
|
import_promises23 = require("fs/promises");
|
|
43567
43568
|
import_path13 = require("path");
|
|
@@ -47097,10 +47098,6 @@ async function runWithInputs({ spec, leaseTargets, skills }, context, sink, sign
|
|
|
47097
47098
|
_promise2 && await _promise2;
|
|
47098
47099
|
}
|
|
47099
47100
|
}
|
|
47100
|
-
function recordRelevantContext(spec, append) {
|
|
47101
|
-
if (spec.relevantContext === void 0) return;
|
|
47102
|
-
append(fitForRunLog(contextRecallUpdate(`relevant-context-${spec.runId}`, spec.relevantContext)));
|
|
47103
|
-
}
|
|
47104
47101
|
async function admitAndRun(spec, context, append, sink, signal) {
|
|
47105
47102
|
if (context.workspace === void 0) {
|
|
47106
47103
|
if (spec.skillInvocations?.length) {
|
|
@@ -47110,7 +47107,6 @@ async function admitAndRun(spec, context, append, sink, signal) {
|
|
|
47110
47107
|
message: "Selected skills need this computer's skill sync, which this holder does not have."
|
|
47111
47108
|
};
|
|
47112
47109
|
}
|
|
47113
|
-
recordRelevantContext(spec, append);
|
|
47114
47110
|
return runWithInputs({ spec, leaseTargets: [], skills: [] }, context, sink, signal);
|
|
47115
47111
|
}
|
|
47116
47112
|
const admission = await admitRun(spec, context.workspace.admission, signal);
|
|
@@ -47119,7 +47115,6 @@ async function admitAndRun(spec, context, append, sink, signal) {
|
|
|
47119
47115
|
return { outcome: "rejected", rejection: admission.rejection, message: admission.message };
|
|
47120
47116
|
}
|
|
47121
47117
|
if (admission.relocated !== null) append(admission.relocated);
|
|
47122
|
-
recordRelevantContext(spec, append);
|
|
47123
47118
|
return runWithInputs(admission, context, sink, signal);
|
|
47124
47119
|
}
|
|
47125
47120
|
async function claimRun(spec, context) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alan-ai-hq/agent-manager-linux-x64",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.132",
|
|
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",
|