@ignitionai/cogitator 0.2.0 → 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 +25 -21
- package/dist/src/file-changes.js +1 -1
- package/dist/src/history.js +3 -3
- package/package.json +2 -2
- 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
|
@@ -1,18 +1,22 @@
|
|
|
1
1
|
<div align="center">
|
|
2
2
|
|
|
3
|
-
<img src="https://raw.githubusercontent.com/IgnitionAI/cogitator/dev/web/public/icon.png" width="120" alt="Cogitator —
|
|
3
|
+
<img src="https://raw.githubusercontent.com/IgnitionAI/cogitator/dev/web/public/icon.png" width="120" alt="Cogitator — nebula gear logo" />
|
|
4
4
|
|
|
5
5
|
# Cogitator
|
|
6
6
|
|
|
7
|
-
**
|
|
7
|
+
**A web control panel for [pi](https://pi.dev)** — composable agents, workspaces, GitHub-native kanban, and scheduled tasks.
|
|
8
8
|
|
|
9
9
|
[](https://www.npmjs.com/package/@ignitionai/cogitator)
|
|
10
10
|
[](https://pi.dev/packages)
|
|
11
|
-
[](
|
|
11
|
+
[](#license)
|
|
12
12
|
|
|
13
13
|
</div>
|
|
14
14
|
|
|
15
|
-
Cogitator
|
|
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
|
+
|
|
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.
|
|
16
20
|
|
|
17
21
|
## Installation
|
|
18
22
|
|
|
@@ -20,35 +24,35 @@ Cogitator orchestre tes processus pi depuis un navigateur : tu composes des agen
|
|
|
20
24
|
pi install npm:@ignitionai/cogitator
|
|
21
25
|
```
|
|
22
26
|
|
|
23
|
-
|
|
27
|
+
Then, in pi:
|
|
24
28
|
|
|
25
29
|
```text
|
|
26
|
-
/cogitator #
|
|
30
|
+
/cogitator # starts the detached server and opens http://127.0.0.1:5320
|
|
27
31
|
```
|
|
28
32
|
|
|
29
|
-
|
|
33
|
+
Or run it standalone: `npx @ignitionai/cogitator` (Node.js ≥ 22.19.0).
|
|
30
34
|
|
|
31
|
-
##
|
|
35
|
+
## Features
|
|
32
36
|
|
|
33
|
-
- **
|
|
34
|
-
- **
|
|
35
|
-
- **
|
|
36
|
-
- **
|
|
37
|
-
- **
|
|
38
|
-
- **Conversations** —
|
|
39
|
-
- **
|
|
40
|
-
- **
|
|
41
|
-
- **Providers
|
|
37
|
+
- **Composable agents** — each preset combines a provider, model, thinking level, explicit skill set, MCP servers, scope prompt, and subagents. These become native pi flags when the process starts (`--model id:thinking`, `--no-skills --skill …`, `--append-system-prompt`).
|
|
38
|
+
- **Three built-in agents** — Majordome (the default operator), Chef de Projet (project management, board dispatch, and the `to-tickets`/`use-delegate` methods), and Architecte de Skills (`SKILL.md` authoring). Includes their skills and the Cogitator MCP server with 28 tools.
|
|
39
|
+
- **Project workspaces** — a dedicated page for each directory, with a board, file activity (+/−), chronological feed, read-only file tree, team overview, project manager chat, and one-click project setup.
|
|
40
|
+
- **GitHub-native kanban** — each card is a GitHub issue, with `status:`/`priority:` labels, native blocking relationships, and writes through `gh`. No synchronization layer: GitHub remains the single source of truth.
|
|
41
|
+
- **Agent dispatch** — use “Lancer l’agent” (launch agent) on a ticket to start a conversation in its workspace, link the card to its activity, and move it to in progress.
|
|
42
|
+
- **Conversations** — SSE streaming with reconnection recovery, copyable code, structured tool output and diffs, pasted images, history, and skills invoked with `/skill:name`.
|
|
43
|
+
- **Automatic interactive UI** — agents choose between text, forms, choices, checklists, and tables as needed, in both standalone and workspace conversations. Responses are submitted explicitly and saved in pi JSONL transcripts. Generated HTML and JavaScript are never executed. See the [contract and limitations](https://github.com/IgnitionAI/cogitator/blob/dev/docs/chat-generative-ui.md).
|
|
44
|
+
- **Scheduled tasks** — cron scheduling with concurrent-run protection, catch-up behavior, run history, and notifications.
|
|
45
|
+
- **Providers and skills** — inspect pi configuration, check authentication with `pi auth check`, use atomic writes with backups, and import skills from GitHub, local directories, or npm commands.
|
|
42
46
|
|
|
43
47
|
## Architecture
|
|
44
48
|
|
|
45
|
-
|
|
49
|
+
Specifications live in [`docs/`](https://github.com/IgnitionAI/cogitator/tree/dev/docs): [domain model](https://github.com/IgnitionAI/cogitator/blob/dev/docs/architecture/domain-model.md), [blueprint](https://github.com/IgnitionAI/cogitator/blob/dev/docs/architecture/blueprint.md), [API contract](https://github.com/IgnitionAI/cogitator/blob/dev/docs/architecture/api-contract.md), and [architecture decisions](https://github.com/IgnitionAI/cogitator/tree/dev/docs/context/decisions/). They cover apply-on-spawn configuration, MCP registration through `registerMcpServer`, and the GitHub-backed board's single-writer model. The project uses strict TypeScript, Zod validation at boundaries, and 92 tests.
|
|
46
50
|
|
|
47
51
|
```text
|
|
48
|
-
Browser (React) → REST + SSE →
|
|
49
|
-
|
|
52
|
+
Browser (React) → REST + SSE → Node server → pool of `pi --mode rpc` processes
|
|
53
|
+
↕ SQLite in ~/.cogitator + native pi files
|
|
50
54
|
```
|
|
51
55
|
|
|
52
|
-
##
|
|
56
|
+
## License
|
|
53
57
|
|
|
54
58
|
MIT — © IgnitionAI
|
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
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ignitionai/cogitator",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.3.0",
|
|
4
|
+
"description": "A web control panel for pi: composable agents, workspaces, interactive conversations, and scheduled tasks. A pi package.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"pi-package",
|