deepspider 0.2.12 → 0.3.1

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 (152) hide show
  1. package/README.md +53 -27
  2. package/bin/cli.js +45 -0
  3. package/package.json +10 -4
  4. package/src/agent/core/PanelBridge.js +2 -2
  5. package/src/agent/logger.js +1 -1
  6. package/src/agent/middleware/report.js +1 -1
  7. package/src/agent/run.js +54 -63
  8. package/src/agent/setup.js +14 -14
  9. package/src/agent/skills/evolve.js +0 -3
  10. package/src/agent/tools/captcha.js +1 -1
  11. package/src/agent/tools/evolve.js +1 -1
  12. package/src/agent/tools/file.js +2 -2
  13. package/src/agent/tools/python.js +4 -4
  14. package/src/agent/tools/report.js +2 -2
  15. package/src/agent/tools/runtime.js +1 -1
  16. package/src/analyzer/EncryptionAnalyzer.js +2 -2
  17. package/src/browser/collector.js +1 -1
  18. package/src/browser/interceptors/NetworkInterceptor.js +1 -1
  19. package/src/browser/interceptors/ScriptInterceptor.js +2 -2
  20. package/src/cli/commands/config.js +94 -0
  21. package/src/cli/commands/help.js +34 -0
  22. package/src/cli/commands/update.js +78 -0
  23. package/src/cli/commands/version.js +9 -0
  24. package/src/cli/config.js +15 -0
  25. package/src/config/settings.js +102 -0
  26. package/src/core/PatchGenerator.js +2 -2
  27. package/src/env/EnvCodeGenerator.js +1 -1
  28. package/src/store/DataStore.js +5 -5
  29. package/.claude/agents/check.md +0 -122
  30. package/.claude/agents/debug.md +0 -106
  31. package/.claude/agents/dispatch.md +0 -214
  32. package/.claude/agents/implement.md +0 -96
  33. package/.claude/agents/plan.md +0 -396
  34. package/.claude/agents/research.md +0 -120
  35. package/.claude/commands/evolve/merge.md +0 -80
  36. package/.claude/commands/trellis/before-backend-dev.md +0 -13
  37. package/.claude/commands/trellis/before-frontend-dev.md +0 -13
  38. package/.claude/commands/trellis/break-loop.md +0 -107
  39. package/.claude/commands/trellis/check-backend.md +0 -13
  40. package/.claude/commands/trellis/check-cross-layer.md +0 -153
  41. package/.claude/commands/trellis/check-frontend.md +0 -13
  42. package/.claude/commands/trellis/create-command.md +0 -154
  43. package/.claude/commands/trellis/finish-work.md +0 -129
  44. package/.claude/commands/trellis/integrate-skill.md +0 -219
  45. package/.claude/commands/trellis/onboard.md +0 -358
  46. package/.claude/commands/trellis/parallel.md +0 -193
  47. package/.claude/commands/trellis/record-session.md +0 -62
  48. package/.claude/commands/trellis/start.md +0 -280
  49. package/.claude/commands/trellis/update-spec.md +0 -213
  50. package/.claude/hooks/inject-subagent-context.py +0 -758
  51. package/.claude/hooks/ralph-loop.py +0 -374
  52. package/.claude/hooks/session-start.py +0 -126
  53. package/.claude/settings.json +0 -41
  54. package/.claude/skills/deepagents-guide/SKILL.md +0 -428
  55. package/.cursor/commands/trellis-before-backend-dev.md +0 -13
  56. package/.cursor/commands/trellis-before-frontend-dev.md +0 -13
  57. package/.cursor/commands/trellis-break-loop.md +0 -107
  58. package/.cursor/commands/trellis-check-backend.md +0 -13
  59. package/.cursor/commands/trellis-check-cross-layer.md +0 -153
  60. package/.cursor/commands/trellis-check-frontend.md +0 -13
  61. package/.cursor/commands/trellis-create-command.md +0 -154
  62. package/.cursor/commands/trellis-finish-work.md +0 -129
  63. package/.cursor/commands/trellis-integrate-skill.md +0 -219
  64. package/.cursor/commands/trellis-onboard.md +0 -358
  65. package/.cursor/commands/trellis-record-session.md +0 -62
  66. package/.cursor/commands/trellis-start.md +0 -156
  67. package/.cursor/commands/trellis-update-spec.md +0 -213
  68. package/.github/workflows/publish.yml +0 -63
  69. package/.husky/pre-commit +0 -1
  70. package/.mcp.json +0 -8
  71. package/.trellis/.template-hashes.json +0 -65
  72. package/.trellis/.version +0 -1
  73. package/.trellis/scripts/add-session.sh +0 -384
  74. package/.trellis/scripts/common/developer.sh +0 -129
  75. package/.trellis/scripts/common/git-context.sh +0 -263
  76. package/.trellis/scripts/common/paths.sh +0 -208
  77. package/.trellis/scripts/common/phase.sh +0 -150
  78. package/.trellis/scripts/common/registry.sh +0 -247
  79. package/.trellis/scripts/common/task-queue.sh +0 -142
  80. package/.trellis/scripts/common/task-utils.sh +0 -151
  81. package/.trellis/scripts/common/worktree.sh +0 -128
  82. package/.trellis/scripts/create-bootstrap.sh +0 -299
  83. package/.trellis/scripts/get-context.sh +0 -7
  84. package/.trellis/scripts/get-developer.sh +0 -15
  85. package/.trellis/scripts/init-developer.sh +0 -34
  86. package/.trellis/scripts/multi-agent/cleanup.sh +0 -396
  87. package/.trellis/scripts/multi-agent/create-pr.sh +0 -241
  88. package/.trellis/scripts/multi-agent/plan.sh +0 -207
  89. package/.trellis/scripts/multi-agent/start.sh +0 -310
  90. package/.trellis/scripts/multi-agent/status.sh +0 -828
  91. package/.trellis/scripts/task.sh +0 -1118
  92. package/.trellis/spec/backend/ci-cd-guidelines.md +0 -73
  93. package/.trellis/spec/backend/deepagents-guide.md +0 -380
  94. package/.trellis/spec/backend/directory-structure.md +0 -145
  95. package/.trellis/spec/backend/examples/skills/deepagents-guide/README.md +0 -11
  96. package/.trellis/spec/backend/examples/skills/deepagents-guide/agent.js.template +0 -20
  97. package/.trellis/spec/backend/examples/skills/deepagents-guide/skills-config.js.template +0 -13
  98. package/.trellis/spec/backend/examples/skills/deepagents-guide/subagent.js.template +0 -19
  99. package/.trellis/spec/backend/hook-guidelines.md +0 -218
  100. package/.trellis/spec/backend/index.md +0 -37
  101. package/.trellis/spec/backend/quality-guidelines.md +0 -377
  102. package/.trellis/spec/backend/state-management.md +0 -76
  103. package/.trellis/spec/backend/tool-guidelines.md +0 -144
  104. package/.trellis/spec/backend/type-safety.md +0 -71
  105. package/.trellis/spec/guides/code-reuse-thinking-guide.md +0 -92
  106. package/.trellis/spec/guides/cross-layer-thinking-guide.md +0 -94
  107. package/.trellis/spec/guides/index.md +0 -79
  108. package/.trellis/tasks/archive/02-02-evolving-skills/prd.md +0 -61
  109. package/.trellis/tasks/archive/02-02-evolving-skills/task.json +0 -29
  110. package/.trellis/tasks/archive/2026-02/00-bootstrap-guidelines/prd.md +0 -86
  111. package/.trellis/tasks/archive/2026-02/00-bootstrap-guidelines/task.json +0 -27
  112. package/.trellis/tasks/archive/2026-02/02-02-skills-system/check.jsonl +0 -3
  113. package/.trellis/tasks/archive/2026-02/02-02-skills-system/debug.jsonl +0 -2
  114. package/.trellis/tasks/archive/2026-02/02-02-skills-system/implement.jsonl +0 -5
  115. package/.trellis/tasks/archive/2026-02/02-02-skills-system/prd.md +0 -33
  116. package/.trellis/tasks/archive/2026-02/02-02-skills-system/task.json +0 -41
  117. package/.trellis/workflow.md +0 -407
  118. package/.trellis/workspace/index.md +0 -123
  119. package/.trellis/workspace/pony/index.md +0 -42
  120. package/.trellis/workspace/pony/journal-1.md +0 -125
  121. package/.trellis/worktree.yaml +0 -47
  122. package/AGENTS.md +0 -18
  123. package/CLAUDE.md +0 -315
  124. package/agents/deepspider.md +0 -142
  125. package/docs/DEBUG.md +0 -42
  126. package/docs/GUIDE.md +0 -338
  127. package/docs/PROMPT.md +0 -59
  128. package/docs/USAGE.md +0 -230
  129. package/eslint.config.js +0 -51
  130. package/test/analyze.test.js +0 -90
  131. package/test/envdump.test.js +0 -74
  132. package/test/flow.test.js +0 -90
  133. package/test/hooks.test.js +0 -138
  134. package/test/plugin.test.js +0 -35
  135. package/test/refactor-full.test.js +0 -30
  136. package/test/refactor.test.js +0 -21
  137. package/test/samples/obfuscated.js +0 -61
  138. package/test/samples/original.js +0 -66
  139. package/test/samples/v10_eval_chain.js +0 -52
  140. package/test/samples/v11_bytecode_vm.js +0 -81
  141. package/test/samples/v12_polymorphic.js +0 -69
  142. package/test/samples/v1_ob_basic.js +0 -98
  143. package/test/samples/v2_ob_advanced.js +0 -99
  144. package/test/samples/v3_jjencode.js +0 -77
  145. package/test/samples/v4_aaencode.js +0 -73
  146. package/test/samples/v5_control_flow.js +0 -86
  147. package/test/samples/v6_string_encryption.js +0 -71
  148. package/test/samples/v7_jsvmp.js +0 -83
  149. package/test/samples/v8_anti_debug.js +0 -79
  150. package/test/samples/v9_proxy_trap.js +0 -49
  151. package/test/samples.test.js +0 -96
  152. package/test/webcrack.test.js +0 -55
@@ -1,213 +0,0 @@
1
- # Update Spec - Capture Knowledge into Specifications
2
-
3
- When you learn something valuable (from debugging, implementing, or discussion), use this command to update the relevant spec documents.
4
-
5
- **Timing**: After completing a task, fixing a bug, or discovering a new pattern
6
-
7
- ---
8
-
9
- ## When to Update Specs
10
-
11
- | Trigger | Example | Target Spec |
12
- |---------|---------|-------------|
13
- | **Fixed a bug** | Found a subtle issue with error handling | `backend/error-handling.md` |
14
- | **Discovered a pattern** | Found a better way to structure code | Relevant guidelines file |
15
- | **Hit a gotcha** | Learned that X must be done before Y | Relevant spec + "Common Mistakes" section |
16
- | **Established a convention** | Team agreed on naming pattern | `quality-guidelines.md` |
17
- | **Cross-layer insight** | Understood how data flows between layers | `guides/cross-layer-thinking-guide.md` |
18
-
19
- ---
20
-
21
- ## Spec Structure Overview
22
-
23
- ```
24
- .trellis/spec/
25
- ├── backend/ # Backend development standards
26
- │ ├── index.md # Overview and links
27
- │ └── *.md # Topic-specific guidelines
28
- ├── frontend/ # Frontend development standards
29
- │ ├── index.md # Overview and links
30
- │ └── *.md # Topic-specific guidelines
31
- └── guides/ # Thinking guides
32
- ├── index.md # Guide index
33
- └── *.md # Topic-specific guides
34
- ```
35
-
36
- ---
37
-
38
- ## Update Process
39
-
40
- ### Step 1: Identify What You Learned
41
-
42
- Answer these questions:
43
-
44
- 1. **What did you learn?** (Be specific)
45
- 2. **Why is it important?** (What problem does it prevent?)
46
- 3. **Where does it belong?** (Which spec file?)
47
-
48
- ### Step 2: Classify the Update Type
49
-
50
- | Type | Description | Action |
51
- |------|-------------|--------|
52
- | **New Pattern** | A reusable approach discovered | Add to "Patterns" section |
53
- | **Forbidden Pattern** | Something that causes problems | Add to "Anti-patterns" or "Don't" section |
54
- | **Common Mistake** | Easy-to-make error | Add to "Common Mistakes" section |
55
- | **Convention** | Agreed-upon standard | Add to relevant section |
56
- | **Gotcha** | Non-obvious behavior | Add warning callout |
57
-
58
- ### Step 3: Read the Target Spec
59
-
60
- Before editing, read the current spec to:
61
- - Understand existing structure
62
- - Avoid duplicating content
63
- - Find the right section for your update
64
-
65
- ```bash
66
- cat .trellis/spec/<category>/<file>.md
67
- ```
68
-
69
- ### Step 4: Make the Update
70
-
71
- Follow these principles:
72
-
73
- 1. **Be Specific**: Include concrete examples, not just abstract rules
74
- 2. **Explain Why**: State the problem this prevents
75
- 3. **Show Code**: Add code snippets for patterns
76
- 4. **Keep it Short**: One concept per section
77
-
78
- ### Step 5: Update the Index (if needed)
79
-
80
- If you added a new section or the spec status changed, update the category's `index.md`.
81
-
82
- ---
83
-
84
- ## Update Templates
85
-
86
- ### Adding a New Pattern
87
-
88
- ```markdown
89
- ### Pattern Name
90
-
91
- **Problem**: What problem does this solve?
92
-
93
- **Solution**: Brief description of the approach.
94
-
95
- **Example**:
96
- \`\`\`
97
- // Good
98
- code example
99
-
100
- // Bad
101
- code example
102
- \`\`\`
103
-
104
- **Why**: Explanation of why this works better.
105
- ```
106
-
107
- ### Adding a Forbidden Pattern
108
-
109
- ```markdown
110
- ### Don't: Pattern Name
111
-
112
- **Problem**:
113
- \`\`\`
114
- // Don't do this
115
- bad code example
116
- \`\`\`
117
-
118
- **Why it's bad**: Explanation of the issue.
119
-
120
- **Instead**:
121
- \`\`\`
122
- // Do this instead
123
- good code example
124
- \`\`\`
125
- ```
126
-
127
- ### Adding a Common Mistake
128
-
129
- ```markdown
130
- ### Common Mistake: Description
131
-
132
- **Symptom**: What goes wrong
133
-
134
- **Cause**: Why this happens
135
-
136
- **Fix**: How to correct it
137
-
138
- **Prevention**: How to avoid it in the future
139
- ```
140
-
141
- ### Adding a Gotcha
142
-
143
- ```markdown
144
- > **Warning**: Brief description of the non-obvious behavior.
145
- >
146
- > Details about when this happens and how to handle it.
147
- ```
148
-
149
- ---
150
-
151
- ## Interactive Mode
152
-
153
- If you're unsure what to update, answer these prompts:
154
-
155
- 1. **What did you just finish?**
156
- - [ ] Fixed a bug
157
- - [ ] Implemented a feature
158
- - [ ] Refactored code
159
- - [ ] Had a discussion about approach
160
-
161
- 2. **What surprised you or was non-obvious?**
162
- - (Describe the insight)
163
-
164
- 3. **Would this help someone else avoid the same problem?**
165
- - Yes → Proceed to update spec
166
- - No → Maybe not worth documenting
167
-
168
- 4. **Which area does it relate to?**
169
- - [ ] Backend code
170
- - [ ] Frontend code
171
- - [ ] Cross-layer data flow
172
- - [ ] Code organization/reuse
173
- - [ ] Quality/testing
174
-
175
- ---
176
-
177
- ## Quality Checklist
178
-
179
- Before finishing your spec update:
180
-
181
- - [ ] Is the content specific and actionable?
182
- - [ ] Did you include a code example?
183
- - [ ] Did you explain WHY, not just WHAT?
184
- - [ ] Is it in the right spec file?
185
- - [ ] Does it duplicate existing content?
186
- - [ ] Would a new team member understand it?
187
-
188
- ---
189
-
190
- ## Relationship to Other Commands
191
-
192
- ```
193
- Development Flow:
194
- Learn something → /trellis:update-spec → Knowledge captured
195
- ↑ ↓
196
- /trellis:break-loop ←──────────────────── Future sessions benefit
197
- (deep bug analysis)
198
- ```
199
-
200
- - `/trellis:break-loop` - Analyzes bugs deeply, often reveals spec updates needed
201
- - `/trellis:update-spec` - Actually makes the updates (this command)
202
- - `/trellis:finish-work` - Reminds you to check if specs need updates
203
-
204
- ---
205
-
206
- ## Core Philosophy
207
-
208
- > **Specs are living documents. Every debugging session, every "aha moment" is an opportunity to make the spec better.**
209
-
210
- The goal is **institutional memory**:
211
- - What one person learns, everyone benefits from
212
- - What AI learns in one session, persists to future sessions
213
- - Mistakes become documented guardrails