pilotlynx 0.1.2 → 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.
- package/README.md +40 -40
- package/dist/agents/improve.agent.d.ts +42 -1
- package/dist/agents/improve.agent.js +102 -7
- package/dist/agents/improve.agent.js.map +1 -1
- package/dist/agents/run.agent.d.ts +0 -1
- package/dist/agents/run.agent.js +10 -7
- package/dist/agents/run.agent.js.map +1 -1
- package/dist/cli.js +8 -3
- package/dist/cli.js.map +1 -1
- package/dist/commands/audit.d.ts +2 -0
- package/dist/commands/audit.js +51 -0
- package/dist/commands/audit.js.map +1 -0
- package/dist/commands/eval.d.ts +2 -0
- package/dist/commands/eval.js +47 -0
- package/dist/commands/eval.js.map +1 -0
- package/dist/commands/improve.js +83 -5
- package/dist/commands/improve.js.map +1 -1
- package/dist/commands/init.js +17 -27
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/insights.js +63 -0
- package/dist/commands/insights.js.map +1 -1
- package/dist/commands/logs.d.ts +1 -0
- package/dist/commands/logs.js +23 -1
- package/dist/commands/logs.js.map +1 -1
- package/dist/commands/relay.js +250 -124
- package/dist/commands/relay.js.map +1 -1
- package/dist/commands/run.js +21 -2
- package/dist/commands/run.js.map +1 -1
- package/dist/commands/schedule.js +7 -1
- package/dist/commands/schedule.js.map +1 -1
- package/dist/commands/status.js +9 -2
- package/dist/commands/status.js.map +1 -1
- package/dist/lib/agent-runner.d.ts +5 -1
- package/dist/lib/agent-runner.js +41 -1
- package/dist/lib/agent-runner.js.map +1 -1
- package/dist/lib/audit.d.ts +7 -0
- package/dist/lib/audit.js +63 -0
- package/dist/lib/audit.js.map +1 -0
- package/dist/lib/callbacks.d.ts +12 -1
- package/dist/lib/callbacks.js +147 -19
- package/dist/lib/callbacks.js.map +1 -1
- package/dist/lib/command-ops/doctor-ops.js +41 -6
- package/dist/lib/command-ops/doctor-ops.js.map +1 -1
- package/dist/lib/command-ops/eval-ops.d.ts +7 -0
- package/dist/lib/command-ops/eval-ops.js +111 -0
- package/dist/lib/command-ops/eval-ops.js.map +1 -0
- package/dist/lib/command-ops/improve-ops.d.ts +14 -1
- package/dist/lib/command-ops/improve-ops.js +369 -17
- package/dist/lib/command-ops/improve-ops.js.map +1 -1
- package/dist/lib/command-ops/run-ops.d.ts +8 -1
- package/dist/lib/command-ops/run-ops.js +25 -4
- package/dist/lib/command-ops/run-ops.js.map +1 -1
- package/dist/lib/command-ops/secrets-migration-ops.js +1 -1
- package/dist/lib/command-ops/secrets-migration-ops.js.map +1 -1
- package/dist/lib/command-ops/status-ops.d.ts +1 -0
- package/dist/lib/command-ops/status-ops.js +19 -7
- package/dist/lib/command-ops/status-ops.js.map +1 -1
- package/dist/lib/config.js +3 -3
- package/dist/lib/config.js.map +1 -1
- package/dist/lib/cron.d.ts +1 -1
- package/dist/lib/cron.js +2 -2
- package/dist/lib/cron.js.map +1 -1
- package/dist/lib/global-config.js +1 -1
- package/dist/lib/global-config.js.map +1 -1
- package/dist/lib/observation.d.ts +60 -2
- package/dist/lib/observation.js +261 -13
- package/dist/lib/observation.js.map +1 -1
- package/dist/lib/registry.d.ts +0 -1
- package/dist/lib/registry.js +1 -1
- package/dist/lib/registry.js.map +1 -1
- package/dist/lib/relay/admin.d.ts +29 -0
- package/dist/lib/relay/admin.js +176 -0
- package/dist/lib/relay/admin.js.map +1 -0
- package/dist/lib/relay/bindings.d.ts +8 -0
- package/dist/lib/relay/bindings.js +50 -0
- package/dist/lib/relay/bindings.js.map +1 -0
- package/dist/lib/relay/config.d.ts +3 -3
- package/dist/lib/relay/config.js +18 -10
- package/dist/lib/relay/config.js.map +1 -1
- package/dist/lib/relay/context.d.ts +31 -0
- package/dist/lib/relay/context.js +118 -0
- package/dist/lib/relay/context.js.map +1 -0
- package/dist/lib/relay/db.d.ts +38 -0
- package/dist/lib/relay/db.js +252 -0
- package/dist/lib/relay/db.js.map +1 -0
- package/dist/lib/relay/executor.d.ts +2 -0
- package/dist/lib/relay/executor.js +108 -0
- package/dist/lib/relay/executor.js.map +1 -0
- package/dist/lib/relay/feedback.d.ts +29 -0
- package/dist/lib/relay/feedback.js +142 -0
- package/dist/lib/relay/feedback.js.map +1 -0
- package/dist/lib/relay/notifier.d.ts +30 -0
- package/dist/lib/relay/notifier.js +78 -0
- package/dist/lib/relay/notifier.js.map +1 -0
- package/dist/lib/relay/notify.d.ts +3 -4
- package/dist/lib/relay/notify.js +43 -159
- package/dist/lib/relay/notify.js.map +1 -1
- package/dist/lib/relay/platform.d.ts +52 -0
- package/dist/lib/relay/platform.js +5 -0
- package/dist/lib/relay/platform.js.map +1 -0
- package/dist/lib/relay/platforms/slack.d.ts +37 -0
- package/dist/lib/relay/platforms/slack.js +240 -0
- package/dist/lib/relay/platforms/slack.js.map +1 -0
- package/dist/lib/relay/platforms/telegram.d.ts +29 -0
- package/dist/lib/relay/platforms/telegram.js +193 -0
- package/dist/lib/relay/platforms/telegram.js.map +1 -0
- package/dist/lib/relay/poster.d.ts +24 -0
- package/dist/lib/relay/poster.js +136 -0
- package/dist/lib/relay/poster.js.map +1 -0
- package/dist/lib/relay/queue.d.ts +18 -0
- package/dist/lib/relay/queue.js +85 -0
- package/dist/lib/relay/queue.js.map +1 -0
- package/dist/lib/relay/router.d.ts +25 -2
- package/dist/lib/relay/router.js +259 -168
- package/dist/lib/relay/router.js.map +1 -1
- package/dist/lib/relay/service.d.ts +31 -7
- package/dist/lib/relay/service.js +281 -200
- package/dist/lib/relay/service.js.map +1 -1
- package/dist/lib/relay/types.d.ts +189 -34
- package/dist/lib/relay/types.js +68 -28
- package/dist/lib/relay/types.js.map +1 -1
- package/dist/lib/sandbox.d.ts +9 -1
- package/dist/lib/sandbox.js +17 -2
- package/dist/lib/sandbox.js.map +1 -1
- package/dist/lib/schedule.d.ts +4 -5
- package/dist/lib/schedule.js +7 -8
- package/dist/lib/schedule.js.map +1 -1
- package/dist/lib/secrets.js +11 -1
- package/dist/lib/secrets.js.map +1 -1
- package/dist/lib/types.d.ts +80 -0
- package/dist/lib/types.js +9 -1
- package/dist/lib/types.js.map +1 -1
- package/package.json +18 -18
- package/prompts/improve.yaml +114 -6
- package/prompts/relay.yaml +29 -0
- package/prompts/run.yaml +36 -2
- package/template/CLAUDE.md +34 -5
- package/template/RUNBOOK.md +5 -5
- package/template/evals/sample.json +16 -0
- package/template/memory/MEMORY.md +6 -0
- package/template/memory/procedures/.gitkeep +0 -0
- package/template/schedule.yaml +1 -1
- package/template/workflows/daily_feedback.ts +78 -2
- package/template/workflows/project_review.ts +51 -2
- package/prompts/relay-chat.yaml +0 -24
|
@@ -12,8 +12,57 @@ interface WorkflowResult {
|
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
16
|
-
*
|
|
15
|
+
* Project Review Workflow — Health Report Generator
|
|
16
|
+
*
|
|
17
|
+
* Produces a structured project health report by examining the project's current state.
|
|
18
|
+
* Writes the report to `artifacts/review-YYYY-MM-DD.md`.
|
|
19
|
+
*
|
|
20
|
+
* ## What to Examine
|
|
21
|
+
*
|
|
22
|
+
* ### 1. Project Configuration Health
|
|
23
|
+
* - Read `PROJECT_BRIEF.md` — is it filled in or still template defaults?
|
|
24
|
+
* - Read `CLAUDE.md` — are there project-specific rules beyond the template?
|
|
25
|
+
* - Read `RUNBOOK.md` — are operational procedures documented?
|
|
26
|
+
* - Check `.mcp.json` — are MCP servers configured?
|
|
27
|
+
*
|
|
28
|
+
* ### 2. Skill Inventory
|
|
29
|
+
* - Glob `.claude/skills/*.md` — list all skills
|
|
30
|
+
* - For each skill: name, brief description, estimated relevance
|
|
31
|
+
* - Flag skills that may be outdated or overlapping
|
|
32
|
+
*
|
|
33
|
+
* ### 3. Rule Inventory
|
|
34
|
+
* - Glob `.claude/rules/*.md` — list all rules
|
|
35
|
+
* - Check for conflicting rules
|
|
36
|
+
* - Flag overly vague rules that aren't actionable
|
|
37
|
+
*
|
|
38
|
+
* ### 4. Memory Health
|
|
39
|
+
* - Read `memory/MEMORY.md` — count entries per section
|
|
40
|
+
* - Flag if memory is empty (no learnings captured)
|
|
41
|
+
* - Flag if memory has no recent entries (stale project)
|
|
42
|
+
*
|
|
43
|
+
* ### 5. Workflow Status
|
|
44
|
+
* - Glob `workflows/*.ts` — list available workflows
|
|
45
|
+
* - Read recent logs from `logs/` (last 5 entries)
|
|
46
|
+
* - Calculate: success rate, average cost, failure patterns
|
|
47
|
+
*
|
|
48
|
+
* ### 6. Shared Pattern Adoption
|
|
49
|
+
* - If `shared/docs/patterns/` is accessible, check which patterns apply to this project
|
|
50
|
+
* - Report which applicable patterns are adopted vs. not adopted
|
|
51
|
+
*
|
|
52
|
+
* ### 7. Anti-Pattern Compliance
|
|
53
|
+
* - If `shared/docs/anti-patterns/` is accessible, check for violations
|
|
54
|
+
* - Report any code or configuration matching known anti-patterns
|
|
55
|
+
*
|
|
56
|
+
* ### 8. Cost Trends
|
|
57
|
+
* - Analyze log entries for cost data (costUsd field)
|
|
58
|
+
* - Calculate: total spend, average per workflow, trend direction
|
|
59
|
+
* - Flag anomalies (sudden cost spikes or drops)
|
|
60
|
+
*
|
|
61
|
+
* ## Output Format
|
|
62
|
+
* Write the report to `artifacts/review-YYYY-MM-DD.md` with sections matching the above.
|
|
63
|
+
* Include a summary section at the top with overall health score (healthy/needs-attention/critical).
|
|
64
|
+
*
|
|
65
|
+
* Also produce a brief summary in the workflow result for the orchestrator.
|
|
17
66
|
*/
|
|
18
67
|
export async function run(config: WorkflowConfig): Promise<WorkflowResult> {
|
|
19
68
|
return {
|
package/prompts/relay-chat.yaml
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
prompts:
|
|
2
|
-
chat_default: |
|
|
3
|
-
You are the relay chat agent for the "{{project}}" project.
|
|
4
|
-
|
|
5
|
-
The user sent this message via Telegram:
|
|
6
|
-
{{userMessage}}
|
|
7
|
-
|
|
8
|
-
Recent conversation history:
|
|
9
|
-
{{conversationContext}}
|
|
10
|
-
|
|
11
|
-
You have read-only access to the project files. Answer the user's question
|
|
12
|
-
about the project — its code, configuration, workflows, memory, or logs.
|
|
13
|
-
|
|
14
|
-
If you cannot answer from the available files, say so clearly.
|
|
15
|
-
Keep replies concise (under 1000 characters when possible) since they go to a chat interface.
|
|
16
|
-
|
|
17
|
-
Return your response as JSON: {"reply": "your message here"}
|
|
18
|
-
|
|
19
|
-
systemPrompts:
|
|
20
|
-
chat_default: |
|
|
21
|
-
You are a project assistant with read-only access to a software project.
|
|
22
|
-
You can read files, search for patterns, and browse the project structure.
|
|
23
|
-
You cannot modify any files. Keep responses concise for chat delivery.
|
|
24
|
-
Never reveal secrets, API keys, or .env file contents.
|