@steipete/oracle 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 +4 -4
- package/dist/bin/oracle-cli.js +6 -0
- package/dist/src/cli/sessionDisplay.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -24,13 +24,13 @@ If you omit `--engine`, Oracle prefers the API engine when `OPENAI_API_KEY` is p
|
|
|
24
24
|
|
|
25
25
|
```bash
|
|
26
26
|
# One-off (no install)
|
|
27
|
-
OPENAI_API_KEY=sk-... npx @steipete/oracle -p "Summarize the risk register" --file docs/risk-register.md docs/risk-matrix.md
|
|
27
|
+
OPENAI_API_KEY=sk-... npx -y @steipete/oracle -p "Summarize the risk register" --file docs/risk-register.md docs/risk-matrix.md
|
|
28
28
|
|
|
29
29
|
# Browser engine (no API key)
|
|
30
|
-
npx @steipete/oracle --engine browser -p "Summarize the risk register" --file docs/risk-register.md docs/risk-matrix.md
|
|
30
|
+
npx -y @steipete/oracle --engine browser -p "Summarize the risk register" --file docs/risk-register.md docs/risk-matrix.md
|
|
31
31
|
|
|
32
32
|
# Globs/exclusions
|
|
33
|
-
npx @steipete/oracle -p "Review the TS data layer" --file "src/**/*.ts" --file "!src/**/*.test.ts"
|
|
33
|
+
npx -y @steipete/oracle -p "Review the TS data layer" --file "src/**/*.ts" --file "!src/**/*.test.ts"
|
|
34
34
|
|
|
35
35
|
# Inspect past sessions
|
|
36
36
|
oracle status --clear --hours 168 # prune a week of cached runs
|
|
@@ -40,7 +40,7 @@ oracle session <id> # replay a run locally
|
|
|
40
40
|
|
|
41
41
|
## How do I integrate this?
|
|
42
42
|
|
|
43
|
-
- **One-liner in CI** — `OPENAI_API_KEY=sk-... npx @steipete/oracle --prompt "Smoke-check latest PR" --file src/ docs/ --preview summary` (add to your pipeline as a non-blocking report step).
|
|
43
|
+
- **One-liner in CI** — `OPENAI_API_KEY=sk-... npx -y @steipete/oracle --prompt "Smoke-check latest PR" --file src/ docs/ --preview summary` (add to your pipeline as a non-blocking report step).
|
|
44
44
|
- **Package script** — In `package.json`: `"oracle": "oracle --prompt \"Review the diff\" --file ."` then run `OPENAI_API_KEY=... pnpm oracle`.
|
|
45
45
|
|
|
46
46
|
## Highlights
|
package/dist/bin/oracle-cli.js
CHANGED
|
@@ -33,6 +33,11 @@ program.hook('preAction', (thisCommand) => {
|
|
|
33
33
|
return;
|
|
34
34
|
}
|
|
35
35
|
const opts = thisCommand.optsWithGlobals();
|
|
36
|
+
const positional = thisCommand.args?.[0];
|
|
37
|
+
if (!opts.prompt && positional) {
|
|
38
|
+
opts.prompt = positional;
|
|
39
|
+
thisCommand.setOptionValue('prompt', positional);
|
|
40
|
+
}
|
|
36
41
|
if (shouldRequirePrompt(rawCliArgs, opts)) {
|
|
37
42
|
throw new Error('Prompt is required. Provide it via --prompt "<text>".');
|
|
38
43
|
}
|
|
@@ -41,6 +46,7 @@ program
|
|
|
41
46
|
.name('oracle')
|
|
42
47
|
.description('One-shot GPT-5 Pro / GPT-5.1 tool for hard questions that benefit from large file context and server-side search.')
|
|
43
48
|
.version(VERSION)
|
|
49
|
+
.argument('[prompt]', 'Prompt text (shorthand for --prompt).')
|
|
44
50
|
.option('-p, --prompt <text>', 'User prompt to send to the model.')
|
|
45
51
|
.option('-f, --file <paths...>', 'Files/directories or glob patterns to attach (prefix with !pattern to exclude). Files larger than 1 MB are rejected automatically.', collectPaths, [])
|
|
46
52
|
.option('-s, --slug <words>', 'Custom session slug (3-5 words).')
|
|
@@ -9,7 +9,7 @@ export async function showStatus({ hours, includeAll, limit, showExamples = fals
|
|
|
9
9
|
const { entries, truncated, total } = filterSessionsByRange(metas, { hours, includeAll, limit });
|
|
10
10
|
const richTty = process.stdout.isTTY && chalk.level > 0;
|
|
11
11
|
if (!entries.length) {
|
|
12
|
-
console.log(
|
|
12
|
+
console.log(CLEANUP_TIP);
|
|
13
13
|
if (showExamples) {
|
|
14
14
|
printStatusExamples();
|
|
15
15
|
}
|
package/package.json
CHANGED