ainecto 0.14.0-next.4 → 0.14.0-next.5
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/ainecto.js +5 -1
- package/dist/bin/ainecto.js.map +1 -1
- package/dist/bin/mcp.js +1 -1
- package/package.json +1 -1
package/dist/bin/ainecto.js
CHANGED
|
@@ -5678,7 +5678,7 @@ function legacyRoleInput(flag, envVars = process.env) {
|
|
|
5678
5678
|
|
|
5679
5679
|
// src/core/version.ts
|
|
5680
5680
|
var UNBUNDLED_VERSION = "dev";
|
|
5681
|
-
var CLI_VERSION = true ? "0.14.0-next.
|
|
5681
|
+
var CLI_VERSION = true ? "0.14.0-next.5" : UNBUNDLED_VERSION;
|
|
5682
5682
|
var PACKAGE_NAME = "@ainecto/mcp";
|
|
5683
5683
|
var CLI_USER_AGENT = `${PACKAGE_NAME} ${CLI_VERSION}`;
|
|
5684
5684
|
function bridgePackageSpec(version = CLI_VERSION) {
|
|
@@ -13560,6 +13560,10 @@ function agentPromptText(text, context) {
|
|
|
13560
13560
|
if (d && typeof d.uuid === "string") {
|
|
13561
13561
|
parts.push(`open document \xAB${str(d.title)}\xBB (documentUuid ${d.uuid}${typeof d.type === "string" ? `, ${d.type}` : ""})`);
|
|
13562
13562
|
}
|
|
13563
|
+
const files = Array.isArray(context?.attachments) ? context.attachments.map((f) => str(f?.filename)).filter((name) => name !== "") : [];
|
|
13564
|
+
if (files.length > 0) {
|
|
13565
|
+
parts.push(`attached files ${files.map((name) => `\xAB${name}\xBB`).join(", ")} (names only \u2014 the files are not available on this machine)`);
|
|
13566
|
+
}
|
|
13563
13567
|
if (parts.length === 0) return text;
|
|
13564
13568
|
return `[AiNecto context \u2014 "this project" / "this document" mean these] ${parts.join(" \xB7 ")}
|
|
13565
13569
|
|