@useorgx/wizard 0.1.51 → 0.1.52
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 +9 -31
- package/dist/cli.js.map +1 -1
- package/package.json +3 -3
package/dist/cli.js
CHANGED
|
@@ -1,25 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
// _sentry-injection-stub
|
|
4
|
-
!(function() {
|
|
5
|
-
try {
|
|
6
|
-
var e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {};
|
|
7
|
-
e.SENTRY_RELEASE = { id: "@useorgx/wizard@0.1.51" };
|
|
8
|
-
} catch (e2) {
|
|
9
|
-
}
|
|
10
|
-
})();
|
|
11
|
-
|
|
12
|
-
// sentry-debug-id-stub:_sentry-debug-id-injection-stub?sentry-module-id=50d660b4-210d-47c3-aad7-7a156a2728dc
|
|
13
|
-
!(function() {
|
|
14
|
-
try {
|
|
15
|
-
var e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {};
|
|
16
|
-
var n = new e.Error().stack;
|
|
17
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "3d12c6ba-ce58-4cb0-8416-25155e8d07f5", e._sentryDebugIdIdentifier = "sentry-dbid-3d12c6ba-ce58-4cb0-8416-25155e8d07f5");
|
|
18
|
-
} catch (e2) {
|
|
19
|
-
}
|
|
20
|
-
})();
|
|
21
|
-
|
|
22
3
|
// src/cli.ts
|
|
4
|
+
|
|
5
|
+
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="edb4168b-4102-5109-afd1-34d3193fbf8c")}catch(e){}}();
|
|
23
6
|
import * as clack from "@clack/prompts";
|
|
24
7
|
import { spawnSync as spawnSync3 } from "child_process";
|
|
25
8
|
import { readFileSync as readFileSync8 } from "fs";
|
|
@@ -5714,7 +5697,7 @@ function initializeWizardSentry() {
|
|
|
5714
5697
|
Sentry.init({
|
|
5715
5698
|
dsn,
|
|
5716
5699
|
environment: process.env.ORGX_SENTRY_ENVIRONMENT || "production",
|
|
5717
|
-
release:
|
|
5700
|
+
release: "useorgx-wizard@0.1.52",
|
|
5718
5701
|
tracesSampleRate: sampleRate(process.env.ORGX_SENTRY_TRACES_SAMPLE_RATE),
|
|
5719
5702
|
enableLogs: true,
|
|
5720
5703
|
sendDefaultPii: false,
|
|
@@ -7017,8 +7000,8 @@ function readJsonlCandidate(candidate, options) {
|
|
|
7017
7000
|
searchedSessions: 0
|
|
7018
7001
|
};
|
|
7019
7002
|
}
|
|
7020
|
-
const
|
|
7021
|
-
const lines =
|
|
7003
|
+
const window = readTextWindow(candidate.path, stats, options.maxBytesPerFile);
|
|
7004
|
+
const lines = window.text.split(/\r?\n/);
|
|
7022
7005
|
const fallbackTimestamp = new Date(stats.mtimeMs).toISOString();
|
|
7023
7006
|
const sessionId = basename4(candidate.path).replace(/\.[^.]+$/, "");
|
|
7024
7007
|
const events = [];
|
|
@@ -7054,7 +7037,7 @@ function readJsonlCandidate(candidate, options) {
|
|
|
7054
7037
|
events,
|
|
7055
7038
|
filesRead: 1,
|
|
7056
7039
|
filesSkipped: [],
|
|
7057
|
-
notes:
|
|
7040
|
+
notes: window.truncated ? [`Read the latest ${options.maxBytesPerFile} bytes from oversized JSONL source instead of skipping it.`] : [],
|
|
7058
7041
|
searchedSessions: 1
|
|
7059
7042
|
};
|
|
7060
7043
|
}
|
|
@@ -15749,7 +15732,7 @@ async function main() {
|
|
|
15749
15732
|
initializeWizardSentry();
|
|
15750
15733
|
const program = new Command();
|
|
15751
15734
|
program.name("orgx-wizard").description("Add OrgX MCP configs, skills/rules, and companion plugins to your local AI tools.").showHelpAfterError();
|
|
15752
|
-
const pkgVersion = true ? "0.1.
|
|
15735
|
+
const pkgVersion = true ? "0.1.52" : void 0;
|
|
15753
15736
|
program.version(pkgVersion ?? "unknown", "-V, --version");
|
|
15754
15737
|
program.hook("preAction", (_thisCommand, actionCommand) => {
|
|
15755
15738
|
if (Boolean(actionCommand.optsWithGlobals().json)) return;
|
|
@@ -16773,10 +16756,5 @@ main().catch(async (error) => {
|
|
|
16773
16756
|
console.error(pc3.red(error instanceof Error ? error.message : String(error)));
|
|
16774
16757
|
process.exitCode = 1;
|
|
16775
16758
|
});
|
|
16776
|
-
|
|
16777
|
-
|
|
16778
|
-
var cli_default = void 0;
|
|
16779
|
-
export {
|
|
16780
|
-
cli_default as default
|
|
16781
|
-
};
|
|
16782
|
-
//# sourceMappingURL=cli.js.map
|
|
16759
|
+
//# sourceMappingURL=cli.js.map
|
|
16760
|
+
//# debugId=edb4168b-4102-5109-afd1-34d3193fbf8c
|