@stroq/cli 0.15.0 → 0.15.1
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.js
CHANGED
|
@@ -11467,6 +11467,7 @@ async function readCursorSession(path) {
|
|
|
11467
11467
|
var HEAD_BYTES = 64 * 1024;
|
|
11468
11468
|
var claudeCodeReader = {
|
|
11469
11469
|
agent: "claude-code",
|
|
11470
|
+
label: "Claude Code",
|
|
11470
11471
|
find: findTranscripts,
|
|
11471
11472
|
read: readTranscript,
|
|
11472
11473
|
root: "~/.claude/projects",
|
|
@@ -11481,6 +11482,7 @@ var claudeCodeReader = {
|
|
|
11481
11482
|
};
|
|
11482
11483
|
var codexReader = {
|
|
11483
11484
|
agent: "codex",
|
|
11485
|
+
label: "Codex CLI",
|
|
11484
11486
|
find: (cwd) => findCodexRollouts(cwd),
|
|
11485
11487
|
read: readCodexRollout,
|
|
11486
11488
|
root: "~/.codex/sessions",
|
|
@@ -11493,6 +11495,7 @@ var codexReader = {
|
|
|
11493
11495
|
};
|
|
11494
11496
|
var cursorReader = {
|
|
11495
11497
|
agent: "cursor",
|
|
11498
|
+
label: "Cursor",
|
|
11496
11499
|
find: (cwd) => findCursorSessions(cwd),
|
|
11497
11500
|
read: readCursorSession,
|
|
11498
11501
|
root: tilde(cursorStateDb()),
|
|
@@ -11522,6 +11525,10 @@ function tryParse(line3) {
|
|
|
11522
11525
|
return null;
|
|
11523
11526
|
}
|
|
11524
11527
|
}
|
|
11528
|
+
function readerLabels() {
|
|
11529
|
+
const labels = READERS.map((r) => r.label);
|
|
11530
|
+
return labels.length <= 1 ? labels[0] ?? "" : `${labels.slice(0, -1).join(", ")} and ${labels[labels.length - 1]}`;
|
|
11531
|
+
}
|
|
11525
11532
|
var READER_ROOTS = () => READERS.map((r) => r.root).join(" or ");
|
|
11526
11533
|
async function readerForFile(path) {
|
|
11527
11534
|
let head = "";
|
|
@@ -11780,10 +11787,12 @@ Flags:
|
|
|
11780
11787
|
--fail-on-finding exit 1 when a credential is found (for a scheduled job)
|
|
11781
11788
|
-h, --help show this
|
|
11782
11789
|
|
|
11783
|
-
Reads
|
|
11784
|
-
which from the file itself
|
|
11785
|
-
|
|
11786
|
-
|
|
11790
|
+
Reads sessions recorded by ${readerLabels()}.
|
|
11791
|
+
--transcript works out which from the file itself; a Cursor session is
|
|
11792
|
+
addressed as <store>#<session>. It reads this machine's credential files to
|
|
11793
|
+
know what to look for, and prints names and sources only, never a value. A
|
|
11794
|
+
finding exits 0 by default: a session that already happened cannot be
|
|
11795
|
+
un-sent by today's commit.
|
|
11787
11796
|
`;
|
|
11788
11797
|
async function runSent(args) {
|
|
11789
11798
|
let parsed;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"id": "stroq",
|
|
3
3
|
"name": "Stroq",
|
|
4
4
|
"description": "Local action firewall for OpenClaw: scans what the agent reads, taints the session, blocks or asks before dangerous tool calls.",
|
|
5
|
-
"version": "0.15.
|
|
5
|
+
"version": "0.15.1",
|
|
6
6
|
"configSchema": {
|
|
7
7
|
"type": "object",
|
|
8
8
|
"additionalProperties": false,
|
package/package.json
CHANGED