@pushpalsdev/cli 1.0.5 → 1.0.7

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 (73) hide show
  1. package/dist/pushpals-cli.js +788 -64
  2. package/package.json +3 -2
  3. package/runtime/.env.example +73 -0
  4. package/runtime/configs/backend.toml +79 -0
  5. package/runtime/configs/default.toml +259 -0
  6. package/runtime/configs/dev.toml +2 -0
  7. package/runtime/configs/local.example.toml +124 -0
  8. package/runtime/prompts/localbuddy/local_quick_reply_json_system_suffix.md +2 -0
  9. package/runtime/prompts/localbuddy/local_quick_reply_system_prompt.md +10 -0
  10. package/runtime/prompts/localbuddy/local_quick_reply_user_prompt.md +2 -0
  11. package/runtime/prompts/localbuddy/localbuddy_planner_git_diff_section.md +3 -0
  12. package/runtime/prompts/localbuddy/localbuddy_planner_git_status_section.md +3 -0
  13. package/runtime/prompts/localbuddy/localbuddy_planner_output_contract.md +5 -0
  14. package/runtime/prompts/localbuddy/localbuddy_planner_user_prompt.md +2 -0
  15. package/runtime/prompts/localbuddy/localbuddy_system_prompt.md +110 -0
  16. package/runtime/prompts/remotebuddy/autonomy_ideation_system_prompt.md +60 -0
  17. package/runtime/prompts/remotebuddy/autonomy_planning_system_prompt.md +5 -0
  18. package/runtime/prompts/remotebuddy/autonomy_scoring_system_prompt.md +6 -0
  19. package/runtime/prompts/remotebuddy/codex_adapter_json_requirements.md +1 -0
  20. package/runtime/prompts/remotebuddy/codex_adapter_json_schema_intro.md +1 -0
  21. package/runtime/prompts/remotebuddy/codex_adapter_max_tokens_line.md +1 -0
  22. package/runtime/prompts/remotebuddy/codex_adapter_prompt_template.md +14 -0
  23. package/runtime/prompts/remotebuddy/context_packer_condensed_history_system_prompt.md +1 -0
  24. package/runtime/prompts/remotebuddy/context_packer_system_prompt.md +1 -0
  25. package/runtime/prompts/remotebuddy/context_packer_user_prompt.md +11 -0
  26. package/runtime/prompts/remotebuddy/fallback_file_system_prompt.md +1 -0
  27. package/runtime/prompts/remotebuddy/fallback_file_user_prompt.md +4 -0
  28. package/runtime/prompts/remotebuddy/planner_post_system_prompt.md +2 -0
  29. package/runtime/prompts/remotebuddy/planner_repair_suffix_prompt.md +1 -0
  30. package/runtime/prompts/remotebuddy/planner_repair_user_prompt.md +7 -0
  31. package/runtime/prompts/remotebuddy/remotebuddy_system_prompt.md +109 -0
  32. package/runtime/prompts/review_agent/fix_job_intro_line.md +1 -0
  33. package/runtime/prompts/review_agent/merge_conflict_context_intro_line.md +1 -0
  34. package/runtime/prompts/review_agent/merge_conflict_instruction.md +4 -0
  35. package/runtime/prompts/review_agent/review_prompt_template.md +18 -0
  36. package/runtime/prompts/review_agent/reviewer.md +39 -0
  37. package/runtime/prompts/shared/post_system_prompt.md +62 -0
  38. package/runtime/prompts/workerpals/codex_quality_critic_instruction_prompt.md +14 -0
  39. package/runtime/prompts/workerpals/commit_message_prompt.md +36 -0
  40. package/runtime/prompts/workerpals/commit_message_user_prompt.md +7 -0
  41. package/runtime/prompts/workerpals/miniswe_broker_system_prompt.md +33 -0
  42. package/runtime/prompts/workerpals/miniswe_broker_task_prompt.md +5 -0
  43. package/runtime/prompts/workerpals/miniswe_completion_requirement.md +1 -0
  44. package/runtime/prompts/workerpals/miniswe_context_compaction_retry_prompt.md +1 -0
  45. package/runtime/prompts/workerpals/miniswe_explicit_targets_block.md +2 -0
  46. package/runtime/prompts/workerpals/miniswe_recovery_guidance_base.md +4 -0
  47. package/runtime/prompts/workerpals/miniswe_recovery_guidance_blocker_line.md +1 -0
  48. package/runtime/prompts/workerpals/miniswe_strict_tool_use_guidance.md +6 -0
  49. package/runtime/prompts/workerpals/miniswe_supplemental_guidance_section.md +2 -0
  50. package/runtime/prompts/workerpals/miniswe_timeout_note.md +1 -0
  51. package/runtime/prompts/workerpals/miniswe_toolcall_retry_guidance.md +1 -0
  52. package/runtime/prompts/workerpals/openai_codex_default_system_prompt.md +4 -0
  53. package/runtime/prompts/workerpals/openai_codex_instruction_wrapper.md +5 -0
  54. package/runtime/prompts/workerpals/openai_codex_runtime_policy_appendix.md +5 -0
  55. package/runtime/prompts/workerpals/openai_codex_supplemental_guidance_section.md +2 -0
  56. package/runtime/prompts/workerpals/openai_codex_task_execute_system_prompt.md +12 -0
  57. package/runtime/prompts/workerpals/openhands_minimal_security_policy.j2 +8 -0
  58. package/runtime/prompts/workerpals/openhands_minimal_system_prompt.j2 +20 -0
  59. package/runtime/prompts/workerpals/openhands_strict_tool_use_message.md +1 -0
  60. package/runtime/prompts/workerpals/openhands_supplemental_guidance_message.md +2 -0
  61. package/runtime/prompts/workerpals/openhands_task_execute_fallback_system_prompt.md +1 -0
  62. package/runtime/prompts/workerpals/openhands_task_execute_system_prompt.md +21 -0
  63. package/runtime/prompts/workerpals/openhands_task_user_prompt.md +6 -0
  64. package/runtime/prompts/workerpals/openhands_timeout_note.md +1 -0
  65. package/runtime/prompts/workerpals/pr_description.md +42 -0
  66. package/runtime/prompts/workerpals/task_quality_critic_system_prompt.md +9 -0
  67. package/runtime/prompts/workerpals/task_quality_critic_user_prompt.md +17 -0
  68. package/runtime/prompts/workerpals/workerpals_system_prompt.md +115 -0
  69. package/runtime/protocol/schemas/approvals.schema.json +6 -0
  70. package/runtime/protocol/schemas/envelope.schema.json +96 -0
  71. package/runtime/protocol/schemas/events.schema.json +679 -0
  72. package/runtime/protocol/schemas/http.schema.json +50 -0
  73. package/runtime/vision.example.md +191 -0
@@ -0,0 +1,50 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "title": "HTTPContracts",
4
+ "definitions": {
5
+ "CreateSessionResponse": {
6
+ "type": "object",
7
+ "required": ["sessionId", "protocolVersion"],
8
+ "properties": {
9
+ "sessionId": { "type": "string" },
10
+ "protocolVersion": { "type": "string", "const": "0.1.0" }
11
+ },
12
+ "additionalProperties": false
13
+ },
14
+ "MessageRequest": {
15
+ "type": "object",
16
+ "required": ["text"],
17
+ "properties": {
18
+ "text": { "type": "string" }
19
+ },
20
+ "additionalProperties": false
21
+ },
22
+ "MessageResponse": {
23
+ "type": "object",
24
+ "required": ["ok"],
25
+ "properties": {
26
+ "ok": { "type": "boolean" }
27
+ },
28
+ "additionalProperties": false
29
+ },
30
+ "ApprovalDecisionRequest": {
31
+ "type": "object",
32
+ "required": ["decision"],
33
+ "properties": {
34
+ "decision": {
35
+ "type": "string",
36
+ "enum": ["approve", "deny"]
37
+ }
38
+ },
39
+ "additionalProperties": false
40
+ },
41
+ "ApprovalDecisionResponse": {
42
+ "type": "object",
43
+ "required": ["ok"],
44
+ "properties": {
45
+ "ok": { "type": "boolean" }
46
+ },
47
+ "additionalProperties": false
48
+ }
49
+ }
50
+ }
@@ -0,0 +1,191 @@
1
+ # Vision
2
+
3
+ > **One sentence:** What does this repo exist to make true in the world?
4
+ >
5
+ > Example: “Make it easy for developers to ship <X> reliably, without needing deep expertise in <Y>.”
6
+
7
+ ---
8
+
9
+ ## 1) Who this is for
10
+
11
+ ### Primary users
12
+ - **User type A:** (e.g., app developers, SREs, analysts, end-users)
13
+ - Jobs-to-be-done: …
14
+ - Pain today: …
15
+ - Success looks like: …
16
+
17
+ ### Secondary users
18
+ - **User type B:** …
19
+ - Jobs-to-be-done: …
20
+ - Pain today: …
21
+ - Success looks like: …
22
+
23
+ ### Non-users (explicitly *not* optimizing for)
24
+ - **Not for:** …
25
+ - Why: …
26
+
27
+ > **Guidance:** Keep this section concrete. If you can’t name the user and their job, you’ll argue about priorities forever.
28
+
29
+ ---
30
+
31
+ ## 2) The problem we solve
32
+
33
+ ### Today’s reality
34
+ - What is hard / slow / risky today?
35
+ - What failures happen repeatedly? (bugs, incidents, misconfig, confusion)
36
+ - What is expensive? (time, money, cognitive load, coordination)
37
+
38
+ ### The change we want
39
+ - In 6–12 months, what should feel *meaningfully easier*?
40
+ - In 2–3 years, what should be *obviously different*?
41
+
42
+ > **Optional:** Add a 3–5 line “story” of a user before vs after.
43
+
44
+ ---
45
+
46
+ ## 3) Product principles (decision rules)
47
+
48
+ These are **tie-breakers** when tradeoffs happen. Put them in priority order.
49
+
50
+ 1. **Principle 1:** (e.g., “Safe by default”)
51
+ - We will: …
52
+ - We won’t: …
53
+ 2. **Principle 2:** (e.g., “Make the common path fast”)
54
+ - We will: …
55
+ - We won’t: …
56
+ 3. **Principle 3:** (e.g., “Prefer boring, maintainable solutions”)
57
+ - We will: …
58
+ - We won’t: …
59
+
60
+ > **Guidance:** A principle is only useful if it can help you say “no” to a PR.
61
+
62
+ ---
63
+
64
+ ## 4) What “good” looks like (measures)
65
+
66
+ Pick a small set of metrics you can actually track.
67
+
68
+ ### User-facing outcomes
69
+ - **Time-to-success:** e.g., median time from install → first successful use
70
+ - **Quality:** e.g., bug rate / support tickets per active user
71
+ - **Trust:** e.g., SLO compliance, error rate, crash-free sessions
72
+
73
+ ### Developer / maintainer outcomes
74
+ - **Change velocity:** PR cycle time, lead time to release
75
+ - **Operational burden:** pages/alerts per week, toil hours
76
+ - **Maintainability:** test coverage for critical paths, build time, flake rate
77
+
78
+ > **Guidance:** Avoid vanity metrics. Prefer “time, errors, incidents, support load, cost”.
79
+
80
+ ---
81
+
82
+ ## 5) Scope and boundaries
83
+
84
+ ### In scope (what we *are*)
85
+ - Core capability A: …
86
+ - Core capability B: …
87
+ - Core capability C: …
88
+
89
+ ### Out of scope / non-goals (what we are *not*)
90
+ - Not a replacement for: …
91
+ - Not trying to support: …
92
+ - Not optimizing for: …
93
+
94
+ ### Compatibility & support policy (optional)
95
+ - Supported platforms / versions: …
96
+ - Breaking changes policy: …
97
+ - Deprecation timeline: …
98
+
99
+ > **Guidance:** This section prevents “just one more feature” creep.
100
+
101
+ ---
102
+
103
+ ## 6) Current priorities (next 4–8 weeks)
104
+
105
+ Pick 3–5 items max. Each should be **outcome-oriented**.
106
+
107
+ 1. **Priority:** …
108
+ - Why now: …
109
+ - Success criteria: …
110
+ - Owner / area: …
111
+ 2. **Priority:** …
112
+ 3. **Priority:** …
113
+
114
+ > **Tip:** If everything is a priority, nothing is.
115
+
116
+ ---
117
+
118
+ ## 7) Near-term objectives (1–2 quarters)
119
+
120
+ These are “bets” with explicit results.
121
+
122
+ ### Objective A: <name>
123
+ - **Problem:** …
124
+ - **Approach:** …
125
+ - **Deliverables:** …
126
+ - **Risks:** …
127
+ - **Exit criteria:** How we’ll know it worked (measurable)
128
+
129
+ ### Objective B: <name>
130
+ - …
131
+
132
+ ---
133
+
134
+ ## 8) Long-term direction (1–3 years)
135
+
136
+ Describe where this repo is going, without over-promising.
137
+
138
+ ### Strategic bets
139
+ - **Bet 1:** …
140
+ - Why it matters: …
141
+ - What we’ll likely build: …
142
+ - What we likely won’t build: …
143
+ - **Bet 2:** …
144
+
145
+ ### “If we’re right, then…”
146
+ - Users will be able to: …
147
+ - Maintainers will spend less time on: …
148
+ - The ecosystem will have: …
149
+
150
+ ---
151
+
152
+ ## 9) Guardrails and constraints
153
+
154
+ ### Guardrails (how we avoid harm / churn)
155
+ - Prefer changes that are **reversible** or behind flags.
156
+ - Default to **secure / safe** settings.
157
+ - Optimize for the **common path**; support escape hatches for experts.
158
+ - Avoid adding new dependencies unless they reduce net complexity.
159
+ - Pay down operational toil before adding big surface area.
160
+
161
+ ### Constraints (reality checks)
162
+ - Staffing level / maintainer bandwidth: …
163
+ - Hard requirements (privacy, compliance, perf, cost): …
164
+ - External dependencies: …
165
+
166
+ ---
167
+
168
+ ## 10) How decisions get made (governance-lite)
169
+
170
+ - **Source of truth:** issues + RFCs + docs in `docs/`
171
+ - **When we require an RFC:** breaking changes, new public APIs, major deps, new architecture
172
+ - **Review expectations:** tests required for critical paths, docs for user-facing behavior
173
+ - **Release cadence:** …
174
+ - **What we won’t merge:** (examples)
175
+ - large rewrites without an incremental plan
176
+ - behavior changes without migration guidance
177
+ - features that expand scope beyond the non-goals
178
+
179
+ ---
180
+
181
+ ## Appendix (optional but powerful)
182
+
183
+ ### A) Glossary
184
+ - Term: definition…
185
+
186
+ ### B) Personas (one-page each)
187
+ - Persona, environment, constraints, success criteria…
188
+
189
+ ### C) Example “no” responses (template)
190
+ - “Thanks — this is valuable, but it conflicts with our non-goal X…”
191
+ - “We’d reconsider if metric Y becomes a problem…”