@useorgx/wizard 0.1.28 → 0.1.30
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 -2
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -6229,6 +6229,11 @@ var DEFAULT_LIMIT_PER_SOURCE = 3;
|
|
|
6229
6229
|
var DEFAULT_SINCE_DAYS = 30;
|
|
6230
6230
|
var DEFAULT_MAX_BYTES_PER_FILE = 1e6;
|
|
6231
6231
|
var AUDIT_RELEVANT_LINE_PATTERN = /\b(decision|decided|artifact|receipt|proof|commitment|committed|next action|follow[- ]?up|outcome|result|impact|roi|economics|token|cost|saved|open loop|gap|blocker|risk|owner|dri|writeback|rollback|quality score|mcp|tool call|orgx_emit_activity|orgx_apply_changeset|complete_with_proof|scaffold_initiative|mcp__orgx__)\b/i;
|
|
6232
|
+
var STRONG_AUDIT_LINE_PATTERN = /^(?:[-*]\s*)?(?:decision|artifact|receipt|proof|commitment|next action|follow[- ]?up|outcome|result|impact|roi|economics|open loop|gap|blocker|risk|owner|dri|rollback|quality score)\s*:/i;
|
|
6233
|
+
var ORGX_TOOL_SIGNAL_PATTERN = /\b(?:mcp__orgx__|orgx_emit_activity|orgx_apply_changeset|complete_with_proof|scaffold_initiative|get_task_with_context|ship_batch|record_outcome|orgx_free_audit)\b/i;
|
|
6234
|
+
var INSTRUCTION_BOILERPLATE_PATTERN = /^(?:#{1,6}\s*)?(?:agents\.md|instructions?|codex guardrails|precedence|read before you write|use exactly what was specified|don'?t confuse technologies|repo \+ scope hygiene|initiative \/ mcp discipline|ui quality bar|verification standards|secrets \+ safety|patch\/editing rules|commit \/ pr \/ merge protocol|output style|mcp integration|agent domains|skills|conventions)\b/i;
|
|
6235
|
+
var IMPERATIVE_BOILERPLATE_PATTERN = /^[-*]\s+(?:if the user|when the user|if mcp|when agents|never|always|do not|don'?t|default to|treat|produce|pick|verify|avoid|match|use exactly|keep system boundaries|quote bracketed|for orgx|when capture tooling|if no meaningful|do \*\*not\*\*)\b/i;
|
|
6236
|
+
var CODE_OR_DOC_NOISE_PATTERN = /^(?:[-*]\s*)?(?:https?:\/\/|\/|\.{0,2}\/|[A-Za-z]:\/|`{1,3}|"{1,2}[A-Za-z0-9:_-]+":|\d+\s*$|\d+\t|import\s|export\s|const\s|let\s|var\s|function\s|type\s|interface\s|CREATE\s+TABLE|ALTER\s+TABLE|SELECT\s+|INSERT\s+|UPDATE\s+|DELETE\s+)/i;
|
|
6232
6237
|
function parseAiSessionSources(value) {
|
|
6233
6238
|
if (!value?.trim()) return [];
|
|
6234
6239
|
const requested = value.split(",").map((item) => item.trim().toLowerCase()).filter(Boolean);
|
|
@@ -6284,7 +6289,9 @@ function extractClaudeMessageText(record) {
|
|
|
6284
6289
|
return text2;
|
|
6285
6290
|
}
|
|
6286
6291
|
function keepAuditRelevantLines(text2) {
|
|
6287
|
-
return text2.split(/\r?\n/).map((line) => line.trim()).filter(
|
|
6292
|
+
return text2.split(/\r?\n/).map((line) => line.trim()).filter(
|
|
6293
|
+
(line) => line.length > 0 && AUDIT_RELEVANT_LINE_PATTERN.test(line) && (STRONG_AUDIT_LINE_PATTERN.test(line) || ORGX_TOOL_SIGNAL_PATTERN.test(line)) && !INSTRUCTION_BOILERPLATE_PATTERN.test(line) && !IMPERATIVE_BOILERPLATE_PATTERN.test(line) && !CODE_OR_DOC_NOISE_PATTERN.test(line)
|
|
6294
|
+
);
|
|
6288
6295
|
}
|
|
6289
6296
|
function collectJsonlFiles(root, source) {
|
|
6290
6297
|
if (!existsSync5(root)) return [];
|
|
@@ -9544,7 +9551,7 @@ function printDoctorReport(report, assessment) {
|
|
|
9544
9551
|
async function main() {
|
|
9545
9552
|
const program = new Command();
|
|
9546
9553
|
program.name("orgx-wizard").description("Add OrgX MCP configs, skills/rules, and companion plugins to your local AI tools.").showHelpAfterError();
|
|
9547
|
-
const pkgVersion = true ? "0.1.
|
|
9554
|
+
const pkgVersion = true ? "0.1.30" : void 0;
|
|
9548
9555
|
program.version(pkgVersion ?? "unknown", "-V, --version");
|
|
9549
9556
|
program.hook("preAction", () => {
|
|
9550
9557
|
console.log(renderBanner(pkgVersion));
|