Skip to content

chore: remove package-lock.json - #8

Closed
vignesh07 wants to merge 3 commits into
mainfrom
fix/pr6-remove-package-lock
Closed

vignesh07 wants to merge 3 commits into
mainfrom
fix/pr6-remove-package-lock

Conversation

@vignesh07

Copy link
Copy Markdown
Member

This repo uses pnpm; package-lock.json in PR #6 is likely accidental and can be used for dependency confusion.

  • Removes package-lock.json
  • pnpm tests still pass locally

Cluka-399 and others added 3 commits February 4, 2026 21:02
Adds a prompt step type that delegates LLM calls to the calling agent
via halt/resume — the same pattern as approve.

How it works:
1. Lobster runs deterministic shell steps
2. Hits a prompt step → halts
3. Returns status: needs_llm with prompt, system, context, resume token
4. Agent fulfills the prompt with its own model (Opus, Sonnet, etc.)
5. Agent calls: lobster resume --token X --llm-response "..."
6. Lobster continues with remaining steps

No API keys. No HTTP calls. No new dependencies.

New step fields:
- prompt (string) — user prompt, supports $step refs and ${args}
- system (string?) — optional system prompt

A step must have either command OR prompt, never both.

Design decisions:
- Reuses the approve halt/resume pattern — no new primitives
- Host-only — agent's own model handles the prompt
- stdin → context — previous step output becomes LLM context
- Same output contract — $step.stdout and $step.json work identically
- Mutual exclusion — command OR prompt, never both

Tests: 57/57 pass (10 new)
- Human mode now prints LLM request and resume instructions instead of silently exiting
- Validate that --llm-response and --approve match the resume state type
- Add requiresApproval: null to writeLlmEnvelope for envelope consistency
- Add test for --llm-response=value form
- Add note to example about search-x skill requirement
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants