@sweny-ai/core 0.1.97 → 0.1.98

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.
@@ -52,6 +52,12 @@ export interface CliConfig {
52
52
  repositoryOwner: string;
53
53
  json: boolean;
54
54
  stream: boolean;
55
+ /**
56
+ * When true, print each tool call's input and output inline (human-readable,
57
+ * truncated). Adds a verbose tool observer alongside the spinner/progress
58
+ * observer. Use `stream` if you need full untruncated NDJSON instead.
59
+ */
60
+ verbose: boolean;
55
61
  bell: boolean;
56
62
  cacheDir: string;
57
63
  cacheTtl: number;
@@ -56,6 +56,7 @@ export function registerTriageCommand(program) {
56
56
  .option("--gitlab-base-url <url>", "GitLab base URL (default: https://gitlab.com)")
57
57
  .option("--json", "Output results as JSON", false)
58
58
  .option("--stream", "Stream NDJSON events to stdout (for Studio / automation)", false)
59
+ .option("--verbose", "Print each tool call's input and output inline (human-readable, truncated). Use --stream for full untruncated NDJSON.", false)
59
60
  .option("--bell", "Ring terminal bell on completion", false)
60
61
  .option("--cache-dir <path>", "Step cache directory (default: .sweny/cache)")
61
62
  .option("--cache-ttl <seconds>", "Cache TTL in seconds, 0 = infinite (default: 86400)")
@@ -163,6 +164,7 @@ export function parseCliInputs(options, fileConfig = {}) {
163
164
  // Per-invocation flags: CLI only
164
165
  json: Boolean(options.json),
165
166
  stream: Boolean(options.stream),
167
+ verbose: Boolean(options.verbose),
166
168
  bell: Boolean(options.bell),
167
169
  cacheDir: options.cacheDir || env.SWENY_CACHE_DIR || f("cache-dir") || ".sweny/cache",
168
170
  cacheTtl: parsePositiveInt(options.cacheTtl ?? f("cache-ttl"), 86400),
@@ -638,6 +640,7 @@ export function registerImplementCommand(program) {
638
640
  .option("--review-mode <mode>", "PR merge behavior: auto (GitHub auto-merge when CI passes) | review (human approval, default)", "review")
639
641
  .option("--additional-instructions <text>", "Extra instructions for the coding agent")
640
642
  .option("--stream", "Stream NDJSON events to stdout (for Studio / automation)", false)
643
+ .option("--verbose", "Print each tool call's input and output inline (human-readable, truncated). Use --stream for full untruncated NDJSON.", false)
641
644
  .option("--offline", "Skip URL Sources and fail fast if any are referenced", false);
642
645
  }
643
646
  /**
package/dist/cli/main.js CHANGED
@@ -359,7 +359,7 @@ triageCmd.action(async (options) => {
359
359
  if (cloudHandle?.dashboardUrl) {
360
360
  console.log(c.subtle(` cloud: ${cloudHandle.dashboardUrl}`));
361
361
  }
362
- const observer = composeObservers(progressObserver, config.stream ? createStreamObserver() : undefined, createCloudStreamObserver(config, cloudHandle));
362
+ const observer = composeObservers(progressObserver, config.verbose ? createVerboseToolObserver() : undefined, config.stream ? createStreamObserver() : undefined, createCloudStreamObserver(config, cloudHandle));
363
363
  try {
364
364
  const { results, trace } = await execute(triageWorkflow, workflowInput, {
365
365
  skills,
@@ -532,7 +532,7 @@ implementCmd.action(async (issueId, options) => {
532
532
  if (implCloudHandle?.dashboardUrl) {
533
533
  console.log(c.subtle(` cloud: ${implCloudHandle.dashboardUrl}`));
534
534
  }
535
- const observer = composeObservers(implProgressObserver, Boolean(options.stream) ? createStreamObserver() : undefined, createCloudStreamObserver(config, implCloudHandle));
535
+ const observer = composeObservers(implProgressObserver, config.verbose ? createVerboseToolObserver() : undefined, Boolean(options.stream) ? createStreamObserver() : undefined, createCloudStreamObserver(config, implCloudHandle));
536
536
  try {
537
537
  const { results } = await execute(implementWorkflow, workflowInput, {
538
538
  skills,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sweny-ai/core",
3
- "version": "0.1.97",
3
+ "version": "0.1.98",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "sweny": "./dist/cli/main.js"