@ignitionai/cogitator 0.2.1 → 0.3.0
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 +3 -1
- package/dist/src/file-changes.js +1 -1
- package/dist/src/history.js +3 -3
- package/package.json +1 -1
- package/web/dist/assets/index-CRpgp6fH.js +83 -0
- package/web/dist/assets/index-DeR31w99.css +1 -0
- package/web/dist/index.html +2 -2
- package/web/dist/assets/index-2i_5DnXg.js +0 -80
- package/web/dist/assets/index-BjIxsyOx.css +0 -1
package/README.md
CHANGED
|
@@ -14,7 +14,9 @@
|
|
|
14
14
|
|
|
15
15
|
Cogitator lets you orchestrate pi processes from your browser: compose agents from a provider, model, thinking level, skills, MCP servers, and subagents; manage project workspaces; and dispatch work through a kanban board backed by **GitHub Issues**. Track the work through modified files, diffs, and a chronological activity feed.
|
|
16
16
|
|
|
17
|
-
The application
|
|
17
|
+
The entire application interface is available in **English and French**. Use the **Language / Langue** selector in the sidebar (inside the menu on mobile). The first visit follows the browser’s supported language preference, falling back to English; your choice is remembered locally and updates open screens without losing drafts. Dates and numbers follow the selected language, without changing the scheduling timezone.
|
|
18
|
+
|
|
19
|
+
User content, agent responses, editable agent presets, code, files, and technical identifiers are preserved as authored. Cogitator’s controls and diagnostic explanations are translated; external diagnostic details remain available in their original form. The documentation is in English.
|
|
18
20
|
|
|
19
21
|
## Installation
|
|
20
22
|
|
package/dist/src/file-changes.js
CHANGED
|
@@ -5,7 +5,7 @@ const FILE_EVENTS_LINES_SCAN = 3000;
|
|
|
5
5
|
/** Une opération edit/write reconnue par ses noms d'outils pi. */
|
|
6
6
|
const FILE_TOOLS = new Set(["edit", "write"]);
|
|
7
7
|
function cap(s) {
|
|
8
|
-
return s.length > TEXT_CAP ? s.slice(0, TEXT_CAP) + "\n…
|
|
8
|
+
return s.length > TEXT_CAP ? s.slice(0, TEXT_CAP) + "\n…" : s;
|
|
9
9
|
}
|
|
10
10
|
function countLines(s) {
|
|
11
11
|
if (!s)
|
package/dist/src/history.js
CHANGED
|
@@ -13,7 +13,7 @@ function extractText(content) {
|
|
|
13
13
|
function prettyArgs(args) {
|
|
14
14
|
try {
|
|
15
15
|
const s = typeof args === "string" ? args : JSON.stringify(args, null, 2);
|
|
16
|
-
return s.length > RESULT_CAP ? s.slice(0, RESULT_CAP) + "\n…
|
|
16
|
+
return s.length > RESULT_CAP ? s.slice(0, RESULT_CAP) + "\n…" : s;
|
|
17
17
|
}
|
|
18
18
|
catch {
|
|
19
19
|
return String(args);
|
|
@@ -58,7 +58,7 @@ export function readEntries(sessionFile, limit = 300) {
|
|
|
58
58
|
out.push({
|
|
59
59
|
type: "tool",
|
|
60
60
|
id,
|
|
61
|
-
name: typeof block.name === "string" ? block.name : "
|
|
61
|
+
name: typeof block.name === "string" ? block.name : "",
|
|
62
62
|
args: prettyArgs(block.arguments),
|
|
63
63
|
});
|
|
64
64
|
}
|
|
@@ -70,7 +70,7 @@ export function readEntries(sessionFile, limit = 300) {
|
|
|
70
70
|
const callId = typeof msg.toolCallId === "string" ? msg.toolCallId : undefined;
|
|
71
71
|
const index = callId !== undefined ? pendingTools.get(callId) : undefined;
|
|
72
72
|
const text = extractText(content);
|
|
73
|
-
const capped = text.length > RESULT_CAP ? text.slice(0, RESULT_CAP) + "\n…
|
|
73
|
+
const capped = text.length > RESULT_CAP ? text.slice(0, RESULT_CAP) + "\n…" : text;
|
|
74
74
|
if (index !== undefined && out[index]?.type === "tool") {
|
|
75
75
|
const tool = out[index];
|
|
76
76
|
tool.result = capped;
|
package/package.json
CHANGED