@ridit/lens 0.4.3 → 0.4.5
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/dist/index.mjs +54305 -103497
- package/package.json +3 -3
- package/src/index.tsx +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ridit/lens",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.5",
|
|
4
4
|
"description": "Understand your codebase.",
|
|
5
5
|
"author": "Ridit Jangra <riditjangra09@gmail.com> (https://ridit.space)",
|
|
6
6
|
"license": "MIT",
|
|
@@ -14,9 +14,9 @@
|
|
|
14
14
|
},
|
|
15
15
|
"scripts": {
|
|
16
16
|
"dev": "bun src/index.tsx",
|
|
17
|
-
"build": "bun build src/index.tsx --target node --outfile dist/index.mjs",
|
|
17
|
+
"build": "bun build src/index.tsx --target node --outfile dist/index.mjs --external react-devtools-core --external ink --external react --external chalk --external commander --external figures --external ink-spinner",
|
|
18
18
|
"postbuild": "node -e \"const fs=require('fs');const f='dist/index.mjs';fs.writeFileSync(f,'#!/usr/bin/env node\\n'+fs.readFileSync(f,'utf8'))\"",
|
|
19
|
-
"prepublishOnly": "
|
|
19
|
+
"prepublishOnly": "npm run build",
|
|
20
20
|
"test": "bun test"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
package/src/index.tsx
CHANGED
|
@@ -96,7 +96,7 @@ async function runHeadless(opts: {
|
|
|
96
96
|
|
|
97
97
|
session = addMessage(session, "user", prompt);
|
|
98
98
|
// save now so context is available on follow-up messages even if we exit early
|
|
99
|
-
if (!opts.single) saveSession(session);
|
|
99
|
+
if (!opts.single || opts.sessionId) saveSession(session);
|
|
100
100
|
|
|
101
101
|
const toolLog: { tool: string; args: unknown; result: unknown }[] = [];
|
|
102
102
|
const denied: { tool: string; description: string }[] = [];
|
|
@@ -125,7 +125,7 @@ async function runHeadless(opts: {
|
|
|
125
125
|
},
|
|
126
126
|
onFinish: (message, responseMessages, model) => {
|
|
127
127
|
session = appendMessages(session, responseMessages);
|
|
128
|
-
if (!opts.single) saveSession(session);
|
|
128
|
+
if (!opts.single || opts.sessionId) saveSession(session);
|
|
129
129
|
|
|
130
130
|
const output: Record<string, unknown> = {
|
|
131
131
|
message,
|