@stroq/cli 0.14.0 → 0.14.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
@@ -10879,17 +10879,46 @@ function emit(report, out) {
10879
10879
  const found = report.credentials.length > 0 || report.files.length > 0;
10880
10880
  return out.failOnFinding && found ? 1 : 0;
10881
10881
  }
10882
+ var USAGE = `stroq sent \u2014 which of your credentials already reached a model provider
10883
+
10884
+ stroq sent --last read the newest session in this directory
10885
+ stroq sent --transcript <path> read a specific transcript file
10886
+ stroq sent [<session-id>] read a session Stroq itself recorded
10887
+
10888
+ Flags:
10889
+ --json emit the report as JSON
10890
+ --fail-on-finding exit 1 when a credential is found (for a scheduled job)
10891
+ -h, --help show this
10892
+
10893
+ It reads this machine's credential files to know what to look for, and prints
10894
+ names and sources only, never a value. A finding exits 0 by default: a session
10895
+ that already happened cannot be un-sent by today's commit.
10896
+ `;
10882
10897
  async function runSent(args) {
10883
- const { values, positionals } = parseArgs9({
10884
- args: [...args],
10885
- options: {
10886
- json: { type: "boolean" },
10887
- last: { type: "boolean" },
10888
- transcript: { type: "string" },
10889
- "fail-on-finding": { type: "boolean" }
10890
- },
10891
- allowPositionals: true
10892
- });
10898
+ let parsed;
10899
+ try {
10900
+ parsed = parseArgs9({
10901
+ args: [...args],
10902
+ options: {
10903
+ json: { type: "boolean" },
10904
+ last: { type: "boolean" },
10905
+ transcript: { type: "string" },
10906
+ "fail-on-finding": { type: "boolean" },
10907
+ help: { type: "boolean", short: "h" }
10908
+ },
10909
+ allowPositionals: true
10910
+ });
10911
+ } catch (err) {
10912
+ process.stderr.write(`${err.message}
10913
+
10914
+ ${USAGE}`);
10915
+ return 2;
10916
+ }
10917
+ const { values, positionals } = parsed;
10918
+ if (values.help === true) {
10919
+ process.stdout.write(USAGE);
10920
+ return 0;
10921
+ }
10893
10922
  const out = {
10894
10923
  json: values.json === true,
10895
10924
  failOnFinding: values["fail-on-finding"] === true
@@ -11037,7 +11066,7 @@ import { existsSync as existsSync14, readdirSync as readdirSync7 } from "fs";
11037
11066
  import { rm as rm6 } from "fs/promises";
11038
11067
  import { join as join26 } from "path";
11039
11068
  import { parseArgs as parseArgs11 } from "util";
11040
- var USAGE = "usage: stroq untaint --session <id> | --all\n";
11069
+ var USAGE2 = "usage: stroq untaint --session <id> | --all\n";
11041
11070
  async function clearAll() {
11042
11071
  const dir = sessionsDir();
11043
11072
  if (!existsSync14(dir)) return;
@@ -11063,7 +11092,7 @@ async function runUntaint(args) {
11063
11092
  `);
11064
11093
  return 0;
11065
11094
  }
11066
- process.stdout.write(USAGE);
11095
+ process.stdout.write(USAGE2);
11067
11096
  return 1;
11068
11097
  }
11069
11098
 
@@ -11131,7 +11160,7 @@ async function runWhy(args) {
11131
11160
  }
11132
11161
 
11133
11162
  // src/index.ts
11134
- var USAGE2 = `stroq <command>
11163
+ var USAGE3 = `stroq <command>
11135
11164
 
11136
11165
  Commands:
11137
11166
  init [--agent <name>] [--user] [--dry-run]
@@ -11242,7 +11271,7 @@ async function main(argv) {
11242
11271
  `);
11243
11272
  return 0;
11244
11273
  default:
11245
- process.stdout.write(USAGE2);
11274
+ process.stdout.write(USAGE3);
11246
11275
  return command === void 0 || command === "--help" || command === "-h" ? 0 : 1;
11247
11276
  }
11248
11277
  }
@@ -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.14.0",
5
+ "version": "0.14.1",
6
6
  "configSchema": {
7
7
  "type": "object",
8
8
  "additionalProperties": false,
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stroq-openclaw-plugin",
3
- "version": "0.14.0",
3
+ "version": "0.14.1",
4
4
  "private": true,
5
5
  "description": "Stroq's OpenClaw plugin entry: forwards before_tool_call and after_tool_call to the Stroq CLI.",
6
6
  "type": "module",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stroq/cli",
3
- "version": "0.14.0",
3
+ "version": "0.14.1",
4
4
  "description": "Local action firewall for AI agents: scans what the agent reads, taints the session, blocks dangerous follow-up actions",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",