@kody-ade/kody-engine 0.4.125 → 0.4.127
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/bin/kody.js +9 -3
- package/package.json +1 -1
package/dist/bin/kody.js
CHANGED
|
@@ -880,7 +880,7 @@ var init_loadPriorArt = __esm({
|
|
|
880
880
|
// package.json
|
|
881
881
|
var package_default = {
|
|
882
882
|
name: "@kody-ade/kody-engine",
|
|
883
|
-
version: "0.4.
|
|
883
|
+
version: "0.4.127",
|
|
884
884
|
description: "kody \u2014 autonomous development engine. Single-session Claude Code agent behind a generic executor + declarative executable profiles.",
|
|
885
885
|
license: "MIT",
|
|
886
886
|
type: "module",
|
|
@@ -2184,7 +2184,7 @@ ${content}`);
|
|
|
2184
2184
|
return [
|
|
2185
2185
|
"# Company profile (`.kody/profile/`) \u2014 your default frame",
|
|
2186
2186
|
"",
|
|
2187
|
-
"You are this company's in-house assistant, not a general-purpose chatbot. The text below describes who the company is, what it builds, its domain, customers, and vocabulary.
|
|
2187
|
+
"You are this company's in-house assistant, not a general-purpose chatbot. The text below describes who the company is, what it builds, its domain, customers, and vocabulary. This is your DEFAULT and PRIMARY frame: if a question matches or could refer to the company, its product, this repo, or its domain \u2014 even a single bare word or name, any casing or spacing \u2014 answer about THAT directly from this profile. Such a question is NOT ambiguous: do NOT lead with or also mention the generic/dictionary meaning, and do NOT ask the user 'which one did you mean?'. Just answer about the company's thing. Give a general-knowledge answer only when the question is plainly unrelated to the company, and keep it brief.",
|
|
2188
2188
|
"",
|
|
2189
2189
|
body
|
|
2190
2190
|
].join("\n");
|
|
@@ -6478,6 +6478,9 @@ function parseFlatYaml(text) {
|
|
|
6478
6478
|
else if (lower === "false") out.disabled = false;
|
|
6479
6479
|
} else if (key === "staff" && value.length > 0) {
|
|
6480
6480
|
out.staff = value;
|
|
6481
|
+
} else if (key === "mentions") {
|
|
6482
|
+
const logins = value.split(",").map((s) => s.trim().replace(/^@/, "")).filter(Boolean);
|
|
6483
|
+
if (logins.length > 0) out.mentions = logins;
|
|
6481
6484
|
}
|
|
6482
6485
|
}
|
|
6483
6486
|
return out;
|
|
@@ -8485,7 +8488,9 @@ var loadJobFromFile = async (ctx, _profile, args) => {
|
|
|
8485
8488
|
}
|
|
8486
8489
|
const raw = fs31.readFileSync(absPath, "utf-8");
|
|
8487
8490
|
const { title, body } = parseJobFile(raw, slug);
|
|
8488
|
-
const
|
|
8491
|
+
const frontmatter = splitFrontmatter2(raw).frontmatter;
|
|
8492
|
+
const mentions = (frontmatter.mentions ?? []).map((login) => `@${login}`).join(" ");
|
|
8493
|
+
const workerSlug = (frontmatter.staff ?? "").trim();
|
|
8489
8494
|
let workerTitle = "";
|
|
8490
8495
|
let workerPersona = "";
|
|
8491
8496
|
if (workerSlug) {
|
|
@@ -8510,6 +8515,7 @@ var loadJobFromFile = async (ctx, _profile, args) => {
|
|
|
8510
8515
|
ctx.data.workerSlug = workerSlug;
|
|
8511
8516
|
ctx.data.workerTitle = workerTitle;
|
|
8512
8517
|
ctx.data.workerPersona = workerPersona;
|
|
8518
|
+
ctx.data.mentions = mentions;
|
|
8513
8519
|
};
|
|
8514
8520
|
function parseJobFile(raw, slug) {
|
|
8515
8521
|
let stripped = raw;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kody-ade/kody-engine",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.127",
|
|
4
4
|
"description": "kody — autonomous development engine. Single-session Claude Code agent behind a generic executor + declarative executable profiles.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|