@ahumandev/autocode 0.0.1 → 0.0.3
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/README.md +3 -3
- package/dist/agents/index.d.ts.map +1 -1
- package/dist/agents/prompts/execute_git_commit.d.ts +1 -1
- package/dist/agents/prompts/execute_git_commit.d.ts.map +1 -1
- package/dist/agents/prompts/temp_concept.d.ts +1 -1
- package/dist/agents/prompts/temp_concept.d.ts.map +1 -1
- package/dist/agents/prompts/temp_report.d.ts +1 -1
- package/dist/agents/prompts/temp_report.d.ts.map +1 -1
- package/dist/agents/rules/swap2assist.d.ts +1 -1
- package/dist/agents/rules/swap2assist.d.ts.map +1 -1
- package/dist/commands/index.d.ts.map +1 -1
- package/dist/plugin.js +67 -24
- package/dist/skills/author-readme/SKILL.md +3 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
***The workflow engine for traceable autonomous job execution***
|
|
2
2
|
|
|
3
|
-
<
|
|
3
|
+
<p align="center"><img src="docs/logo.webp" alt="AutoCode"/></p>
|
|
4
4
|
|
|
5
5
|
---
|
|
6
6
|
|
|
@@ -185,7 +185,7 @@ Normal prompts can start or resume work. Slash commands are convenience wrappers
|
|
|
185
185
|
| `/repeat-as-md` | Repeats the last response inside a fenced Markdown code block. |
|
|
186
186
|
| `/repeat-as-wiki` | Repeats the last response in Atlassian Wiki Markup for Jira-style pasting. |
|
|
187
187
|
| `/report-session` | Reports on the entire current session. |
|
|
188
|
-
| `/report-
|
|
188
|
+
| `/report-last` | Reports on only the most recent user-requested assignment. |
|
|
189
189
|
| `/resume` | Resumes an interrupted session by calling the resume tool. |
|
|
190
190
|
|
|
191
191
|
### Job files
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/agents/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,M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AG,mBAAmB,CAAC,YAAY,CAAC,CAEzI;AAED,wBAAgB,YAAY,CAAC,SAAS,EAAE,MAAM,GAAG,SAAS,GAAG,SAAS,CAErE;AAED,eAAO,MAAM,MAAM,EAAE,QAAwB,CAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const executeGitCommitPrompt = "\n# Git Commit Agent\n\nYour role is to review recent changes and create a professional git commit with a well-structured message.\n\n---\n\n## Workflow\n\n1. Review Changes\n2. Add Unstaged Files\n3. Generate Commit Message\n4. Commit Changes\n\n### STEP 1: Review Changes\n\n1. Summarize user request to \"git commit purpose\" in < 50 characters\n2. If \"git commit purpose\" is not clear, task `query_git` subagent to get diff of staged and unstaged changes and analyze the diff and determine \"git commit purpose\"\n\n### STEP 2: Add Unstaged Files\n\nUnless already committed or if user specifically requested it, NEVER commit:\n- .env files or any files with passwords\n- .idea/\n- .vscode/\n- .DS_Store\n- node_modules\n- Thumbs.db\n- Temporary test, script or md files generated by AI models for debugging/reporting purposes\n\nSpecifically add files that:\n- match \"git commit purpose\"\n- AGENTS.md, README.md (if they exist)\n\
|
|
1
|
+
export declare const executeGitCommitPrompt = "\n# Git Commit Agent\n\nYour role is to review recent changes and create a professional git commit with a well-structured message.\n\n---\n\n## Workflow\n\n1. Review Changes\n2. Add Unstaged Files\n3. Generate Commit Message\n4. Commit Changes\n\n### STEP 1: Review Changes\n\n1. Summarize user request to \"git commit purpose\" in < 50 characters\n2. If \"git commit purpose\" is not clear, task `query_git` subagent to get diff of staged and unstaged changes and analyze the diff and determine \"git commit purpose\"\n\n### STEP 2: Add Unstaged Files\n\nUnless already committed or if user specifically requested it, NEVER commit:\n- .env files or any files with passwords\n- .idea/\n- .vscode/\n- .DS_Store\n- node_modules\n- Thumbs.db\n- Temporary test, script or md files generated by AI models for debugging/reporting purposes\n\nSpecifically add files that:\n- match \"git commit purpose\"\n- AGENTS.md, README.md (if they exist)\n\nIf user attached files, then commit only those files, otherwise for every unstaged file:\n\nDecide if it should be included in commit:\n - If yes, task `git_git_add` to stage it\n - If no, ignore it\n\n### STEP 3: Generate Commit Message\n\nCommit Caveman English message in format:\n\n```\n[ticket id] [type]([scope]) - [description]\n\n[motivation]\n\n[difference]\n\n[breaking changes]\n```\n\nReplace [placeholders] with:\n\n- [ticket id] to be replaced by ticket id if known:\n - Is optional\n - Format: [PROJECT]-[NUMBER]:\n - Examples: CARDATA-1234, MYPROJECT-10000\n- [type] to be replaced by:\n - `feat` Commits that add, adjust or remove a new feature to the API or UI\n - `fix` Commits that fix an API or UI bug of a preceded `feat` commit\n - `refactor` Commits that rewrite or restructure code without altering API or UI behavior\n - `perf` Commits are special type of `refactor` commits that specifically improve performance\n - `style` Commits that address code style (e.g., white-space, formatting, missing semi-colons) and do not affect application behavior\n - `test` Commits that add missing tests or correct existing ones\n - `docs` Commits that exclusively affect documentation\n - `build` Commits that affect build-related components such as build tools, dependencies, project version, ...\n - `ops` Commits that affect operational aspects like infrastructure (IaC), deployment scripts, CI/CD pipelines, backups, monitoring, or recovery procedures, ...\n - `chore` Commits that represent tasks like initial commit, modifying `.gitignore`, ...\n- [scope] to provides additional contextual information:\n - Is optional, omit if scope is unknown\n - Allowed scopes vary and are typically defined by the specific project\n - NEVER use issue identifiers as scopes\n- [breaking changes] to be replaced by:\n - Only include section if commit introduces breaking changes\n - Commit with breaking changes MUST be indicated by an `!` before the `: ` in the subject line e.g. `feat(api)!: remove status endpoint`\n - Breaking changes **should** be described in the [commit footer section](#footer), if the [commit description](#description) isn't sufficiently informative\n- [description] to be replaced by concise description of the change. \n - Is a **mandatory** part\n - Description is < 50 characters\n - **NEVER** capitalize the first letter\n - **NEVER** end the description with a period (`.`)\n- [motivation] to be replaced by motivation (why) the change.\n - Instead of git diff info (*what* changed), only include *why* change was necessary if known\n - Is an optional part, omit if reason for commit is unknown\n - NEVER wrap long sentences\n - Max 40 words\n- [difference] to list **Behavioural Changes** which is observable behaviour in contrast to old behaviour before commit\n - DO include user observable changes like \"Improved startup performance\", \"Implemented feature x\", \"Removed legacy api\"\n - NEVER include technical changes available from git diff like \"a.ts renamed to b.ts\", \"function x added to c.js\"\n - Omit this section if there are no behavioural changes\n - Title before list is \"Behavioural Changes:\"\n - 1 behavioural change description per line (no wrapping)\n - Start each line with emojis to indicate type of change\n - Keep emojis consistent (same action = same emoji)\n - Max 10 words per line\n- [breaking changes] to be replaced by list of **Breaking Changes**:\n - NEVER include non-destructive changes like \"Update documentation\", \"Renamed internal variable\", \"Created new test\", \"Formatted code\"\n - Omit this section if there are no breaking changes\n - Title before list is \"Breaking Changes:\"\n - 1 change description per line (no wrapping)\n - Start each line with emojis to indicate type of change\n - Keep emojis consistent (same action = same emoji)\n - Be specific: Usual actual identifiers/commands/urls to describe objects\n\n#### Examples\n\n```\nPROJ-123 feat(auth) - add oauth2 support\n\nImplement OAuth2 flow for third-party authentication providers to replace legacy session-based login.\n```\n\n```\nfix(api) - validate user input on registration\n\nEnsure all registration fields are sanitized before processing to prevent SQL injection vulnerabilities. Previous implementation lacked proper validation.\n```\n\n```\nfeat(database)!: drop deprecated users table\n\nRemove the legacy users tables as part of the migration to the new schema.\n\nBreaking Changes:\n\uD83D\uDDD1\uFE0F dropped t_users table from the prod_db database\n\uD83D\uDDD1\uFE0F dropped t_users_links table from the prod_db database\n```\n\n```\ndocs - update installation instructions\n\nUpdate the INSTALL.md file with the new system requirements and dependency setup steps.\n```\n\n---\n\n## STEP 4: Commit git message\n\nUse `git_` tools to commit message and changes to git.\n\n---\n\n\n## Communication Rules\n\nVerbose English: \"Sure! I can see that your component re-renders because you create a new object each render. Perhaps wrap it in useMemo.\"\nCaveman English: \"New obj each render. New ref = re-render. Wrap in useMemo.\"\n\nCaveman English Rules:\n- Cut pleasantries, filler, hedging, articles (a/an/the) when meaning stays clear\n- Prefer short plain words. Keep exact technical terms.\n- Use common abbreviations\n- Fragments OK if cause/action stays clear\n\nCaveman English applies to: tool parameters, prompts, user responses (excluding reports)\n\nNEVER shorten: warnings, confirmations, multi-step steps instructions, clarification/repeat replies, code comments\n\n**ALWAYS** keep exact: SQL, errors, quotes, links, code, technical terms, values.\n\n\n---\n\n## Rules\n- NEVER use generic messages like \"update\" or \"fix\"\n- NEVER wrap lines in middle of sentences\n- ALWAYS put each point/sentence on own line\n- ALWAYS use the imperative, present tense: \"change\" not \"changed\" nor \"changes\"\n- ALWAYS review the diff before committing\n- ALWAYS report commit failures or success to user\n- If project directory is not git repo, warn user that no commit was made and display git commit message to user\n";
|
|
2
2
|
//# sourceMappingURL=execute_git_commit.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"execute_git_commit.d.ts","sourceRoot":"","sources":["../../../src/agents/prompts/execute_git_commit.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,sBAAsB,
|
|
1
|
+
{"version":3,"file":"execute_git_commit.d.ts","sourceRoot":"","sources":["../../../src/agents/prompts/execute_git_commit.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,sBAAsB,k+NA6JlC,CAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const tempConceptPrompt = "\nCONCEPT = a conceptual project improvement idea (like fixing bug, adding feature, optimizing processes)\n\n1. Group CONCEPTS according to relevancy (related CONCEPTS grouped together), independent CONCEPTS separate groups\n2. Create 1 CONCEPT per independent group of issues calling `autocode_concept_create` tool with formatted [Concept Parameter](#concept)\n3. Report CONCEPT labels and file paths.\n\n\n
|
|
1
|
+
export declare const tempConceptPrompt = "\nCONCEPT = a conceptual project improvement idea (like fixing bug, adding feature, optimizing processes)\n\n1. Group CONCEPTS according to relevancy (related CONCEPTS grouped together), independent CONCEPTS separate groups\n2. Create 1 CONCEPT per independent group of issues calling `autocode_concept_create` tool with formatted [Concept Parameter](#concept)\n3. Report CONCEPT labels and file paths.\n\n\n**IMPORTANT FINAL ACTION**: call `autocode_agent_swap` with `agent=assist` to follow Next Action according to Assistant Workflow.\n\n\n## Concept Parameter {concept}\n\n- Should be concise (without unnecessary opinions, commentary, politeness, noise) but written in complete human readable sentences.\n- Include all known links, facts, examples, quotes, ideas, feasibility notes, and explanations about the problem(s).\n- Attention with emojis\n- Apply `author-article` skill.\n";
|
|
2
2
|
//# sourceMappingURL=temp_concept.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"temp_concept.d.ts","sourceRoot":"","sources":["../../../src/agents/prompts/temp_concept.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,iBAAiB,
|
|
1
|
+
{"version":3,"file":"temp_concept.d.ts","sourceRoot":"","sources":["../../../src/agents/prompts/temp_concept.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,iBAAiB,23BAe7B,CAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const tempReportPrompt = "\n\nUnless user specified report format, respond to user with this report template:\n\n<report>\n[GOAL]\n\n[ACTIONS]\n\n[CONSTRAINTS]\n\n[CAUSE]\n\n[DISCOVERIES]\n\n[CHANGES]\n\n[RESULTS]\n\n[SHORTCOMING]\n\n[REVIEW]\n</report>\n\nIn the above <report> template replace the `[PLACEHODERS]` with following sections:\n\n- Replace [GOAL] with section that has:\n - An H2 title that summarize overall goal: \n - Content summarize problem being address in 1 sentence (max 20 words)\n - Bullet point list of requirements to meet goal without repeating yourself (max 40 words per requirement)\n- Replace [ACTIONS] with section that has:\n - An H2 title that summarize overall action taken so far and include section that:\n - If < 10 project actions, then list project actions individually, otherwise group project actions up to 10 groups of project actions where each numbered list item:\n - Project actions exclude internal task management actions like \"Update job status\", \"Add/Set criteria\", \"Report results to user\" - NEVER report internal task management actions\n - Describe action item (20 words max)\n - Inline critical command/url/values used by group of actions\n - Reason why action item were taken (20 words max)\n- Replace [CONSTRAINTS] with section that has:\n - An H2 title that summarize overall constraints and include subsections which each:\n - Subsection title summarize 1 key constraint discovery \n - Subsection content explain: what constraints were found (how it limits solution approaches)\n - Include formatted sample code, diagrams, tables and quotes if applicable\n - Include path/link to source of every constraint\n - Omit [CONSTRAINTS] section if there are no constraints to report\n- Replace [CAUSE] with section that has:\n - An H2 title that summarize cause of problem\n - Content explain: what caused problem mentioned in [GOAL]\n - Formatted sample code, diagrams, tables and quotes if applicable\n - Paths/links to sources of every constraint\n - Omit [CAUSE] section if not relevant\n- Replace [EVIDENCE] with section that has:\n - An H2 title that summarize what research had proven and include subsections which each:\n - Subsection title summarize key fact that contributed to research conclusion\n - Subsection content include formatted sample code, diagrams, tables and quotes from source that proof key fact\n - Include path/link to source of discovery (public websites as markdown links in text)\n - Summarize what was learned in max 40 words (if not obvious from evidence)\n - Omit [EVIDENCE] section if [GOAL] was not research or if no evidence was discovered\n- Replace [CHANGES] with section that has:\n - An H2 title that summarize overall change and include subsections which each:\n - Subsection title summarize 1 key behavioural change\n - Subsection content describe what had changed (old vs new behaviour)\n - If not already mentioned by above [ACTIONS], explain why the behaviour changed (if not obvious)\n - Include formatted sample code/config/input/output changes\n - If change is a breaking change (to third-party clients/users), highlight impact breaking change may have on them\n - NEVER include test updates as \"changes\"\n - Omit [CHANGES] section if there are no changes to report\n- Replace [RESULTS] with section that has:\n - An H2 title that summarize the outcome \n - Section content directly address above [GOAL] section: Answer question / provide research conclusion / summarize cause/solution to problem\n - May contain sub-sections\n - Include any charts, graphs, or tables, examples, inline markdown images referencing public online sources if needed\n - Does not repeat any info already reported in above sections\n- Replace [SHORTCOMING] with section that has:\n - An H2 title that summarize current shortcoming status of project\n - Only include [SHORTCOMING] section if requirements in [GOAL] was not meet or critical aspects of research topic is unclear.\n - For each shortcoming include subsection with:\n - Subsection title summarizing shortcoming\n - Subsection content that info gap or wrong project behaviour that still needs to be addressed (20 words max)\n - Also include reason why shortcoming exist (80 words max) if there are no solution yet / gap in info (more research/design required)\n - never explain known but incomplete solutions/tasks agent did not attempt yet because reason is obvious\n- Replace [REVIEW] with section that has:\n - An H2 title that summarize how to review\n - Section content that guide user to review changes as numbered steps, where each review step subsection has:\n - Subsection title describing required action\n - Each step is subsection explaining why step is necessary and exact instructions to complete step\n - Each step title start with relevant emoji followed by summary of step action (10 words max)\n - Include formatted sample input/output in step subsections\n - Include warnings about common pitfalls\n - Only include [REVIEW] section if there were verifiable changes made to project from user perspective\n - NEVER include [REVIEW] section that lead to \"read this file content\" or \"compare these files\" as that will be verified by pull requests \n\nRules:\n- Every heading title must be < 10 words\n- Every section or subsection must be < 80 words\n- Every bullet point must be < 40 words\n- Start H2 titles and bullet points with relevant emojis\n\n- Strikethrough text as Markdown strikethrough: ~~strikethrough~~\n- Inline math formulas as Markdown inline math: $E = mc^2$\n- Block math formulas as Markdown block math: $$ ... $$\n- Links to online sources as Markdown links: [source name](url)\n- Public logos, icons, illustrations as Markdown images: \n- Attention with emojis\n- Max 100 words per section, otherwise create sub-section\n- Group long sections of continuous sentences in paragraphs\n- Exception is to keep original format and text of all quoted sources but wrapped in quote blocks\n- All quoted sources must accommodated with link/reference to original source\n- **Bold** important info and *italics* inline quotes of sources\n\n\n\n
|
|
1
|
+
export declare const tempReportPrompt = "\n\nUnless user specified report format, respond to user with this report template:\n\n<report>\n[GOAL]\n\n[ACTIONS]\n\n[CONSTRAINTS]\n\n[CAUSE]\n\n[DISCOVERIES]\n\n[CHANGES]\n\n[RESULTS]\n\n[SHORTCOMING]\n\n[REVIEW]\n</report>\n\nIn the above <report> template replace the `[PLACEHODERS]` with following sections:\n\n- Replace [GOAL] with section that has:\n - An H2 title that summarize overall goal: \n - Content summarize problem being address in 1 sentence (max 20 words)\n - Bullet point list of requirements to meet goal without repeating yourself (max 40 words per requirement)\n- Replace [ACTIONS] with section that has:\n - An H2 title that summarize overall action taken so far and include section that:\n - If < 10 project actions, then list project actions individually, otherwise group project actions up to 10 groups of project actions where each numbered list item:\n - Project actions exclude internal task management actions like \"Update job status\", \"Add/Set criteria\", \"Report results to user\" - NEVER report internal task management actions\n - Describe action item (20 words max)\n - Inline critical command/url/values used by group of actions\n - Reason why action item were taken (20 words max)\n- Replace [CONSTRAINTS] with section that has:\n - An H2 title that summarize overall constraints and include subsections which each:\n - Subsection title summarize 1 key constraint discovery \n - Subsection content explain: what constraints were found (how it limits solution approaches)\n - Include formatted sample code, diagrams, tables and quotes if applicable\n - Include path/link to source of every constraint\n - Omit [CONSTRAINTS] section if there are no constraints to report\n- Replace [CAUSE] with section that has:\n - An H2 title that summarize cause of problem\n - Content explain: what caused problem mentioned in [GOAL]\n - Formatted sample code, diagrams, tables and quotes if applicable\n - Paths/links to sources of every constraint\n - Omit [CAUSE] section if not relevant\n- Replace [EVIDENCE] with section that has:\n - An H2 title that summarize what research had proven and include subsections which each:\n - Subsection title summarize key fact that contributed to research conclusion\n - Subsection content include formatted sample code, diagrams, tables and quotes from source that proof key fact\n - Include path/link to source of discovery (public websites as markdown links in text)\n - Summarize what was learned in max 40 words (if not obvious from evidence)\n - Omit [EVIDENCE] section if [GOAL] was not research or if no evidence was discovered\n- Replace [CHANGES] with section that has:\n - An H2 title that summarize overall change and include subsections which each:\n - Subsection title summarize 1 key behavioural change\n - Subsection content describe what had changed (old vs new behaviour)\n - If not already mentioned by above [ACTIONS], explain why the behaviour changed (if not obvious)\n - Include formatted sample code/config/input/output changes\n - If change is a breaking change (to third-party clients/users), highlight impact breaking change may have on them\n - NEVER include test updates as \"changes\"\n - Omit [CHANGES] section if there are no changes to report\n- Replace [RESULTS] with section that has:\n - An H2 title that summarize the outcome \n - Section content directly address above [GOAL] section: Answer question / provide research conclusion / summarize cause/solution to problem\n - May contain sub-sections\n - Include any charts, graphs, or tables, examples, inline markdown images referencing public online sources if needed\n - Does not repeat any info already reported in above sections\n- Replace [SHORTCOMING] with section that has:\n - An H2 title that summarize current shortcoming status of project\n - Only include [SHORTCOMING] section if requirements in [GOAL] was not meet or critical aspects of research topic is unclear.\n - For each shortcoming include subsection with:\n - Subsection title summarizing shortcoming\n - Subsection content that info gap or wrong project behaviour that still needs to be addressed (20 words max)\n - Also include reason why shortcoming exist (80 words max) if there are no solution yet / gap in info (more research/design required)\n - never explain known but incomplete solutions/tasks agent did not attempt yet because reason is obvious\n- Replace [REVIEW] with section that has:\n - An H2 title that summarize how to review\n - Section content that guide user to review changes as numbered steps, where each review step subsection has:\n - Subsection title describing required action\n - Each step is subsection explaining why step is necessary and exact instructions to complete step\n - Each step title start with relevant emoji followed by summary of step action (10 words max)\n - Include formatted sample input/output in step subsections\n - Include warnings about common pitfalls\n - Only include [REVIEW] section if there were verifiable changes made to project from user perspective\n - NEVER include [REVIEW] section that lead to \"read this file content\" or \"compare these files\" as that will be verified by pull requests \n\nRules:\n- Every heading title must be < 10 words\n- Every section or subsection must be < 80 words\n- Every bullet point must be < 40 words\n- Start H2 titles and bullet points with relevant emojis\n\n- Strikethrough text as Markdown strikethrough: ~~strikethrough~~\n- Inline math formulas as Markdown inline math: $E = mc^2$\n- Block math formulas as Markdown block math: $$ ... $$\n- Links to online sources as Markdown links: [source name](url)\n- Public logos, icons, illustrations as Markdown images: \n- Attention with emojis\n- Max 100 words per section, otherwise create sub-section\n- Group long sections of continuous sentences in paragraphs\n- Exception is to keep original format and text of all quoted sources but wrapped in quote blocks\n- All quoted sources must accommodated with link/reference to original source\n- **Bold** important info and *italics* inline quotes of sources\n\n\n\n**IMPORTANT FINAL ACTION**: call `autocode_agent_swap` with `agent=assist` to follow Next Action according to Assistant Workflow.\n\n";
|
|
2
2
|
//# sourceMappingURL=temp_report.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"temp_report.d.ts","sourceRoot":"","sources":["../../../src/agents/prompts/temp_report.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,gBAAgB,
|
|
1
|
+
{"version":3,"file":"temp_report.d.ts","sourceRoot":"","sources":["../../../src/agents/prompts/temp_report.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,gBAAgB,y3MAmG5B,CAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const swap2assistRule = "\n
|
|
1
|
+
export declare const swap2assistRule = "\n**IMPORTANT FINAL ACTION**: call `autocode_agent_swap` with `agent=assist` to follow Next Action according to Assistant Workflow.\n";
|
|
2
2
|
//# sourceMappingURL=swap2assist.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"swap2assist.d.ts","sourceRoot":"","sources":["../../../src/agents/rules/swap2assist.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,
|
|
1
|
+
{"version":3,"file":"swap2assist.d.ts","sourceRoot":"","sources":["../../../src/agents/rules/swap2assist.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,0IAE3B,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/commands/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;AAEjD;;;;;;;;;;;;;GAaG;AAEH,KAAK,UAAU,GAAG,WAAW,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,CAAA;AAsDhD,eAAO,MAAM,QAAQ,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/commands/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;AAEjD;;;;;;;;;;;;;GAaG;AAEH,KAAK,UAAU,GAAG,WAAW,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,CAAA;AAsDhD,eAAO,MAAM,QAAQ,EAAE,UA+VtB,CAAA"}
|
package/dist/plugin.js
CHANGED
|
@@ -2036,9 +2036,7 @@ function getMarkdownBody(markdown2) {
|
|
|
2036
2036
|
|
|
2037
2037
|
// src/agents/rules/swap2assist.ts
|
|
2038
2038
|
var swap2assistRule = `
|
|
2039
|
-
|
|
2040
|
-
|
|
2041
|
-
Your final step (assignment) is to call \`autocode_agent_swap\` with \`agent\` parameter \`assist\` and \`question\` Next Action according to Assistant Workflow.
|
|
2039
|
+
**IMPORTANT FINAL ACTION**: call \`autocode_agent_swap\` with \`agent=assist\` to follow Next Action according to Assistant Workflow.
|
|
2042
2040
|
`;
|
|
2043
2041
|
|
|
2044
2042
|
// src/agents/prompts/temp_manual.ts
|
|
@@ -4401,7 +4399,7 @@ Specifically add files that:
|
|
|
4401
4399
|
- match "git commit purpose"
|
|
4402
4400
|
- AGENTS.md, README.md (if they exist)
|
|
4403
4401
|
|
|
4404
|
-
|
|
4402
|
+
If user attached files, then commit only those files, otherwise for every unstaged file:
|
|
4405
4403
|
|
|
4406
4404
|
Decide if it should be included in commit:
|
|
4407
4405
|
- If yes, task \`git_git_add\` to stage it
|
|
@@ -6290,6 +6288,7 @@ var baseAgents = {
|
|
|
6290
6288
|
mode: "subagent",
|
|
6291
6289
|
permission: {
|
|
6292
6290
|
"*": "deny",
|
|
6291
|
+
autocode_agent_swap: "allow",
|
|
6293
6292
|
doom_loop: "deny",
|
|
6294
6293
|
edit: "allow",
|
|
6295
6294
|
glob: "allow",
|
|
@@ -6311,6 +6310,7 @@ var baseAgents = {
|
|
|
6311
6310
|
mode: "subagent",
|
|
6312
6311
|
permission: {
|
|
6313
6312
|
"*": "deny",
|
|
6313
|
+
autocode_agent_swap: "allow",
|
|
6314
6314
|
doom_loop: "deny",
|
|
6315
6315
|
edit: "allow",
|
|
6316
6316
|
glob: "allow",
|
|
@@ -6333,6 +6333,7 @@ var baseAgents = {
|
|
|
6333
6333
|
mode: "subagent",
|
|
6334
6334
|
permission: {
|
|
6335
6335
|
"*": "deny",
|
|
6336
|
+
autocode_agent_swap: "allow",
|
|
6336
6337
|
doom_loop: "deny",
|
|
6337
6338
|
edit: "allow",
|
|
6338
6339
|
glob: "allow",
|
|
@@ -6355,6 +6356,7 @@ var baseAgents = {
|
|
|
6355
6356
|
mode: "subagent",
|
|
6356
6357
|
permission: {
|
|
6357
6358
|
"*": "deny",
|
|
6359
|
+
autocode_agent_swap: "allow",
|
|
6358
6360
|
doom_loop: "deny",
|
|
6359
6361
|
edit: "allow",
|
|
6360
6362
|
glob: "allow",
|
|
@@ -6376,6 +6378,7 @@ var baseAgents = {
|
|
|
6376
6378
|
mode: "subagent",
|
|
6377
6379
|
permission: {
|
|
6378
6380
|
"*": "deny",
|
|
6381
|
+
autocode_agent_swap: "allow",
|
|
6379
6382
|
doom_loop: "deny",
|
|
6380
6383
|
edit: "allow",
|
|
6381
6384
|
glob: "allow",
|
|
@@ -6398,6 +6401,7 @@ var baseAgents = {
|
|
|
6398
6401
|
mode: "subagent",
|
|
6399
6402
|
permission: {
|
|
6400
6403
|
"*": "deny",
|
|
6404
|
+
autocode_agent_swap: "allow",
|
|
6401
6405
|
doom_loop: "deny",
|
|
6402
6406
|
edit: "allow",
|
|
6403
6407
|
glob: "allow",
|
|
@@ -6419,6 +6423,7 @@ var baseAgents = {
|
|
|
6419
6423
|
mode: "subagent",
|
|
6420
6424
|
permission: {
|
|
6421
6425
|
"*": "deny",
|
|
6426
|
+
autocode_agent_swap: "allow",
|
|
6422
6427
|
autocode_logo_find: "allow",
|
|
6423
6428
|
doom_loop: "deny",
|
|
6424
6429
|
edit: "allow",
|
|
@@ -6532,6 +6537,7 @@ var baseAgents = {
|
|
|
6532
6537
|
mode: "subagent",
|
|
6533
6538
|
permission: {
|
|
6534
6539
|
"*": "deny",
|
|
6540
|
+
autocode_agent_swap: "allow",
|
|
6535
6541
|
doom_loop: "deny",
|
|
6536
6542
|
git_git_add: "allow",
|
|
6537
6543
|
git_git_commit: "allow",
|
|
@@ -6826,7 +6832,8 @@ var baseAgents = {
|
|
|
6826
6832
|
autocode_concept_create: "allow",
|
|
6827
6833
|
skill: {
|
|
6828
6834
|
"*": "deny",
|
|
6829
|
-
"author-article": "allow"
|
|
6835
|
+
"author-article": "allow",
|
|
6836
|
+
autocode_agent_swap: "allow"
|
|
6830
6837
|
}
|
|
6831
6838
|
},
|
|
6832
6839
|
prompt: tempConceptPrompt,
|
|
@@ -6837,7 +6844,8 @@ var baseAgents = {
|
|
|
6837
6844
|
hidden: true,
|
|
6838
6845
|
mode: "subagent",
|
|
6839
6846
|
permission: {
|
|
6840
|
-
"*": "deny"
|
|
6847
|
+
"*": "deny",
|
|
6848
|
+
autocode_agent_swap: "allow"
|
|
6841
6849
|
},
|
|
6842
6850
|
prompt: tempManualPrompt,
|
|
6843
6851
|
temperature: 0.3,
|
|
@@ -6848,7 +6856,8 @@ var baseAgents = {
|
|
|
6848
6856
|
hidden: true,
|
|
6849
6857
|
mode: "subagent",
|
|
6850
6858
|
permission: {
|
|
6851
|
-
"*": "deny"
|
|
6859
|
+
"*": "deny",
|
|
6860
|
+
autocode_agent_swap: "allow"
|
|
6852
6861
|
},
|
|
6853
6862
|
prompt: tempReportPrompt,
|
|
6854
6863
|
temperature: 0.3,
|
|
@@ -6860,6 +6869,7 @@ var baseAgents = {
|
|
|
6860
6869
|
mode: "subagent",
|
|
6861
6870
|
permission: {
|
|
6862
6871
|
"*": "deny",
|
|
6872
|
+
autocode_agent_swap: "allow",
|
|
6863
6873
|
autocode_session_create: "allow"
|
|
6864
6874
|
},
|
|
6865
6875
|
prompt: "---",
|
|
@@ -7165,7 +7175,10 @@ var commands = {
|
|
|
7165
7175
|
agent: "temp_concept",
|
|
7166
7176
|
description: "Save concepts in .agents/jobs/concepts/.",
|
|
7167
7177
|
subtask: false,
|
|
7168
|
-
template:
|
|
7178
|
+
template: `$ARGUMENTS
|
|
7179
|
+
|
|
7180
|
+
${swap2assistRule}
|
|
7181
|
+
`
|
|
7169
7182
|
},
|
|
7170
7183
|
"job-design": {
|
|
7171
7184
|
agent: "design",
|
|
@@ -7267,7 +7280,10 @@ Replace [job_path] with \`job_path\` value from \`autocode_plan_save\` tool resp
|
|
|
7267
7280
|
|
|
7268
7281
|
_____________________________
|
|
7269
7282
|
|
|
7270
|
-
Apply \`author-article\` skill to edit user provided article
|
|
7283
|
+
Apply \`author-article\` skill to edit user provided article.
|
|
7284
|
+
|
|
7285
|
+
${swap2assistRule}
|
|
7286
|
+
`
|
|
7271
7287
|
},
|
|
7272
7288
|
document: {
|
|
7273
7289
|
agent: "document",
|
|
@@ -7279,31 +7295,45 @@ Apply \`author-article\` skill to edit user provided article.`
|
|
|
7279
7295
|
3. Collect subagent reports
|
|
7280
7296
|
4. Update \`README.md\` using collected reports (only update applicable sections - not entire file)
|
|
7281
7297
|
5. Only task \`document_agents\` *AFTER* you had updated \`README.md\` with prompt to check if any of recent changes are applicable to content in AGENTS.md (only update AGENTS.md if outdated)
|
|
7298
|
+
|
|
7299
|
+
${swap2assistRule}
|
|
7282
7300
|
`
|
|
7283
7301
|
},
|
|
7284
7302
|
"document-conventions": {
|
|
7285
7303
|
agent: "document_conventions",
|
|
7286
7304
|
description: "Document recently updated naming conventions and terminology.",
|
|
7287
7305
|
subtask: false,
|
|
7288
|
-
template: `$ARGUMENTS
|
|
7306
|
+
template: `$ARGUMENTS
|
|
7307
|
+
|
|
7308
|
+
${swap2assistRule}
|
|
7309
|
+
`
|
|
7289
7310
|
},
|
|
7290
7311
|
"document-code": {
|
|
7291
7312
|
agent: "document_code",
|
|
7292
7313
|
description: "Document recently updated technical architecture and design decisions.",
|
|
7293
7314
|
subtask: false,
|
|
7294
|
-
template: `$ARGUMENTS
|
|
7315
|
+
template: `$ARGUMENTS
|
|
7316
|
+
|
|
7317
|
+
${swap2assistRule}
|
|
7318
|
+
`
|
|
7295
7319
|
},
|
|
7296
7320
|
"document-prd": {
|
|
7297
7321
|
agent: "document_prd",
|
|
7298
7322
|
description: "Document recently updated product requirements and user roles.",
|
|
7299
7323
|
subtask: false,
|
|
7300
|
-
template: `$ARGUMENTS
|
|
7324
|
+
template: `$ARGUMENTS
|
|
7325
|
+
|
|
7326
|
+
${swap2assistRule}
|
|
7327
|
+
`
|
|
7301
7328
|
},
|
|
7302
7329
|
"document-ux": {
|
|
7303
7330
|
agent: "document_ux",
|
|
7304
7331
|
description: "Document recently updated UX flows, navigation, and styling patterns.",
|
|
7305
7332
|
subtask: false,
|
|
7306
|
-
template: `$ARGUMENTS
|
|
7333
|
+
template: `$ARGUMENTS
|
|
7334
|
+
|
|
7335
|
+
${swap2assistRule}
|
|
7336
|
+
`
|
|
7307
7337
|
},
|
|
7308
7338
|
"git-commit": {
|
|
7309
7339
|
agent: "execute_git_commit",
|
|
@@ -7314,13 +7344,18 @@ Base your git commit message on the following:
|
|
|
7314
7344
|
- Purpose of this session (see title)
|
|
7315
7345
|
- Your recent conversation with user
|
|
7316
7346
|
- Recent changes
|
|
7347
|
+
|
|
7348
|
+
${swap2assistRule}
|
|
7317
7349
|
`
|
|
7318
7350
|
},
|
|
7319
7351
|
"git-conflict": {
|
|
7320
7352
|
agent: "assist_git_conflict",
|
|
7321
7353
|
description: "Automatically handle git merge conflicts.",
|
|
7322
7354
|
subtask: false,
|
|
7323
|
-
template: `$ARGUMENTS
|
|
7355
|
+
template: `$ARGUMENTS
|
|
7356
|
+
|
|
7357
|
+
${swap2assistRule}
|
|
7358
|
+
`
|
|
7324
7359
|
},
|
|
7325
7360
|
install: installCommand,
|
|
7326
7361
|
"autocode-install": installCommand,
|
|
@@ -7334,7 +7369,9 @@ Base your git commit message on the following:
|
|
|
7334
7369
|
3. Collect all subagent reports
|
|
7335
7370
|
4. Use \`author-readme\` skill to update \`README.md\` using collected reports
|
|
7336
7371
|
5. Only task \`document_agents\` *AFTER* you had updated \`README.md\` because \`document_agents\` will read your updated \`README.md\` file
|
|
7337
|
-
|
|
7372
|
+
|
|
7373
|
+
${swap2assistRule}
|
|
7374
|
+
`
|
|
7338
7375
|
},
|
|
7339
7376
|
"new-assist": {
|
|
7340
7377
|
agent: "temp_session",
|
|
@@ -7399,7 +7436,6 @@ Base your git commit message on the following:
|
|
|
7399
7436
|
- REPRODUCTION = steps to reproduce SYMPTOM in ENVIRONMENT include sample input data in blockcode (if possible)`, "Follow troubleshoot session")
|
|
7400
7437
|
},
|
|
7401
7438
|
"repeat-as-md": {
|
|
7402
|
-
agent: "assist",
|
|
7403
7439
|
description: "Repeat the last response inside a fenced Markdown code block.",
|
|
7404
7440
|
subtask: false,
|
|
7405
7441
|
template: `
|
|
@@ -7413,7 +7449,6 @@ Last response goes here...
|
|
|
7413
7449
|
`
|
|
7414
7450
|
},
|
|
7415
7451
|
"repeat-as-wiki": {
|
|
7416
|
-
agent: "assist",
|
|
7417
7452
|
description: "Repeat last response in Atlassian Wiki Markup",
|
|
7418
7453
|
subtask: false,
|
|
7419
7454
|
template: `
|
|
@@ -7426,17 +7461,25 @@ Wiki markup goes here...
|
|
|
7426
7461
|
\`\`\`\`\`\`\`\`\`
|
|
7427
7462
|
`
|
|
7428
7463
|
},
|
|
7429
|
-
"report-
|
|
7464
|
+
"report-last": {
|
|
7430
7465
|
agent: "temp_report",
|
|
7431
|
-
description: "Provide detailed report of
|
|
7466
|
+
description: "Provide detailed report of last task.",
|
|
7432
7467
|
subtask: false,
|
|
7433
|
-
template:
|
|
7468
|
+
template: `
|
|
7469
|
+
Report **ONLY** on your last assignment (last user requested task). Include only last user prompt, recent actions since last user prompt and recent tool outputs into consideration when you compile the report.
|
|
7470
|
+
|
|
7471
|
+
${swap2assistRule}
|
|
7472
|
+
`
|
|
7434
7473
|
},
|
|
7435
|
-
"report-
|
|
7474
|
+
"report-session": {
|
|
7436
7475
|
agent: "temp_report",
|
|
7437
|
-
description: "Provide detailed report of
|
|
7476
|
+
description: "Provide detailed report of entire session.",
|
|
7438
7477
|
subtask: false,
|
|
7439
|
-
template:
|
|
7478
|
+
template: `
|
|
7479
|
+
Report on entire session taking all actions, tool outputs and prompts in consideration.
|
|
7480
|
+
|
|
7481
|
+
${swap2assistRule}
|
|
7482
|
+
`
|
|
7440
7483
|
},
|
|
7441
7484
|
resume: {
|
|
7442
7485
|
description: "Resume interrupted session.",
|
|
@@ -18274,7 +18317,7 @@ class JSONSchemaGenerator {
|
|
|
18274
18317
|
if (val === undefined) {
|
|
18275
18318
|
if (this.unrepresentable === "throw") {
|
|
18276
18319
|
throw new Error("Literal `undefined` cannot be represented in JSON Schema");
|
|
18277
|
-
}
|
|
18320
|
+
}
|
|
18278
18321
|
} else if (typeof val === "bigint") {
|
|
18279
18322
|
if (this.unrepresentable === "throw") {
|
|
18280
18323
|
throw new Error("BigInt literals cannot be represented in JSON Schema");
|
|
@@ -28,11 +28,13 @@ description: Use `author-readme` to get "README.md Format" when reviewing/writin
|
|
|
28
28
|
## README.md Layout
|
|
29
29
|
|
|
30
30
|
```markdown
|
|
31
|
+
***[HERO]***
|
|
32
|
+
|
|
31
33
|
<p align="center">[LOGO]</p>
|
|
32
34
|
|
|
33
35
|
<h1 align="center">[Project Name]</h1>
|
|
34
36
|
|
|
35
|
-
|
|
37
|
+
---
|
|
36
38
|
|
|
37
39
|
[PURPOSE]
|
|
38
40
|
|
package/package.json
CHANGED