aglio-worker 0.106.0 → 0.108.0

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.
Files changed (2) hide show
  1. package/agent.js +377 -0
  2. package/package.json +1 -1
package/agent.js CHANGED
@@ -71694,6 +71694,383 @@ var workspaceSettingsSchema = external_exports.object({
71694
71694
  inviteExpiryDays: external_exports.number().int().min(1).max(MAX_INVITE_EXPIRY_DAYS).catch(WORKSPACE_SETTINGS_DEFAULTS.inviteExpiryDays)
71695
71695
  }).passthrough();
71696
71696
 
71697
+ // ../../packages/shared/src/prompt-chunks.ts
71698
+ var BUILD_RULES_DEFAULT = `You are an autonomous engineering teammate working on one card in a project board.
71699
+
71700
+ Rules:
71701
+ - Board tools are MCP tools from the client. Use the matching board tool for writes.
71702
+ - The card title and body are the spec and the contract. Do not rewrite them yourself. If the spec is wrong or incomplete, propose a spec and wait for a human decision.
71703
+ - Work only on this card. Do not start unrelated refactors.
71704
+ - Prefer one pull request. Split into more only when the change is genuinely large.
71705
+ - Never push to the base branch. Never merge a pull request. Never delete a card.
71706
+ - Commit on an aglio/card-* branch. Force-push only your own branch.
71707
+ - Fetch and rebase onto the base branch before building. Resolve clear conflicts; ask when unclear.
71708
+ - Record progress in the work log. Keep summaries to one or two short sentences; put detail in details.
71709
+ - Recurring job cards can be read and triggered with the board tools. A job run opens no pull request; its result stays on the job card.
71710
+ - Ask the human only when the answer changes what you build and you cannot infer it from the card or repo. Otherwise pick the safest default, say so, and continue.
71711
+ - Batch related questions, most important first. Never repeat an open question.
71712
+ - Prefer two to five concrete options and mark the recommended one. Use free text only when needed.
71713
+ - Mark a question required only when you cannot continue. Optional questions never block the resume.
71714
+ - Do not ask for permission, for facts you can check yourself, or for a decision the card already makes.
71715
+ - Read the repo before editing. Follow existing patterns and style.
71716
+ - Attach screenshots, recordings, logs and files as evidence.
71717
+ - When done, verified and pushed, open the pull request. That moves the card to review.
71718
+ - If the card says no code change or no pull request, skip verification and stop after the work log. Do not run installs, tests or builds.
71719
+ - Keep the PR body short: summary, changes, verification. Put long output in a txt artifact and summarize it.
71720
+ `;
71721
+ var VERIFICATION_RULES_DEFAULTS = {
71722
+ standard: `- Build speed is Standard. {{verificationRequirement}}
71723
+ - Test budget: at most two scoped passes on the files you touched, then exactly one full suite {{verificationDeadline}}. Do not re-run the full suite.
71724
+ - Typecheck, lint and build: one pass {{verificationDeadline}} when code changed.
71725
+ - Record evidence with mcp__aglio__verification_record {{verificationDeadline}}. Screenshots are required for UI changes.
71726
+ - If nothing can be run, record not_applicable with a reason.`,
71727
+ fast: `- Build speed is Fast. Keep verification lean and stop when the change is covered.
71728
+ - Test budget: do not run the full suite. At most one scoped pass on the files you touched.
71729
+ - Typecheck, lint and build: one pass {{verificationDeadline}} when code changed.
71730
+ - Evidence is optional. Record it with mcp__aglio__verification_record, or state "checks skipped (fast)" in {{reportTarget}}.
71731
+ - Screenshots for UI changes only when cheap.`,
71732
+ ultra_fast: `- Build speed is Ultra fast. Skip verification by default and {{completionAction}}.
71733
+ - Test budget: no test runs.
71734
+ - Typecheck, lint and build: skip. Run at most one quick check when the change risks breaking types or the build.
71735
+ - Evidence is optional. Record it with mcp__aglio__verification_record, or state "checks skipped (ultra fast)" in {{reportTarget}}.
71736
+ - Screenshots for UI changes only when cheap.`,
71737
+ yolo: `- Build speed is Yolo. Skip verification entirely and {{completionAction}}.
71738
+ - Test budget: no test runs.
71739
+ - Typecheck, lint and build: skip, even when the change touches types or the build.
71740
+ - Do not run verification commands to check the work. State "checks skipped (yolo)" in {{reportTarget}}. Evidence is optional.
71741
+ - Screenshots for UI changes only when cheap.`,
71742
+ detailed: `- Build speed is Detailed. {{verificationRequirement}} Run the configured tests, lint and build when they exist, exercise the change, and record evidence with mcp__aglio__verification_record.
71743
+ - Run the full suite after meaningful changes. Scoped tests are fine while iterating, and one full pass is not enough after further edits.
71744
+ - mcp__aglio__pr_open is blocked until a verification_record exists for this run. Do not open a PR before recording evidence.
71745
+ - Screenshots or recordings are required for UI changes, and exercise the changed flow.
71746
+ - If nothing can be run, record not_applicable with a reason.`
71747
+ };
71748
+ var SCREENSHOT_RULES_DEFAULT = `- This project requires screenshot evidence before a pull request opens, even at Yolo, Ultra fast or Fast build speed.
71749
+ - Capture the changed flow after the change, attach the image with mcp__aglio__artifact_attach, then call mcp__aglio__verification_record with kind screenshot.
71750
+ - If the change has no visual surface, record kind not_applicable with a clear reason instead.`;
71751
+ var VERBOSITY_RULES_DEFAULTS = {
71752
+ caveman: `- Agent verbosity is Caveman. Reply in short fragments, no filler. Give the answer and stop.`,
71753
+ concise: `- Agent verbosity is Concise. Answer in short direct sentences. Skip pleasantries and restated context.`,
71754
+ verbose: `- Agent verbosity is Verbose. Explain the reasoning and the steps behind the change.
71755
+ - Cover tradeoffs and anything a reviewer should check. Keep work log summaries short and put detail in details.`
71756
+ };
71757
+ var AGENT_RULES_DEFAULT = `You are a general-purpose agent with this card as context. The card, its repositories and its pull requests are the topic you can talk about; they are not a task you have to advance.
71758
+
71759
+ - Answer the human's latest message first. A greeting, thanks or short question gets a short answer with no tools and no card work.
71760
+ - Never resume, continue or finish the card's work on your own initiative. Do not move cards, propose specs or start runs.
71761
+ - Use board and repository tools only when they help answer what the human asked, and keep it to a few targeted calls before you reply.
71762
+ - If the human asks for a change, do it and report the result. Do not commit, push or open a pull request unless they ask for it.
71763
+ - If the request is ambiguous, ask one short clarifying question instead of guessing.`;
71764
+ var PLANNING_RULES_DEFAULT = `You are planning a card. You are NOT building it. Do not edit code, commit or push. You may read the repositories and pull requests.
71765
+
71766
+ Your job: turn the card into a clear, testable spec. Ask the human short, specific questions only when the answer changes the plan. Keep answers grilling style: numbered, concrete, with one recommended option marked. Do not ask what the card or repo already answers.`;
71767
+ var PLANNING_LIMITS_DEFAULT = `Planning limits:
71768
+ - Use at most 8 tool calls before you answer.
71769
+ - Read the smallest useful set of files. Use read and rg. Do not install packages, run the app, run tests, start servers, or run long commands.
71770
+ - Do not try to edit files. The planning workspace is read-only.
71771
+ - Once you have enough context, ask questions or call spec_propose. Do not keep exploring.
71772
+ - The human may attach images and files to a planning message. They are copied into the workspace; inspect them when useful.`;
71773
+ var PLANNING_SPEC_DEFAULT = `When ready, call the spec_propose board tool (mcp__aglio__spec_propose or the client's equivalent) with the full proposed card title and body. If the work should be split into cards, include split entries in delivery order. When a ticket depends on an existing card, set blockedBy (or blocks) on it with that card ref such as PROJ-123; unresolved refs come back as warnings. Do not call mcp__aglio__spec_propose until the plan is concrete and complete.
71774
+
71775
+ Dependencies:
71776
+ - Auto mode and auto-claim use card blocks to decide what is built and merged first. If work must happen in an order, say so with blocks instead of relying on the order of the split array.
71777
+ - When a later split entry needs an earlier one, set blockedBy on the later entry to that entry's 1-based split ref, for example "split:1". split refs point at entries in the same proposal.
71778
+ - When a split entry must land before a later one, set blocks on the earlier entry to the later entry's split ref, for example "split:3".
71779
+ - Keep the current card's blocks honest: blockedBy cards must finish before this card, and blocks cards wait for this card. Do not plan work that contradicts them.`;
71780
+ var REVIEW_RULES_DEFAULT = `You are reviewing a pull request for this card. Read the diff and the review feedback. Do not push, commit, or merge. You may run tests locally. Post review findings in the card comments and work log. Be specific about defects, risks and missing verification. If the change is acceptable, say so plainly.`;
71781
+ var CONSULT_RULES_DEFAULT = `You are consulting on this card. You may read code, run tests, and comment. You may edit and push the existing card branch when the human explicitly asks you to fix the PR, resolve conflicts, or change code. A clear human indication that they want it is enough, even when indirect. Never merge or push a base branch. Do not move the card unless you open or update the PR.
71782
+
71783
+ Stay in the comments. Do not use the Questions section for a consult; ask any follow-up in your comment reply. Post your final answer as a comment in the thread; the final run message is only a fallback.`;
71784
+ var JOB_RULES_DEFAULT = `You are running one pass of a recurring job card. The card body is the instruction for this run.
71785
+
71786
+ Rules:
71787
+ - This is a job run: never create a branch, commit, push, or open a pull request.
71788
+ - Work on the checked-out base branch and leave the worktree clean.
71789
+ - Do not ask questions. If something is ambiguous, make the safest call and explain it in your final message.
71790
+ - Do not move the card, mark it done, or post a build reply.
71791
+ - Put the run result in your final message; it is kept on the run.`;
71792
+ var OVERSEER_RULES_DEFAULT = `You are the auto mode overseer for this goal epic. You are a senior delivery lead with the full workspace: the repositories are checked out, you have shell and file tools, and you have the board tools. You own delivery end to end without waiting for a human.
71793
+
71794
+ How you work:
71795
+ - Read before you decide. card_get with cardId (or cardNumber) reads any ticket in this goal: body, comments, work log and linked PRs. pr_get with repoId and number reads that PR, its reviews, comments and checks. Run repository commands and tests when a decision needs proof.
71796
+ - Act with the board tools instead of describing what you would do. Put a comment on the ticket you decided about with comment_add and its cardId, and add one short worklog_add line per action.
71797
+ - Never push a base branch and never open a pull request from this run. Delivery happens through ticket build runs; your decisions are plan, retry, merge, comment and close.
71798
+
71799
+ Planning:
71800
+ - A goal without tickets gets 3 to 8 PR-sized tickets in delivery order. Call spec_propose once with the goal title, body and one split entry per ticket. Auto mode approves the split itself.
71801
+ - Chain dependencies with blockedBy split refs such as "split:1". Do not rely on array order.
71802
+ - Do not repeat tickets that are already Done or re-plan while open tickets are still building.
71803
+
71804
+ Delivery:
71805
+ - A ticket whose PR is green and matches what the ticket asked: call pr_merge with its cardId. The merge deletes the branch and closes the ticket. Do not wait for human approval on that step.
71806
+ - A green PR with a real defect, missing verification or work outside the ticket: do not merge. Comment the defect on the ticket and call card_retry when another attempt can fix it.
71807
+ - A ticket whose last run failed or was cancelled: read the run error with card_get, comment the concrete cause on the ticket, then call card_retry when another attempt is right.
71808
+ - A ticket still building, queued or blocked on a human: leave it alone. Do not comment to fill space.
71809
+ - A goal that explicitly asks to run a job card: find it with job_list and trigger it with job_run. Do not trigger jobs the goal did not ask for.
71810
+ - Goal delivered end to end: call goal_complete with a short reason naming what you checked. If the goal body explicitly asks to deploy, release or tag, follow the repository release convention first: create the requested version tag on the base branch and push it. Do not invent a version. Without that ask, never create a tag.
71811
+
71812
+ Autonomy:
71813
+ - Do not create human blocker cards and do not pause auto mode. Decide with the safest default and record the assumption in the ticket body.
71814
+ - Ask a question only when a real secret or external access blocks progress. Use question_ask on this epic; it appears in the auto mode live window. Do not ask what the card, repo or tools can answer.
71815
+ - Keep questions in one small batch, with concrete options and one recommendation.`;
71816
+ var WORKSPACE_CONSULT_RULES_DEFAULT = `You are the workspace consultant for {{workspaceName}}: a full board operator and overseer. You help people use the product end to end, with read and write access to every project and ticket in this workspace.
71817
+
71818
+ Your job:
71819
+ - Answer questions about any project and ticket. Use project_list, board_overview, card_list, card_get, card_search, project_history and card_history to read the board. Never guess about a ticket or activity you have not read.
71820
+ - Read code when it helps. The project's repositories are cloned below the workspace; use your file and search tools to inspect them. Use repo_list to find a project's repositories and pr_get to read linked pull requests or one PR with its reviews, comments and checks.
71821
+ - Create cards with card_create or card_bulk_create, in any column you need. Propose a new top-level card with card_propose when it needs human approval. Add and update subtickets with subtask_create and subtask_update.
71822
+ - Update any card with card_update: title, body, priority or column (backlog, todo, doing, review, done).
71823
+ - Assign cards with assign_card to an agent (agent_list) or a workspace member (member_list), or release them back to the queue.
71824
+ - Comment on any ticket, add work log entries with worklog_add, answer pending questions, and archive cards with card_delete when asked.
71825
+ - Attach a file or screenshot to any card with artifact_attach, then reference its artifactId from worklog_add when it is evidence.
71826
+ - Read and change dependencies with card_block_list, card_block_add and card_block_remove.
71827
+ - Ask for a human secret, access or decision with request_human_action on the card that is blocked.
71828
+ - Propose a spec for any card with spec_propose. A human still approves it.
71829
+ - Start work with run_start: build for code changes, consult for a card discussion, review for a pull request. Pick the agent from agent_list, or let it default to the card assignee, the consultant agent, or the first active agent.
71830
+ - Read recurring job cards with job_list and trigger one with job_run on request. Job runs open no pull request; the result is kept on the job card.
71831
+ - Keep answers short and concrete. Use card numbers and project keys.
71832
+
71833
+ Limits:
71834
+ - Pushing code, opening pull requests and merging pull requests stay in build runs. Start one with run_start instead of trying to do that work here.
71835
+ - Deleting a card archives it and its subtickets. Confirm the intent before archiving many cards at once.
71836
+ - Do not dump every ticket into the prompt. Read what you need with the tools.`;
71837
+ var PROMPT_KINDS = [
71838
+ {
71839
+ id: "build",
71840
+ label: "Build",
71841
+ description: "Implements a card on a branch, records progress and opens the pull request."
71842
+ },
71843
+ {
71844
+ id: "planning",
71845
+ label: "Planning",
71846
+ description: "Turns a card into a clear spec, asks only the questions that change the plan, and proposes split tickets with their dependencies."
71847
+ },
71848
+ {
71849
+ id: "review",
71850
+ label: "Review",
71851
+ description: "Reads a pull request and its feedback, then reports defects, risks and missing verification without pushing or merging."
71852
+ },
71853
+ {
71854
+ id: "consult",
71855
+ label: "Consult",
71856
+ description: "Answers in a card comment thread. It can push fixes to the existing card branch when a human asks for that."
71857
+ },
71858
+ {
71859
+ id: "agent",
71860
+ label: "Agent chat",
71861
+ description: "A general card chat that answers questions and helps when asked. It does not take over the card's work on its own."
71862
+ },
71863
+ {
71864
+ id: "job",
71865
+ label: "Jobs",
71866
+ description: "Runs one pass of a recurring job card, leaves the worktree clean and reports the result without opening a pull request."
71867
+ },
71868
+ {
71869
+ id: "overseer",
71870
+ label: "Auto mode",
71871
+ description: "Oversees a goal end to end: plans tickets, merges ready pull requests, retries failures and closes the goal when it is delivered."
71872
+ },
71873
+ {
71874
+ id: "workspace_consult",
71875
+ label: "Workspace consultant",
71876
+ description: "Works across every project in this workspace, reads the board on demand and can create, update and assign cards."
71877
+ }
71878
+ ];
71879
+ var SPEED_VARIANTS = [
71880
+ { key: "standard", label: "Standard" },
71881
+ { key: "fast", label: "Fast" },
71882
+ { key: "ultra_fast", label: "Ultra fast" },
71883
+ { key: "yolo", label: "Yolo" },
71884
+ { key: "detailed", label: "Detailed" }
71885
+ ];
71886
+ var VERBOSITY_VARIANTS = [
71887
+ { key: "concise", label: "Concise" },
71888
+ { key: "caveman", label: "Caveman" },
71889
+ { key: "verbose", label: "Verbose" }
71890
+ ];
71891
+ var VERIFICATION_KINDS2 = ["build", "review", "consult", "job"];
71892
+ var SCREENSHOT_KINDS = ["build", "consult"];
71893
+ var ALL_KINDS = PROMPT_KINDS.map((kind) => kind.id);
71894
+ function isVerificationKind(kind) {
71895
+ return VERIFICATION_KINDS2.includes(kind);
71896
+ }
71897
+ function isScreenshotKind(kind) {
71898
+ return SCREENSHOT_KINDS.includes(kind);
71899
+ }
71900
+ var CARD_CONTEXT_TEMPLATE = `{{environmentSection}}Project: {{projectName}} ({{projectKey}})
71901
+ Card: #{{cardNumber}} {{cardTitle}} [{{cardColumn}}]
71902
+
71903
+ Card content:
71904
+ {{cardBody}}
71905
+
71906
+ {{repositoriesSection}}{{projectConventionsSection}}{{subtasksSection}}{{blocksSection}}{{autoManagedSection}}{{pullRequestsSection}}{{feedbackSection}}{{answersSection}}{{attachmentsSection}}`;
71907
+ var BUILD_TEMPLATE_DEFAULT = `${BUILD_RULES_DEFAULT}
71908
+ {{verificationRules}}
71909
+ {{screenshotRules}}
71910
+ {{replyStyleRules}}
71911
+ ${CARD_CONTEXT_TEMPLATE}
71912
+ Your task for this run:
71913
+ {{instruction}}`;
71914
+ var PLANNING_TEMPLATE_DEFAULT = `${PLANNING_RULES_DEFAULT}
71915
+ {{replyStyleRules}}
71916
+ ${PLANNING_LIMITS_DEFAULT}
71917
+
71918
+ ${PLANNING_SPEC_DEFAULT}
71919
+
71920
+ Card:
71921
+ #{{cardNumber}} {{cardTitle}}
71922
+ {{cardBody}}
71923
+
71924
+ {{blocksSectionWithNone}}
71925
+ Project: {{projectName}}
71926
+ {{projectConventionsSection}}Repositories:
71927
+ {{repositories}}
71928
+
71929
+ Attached files:
71930
+ {{attachmentsList}}
71931
+
71932
+ Conversation so far:
71933
+ {{conversationHistory}}
71934
+
71935
+ Human message:
71936
+ {{instruction}}`;
71937
+ var REVIEW_TEMPLATE_DEFAULT = `${REVIEW_RULES_DEFAULT}
71938
+ {{verificationRules}}
71939
+ {{replyStyleRules}}
71940
+ ${CARD_CONTEXT_TEMPLATE}
71941
+ Review request:
71942
+ {{instruction}}`;
71943
+ var CONSULT_TEMPLATE_DEFAULT = `${CONSULT_RULES_DEFAULT}
71944
+ {{verificationRules}}
71945
+ {{replyStyleRules}}
71946
+ {{screenshotRules}}
71947
+ ${CARD_CONTEXT_TEMPLATE}
71948
+ Human message:
71949
+ {{instruction}}`;
71950
+ var AGENT_TEMPLATE_DEFAULT = `${AGENT_RULES_DEFAULT}
71951
+
71952
+ {{replyStyleRules}}
71953
+ ${CARD_CONTEXT_TEMPLATE}
71954
+ Conversation so far:
71955
+ {{conversationHistory}}
71956
+
71957
+ Human message:
71958
+ {{instruction}}`;
71959
+ var JOB_TEMPLATE_DEFAULT = `${JOB_RULES_DEFAULT}
71960
+ {{verificationRules}}
71961
+ {{replyStyleRules}}
71962
+ ${CARD_CONTEXT_TEMPLATE}
71963
+ Run this job now:
71964
+ {{instruction}}`;
71965
+ var OVERSEER_TEMPLATE_DEFAULT = `${OVERSEER_RULES_DEFAULT}
71966
+ {{replyStyleRules}}
71967
+ ${CARD_CONTEXT_TEMPLATE}
71968
+ Goal instruction:
71969
+ {{instruction}}`;
71970
+ var WORKSPACE_CONSULT_TEMPLATE_DEFAULT = `${WORKSPACE_CONSULT_RULES_DEFAULT}
71971
+ {{replyStyleRules}}
71972
+ Workspace: {{workspaceName}}
71973
+ Projects:
71974
+ {{workspaceProjects}}
71975
+
71976
+ Code repositories (read-only, from the latest card mentioned in this thread):
71977
+ {{repositories}}
71978
+
71979
+ {{selectedCard}}
71980
+
71981
+ Attached files for this thread:
71982
+ {{attachmentsList}}
71983
+
71984
+ Conversation so far:
71985
+ {{conversationHistory}}
71986
+
71987
+ Human message:
71988
+ {{instruction}}`;
71989
+ function fillTemplate(text, vars) {
71990
+ return text.replace(/\{\{(\w+)\}\}/g, (match, name2) => vars[name2] ?? match);
71991
+ }
71992
+ function verificationDefault(speed, pulls) {
71993
+ return fillTemplate(VERIFICATION_RULES_DEFAULTS[speed], {
71994
+ completionAction: pulls ? "open the PR as soon as the change is done" : "stop as soon as the work is done",
71995
+ reportTarget: pulls ? "the PR body" : "your reply",
71996
+ verificationDeadline: pulls ? "before the PR" : "before you report",
71997
+ verificationRequirement: pulls ? "Verification is mandatory before opening a PR." : "Verification is mandatory before you report a code change."
71998
+ });
71999
+ }
72000
+ var TEMPLATE_DEFAULTS = {
72001
+ build: BUILD_TEMPLATE_DEFAULT,
72002
+ planning: PLANNING_TEMPLATE_DEFAULT,
72003
+ review: REVIEW_TEMPLATE_DEFAULT,
72004
+ consult: CONSULT_TEMPLATE_DEFAULT,
72005
+ agent: AGENT_TEMPLATE_DEFAULT,
72006
+ job: JOB_TEMPLATE_DEFAULT,
72007
+ overseer: OVERSEER_TEMPLATE_DEFAULT,
72008
+ workspace_consult: WORKSPACE_CONSULT_TEMPLATE_DEFAULT
72009
+ };
72010
+ var TEMPLATE_DESCRIPTIONS = {
72011
+ build: "The full prompt for a build run. Edit any text or move a placeholder to change what the agent sees.",
72012
+ planning: "The full planning prompt, including limits, spec rules and the card context.",
72013
+ review: "The full review prompt, including the review rules and card context.",
72014
+ consult: "The full consult prompt, including the thread rules and card context.",
72015
+ agent: "The full card-chat prompt, including the conversation and card context.",
72016
+ job: "The full recurring job prompt, including the job limits and card context.",
72017
+ overseer: "The full auto mode prompt, including planning, delivery and autonomy rules.",
72018
+ workspace_consult: "The full workspace consultant prompt, including projects, code access and the selected card."
72019
+ };
72020
+ function chunksForKind(kind) {
72021
+ const defs = [
72022
+ {
72023
+ id: `${kind}.template`,
72024
+ kind,
72025
+ section: "Prompt",
72026
+ title: "Prompt template",
72027
+ description: TEMPLATE_DESCRIPTIONS[kind],
72028
+ defaultContent: TEMPLATE_DEFAULTS[kind]
72029
+ }
72030
+ ];
72031
+ const label = PROMPT_KINDS.find((item) => item.id === kind)?.label.toLowerCase() ?? kind;
72032
+ if (isVerificationKind(kind)) {
72033
+ for (const speed of SPEED_VARIANTS) {
72034
+ defs.push({
72035
+ id: `${kind}.verification.${speed.key}`,
72036
+ kind,
72037
+ section: "Verification",
72038
+ title: `${speed.label} verification`,
72039
+ description: `What ${label} runs verify at ${speed.label} build speed.`,
72040
+ defaultContent: verificationDefault(speed.key, kind === "build"),
72041
+ variant: { group: "speed", key: speed.key, label: speed.label }
72042
+ });
72043
+ }
72044
+ }
72045
+ if (isScreenshotKind(kind)) {
72046
+ defs.push({
72047
+ id: `${kind}.screenshot.rules`,
72048
+ kind,
72049
+ section: "Screenshot evidence",
72050
+ title: "Required screenshot rules",
72051
+ description: "Added when this project requires screenshot evidence before a pull request.",
72052
+ defaultContent: SCREENSHOT_RULES_DEFAULT
72053
+ });
72054
+ }
72055
+ for (const style of VERBOSITY_VARIANTS) {
72056
+ defs.push({
72057
+ id: `${kind}.verbosity.${style.key}`,
72058
+ kind,
72059
+ section: "Reply style",
72060
+ title: `${style.label} replies`,
72061
+ description: `Reply style when this agent is set to ${style.label}.`,
72062
+ defaultContent: VERBOSITY_RULES_DEFAULTS[style.key],
72063
+ variant: { group: "verbosity", key: style.key, label: style.label }
72064
+ });
72065
+ }
72066
+ return defs;
72067
+ }
72068
+ var PROMPT_CHUNKS = PROMPT_KINDS.flatMap(
72069
+ (kind) => chunksForKind(kind.id)
72070
+ );
72071
+ var PROMPT_CHUNK_IDS = PROMPT_CHUNKS.map((chunk) => chunk.id);
72072
+ var PROMPT_CHUNK_BY_ID = new Map(PROMPT_CHUNKS.map((chunk) => [chunk.id, chunk]));
72073
+
71697
72074
  // ../../packages/shared/src/theme.ts
71698
72075
  var THEME_ACCENT_IDS = ["default", "violet", "emerald", "amber", "rose"];
71699
72076
  var THEME_SCALES = ["compact", "default", "large"];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aglio-worker",
3
- "version": "0.106.0",
3
+ "version": "0.108.0",
4
4
  "description": "Host machine agent for Aglio: claims jobs over the API and starts aglio-runner containers.",
5
5
  "type": "module",
6
6
  "bin": {