eminiar 0.13.2 → 0.13.4
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/.claude-plugin/plugin.json +1 -1
- package/.cursor-plugin/plugin.json +1 -1
- package/README.md +9 -6
- package/dist/cli.js +109 -54
- package/dist/{hook-async-3TLK23ZY.js → hook-async-7GK6H3OO.js} +3 -3
- package/dist/{hook-chunk-ZLRLOPLR.js → hook-chunk-6EFFDI3S.js} +24 -31
- package/dist/{hook-chunk-MVSMFCKL.js → hook-chunk-77LASZ3C.js} +2 -2
- package/dist/{hook-chunk-ETYHCPPH.js → hook-chunk-G7UP4ZVA.js} +36 -4
- package/dist/{hook-hooks-5U2AI6W7.js → hook-hooks-YGXLOZ6H.js} +4 -4
- package/dist/hook.js +698 -74
- package/dist/server.js +120 -67
- package/eminiar.config.schema.json +3 -0
- package/package.json +3 -1
|
@@ -20148,6 +20148,26 @@ function adjudicatorDefaults() {
|
|
|
20148
20148
|
privacy: { maxChars: 2e3, storeHead: true, captureExchanges: false }
|
|
20149
20149
|
};
|
|
20150
20150
|
}
|
|
20151
|
+
function graphGlobProblem(g) {
|
|
20152
|
+
if (g.length > 200) return "longer than 200 characters";
|
|
20153
|
+
if ((g.match(/\{/g)?.length ?? 0) > 4) return "more than 4 braces";
|
|
20154
|
+
if ((g.match(/\(/g)?.length ?? 0) > 2) return "more than 2 extglob groups";
|
|
20155
|
+
let total = 0;
|
|
20156
|
+
for (const seg of g.split(/[\\/]/)) {
|
|
20157
|
+
const groups = seg.match(/\*+|\?/g)?.length ?? 0;
|
|
20158
|
+
if (groups > 3) return "more than 3 wildcards in one path segment";
|
|
20159
|
+
total += groups;
|
|
20160
|
+
}
|
|
20161
|
+
return total > 8 ? "more than 8 wildcards" : void 0;
|
|
20162
|
+
}
|
|
20163
|
+
var GraphGlob = external_exports.string().superRefine((g, ctx) => {
|
|
20164
|
+
const why = graphGlobProblem(g);
|
|
20165
|
+
if (why)
|
|
20166
|
+
ctx.addIssue({
|
|
20167
|
+
code: "custom",
|
|
20168
|
+
message: `graph glob ${JSON.stringify(g.slice(0, 40))} is ${why}`
|
|
20169
|
+
});
|
|
20170
|
+
});
|
|
20151
20171
|
var BaseConfigSchema = external_exports.object({
|
|
20152
20172
|
routing: external_exports.object({
|
|
20153
20173
|
/** auto = annotate while context-mode is installed, enforce once it is gone. */
|
|
@@ -20174,18 +20194,21 @@ var BaseConfigSchema = external_exports.object({
|
|
|
20174
20194
|
dims: external_exports.number().int().positive().default(384)
|
|
20175
20195
|
}).prefault({}),
|
|
20176
20196
|
graph: external_exports.object({
|
|
20177
|
-
include: external_exports.array(
|
|
20197
|
+
include: external_exports.array(GraphGlob).default([
|
|
20178
20198
|
"**/*.ts",
|
|
20179
20199
|
"**/*.tsx",
|
|
20180
20200
|
"**/*.js",
|
|
20181
20201
|
"**/*.jsx",
|
|
20182
20202
|
"**/*.mjs",
|
|
20183
20203
|
"**/*.cjs",
|
|
20204
|
+
"**/*.mts",
|
|
20205
|
+
"**/*.cts",
|
|
20184
20206
|
"**/*.py",
|
|
20207
|
+
"**/*.pyi",
|
|
20185
20208
|
"**/*.go",
|
|
20186
20209
|
"**/*.php"
|
|
20187
20210
|
]),
|
|
20188
|
-
exclude: external_exports.array(
|
|
20211
|
+
exclude: external_exports.array(GraphGlob).default([
|
|
20189
20212
|
"**/node_modules/**",
|
|
20190
20213
|
"**/dist/**",
|
|
20191
20214
|
"**/build/**",
|
|
@@ -20616,6 +20639,11 @@ function resolveProjectRoot(hint) {
|
|
|
20616
20639
|
return root;
|
|
20617
20640
|
}
|
|
20618
20641
|
}
|
|
20642
|
+
function sessionRoot(cwd) {
|
|
20643
|
+
return resolveProjectRoot(
|
|
20644
|
+
process.env.CLAUDE_PROJECT_DIR || process.env.EMINIAR_PROJECT_ROOT || cwd || process.cwd()
|
|
20645
|
+
);
|
|
20646
|
+
}
|
|
20619
20647
|
function projectId(root) {
|
|
20620
20648
|
return createHash("sha256").update(root).digest("hex").slice(0, 16);
|
|
20621
20649
|
}
|
|
@@ -20632,6 +20660,9 @@ function getContext(rootHint) {
|
|
|
20632
20660
|
cache.set(root, ctx);
|
|
20633
20661
|
return ctx;
|
|
20634
20662
|
}
|
|
20663
|
+
function sessionContext(cwd) {
|
|
20664
|
+
return getContext(sessionRoot(cwd));
|
|
20665
|
+
}
|
|
20635
20666
|
|
|
20636
20667
|
// src/storage/dispatch.ts
|
|
20637
20668
|
init_esm_shims();
|
|
@@ -24107,9 +24138,10 @@ export {
|
|
|
24107
24138
|
PROJECT_RELATIVE_PATH_RE,
|
|
24108
24139
|
AdjudicatorConfigSchema,
|
|
24109
24140
|
loadConfig,
|
|
24110
|
-
findProjectRoot,
|
|
24111
24141
|
resolveProjectRoot,
|
|
24142
|
+
sessionRoot,
|
|
24112
24143
|
getContext,
|
|
24144
|
+
sessionContext,
|
|
24113
24145
|
tierOf,
|
|
24114
24146
|
KEPT_MODEL_FLAG,
|
|
24115
24147
|
keptModel,
|
|
@@ -24123,4 +24155,4 @@ export {
|
|
|
24123
24155
|
classifyToolCall,
|
|
24124
24156
|
classifyAssistant
|
|
24125
24157
|
};
|
|
24126
|
-
//# sourceMappingURL=hook-chunk-
|
|
24158
|
+
//# sourceMappingURL=hook-chunk-G7UP4ZVA.js.map
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
manifestPath,
|
|
9
9
|
readManifestAt,
|
|
10
10
|
resolvePrice
|
|
11
|
-
} from "./hook-chunk-
|
|
11
|
+
} from "./hook-chunk-6EFFDI3S.js";
|
|
12
12
|
import {
|
|
13
13
|
adjudicateOne,
|
|
14
14
|
briefUnitsOf,
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
resolveAdjudicator,
|
|
19
19
|
spawnAsyncJob,
|
|
20
20
|
topIntent
|
|
21
|
-
} from "./hook-chunk-
|
|
21
|
+
} from "./hook-chunk-77LASZ3C.js";
|
|
22
22
|
import {
|
|
23
23
|
AGENT_EFFORT_SINCE,
|
|
24
24
|
KEPT_MODEL_FLAG,
|
|
@@ -30,7 +30,7 @@ import {
|
|
|
30
30
|
init_esm_shims,
|
|
31
31
|
keptModel,
|
|
32
32
|
tierOf
|
|
33
|
-
} from "./hook-chunk-
|
|
33
|
+
} from "./hook-chunk-G7UP4ZVA.js";
|
|
34
34
|
|
|
35
35
|
// src/adjudicator/hooks.ts
|
|
36
36
|
init_esm_shims();
|
|
@@ -1826,4 +1826,4 @@ export {
|
|
|
1826
1826
|
withModel,
|
|
1827
1827
|
withNote
|
|
1828
1828
|
};
|
|
1829
|
-
//# sourceMappingURL=hook-hooks-
|
|
1829
|
+
//# sourceMappingURL=hook-hooks-YGXLOZ6H.js.map
|