@a-company/paradigm 3.44.0 → 5.3.3
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/{accept-orchestration-ZUWQUHSK.js → accept-orchestration-GX2YRWM4.js} +5 -5
- package/dist/{add-VSPZ6FM4.js → add-FZRKEGH4.js} +1 -1
- package/dist/agent-HYKC2LAK.js +387 -0
- package/dist/agent-loader-SJPJJS33.js +36 -0
- package/dist/{agents-suggest-65SER5IS.js → agents-suggest-DNSYJ6IA.js} +1 -1
- package/dist/{aggregate-SV3VGEIL.js → aggregate-H57K7PNV.js} +1 -1
- package/dist/{assess-UHBDYIK7.js → assess-4WVXZLZQ.js} +2 -2
- package/dist/{auto-24ICVUH4.js → auto-QFS5NHQU.js} +1 -1
- package/dist/{beacon-3SJV4DAP.js → beacon-KXZXYQHX.js} +1 -1
- package/dist/{calibration-WWHK73WU.js → calibration-V46G7JTY.js} +2 -2
- package/dist/{check-OLI6AUS6.js → check-OWAIWV23.js} +1 -1
- package/dist/{chunk-RP6TZYGE.js → chunk-2IO7JAG2.js} +1 -1
- package/dist/chunk-2T6BTYBN.js +712 -0
- package/dist/{chunk-CDMAMDSG.js → chunk-5VKJBNJL.js} +13 -5
- package/dist/{chunk-KB4XJWE3.js → chunk-6N3JTACN.js} +98 -437
- package/dist/chunk-7N7GSU6K.js +34 -0
- package/dist/chunk-A2L4TSLZ.js +526 -0
- package/dist/{chunk-P7XSBJE3.js → chunk-ABVQGRF7.js} +1 -1
- package/dist/{chunk-HIKKOCXY.js → chunk-EI32ZBE6.js} +1 -1
- package/dist/{chunk-QIOCFXDQ.js → chunk-EKGMAM62.js} +1 -1
- package/dist/chunk-EZ3GOCYC.js +132 -0
- package/dist/chunk-GGMI6C2L.js +1075 -0
- package/dist/{chunk-DS5QY37M.js → chunk-GTR2TBIJ.js} +247 -15
- package/dist/{chunk-QDXI2DHR.js → chunk-J2JEQRT3.js} +1 -1
- package/dist/{chunk-AKIMFN6I.js → chunk-JASGXLK3.js} +2 -2
- package/dist/chunk-KVDYJLTC.js +121 -0
- package/dist/{chunk-J4E6K5MG.js → chunk-LSRABQIY.js} +25 -1
- package/dist/chunk-MCMOGQMU.js +145 -0
- package/dist/{chunk-ZXMDA7VB.js → chunk-PDX44BCA.js} +1 -6
- package/dist/{chunk-SOBTKFSP.js → chunk-S2HO5MLR.js} +5 -0
- package/dist/{chunk-2SKXFXIT.js → chunk-S3ORKP3V.js} +10 -15
- package/dist/{chunk-ZMQA6SCO.js → chunk-S6MZ2IEX.js} +628 -228
- package/dist/chunk-TAIJOFOE.js +124 -0
- package/dist/{chunk-FS3WTUHY.js → chunk-TXESEO7Y.js} +6 -6
- package/dist/{chunk-7COU5S2Z.js → chunk-VL67H5IC.js} +1 -1
- package/dist/{chunk-QWA26UNO.js → chunk-WQITYKHM.js} +7 -7
- package/dist/{chunk-MW5DMGBB.js → chunk-YMDLDELF.js} +114 -55
- package/dist/{claude-63ISJAZK.js → claude-FRRWJSTJ.js} +1 -1
- package/dist/{claude-cli-ABML5RHX.js → claude-cli-XJLK2X4L.js} +1 -1
- package/dist/{claude-code-JRLMRPTO.js → claude-code-HTBA4XRB.js} +1 -1
- package/dist/{claude-code-teams-CAJBEFIZ.js → claude-code-teams-T4SP24MD.js} +1 -1
- package/dist/{conductor-HLWYWUVH.js → conductor-PGPDVIVE.js} +1 -1
- package/dist/{config-schema-3YNIFJCJ.js → config-schema-EA4XALGG.js} +4 -2
- package/dist/{constellation-FAGT45TU.js → constellation-A26CCGQS.js} +1 -1
- package/dist/{context-audit-557EO6PK.js → context-audit-RLO3ETRP.js} +8 -5
- package/dist/{cost-XEBADYFT.js → cost-BGM32XJU.js} +1 -1
- package/dist/{cost-UD3WPEKZ.js → cost-VI46A4XL.js} +1 -1
- package/dist/{cursor-cli-QUOOF2N4.js → cursor-cli-JVEZGHWQ.js} +1 -1
- package/dist/{cursorrules-3TKZ4E4R.js → cursorrules-HLIKJJZT.js} +1 -1
- package/dist/decision-loader-WWCLIQPJ.js +20 -0
- package/dist/{delete-RRK4RL6Y.js → delete-KBRPQLPC.js} +2 -2
- package/dist/{diff-IP5CIARP.js → diff-RQLLNAFI.js} +5 -5
- package/dist/{discipline-5F5OVTXB.js → discipline-FA4OZXIS.js} +1 -1
- package/dist/{dist-UXWV4OKX.js → dist-34NA5RS5.js} +1 -1
- package/dist/{dist-5QE2BB2B-X6DYVSUL.js → dist-5QE2BB2B-5S3T6Y3T.js} +1 -1
- package/dist/{dist-CM3MVWWW.js → dist-77JDTVAY.js} +1 -0
- package/dist/{dist-POMVY6WP.js → dist-QK4SQAK7.js} +1 -1
- package/dist/{dist-3RVKEJRT.js → dist-TA6LSC2Q.js} +1 -1
- package/dist/docs-LVLRPBAW.js +155 -0
- package/dist/docs-PBZB7LYP.js +89 -0
- package/dist/{doctor-GKZJU7QG.js → doctor-ULBOHEIC.js} +3 -3
- package/dist/{drift-YGT4LJ7Q.js → drift-R5NRKFHI.js} +1 -1
- package/dist/{echo-A6HD5UP7.js → echo-O2LY7CC2.js} +1 -1
- package/dist/{edit-4CLNN5JG.js → edit-R2HNLMOG.js} +2 -2
- package/dist/event-25OJKDCE.js +31 -0
- package/dist/{export-T7CMMJIB.js → export-IWVL7XLF.js} +1 -1
- package/dist/{flow-UFMPVOEM.js → flow-CRRVV3O3.js} +2 -2
- package/dist/{global-HHUJSBG5.js → global-3NG5JXUB.js} +1 -1
- package/dist/graduate-USAWGBJM.js +160 -0
- package/dist/{graph-YYUXI3F7.js → graph-VHUMAAS6.js} +2 -2
- package/dist/{graph-server-ZPXRSGCW.js → graph-server-YL22VBBN.js} +1 -1
- package/dist/{habits-RG5SVKXP.js → habits-OL5NGPXO.js} +3 -3
- package/dist/{history-CETCSUCP.js → history-WOWC573W.js} +1 -1
- package/dist/{hooks-TCUHQMPF.js → hooks-HFWSCGPV.js} +2 -2
- package/dist/index.js +307 -184
- package/dist/{integrity-MK2OP5TA.js → integrity-IHO4FZTS.js} +1 -1
- package/dist/{integrity-checker-J7YXRTBT.js → integrity-checker-PSKJA5SB.js} +1 -0
- package/dist/journal-loader-5EYSBFFY.js +18 -0
- package/dist/{lint-HYWGS3JJ.js → lint-K6CJGGPH.js} +1 -1
- package/dist/{list-IUCYPGMK.js → list-4YK7QKFF.js} +1 -1
- package/dist/{list-BTLFHSRC.js → list-ENR7Q4CR.js} +2 -2
- package/dist/{lore-loader-VTEEZDX3.js → lore-loader-7NO6N6FT.js} +4 -1
- package/dist/{lore-server-NOOAHKJX.js → lore-server-UNJY5KC3.js} +1 -1
- package/dist/{manual-AFJ2J2V3.js → manual-G6FISID5.js} +1 -1
- package/dist/mcp.js +3954 -479
- package/dist/{migrate-FQVGQNXZ.js → migrate-LS45DNEV.js} +2 -2
- package/dist/{migrate-assessments-JP6Q5KME.js → migrate-assessments-RGH4O6IX.js} +2 -2
- package/dist/nomination-engine-Q4XSXFKT.js +40 -0
- package/dist/notebook-YWIYGEHV.js +155 -0
- package/dist/{orchestrate-A226N6FC.js → orchestrate-XZA33TJC.js} +5 -5
- package/dist/peers-DEOUIZM6.js +82 -0
- package/dist/persona-UHAHIVST.js +390 -0
- package/dist/{pipeline-3G2FRAKM.js → pipeline-L4HCSBGN.js} +1 -1
- package/dist/{platform-server-KHL6ZPPN.js → platform-server-PMD57BEG.js} +264 -18
- package/dist/{plugin-update-checker-HMRPGY5Z.js → plugin-update-checker-ELOEEQYS.js} +1 -0
- package/dist/{portal-check-FF5EKZE5.js → portal-check-NPYGII2D.js} +2 -2
- package/dist/{portal-compliance-VU4NIFEN.js → portal-compliance-J7DGAPFX.js} +2 -2
- package/dist/{probe-7JK7IDNI.js → probe-MHL5HQZ2.js} +3 -3
- package/dist/{promote-XO63XMAN.js → promote-F6ZYZZAL.js} +2 -2
- package/dist/{providers-YNFSL6HK.js → providers-GK7PB2OL.js} +2 -2
- package/dist/{quiz-I75NU2QQ.js → quiz-M66SC7F7.js} +1 -1
- package/dist/{record-46CLR4OG.js → record-RA4WR2BO.js} +2 -2
- package/dist/{reindex-WIJMCJ4A.js → reindex-HRA2AUS6.js} +3 -2
- package/dist/{remember-4EUZKIIB.js → remember-HBWJ655S.js} +1 -1
- package/dist/{retag-KC4JVRLE.js → retag-3OLCVDEQ.js} +2 -2
- package/dist/{review-Q7M4CRB5.js → review-27ATYTD2.js} +2 -2
- package/dist/review-57QMURZV.js +334 -0
- package/dist/{ripple-RI3LOT6R.js → ripple-JPBXP5I3.js} +1 -1
- package/dist/{sentinel-UOIGJWHH.js → sentinel-4XIG4STA.js} +2 -2
- package/dist/{sentinel-bridge-APDXYAZS.js → sentinel-bridge-MDUXTQRL.js} +2 -2
- package/dist/{serve-JVXSRSUB.js → serve-FLTFTM3P.js} +2 -2
- package/dist/{serve-22A4XOIG.js → serve-INL7SNBK.js} +2 -2
- package/dist/{serve-2YJ6D2Y6.js → serve-KBSE36PL.js} +4 -4
- package/dist/{server-JV6UFGWZ.js → server-54SKYFFY.js} +2 -2
- package/dist/{server-RDLQ3DK7.js → server-XUOIO7E6.js} +1 -1
- package/dist/{setup-YNZJQLW7.js → setup-EDS27WUR.js} +1 -1
- package/dist/{setup-M2ZKLKNN.js → setup-KO5AFC4K.js} +2 -2
- package/dist/{shift-LNMKFYLR.js → shift-VFG23DLA.js} +16 -16
- package/dist/{show-P7GYO43X.js → show-5PV5KFJE.js} +2 -2
- package/dist/{show-PKZMYKRN.js → show-NQKYX6WQ.js} +1 -1
- package/dist/{snapshot-Y3COXK4T.js → snapshot-BK4RBPCG.js} +1 -1
- package/dist/{spawn-SSXZX45U.js → spawn-AW6GDECS.js} +3 -3
- package/dist/{status-KLHALGW4.js → status-WGIAQODY.js} +1 -1
- package/dist/{summary-5NQNOD3F.js → summary-NIRABMF5.js} +2 -2
- package/dist/{sweep-EZU3GU6S.js → sweep-QMHNSIY5.js} +2 -2
- package/dist/{switch-WYUMVNA5.js → switch-6EJPZDIA.js} +1 -1
- package/dist/{symphony-EYRGGVNE.js → symphony-4OCY36AI.js} +350 -29
- package/dist/{symphony-QWOEKZMC.js → symphony-B75X2MME.js} +20 -2
- package/dist/symphony-peers-2ZQYLRNI.js +34 -0
- package/dist/symphony-peers-OL7F6M5S.js +121 -0
- package/dist/symphony-relay-UJYUXN65.js +710 -0
- package/dist/{sync-ZM4Q3R4U.js → sync-VEHUH4OA.js} +3 -3
- package/dist/{sync-llms-JIPP3XX4.js → sync-llms-YHCFIE6X.js} +2 -2
- package/dist/{task-loader-7M2FCBX6.js → task-loader-LDYWQSLM.js} +1 -0
- package/dist/{team-HGLJXWQG.js → team-7HG7XK5C.js} +6 -6
- package/dist/{test-WTR5Q33E.js → test-566CP5KC.js} +1 -1
- package/dist/{thread-3WM7KKID.js → thread-N754I4D5.js} +1 -1
- package/dist/{timeline-ANC7LVDL.js → timeline-M3CICQFE.js} +2 -2
- package/dist/{triage-IZ4MDYNB.js → triage-HHYGT3HY.js} +1 -1
- package/dist/{tutorial-GC6QL4US.js → tutorial-KD22SUNO.js} +1 -1
- package/dist/university-content/courses/.purpose +66 -0
- package/dist/university-content/courses/para-401.json +146 -0
- package/dist/university-content/courses/para-501.json +151 -0
- package/dist/university-content/courses/para-601.json +608 -0
- package/dist/university-content/plsat/.purpose +6 -0
- package/dist/university-content/plsat/v2.0.json +2 -2
- package/dist/university-content/plsat/v3.0.json +563 -3
- package/dist/university-content/reference.json +91 -0
- package/dist/{upgrade-ANX3LVSA.js → upgrade-H5PF32BW.js} +2 -2
- package/dist/{validate-GD5XWILV.js → validate-CNKEKO6A.js} +1 -1
- package/dist/{validate-ITC5D6QG.js → validate-MB5ULIHS.js} +1 -1
- package/dist/{validate-ZVPNN4FL.js → validate-QH3LADM6.js} +1 -1
- package/dist/{watch-X64UK7K4.js → watch-2TKP5PVL.js} +3 -3
- package/dist/{watch-ERBEJUJW.js → watch-ZF4ML6CD.js} +2 -2
- package/dist/{wisdom-L2WC7J62.js → wisdom-AATMGNFA.js} +1 -1
- package/dist/work-log-loader-5L45XNYZ.js +14 -0
- package/dist/{workspace-UIUTHZTD.js → workspace-6E6OSRNU.js} +4 -4
- package/package.json +1 -1
- package/platform-ui/dist/assets/DocsSection-ByAgPzWV.js +1 -0
- package/platform-ui/dist/assets/DocsSection-CjdO6R-u.css +1 -0
- package/platform-ui/dist/assets/{GitSection-BD3Ze06e.js → GitSection-BLovj9yT.js} +1 -1
- package/platform-ui/dist/assets/{GraphSection-SglITfSs.js → GraphSection-C5PCPUFl.js} +1 -1
- package/platform-ui/dist/assets/{LoreSection-bR5Km4Fd.js → LoreSection-BftejTla.js} +1 -1
- package/platform-ui/dist/assets/{SentinelSection-QSpAZArG.js → SentinelSection-CnYcasN7.js} +1 -1
- package/platform-ui/dist/assets/{SymphonySection-CobYJgvg.js → SymphonySection-BpmqCHeK.js} +1 -1
- package/platform-ui/dist/assets/{index-DbxeSMkV.js → index-G9JnWEs_.js} +10 -10
- package/platform-ui/dist/index.html +1 -1
- package/dist/dist-PSF5CP4I.js +0 -7294
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
__esm,
|
|
4
|
+
__export
|
|
5
|
+
} from "./chunk-7N7GSU6K.js";
|
|
6
|
+
|
|
7
|
+
// ../paradigm-mcp/src/utils/journal-loader.ts
|
|
8
|
+
var journal_loader_exports = {};
|
|
9
|
+
__export(journal_loader_exports, {
|
|
10
|
+
getJournalStats: () => getJournalStats,
|
|
11
|
+
loadAllJournalEntries: () => loadAllJournalEntries,
|
|
12
|
+
loadJournalEntries: () => loadJournalEntries,
|
|
13
|
+
loadJournalEntry: () => loadJournalEntry,
|
|
14
|
+
recordJournalEntry: () => recordJournalEntry
|
|
15
|
+
});
|
|
16
|
+
import * as fs from "fs";
|
|
17
|
+
import * as path from "path";
|
|
18
|
+
import * as yaml from "js-yaml";
|
|
19
|
+
function getJournalDir(agentId) {
|
|
20
|
+
const home = process.env.HOME || process.env.USERPROFILE || "";
|
|
21
|
+
return path.join(home, ".paradigm", "agents", agentId, "journal");
|
|
22
|
+
}
|
|
23
|
+
function generateJournalId() {
|
|
24
|
+
const now = /* @__PURE__ */ new Date();
|
|
25
|
+
const date = now.toISOString().slice(0, 10);
|
|
26
|
+
const time = now.toISOString().slice(11, 19).replace(/:/g, "");
|
|
27
|
+
const counter = String(Math.floor(Math.random() * 999) + 1).padStart(3, "0");
|
|
28
|
+
return `LJ-${date}-${time}-${counter}`;
|
|
29
|
+
}
|
|
30
|
+
function recordJournalEntry(agentId, entry) {
|
|
31
|
+
const now = /* @__PURE__ */ new Date();
|
|
32
|
+
const id = generateJournalId();
|
|
33
|
+
const full = {
|
|
34
|
+
id,
|
|
35
|
+
agent: agentId,
|
|
36
|
+
timestamp: now.toISOString(),
|
|
37
|
+
...entry
|
|
38
|
+
};
|
|
39
|
+
const dir = getJournalDir(agentId);
|
|
40
|
+
fs.mkdirSync(dir, { recursive: true });
|
|
41
|
+
const filePath = path.join(dir, `${id}.yaml`);
|
|
42
|
+
fs.writeFileSync(filePath, yaml.dump(full, { lineWidth: 120, noRefs: true }), "utf8");
|
|
43
|
+
return full;
|
|
44
|
+
}
|
|
45
|
+
function loadJournalEntries(agentId, filter) {
|
|
46
|
+
const dir = getJournalDir(agentId);
|
|
47
|
+
if (!fs.existsSync(dir)) return [];
|
|
48
|
+
const entries = [];
|
|
49
|
+
const files = fs.readdirSync(dir).filter((f) => f.endsWith(".yaml"));
|
|
50
|
+
for (const file of files) {
|
|
51
|
+
try {
|
|
52
|
+
const content = fs.readFileSync(path.join(dir, file), "utf8");
|
|
53
|
+
const entry = yaml.load(content);
|
|
54
|
+
if (entry && entry.id) {
|
|
55
|
+
entries.push(entry);
|
|
56
|
+
}
|
|
57
|
+
} catch {
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
let filtered = entries;
|
|
61
|
+
if (filter?.trigger) {
|
|
62
|
+
filtered = filtered.filter((e) => e.trigger === filter.trigger);
|
|
63
|
+
}
|
|
64
|
+
if (filter?.project) {
|
|
65
|
+
filtered = filtered.filter((e) => e.project === filter.project);
|
|
66
|
+
}
|
|
67
|
+
if (filter?.transferable !== void 0) {
|
|
68
|
+
filtered = filtered.filter((e) => e.transferable === filter.transferable);
|
|
69
|
+
}
|
|
70
|
+
if (filter?.tag) {
|
|
71
|
+
filtered = filtered.filter((e) => e.tags?.some((t) => t.startsWith(filter.tag)));
|
|
72
|
+
}
|
|
73
|
+
if (filter?.dateFrom) {
|
|
74
|
+
filtered = filtered.filter((e) => e.timestamp >= filter.dateFrom);
|
|
75
|
+
}
|
|
76
|
+
if (filter?.dateTo) {
|
|
77
|
+
filtered = filtered.filter((e) => e.timestamp <= filter.dateTo);
|
|
78
|
+
}
|
|
79
|
+
filtered.sort((a, b) => b.timestamp.localeCompare(a.timestamp));
|
|
80
|
+
if (filter?.limit) {
|
|
81
|
+
filtered = filtered.slice(0, filter.limit);
|
|
82
|
+
}
|
|
83
|
+
return filtered;
|
|
84
|
+
}
|
|
85
|
+
function loadJournalEntry(agentId, id) {
|
|
86
|
+
const dir = getJournalDir(agentId);
|
|
87
|
+
const filePath = path.join(dir, `${id}.yaml`);
|
|
88
|
+
if (!fs.existsSync(filePath)) return null;
|
|
89
|
+
const content = fs.readFileSync(filePath, "utf8");
|
|
90
|
+
return yaml.load(content);
|
|
91
|
+
}
|
|
92
|
+
function loadAllJournalEntries(filter) {
|
|
93
|
+
const home = process.env.HOME || process.env.USERPROFILE || "";
|
|
94
|
+
const agentsDir = path.join(home, ".paradigm", "agents");
|
|
95
|
+
if (!fs.existsSync(agentsDir)) return [];
|
|
96
|
+
const entries = [];
|
|
97
|
+
const agents = fs.readdirSync(agentsDir, { withFileTypes: true }).filter((d) => d.isDirectory());
|
|
98
|
+
for (const agentDir of agents) {
|
|
99
|
+
if (filter?.agent && agentDir.name !== filter.agent) continue;
|
|
100
|
+
const agentEntries = loadJournalEntries(agentDir.name, filter);
|
|
101
|
+
entries.push(...agentEntries);
|
|
102
|
+
}
|
|
103
|
+
entries.sort((a, b) => b.timestamp.localeCompare(a.timestamp));
|
|
104
|
+
if (filter?.limit) {
|
|
105
|
+
return entries.slice(0, filter.limit);
|
|
106
|
+
}
|
|
107
|
+
return entries;
|
|
108
|
+
}
|
|
109
|
+
function getJournalStats(agentId) {
|
|
110
|
+
const entries = loadJournalEntries(agentId);
|
|
111
|
+
const byTrigger = {};
|
|
112
|
+
const byProject = {};
|
|
113
|
+
let transferableCount = 0;
|
|
114
|
+
for (const e of entries) {
|
|
115
|
+
byTrigger[e.trigger] = (byTrigger[e.trigger] || 0) + 1;
|
|
116
|
+
byProject[e.project] = (byProject[e.project] || 0) + 1;
|
|
117
|
+
if (e.transferable) transferableCount++;
|
|
118
|
+
}
|
|
119
|
+
return {
|
|
120
|
+
total: entries.length,
|
|
121
|
+
byTrigger,
|
|
122
|
+
byProject,
|
|
123
|
+
transferableCount,
|
|
124
|
+
recentInsights: entries.slice(0, 5).map((e) => ({
|
|
125
|
+
id: e.id,
|
|
126
|
+
trigger: e.trigger,
|
|
127
|
+
insight: e.insight.slice(0, 200),
|
|
128
|
+
timestamp: e.timestamp
|
|
129
|
+
}))
|
|
130
|
+
};
|
|
131
|
+
}
|
|
132
|
+
var init_journal_loader = __esm({
|
|
133
|
+
"../paradigm-mcp/src/utils/journal-loader.ts"() {
|
|
134
|
+
}
|
|
135
|
+
});
|
|
136
|
+
|
|
137
|
+
export {
|
|
138
|
+
recordJournalEntry,
|
|
139
|
+
loadJournalEntries,
|
|
140
|
+
loadJournalEntry,
|
|
141
|
+
loadAllJournalEntries,
|
|
142
|
+
getJournalStats,
|
|
143
|
+
journal_loader_exports,
|
|
144
|
+
init_journal_loader
|
|
145
|
+
};
|
|
@@ -1,16 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
3
2
|
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
4
3
|
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
5
4
|
}) : x)(function(x) {
|
|
6
5
|
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
7
6
|
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
8
7
|
});
|
|
9
|
-
var __commonJS = (cb, mod) => function __require2() {
|
|
10
|
-
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
11
|
-
};
|
|
12
8
|
|
|
13
9
|
export {
|
|
14
|
-
__require
|
|
15
|
-
__commonJS
|
|
10
|
+
__require
|
|
16
11
|
};
|
|
@@ -246,6 +246,9 @@ function appendToOutbox(agentId, message) {
|
|
|
246
246
|
ensureAgentDir(agentId);
|
|
247
247
|
appendJsonlLine(outboxPath(agentId), message);
|
|
248
248
|
}
|
|
249
|
+
function readOutbox(agentId) {
|
|
250
|
+
return readJsonlFile(outboxPath(agentId));
|
|
251
|
+
}
|
|
249
252
|
function acknowledgeMessages(agentId, lastMessageId) {
|
|
250
253
|
const filePath = ackPath(agentId);
|
|
251
254
|
ensureAgentDir(agentId);
|
|
@@ -596,7 +599,9 @@ export {
|
|
|
596
599
|
markAgentPollTime,
|
|
597
600
|
isAgentAsleep,
|
|
598
601
|
discoverClaudeCodeSessions,
|
|
602
|
+
appendToInbox,
|
|
599
603
|
readInbox,
|
|
604
|
+
readOutbox,
|
|
600
605
|
acknowledgeMessages,
|
|
601
606
|
garbageCollect,
|
|
602
607
|
createThread,
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import {
|
|
3
3
|
detectIDE,
|
|
4
4
|
getAdapter
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-6N3JTACN.js";
|
|
6
6
|
import {
|
|
7
7
|
parseParadigmConfig
|
|
8
8
|
} from "./chunk-YO6DVTL7.js";
|
|
@@ -13,6 +13,7 @@ import {
|
|
|
13
13
|
// src/commands/doctor/index.ts
|
|
14
14
|
import * as fs from "fs";
|
|
15
15
|
import * as path from "path";
|
|
16
|
+
import * as yaml from "js-yaml";
|
|
16
17
|
import chalk from "chalk";
|
|
17
18
|
async function doctorCommand(options = {}) {
|
|
18
19
|
const cwd = options.rootDir || process.cwd();
|
|
@@ -245,8 +246,7 @@ async function doctorCommand(options = {}) {
|
|
|
245
246
|
if (fs.existsSync(configPath)) {
|
|
246
247
|
try {
|
|
247
248
|
const configContent = fs.readFileSync(configPath, "utf8");
|
|
248
|
-
const
|
|
249
|
-
const config = parse(configContent);
|
|
249
|
+
const config = yaml.load(configContent);
|
|
250
250
|
const purposeRequired = config?.["purpose-required"];
|
|
251
251
|
if (purposeRequired && Array.isArray(purposeRequired)) {
|
|
252
252
|
const missingDirs = [];
|
|
@@ -314,8 +314,7 @@ async function doctorCommand(options = {}) {
|
|
|
314
314
|
if (fs.existsSync(portalPath)) {
|
|
315
315
|
try {
|
|
316
316
|
const portalContent = fs.readFileSync(portalPath, "utf8");
|
|
317
|
-
const
|
|
318
|
-
const portal = parse(portalContent);
|
|
317
|
+
const portal = yaml.load(portalContent);
|
|
319
318
|
if (portal?.version && portal?.gates) {
|
|
320
319
|
const gateCount = Object.keys(portal.gates || {}).length;
|
|
321
320
|
const routeCount = Object.keys(portal.routes || {}).length;
|
|
@@ -343,7 +342,7 @@ async function doctorCommand(options = {}) {
|
|
|
343
342
|
}
|
|
344
343
|
if (fs.existsSync(portalPath)) {
|
|
345
344
|
try {
|
|
346
|
-
const { checkPortalCompliance, getComplianceSummary } = await import("./portal-compliance-
|
|
345
|
+
const { checkPortalCompliance, getComplianceSummary } = await import("./portal-compliance-J7DGAPFX.js");
|
|
347
346
|
const complianceReport = await checkPortalCompliance(cwd);
|
|
348
347
|
const summary = getComplianceSummary(complianceReport);
|
|
349
348
|
results.push({
|
|
@@ -359,8 +358,7 @@ async function doctorCommand(options = {}) {
|
|
|
359
358
|
if (fs.existsSync(flowsPath)) {
|
|
360
359
|
try {
|
|
361
360
|
const flowsContent = fs.readFileSync(flowsPath, "utf8");
|
|
362
|
-
const
|
|
363
|
-
const flows = parse(flowsContent);
|
|
361
|
+
const flows = yaml.load(flowsContent);
|
|
364
362
|
if (flows?.version && flows?.flows) {
|
|
365
363
|
const flowCount = Object.keys(flows.flows || {}).length;
|
|
366
364
|
const emptyFlows = Object.entries(flows.flows || {}).filter(
|
|
@@ -449,8 +447,7 @@ async function doctorCommand(options = {}) {
|
|
|
449
447
|
if (fs.existsSync(quizDir)) {
|
|
450
448
|
for (const file of fs.readdirSync(quizDir).filter((f) => f.endsWith(".yaml"))) {
|
|
451
449
|
try {
|
|
452
|
-
const
|
|
453
|
-
const quiz = parse(fs.readFileSync(path.join(quizDir, file), "utf8"));
|
|
450
|
+
const quiz = yaml.load(fs.readFileSync(path.join(quizDir, file), "utf8"));
|
|
454
451
|
if (quiz?.questions) {
|
|
455
452
|
for (const q of quiz.questions) {
|
|
456
453
|
if (q.choices && q.correct && !(q.correct in q.choices)) {
|
|
@@ -466,8 +463,7 @@ async function doctorCommand(options = {}) {
|
|
|
466
463
|
if (fs.existsSync(pathDir)) {
|
|
467
464
|
for (const file of fs.readdirSync(pathDir).filter((f) => f.endsWith(".yaml"))) {
|
|
468
465
|
try {
|
|
469
|
-
const
|
|
470
|
-
const lp = parse(fs.readFileSync(path.join(pathDir, file), "utf8"));
|
|
466
|
+
const lp = yaml.load(fs.readFileSync(path.join(pathDir, file), "utf8"));
|
|
471
467
|
if (lp?.steps) {
|
|
472
468
|
for (const step of lp.steps) {
|
|
473
469
|
if (step.content && !step.content.startsWith("plsat:")) {
|
|
@@ -551,8 +547,7 @@ async function doctorCommand(options = {}) {
|
|
|
551
547
|
if (fs.existsSync(habitsPath)) {
|
|
552
548
|
try {
|
|
553
549
|
const habitsContent = fs.readFileSync(habitsPath, "utf8");
|
|
554
|
-
const
|
|
555
|
-
const habits = parse(habitsContent);
|
|
550
|
+
const habits = yaml.load(habitsContent);
|
|
556
551
|
if (habits?.version && Array.isArray(habits?.habits)) {
|
|
557
552
|
const enabled = habits.habits.filter((h) => h.enabled !== false).length;
|
|
558
553
|
results.push({
|
|
@@ -633,7 +628,7 @@ async function doctorCommand(options = {}) {
|
|
|
633
628
|
}
|
|
634
629
|
}
|
|
635
630
|
}
|
|
636
|
-
const { runContextAudit } = await import("./context-audit-
|
|
631
|
+
const { runContextAudit } = await import("./context-audit-RLO3ETRP.js");
|
|
637
632
|
const contextResults = await runContextAudit(cwd, { quiet });
|
|
638
633
|
let contextErrorCount = 0;
|
|
639
634
|
let contextWarnCount = 0;
|