ctxmedic 0.2.0 → 0.2.2
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/README.md
CHANGED
|
@@ -71,7 +71,7 @@ jobs:
|
|
|
71
71
|
runs-on: ubuntu-latest
|
|
72
72
|
steps:
|
|
73
73
|
- uses: actions/checkout@v4
|
|
74
|
-
- uses: ponomarenko/ctxmedic@
|
|
74
|
+
- uses: ponomarenko/ctxmedic@v0 # or pin an exact release, e.g. @v0.2.0
|
|
75
75
|
with:
|
|
76
76
|
fail-on: critical # or "warning" to fail on 🟡 too
|
|
77
77
|
# path: . # project folder
|
package/dist/index.js
CHANGED
|
@@ -57,7 +57,7 @@ var Finding = z.object({
|
|
|
57
57
|
message: z.string(),
|
|
58
58
|
files: z.array(z.string()).default([]),
|
|
59
59
|
/** Raw lab values used by the clinical layer (token counts, ratios, $). */
|
|
60
|
-
data: z.record(z.unknown()).default({}),
|
|
60
|
+
data: z.record(z.string(), z.unknown()).default({}),
|
|
61
61
|
monthlySavingsUsd: z.number().nonnegative().optional(),
|
|
62
62
|
fix: FixPlan.optional()
|
|
63
63
|
});
|
|
@@ -73,9 +73,10 @@ var HarnessProfile = z.object({
|
|
|
73
73
|
contextLimit: z.number().int().positive(),
|
|
74
74
|
files: z.object({
|
|
75
75
|
instructions: PathSet,
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
76
|
+
// prefault, not default: zod 4 returns a default as is, without the inner array defaults.
|
|
77
|
+
rules: PathSet.prefault({}),
|
|
78
|
+
skill: PathSet.prefault({}),
|
|
79
|
+
mcp: PathSet.prefault({})
|
|
79
80
|
}),
|
|
80
81
|
/** Directives this harness understands: "@import", "alwaysApply", "globs", "applyTo", "trigger". */
|
|
81
82
|
syntax: z.array(z.string()).default([]),
|
|
@@ -101,7 +102,7 @@ var PatientVitals = z.object({
|
|
|
101
102
|
scannedAt: z.string(),
|
|
102
103
|
filesScanned: z.number().int(),
|
|
103
104
|
harnesses: z.array(z.string()),
|
|
104
|
-
startupTokens: z.record(z.number())
|
|
105
|
+
startupTokens: z.record(z.string(), z.number())
|
|
105
106
|
});
|
|
106
107
|
var ModelUsage = z.object({
|
|
107
108
|
model: z.string(),
|
|
@@ -119,9 +120,9 @@ var FinOpsReport = z.object({
|
|
|
119
120
|
costUsd: z.number(),
|
|
120
121
|
monthlyRunRateUsd: z.number(),
|
|
121
122
|
cacheHitRatio: z.number().min(0).max(1).nullable(),
|
|
122
|
-
byHarness: z.record(z.object({ sessions: z.number(), costUsd: z.number() })),
|
|
123
|
+
byHarness: z.record(z.string(), z.object({ sessions: z.number(), costUsd: z.number() })),
|
|
123
124
|
byModel: z.array(ModelUsage),
|
|
124
|
-
mcpCalls: z.record(z.number()),
|
|
125
|
+
mcpCalls: z.record(z.string(), z.number()),
|
|
125
126
|
findings: z.array(Finding),
|
|
126
127
|
potentialMonthlySavingsUsd: z.number(),
|
|
127
128
|
pricingAsOf: z.string()
|
|
@@ -1516,7 +1517,7 @@ var harnesses = [
|
|
|
1516
1517
|
];
|
|
1517
1518
|
|
|
1518
1519
|
// ../clinical/src/engine.ts
|
|
1519
|
-
var VERSION = true ? "0.2.
|
|
1520
|
+
var VERSION = true ? "0.2.2" : "0.0.0-dev";
|
|
1520
1521
|
var TRIAGE = { critical: "resuscitation", warning: "therapy", info: "preventive" };
|
|
1521
1522
|
var ORDER = ["resuscitation", "therapy", "preventive"];
|
|
1522
1523
|
var human = (k) => k.replace(/([A-Z])/g, " $1").replace(/^./, (c) => c.toUpperCase());
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ctxmedic",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"description": "The context medic for your AI coding setup: checkup, treat, savings for Claude Code, Cursor, Windsurf, Codex CLI, OpenCode, Cline and Copilot.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "FSL-1.1-MIT",
|
|
@@ -49,6 +49,7 @@
|
|
|
49
49
|
"node": ">=20"
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
|
+
"@anthropic-ai/sdk": "^1.11.0",
|
|
52
53
|
"@clack/prompts": "^0.9.1",
|
|
53
54
|
"@hono/node-server": "^2.1.6",
|
|
54
55
|
"commander": "^12.1.0",
|
|
@@ -56,11 +57,10 @@
|
|
|
56
57
|
"js-tiktoken": "^1.0.16",
|
|
57
58
|
"jsonc-parser": "^3.3.1",
|
|
58
59
|
"picocolors": "^1.1.1",
|
|
60
|
+
"picomatch": "^4.0.2",
|
|
59
61
|
"smol-toml": "^1.3.1",
|
|
60
62
|
"yaml": "^2.6.1",
|
|
61
|
-
"zod": "^
|
|
62
|
-
"picomatch": "^4.0.2",
|
|
63
|
-
"@anthropic-ai/sdk": "^0.70.0"
|
|
63
|
+
"zod": "^4.6.7"
|
|
64
64
|
},
|
|
65
65
|
"devDependencies": {
|
|
66
66
|
"@ctxmedic/clinical": "0.1.0",
|