@aiden-ade/sandbox-agent 0.1.61 → 0.1.63
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.cjs +21 -9
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -12323,7 +12323,7 @@ function describeError(error2) {
|
|
|
12323
12323
|
}
|
|
12324
12324
|
|
|
12325
12325
|
// src/version.ts
|
|
12326
|
-
var AGENT_VERSION = "0.1.
|
|
12326
|
+
var AGENT_VERSION = "0.1.63";
|
|
12327
12327
|
|
|
12328
12328
|
// src/daemon-worktree.ts
|
|
12329
12329
|
var import_node_child_process3 = require("child_process");
|
|
@@ -19356,17 +19356,17 @@ function normalizeSkillEntries(entries, defaultSource = "team") {
|
|
|
19356
19356
|
}
|
|
19357
19357
|
|
|
19358
19358
|
// ../shared/dist/agent/system-prompt.js
|
|
19359
|
-
var ALAN_CONTEXT_SEARCH_PROMPT = `##
|
|
19359
|
+
var ALAN_CONTEXT_SEARCH_PROMPT = `## Memory (non-code context)
|
|
19360
19360
|
|
|
19361
|
-
The
|
|
19361
|
+
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.
|
|
19362
19362
|
|
|
19363
|
-
|
|
19363
|
+
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.
|
|
19364
19364
|
|
|
19365
|
-
|
|
19365
|
+
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.
|
|
19366
19366
|
|
|
19367
|
-
|
|
19367
|
+
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.
|
|
19368
19368
|
|
|
19369
|
-
|
|
19369
|
+
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.`;
|
|
19370
19370
|
var ALAN_IDENTITY_PROMPT = `You are Alan, the software factory agent. Alan ships software end to end \u2014 plan, write, review, test, deploy.
|
|
19371
19371
|
|
|
19372
19372
|
## How Alan is structured
|
|
@@ -19396,6 +19396,13 @@ Team
|
|
|
19396
19396
|
|
|
19397
19397
|
${ALAN_CONTEXT_SEARCH_PROMPT}
|
|
19398
19398
|
|
|
19399
|
+
## Record & Entity Resolution (Tasks, PRs, Docs, Epics)
|
|
19400
|
+
|
|
19401
|
+
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:
|
|
19402
|
+
- **Always resolve it with \`find_records\` first** (pass \`kinds: ["task"]\`, \`["document"]\`, \`["pull_request"]\`, or \`["epic"]\`).
|
|
19403
|
+
- **Never scan with \`list_tasks\` or \`list_epics\`** to locate a specific item whose number or title you were already given \u2014 list tools are strictly for paginating browsable boards of work, not for lookup.
|
|
19404
|
+
- Once \`find_records\` returns the entity, call \`get_task\` / \`get_epic\` / \`get_document\` with the resolved identifier or UUID if full relational details, comments, or subtasks are required.
|
|
19405
|
+
|
|
19399
19406
|
## Task Logging
|
|
19400
19407
|
|
|
19401
19408
|
For non-trivial tasks, log high-signal events as they happen: decisions, changed assumptions, validation results, known-good IDs, blockers, risks, direction changes, and session outcomes. Do not log routine commands or file reads. Before stopping, ensure the Agent Log and current session outcome are enough for a human to understand progress and for another agent to resume. If a prior event or decision is stale, supersede it instead of appending contradictory state.`;
|
|
@@ -19444,6 +19451,7 @@ function buildAlanCodeContextPrompt(options = {}) {
|
|
|
19444
19451
|
"",
|
|
19445
19452
|
"### Required path for codebase questions",
|
|
19446
19453
|
'Examples: "where is X configured", "which file handles Y", "how does Z work", "find code that \u2026", "why does this behavior happen?"',
|
|
19454
|
+
"`search_code_context` is the first and primary path for all of these \u2014 call it before `grep`/`rg`/`find`/broad Bash search, even in a repository already checked out locally. Grep is a fallback, not a starting point: reach for it only after an index search (a) returned nothing relevant, or (b) already cited the files and you need more line-level detail inside them.",
|
|
19447
19455
|
searchStep,
|
|
19448
19456
|
"2. Read the cited files. When that repository is already available locally, read the local path and treat the current worktree as the source of truth.",
|
|
19449
19457
|
...checkoutStep,
|
|
@@ -19454,7 +19462,7 @@ function buildAlanCodeContextPrompt(options = {}) {
|
|
|
19454
19462
|
"### Boundaries",
|
|
19455
19463
|
...repositoryBoundaries,
|
|
19456
19464
|
"- A code search reporting that the index was not searched (index not ready, no repository matched) is NOT evidence that the code is absent. Say so and retry or fall back deliberately instead of concluding the code does not exist.",
|
|
19457
|
-
"- Do NOT start with `grep`, `rg`, `find`, or broad Bash filesystem search
|
|
19465
|
+
"- Do NOT start with `grep`, `rg`, `find`, or broad Bash filesystem search \u2014 this applies whether or not the repository is already checked out locally. Run `search_code_context` first; drop to grep only once it has come back empty/unhelpful or has already named the files you now need line-level detail on.",
|
|
19458
19466
|
"- Do NOT repeat or rephrase index searches after the first result identifies useful paths. Continue locally instead.",
|
|
19459
19467
|
"- Do NOT claim current behavior from an index excerpt without reading the cited local file.",
|
|
19460
19468
|
"- Use repository IDs only when returned by repository/code-context tools or supplied by trusted task context. Never invent repository IDs or call list_teams.",
|
|
@@ -23284,7 +23292,8 @@ function detectAntigravityCliCapabilities(command, context) {
|
|
|
23284
23292
|
supportsSandbox: help.includes("--sandbox"),
|
|
23285
23293
|
supportsProject: help.includes("--project"),
|
|
23286
23294
|
supportsNewProject: help.includes("--new-project"),
|
|
23287
|
-
supportsJsonSchema: help.includes("--json-schema")
|
|
23295
|
+
supportsJsonSchema: help.includes("--json-schema"),
|
|
23296
|
+
supportsDisableSlashCommands: help.includes("--disable-slash-commands")
|
|
23288
23297
|
};
|
|
23289
23298
|
capabilityCache.set(cacheKey, capabilities);
|
|
23290
23299
|
return capabilities;
|
|
@@ -23341,6 +23350,9 @@ function buildAntigravityCliArgs(context, prompt, defaultArgs = [], capabilities
|
|
|
23341
23350
|
if (capabilities?.supportsStructuredPrint) {
|
|
23342
23351
|
args.push("--output-format", "stream-json");
|
|
23343
23352
|
}
|
|
23353
|
+
if (capabilities?.supportsDisableSlashCommands) {
|
|
23354
|
+
args.push("--disable-slash-commands");
|
|
23355
|
+
}
|
|
23344
23356
|
args.push("--print-timeout", "10m");
|
|
23345
23357
|
return [...args, ...defaultArgs, "-p", prompt];
|
|
23346
23358
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aiden-ade/sandbox-agent",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.63",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Alan agent runtime — cloud sandbox and local daemon (alan-agent CLI)",
|
|
6
6
|
"bin": {
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
"tsup": "^8.5.1",
|
|
24
24
|
"tsx": "^4.19.0",
|
|
25
25
|
"typescript": "~5.9.3",
|
|
26
|
-
"@alan-ai/
|
|
27
|
-
"@alan-ai/
|
|
26
|
+
"@alan-ai/agent-core": "0.1.0",
|
|
27
|
+
"@alan-ai/shared": "0.1.0"
|
|
28
28
|
},
|
|
29
29
|
"deprecated": "Use @alan-ai-hq/agent-manager instead.",
|
|
30
30
|
"scripts": {
|