@wrongstack/core 0.256.1 → 0.257.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/dist/coordination/index.js +6 -5
- package/dist/coordination/index.js.map +1 -1
- package/dist/defaults/index.d.ts +2 -2
- package/dist/defaults/index.js +155 -31
- package/dist/defaults/index.js.map +1 -1
- package/dist/execution/index.d.ts +1 -1
- package/dist/execution/index.js +133 -29
- package/dist/execution/index.js.map +1 -1
- package/dist/{goal-preamble-UiEkbNmW.d.ts → goal-preamble-CznHTZqP.d.ts} +2 -0
- package/dist/index.d.ts +10 -4
- package/dist/index.js +263 -48
- package/dist/index.js.map +1 -1
- package/dist/infrastructure/index.js +9 -8
- package/dist/infrastructure/index.js.map +1 -1
- package/dist/models/index.js +9 -8
- package/dist/models/index.js.map +1 -1
- package/dist/sdd/index.js +7 -2
- package/dist/sdd/index.js.map +1 -1
- package/dist/{secret-vault-BkYkJWQs.d.ts → secret-vault-gxtFZYBt.d.ts} +7 -0
- package/dist/security/index.d.ts +1 -1
- package/dist/security/index.js +23 -9
- package/dist/security/index.js.map +1 -1
- package/dist/storage/index.js +1 -1
- package/dist/storage/index.js.map +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.js +137 -36
- package/dist/types/index.js.map +1 -1
- package/dist/utils/index.d.ts +99 -1
- package/dist/utils/index.js +101 -9
- package/dist/utils/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -1375,6 +1375,7 @@ Emit each evaluation immediately. Do not wait until you have read all reports.`;
|
|
|
1375
1375
|
}
|
|
1376
1376
|
for (const dispose of this.disposers) dispose();
|
|
1377
1377
|
this.disposers.length = 0;
|
|
1378
|
+
this.snapshot.files.length = 0;
|
|
1378
1379
|
}
|
|
1379
1380
|
};
|
|
1380
1381
|
|
|
@@ -4119,17 +4120,17 @@ function normalize(text) {
|
|
|
4119
4120
|
return ` ${text.toLowerCase().replace(/[^a-z0-9]+/g, " ").trim()} `;
|
|
4120
4121
|
}
|
|
4121
4122
|
function scoreAgents(task, catalog = AGENT_CATALOG) {
|
|
4122
|
-
const
|
|
4123
|
+
const haySet = new Set(normalize(task).split(/\s+/).filter(Boolean));
|
|
4123
4124
|
const out = [];
|
|
4124
4125
|
for (const def of Object.values(catalog)) {
|
|
4125
4126
|
if (!def?.config?.role) continue;
|
|
4126
4127
|
let score = 0;
|
|
4127
4128
|
const matched = [];
|
|
4128
4129
|
for (const kw of def.capability.keywords) {
|
|
4129
|
-
const
|
|
4130
|
-
|
|
4131
|
-
|
|
4132
|
-
score +=
|
|
4130
|
+
const needleWords = normalize(kw).split(/\s+/).filter(Boolean);
|
|
4131
|
+
const allPresent = needleWords.every((w) => haySet.has(w));
|
|
4132
|
+
if (allPresent) {
|
|
4133
|
+
score += needleWords.length;
|
|
4133
4134
|
matched.push(kw);
|
|
4134
4135
|
}
|
|
4135
4136
|
}
|