@useorgx/wizard 0.1.41 → 0.1.43

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/cli.js CHANGED
@@ -8338,10 +8338,43 @@ function buildCorpusManifest(input) {
8338
8338
  0
8339
8339
  );
8340
8340
  const sessions = manifests.reduce((total, source) => total + source.sessions, 0);
8341
+ const byClient = Object.fromEntries(
8342
+ manifests.map((source) => {
8343
+ const sourceEvents = input.events.filter((event) => event.source_id === source.source_id);
8344
+ const skippedCount = source.files_skipped.reduce((total, skipped) => total + skipped.count, 0);
8345
+ const limitations = [
8346
+ ...Object.values(source.capability_cells).flatMap((cell) => cell.blockers_to_full),
8347
+ ...source.status === "missing" || source.status === "supported_not_connected" ? ["source_not_connected"] : [],
8348
+ ...source.status === "detected_not_read" ? ["detected_without_readable_events"] : []
8349
+ ];
8350
+ return [
8351
+ source.source_id,
8352
+ {
8353
+ detected: source.status === "connected" || source.status === "partial" || source.status === "detected_not_read" || source.storage_paths_resolved.length > 0,
8354
+ connected: source.status === "connected" || source.status === "partial",
8355
+ status: source.status,
8356
+ extractionMode: source.extraction_mode,
8357
+ provider: source.provider,
8358
+ sessions: source.sessions,
8359
+ turns: source.message_turns,
8360
+ toolCalls: source.tool_calls,
8361
+ mcpToolCalls: source.mcp_tool_calls,
8362
+ commands: sourceEvents.filter((event) => event.kind === "shell_command").length,
8363
+ fileEdits: sourceEvents.filter((event) => event.kind === "file_edit").length,
8364
+ tests: sourceEvents.filter((event) => event.kind === "test_run").length,
8365
+ errors: sourceEvents.filter((event) => event.kind === "tool_call_error" || event.kind === "error_emitted").length,
8366
+ skipped: skippedCount,
8367
+ limitations: Array.from(new Set(limitations)).sort(),
8368
+ schemaVersionDetected: source.storage_version_detected
8369
+ }
8370
+ ];
8371
+ })
8372
+ );
8341
8373
  return {
8342
8374
  audit_id: input.auditId,
8343
8375
  ran_at: input.generatedAt,
8344
8376
  sources: manifests,
8377
+ byClient,
8345
8378
  totals: {
8346
8379
  files_seen: Math.max(filesSeen, input.auditMethod.searched_session_files),
8347
8380
  files_read: Math.max(filesRead, input.auditMethod.searched_session_files - input.auditMethod.skipped_session_files),
@@ -11397,6 +11430,7 @@ import { gzipSync } from "zlib";
11397
11430
  var WORK_GRAPH_REPORT_GZIP_THRESHOLD_BYTES = 4e6;
11398
11431
  var WORK_GRAPH_REPORT_CHUNK_UPLOAD_THRESHOLD_BYTES = 5e5;
11399
11432
  var WORK_GRAPH_REPORT_CHUNK_CHARS = 3e4;
11433
+ var WORK_GRAPH_REPORT_CHUNK_UPLOAD_TIMEOUT_MS = 3e5;
11400
11434
  function hashText(value) {
11401
11435
  return createHash7("sha256").update(value).digest("hex");
11402
11436
  }
@@ -11486,7 +11520,7 @@ async function publishWorkGraphReportInChunks({
11486
11520
  url
11487
11521
  }) {
11488
11522
  const upload = createWorkGraphReportUploadChunks(payload);
11489
- const uploadSignal = signal ?? AbortSignal.timeout(6e4);
11523
+ const uploadSignal = signal ?? AbortSignal.timeout(WORK_GRAPH_REPORT_CHUNK_UPLOAD_TIMEOUT_MS);
11490
11524
  const startResponse = await postWorkGraphReportJson({
11491
11525
  auth,
11492
11526
  body: {
@@ -13694,7 +13728,7 @@ function printDoctorReport(report, assessment) {
13694
13728
  async function main() {
13695
13729
  const program = new Command();
13696
13730
  program.name("orgx-wizard").description("Add OrgX MCP configs, skills/rules, and companion plugins to your local AI tools.").showHelpAfterError();
13697
- const pkgVersion = true ? "0.1.41" : void 0;
13731
+ const pkgVersion = true ? "0.1.43" : void 0;
13698
13732
  program.version(pkgVersion ?? "unknown", "-V, --version");
13699
13733
  program.hook("preAction", (_thisCommand, actionCommand) => {
13700
13734
  if (Boolean(actionCommand.optsWithGlobals().json)) return;