keystone-cli 1.0.1 → 1.0.2

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 CHANGED
@@ -133,14 +133,17 @@ keystone ui
133
133
 
134
134
  `keystone init` seeds these workflows under `.keystone/workflows/` (and the agents they rely on under `.keystone/workflows/agents/`):
135
135
 
136
+ Top-level workflows:
136
137
  - `scaffold-feature`: Interactive workflow scaffolder. Prompts for requirements, plans files, generates content, and writes them.
138
+ - `decompose-problem`: Decomposes a problem into research/implementation/review tasks, waits for approval, runs sub-workflows, and summarizes.
139
+ - `dev`: Self-bootstrapping DevMode workflow for an interactive plan/implement/verify loop.
140
+
141
+ Sub-workflows:
137
142
  - `scaffold-plan`: Generates a file plan from `requirements` input.
138
143
  - `scaffold-generate`: Generates file contents from `requirements` plus a `files` plan.
139
- - `decompose-problem`: Decomposes a problem into research/implementation/review tasks, waits for approval, runs sub-workflows, and summarizes.
140
144
  - `decompose-research`: Runs a single research task (`task`) with optional `context`/`constraints`.
141
145
  - `decompose-implement`: Runs a single implementation task (`task`) with optional `research` findings.
142
146
  - `decompose-review`: Reviews a single implementation task (`task`) with optional `implementation` results.
143
- - `dev`: Self-bootstrapping DevMode workflow for an interactive plan/implement/verify loop.
144
147
 
145
148
  Example runs:
146
149
  ```bash
@@ -148,7 +151,7 @@ keystone run scaffold-feature
148
151
  keystone run decompose-problem -i problem="Add caching to the API" -i context="Node/Bun service"
149
152
  ```
150
153
 
151
- The sub-workflows are used by the top-level workflows, but can be run directly if you want just one phase.
154
+ Sub-workflows are used by the top-level workflows, but can be run directly if you want just one phase.
152
155
 
153
156
  ---
154
157
 
@@ -258,7 +261,7 @@ model: claude-3-5-sonnet-latest
258
261
  ```
259
262
 
260
263
  ### OpenAI Compatible Providers
261
- You can add any OpenAI-compatible provider (Groq, Together AI, Perplexity, Local Ollama, etc.) by setting the `type` to `openai` and providing the `base_url` and `api_key_env`.
264
+ You can add any OpenAI-compatible provider (Together AI, Perplexity, Local Ollama, etc.) by setting the `type` to `openai` and providing the `base_url` and `api_key_env`.
262
265
 
263
266
  ### GitHub Copilot Support
264
267
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "keystone-cli",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "A local-first, declarative, agentic workflow orchestrator built on Bun",
5
5
  "type": "module",
6
6
  "bin": {
@@ -1,4 +1,4 @@
1
- import type { Database } from 'bun:sqlite';
1
+ import { Database } from 'bun:sqlite';
2
2
  import { randomUUID } from 'node:crypto';
3
3
  import { existsSync, mkdirSync } from 'node:fs';
4
4
  import { dirname } from 'node:path';
@@ -24,7 +24,6 @@ export class MemoryDb {
24
24
  cached.refCount++;
25
25
  this.db = cached.db;
26
26
  } else {
27
- const { Database } = require('bun:sqlite');
28
27
  const dir = dirname(dbPath);
29
28
  if (!existsSync(dir)) {
30
29
  mkdirSync(dir, { recursive: true });
@@ -1,3 +1,5 @@
1
+ import { Database } from 'bun:sqlite';
2
+ import { existsSync } from 'node:fs';
1
3
  import { ConsoleLogger, type Logger } from '../utils/logger.ts';
2
4
 
3
5
  export function setupSqlite(logger: Logger = new ConsoleLogger()) {
@@ -5,9 +7,6 @@ export function setupSqlite(logger: Logger = new ConsoleLogger()) {
5
7
  // We need to try to load a custom one (e.g. from Homebrew) if on macOS
6
8
  if (process.platform === 'darwin') {
7
9
  try {
8
- const { Database } = require('bun:sqlite');
9
- const { existsSync } = require('node:fs');
10
-
11
10
  // Common Homebrew paths for SQLite
12
11
  const paths = [
13
12
  '/opt/homebrew/opt/sqlite/lib/libsqlite3.dylib',