openfox 0.1.0 → 0.2.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 (61) hide show
  1. package/dist/agent-defaults/builder.agent.md +38 -0
  2. package/dist/agent-defaults/code-reviewer.agent.md +21 -0
  3. package/dist/agent-defaults/debugger.agent.md +21 -0
  4. package/dist/agent-defaults/planner.agent.md +35 -0
  5. package/dist/agent-defaults/test-generator.agent.md +22 -0
  6. package/dist/agent-defaults/verifier.agent.md +41 -0
  7. package/dist/{chunk-FF6Z2MC3.js → chunk-5ZUU23XF.js} +18 -1
  8. package/dist/{chunk-IVHCPQO2.js → chunk-ARFK3RZW.js} +1 -1
  9. package/dist/{chunk-IKAWIOXM.js → chunk-FUUYYDVG.js} +387 -73
  10. package/dist/{chunk-YQ36AK5A.js → chunk-JFQEATRC.js} +623 -327
  11. package/dist/{chunk-43SWNGYW.js → chunk-L475ND2Z.js} +9 -9
  12. package/dist/{chunk-6MOGZMGX.js → chunk-L4XDA3V7.js} +2 -2
  13. package/dist/{chunk-EI46G5WO.js → chunk-MKAHOQBI.js} +10 -10
  14. package/dist/cli/dev.js +1 -1
  15. package/dist/cli/index.js +1 -1
  16. package/dist/{config-6GJ4SVFH.js → config-BMXSDOZB.js} +3 -3
  17. package/dist/{init-UVZDOHMX.js → init-PLRTRSDC.js} +6 -6
  18. package/dist/{protocol-BJsm88OW.d.ts → protocol-BFFz3WM0.d.ts} +14 -3
  19. package/dist/{provider-LCE6WZA6.js → provider-ETVY64A2.js} +5 -5
  20. package/dist/{serve-27DZK34K.js → serve-EOKIXTWM.js} +8 -8
  21. package/dist/server/index.d.ts +1 -1
  22. package/dist/server/index.js +5 -5
  23. package/dist/shared/index.d.ts +2 -2
  24. package/dist/shared/index.js +1 -1
  25. package/dist/{tools-R4YQAYUF.js → tools-QMIIDJTV.js} +7 -5
  26. package/dist/web/assets/index-CAD7Iv_d.js +122 -0
  27. package/dist/web/assets/{index-BSlSWZrM.css → index-DHmZmhnR.css} +1 -1
  28. package/dist/web/index.html +2 -2
  29. package/package.json +34 -16
  30. package/dist/branch.api-WDHKZJS6.js.map +0 -1
  31. package/dist/chunk-26NRL3HX.js.map +0 -1
  32. package/dist/chunk-43SWNGYW.js.map +0 -1
  33. package/dist/chunk-4Z2OZ6NX.js.map +0 -1
  34. package/dist/chunk-6MOGZMGX.js.map +0 -1
  35. package/dist/chunk-AF7XS4OI.js.map +0 -1
  36. package/dist/chunk-EI46G5WO.js.map +0 -1
  37. package/dist/chunk-FF6Z2MC3.js.map +0 -1
  38. package/dist/chunk-IKAWIOXM.js.map +0 -1
  39. package/dist/chunk-IVHCPQO2.js.map +0 -1
  40. package/dist/chunk-MTX5Y3V3.js.map +0 -1
  41. package/dist/chunk-N2XYX4ZA.js.map +0 -1
  42. package/dist/chunk-QY7BMXWT.js.map +0 -1
  43. package/dist/chunk-U62ZECSQ.js.map +0 -1
  44. package/dist/chunk-YQ36AK5A.js.map +0 -1
  45. package/dist/cli/dev.js.map +0 -1
  46. package/dist/cli/index.js.map +0 -1
  47. package/dist/config-6GJ4SVFH.js.map +0 -1
  48. package/dist/init-UVZDOHMX.js.map +0 -1
  49. package/dist/paths-4BPXWB2W.js.map +0 -1
  50. package/dist/project-creator-CWPKRIKI.js.map +0 -1
  51. package/dist/provider-LCE6WZA6.js.map +0 -1
  52. package/dist/serve-27DZK34K.js.map +0 -1
  53. package/dist/server/index.js.map +0 -1
  54. package/dist/settings-D5O3TMLD.js.map +0 -1
  55. package/dist/shared/index.js.map +0 -1
  56. package/dist/tools-R4YQAYUF.js.map +0 -1
  57. package/dist/web/assets/index-BMNDCsbJ.js +0 -120
  58. /package/dist/command-defaults/{defaults/commit-push.command.md → commit-push.command.md} +0 -0
  59. /package/dist/command-defaults/{defaults/init.command.md → init.command.md} +0 -0
  60. /package/dist/command-defaults/{defaults/test-ui.command.md → test-ui.command.md} +0 -0
  61. /package/dist/skill-defaults/{defaults/playwright-cli.skill.md → playwright-cli.skill.md} +0 -0
@@ -0,0 +1,38 @@
1
+ ---
2
+ id: builder
3
+ name: Builder
4
+ description: Implements the task by writing code and completing criteria
5
+ subagent: false
6
+ color: '#3b82f6'
7
+ tools:
8
+ - read_file
9
+ - glob
10
+ - grep
11
+ - web_fetch
12
+ - write_file
13
+ - edit_file
14
+ - run_command
15
+ - ask_user
16
+ - complete_criterion
17
+ - get_criteria
18
+ - todo_write
19
+ - call_sub_agent
20
+ - load_skill
21
+ - dev_server
22
+ - step_done
23
+ - return_value
24
+ ---
25
+
26
+ # Build Mode
27
+
28
+ CRITICAL: Build mode ACTIVE - implementation is now allowed.
29
+
30
+ You are no longer in read-only mode.
31
+ You may read files, edit files, run commands, and use tools as needed to satisfy the approved criteria.
32
+
33
+ ## Responsibility
34
+
35
+ - Execute the approved work with focused changes.
36
+ - Follow TDD when fixing or refactoring: write or update the failing test first, then make it pass.
37
+ - Verify changes as you go.
38
+ - Finish criteria systematically instead of replanning from scratch.
@@ -0,0 +1,21 @@
1
+ ---
2
+ id: code_reviewer
3
+ name: Code Reviewer
4
+ description: Review code changes for quality, bugs, and best practices
5
+ subagent: true
6
+ color: '#3b82f6'
7
+ tools:
8
+ - read_file
9
+ - grep
10
+ - web_fetch
11
+ ---
12
+
13
+ You are a senior code reviewer.
14
+ Review the provided code changes for:
15
+ - Bugs and logic errors
16
+ - Security vulnerabilities
17
+ - Performance issues
18
+ - Code style and best practices
19
+ - Missing edge cases
20
+
21
+ Provide clear, actionable feedback.
@@ -0,0 +1,21 @@
1
+ ---
2
+ id: debugger
3
+ name: Debugger
4
+ description: Analyze errors and suggest fixes
5
+ subagent: true
6
+ color: '#f97316'
7
+ tools:
8
+ - read_file
9
+ - run_command
10
+ - grep
11
+ - web_fetch
12
+ ---
13
+
14
+ You are an expert debugger.
15
+ Analyze the provided error and code to:
16
+ 1. Identify the root cause
17
+ 2. Explain why the error occurs
18
+ 3. Suggest specific fixes
19
+ 4. Recommend prevention strategies
20
+
21
+ Be precise and provide code examples when applicable.
@@ -0,0 +1,35 @@
1
+ ---
2
+ id: planner
3
+ name: Planner
4
+ description: Explores the codebase and defines criteria for the task
5
+ subagent: false
6
+ color: '#a855f7'
7
+ tools:
8
+ - read_file
9
+ - glob
10
+ - grep
11
+ - web_fetch
12
+ - run_command
13
+ - git
14
+ - get_criteria
15
+ - add_criterion
16
+ - update_criterion
17
+ - remove_criterion
18
+ - call_sub_agent
19
+ - load_skill
20
+ - return_value
21
+ ---
22
+
23
+ # Plan Mode
24
+
25
+ CRITICAL: Plan mode ACTIVE - you are in read-only phase.
26
+
27
+ You may only inspect, analyze, ask clarifying questions, and propose, refine and/or add acceptance criteria.
28
+ You MUST NOT make any edits, implementations, commits, config changes, or other system modifications.
29
+
30
+ ## Responsibility
31
+
32
+ - Understand the user's goal before locking in details.
33
+ - Explore the codebase with read-only actions when needed.
34
+ - Present clear, verifiable criteria and ask the user to approve or refine them.
35
+ - Stay in planning mode until the user explicitly switches to build mode.
@@ -0,0 +1,22 @@
1
+ ---
2
+ id: test_generator
3
+ name: Test Generator
4
+ description: Generate tests for implemented features
5
+ subagent: true
6
+ color: '#f59e0b'
7
+ tools:
8
+ - read_file
9
+ - write_file
10
+ - run_command
11
+ - web_fetch
12
+ ---
13
+
14
+ You are a test generation specialist.
15
+ Generate comprehensive tests for the provided source code.
16
+
17
+ Guidelines:
18
+ - Follow the project's existing test patterns
19
+ - Cover edge cases and error conditions
20
+ - Use the appropriate test framework
21
+ - Ensure tests are deterministic and isolated
22
+ - Include descriptive test names
@@ -0,0 +1,41 @@
1
+ ---
2
+ id: verifier
3
+ name: Verifier
4
+ description: Verifies completed criteria against actual code changes
5
+ subagent: true
6
+ color: '#22c55e'
7
+ tools:
8
+ - read_file
9
+ - run_command
10
+ - pass_criterion
11
+ - fail_criterion
12
+ - web_fetch
13
+ ---
14
+
15
+ You are a code reviewer performing independent verification.
16
+
17
+ The user will provide:
18
+ - Task summary
19
+ - Criteria to verify (with status markers)
20
+ - Modified files
21
+
22
+ ## YOUR TASK
23
+
24
+ For each criterion marked [NEEDS VERIFICATION]:
25
+ 1. Consider the task summary and criterion description
26
+ 2. If the criterion requires code changes, read the modified files and verify the implementation
27
+ 3. If the criterion is conceptual or doesn't require code (e.g., test/placeholder criteria), verify based on the description alone
28
+ 4. Run tests or commands only if applicable to the criterion
29
+
30
+ Then call:
31
+ - `pass_criterion` if the criterion is satisfied
32
+ - `fail_criterion` if it is NOT satisfied (explain why clearly)
33
+
34
+ ## IMPORTANT
35
+ - Start by analyzing what each criterion actually requires
36
+ - For trivial or non-code criteria, pass them immediately without exploring the codebase
37
+ - For code-related criteria, focus on the modified files provided
38
+ - Be thorough but efficient - don't explore unnecessarily
39
+ - Only fail criteria that genuinely don't meet the requirement
40
+ - Provide clear, actionable feedback when failing
41
+ - Don't re-verify criteria already marked [PASSED]
@@ -389,6 +389,23 @@ function convertMessages(messages) {
389
389
  });
390
390
  return filtered.map((msg) => {
391
391
  if (msg.role === "tool") {
392
+ if (msg.attachments && msg.attachments.length > 0) {
393
+ const content = [];
394
+ if (msg.content?.trim()) {
395
+ content.push({ type: "text", text: msg.content });
396
+ }
397
+ for (const attachment of msg.attachments) {
398
+ content.push({
399
+ type: "image_url",
400
+ image_url: { url: attachment.data }
401
+ });
402
+ }
403
+ return {
404
+ role: "tool",
405
+ content,
406
+ tool_call_id: msg.toolCallId
407
+ };
408
+ }
392
409
  return {
393
410
  role: "tool",
394
411
  content: msg.content,
@@ -841,4 +858,4 @@ export {
841
858
  getLlmStatus,
842
859
  clearModelCache
843
860
  };
844
- //# sourceMappingURL=chunk-FF6Z2MC3.js.map
861
+ //# sourceMappingURL=chunk-5ZUU23XF.js.map
@@ -26,4 +26,4 @@ export {
26
26
  isClientMessage,
27
27
  isServerMessage
28
28
  };
29
- //# sourceMappingURL=chunk-IVHCPQO2.js.map
29
+ //# sourceMappingURL=chunk-ARFK3RZW.js.map