palabre 0.7.0 → 0.8.1

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.
@@ -0,0 +1,31 @@
1
+ const TUI_RUN_OVERRIDE_FLAGS = [
2
+ "preset",
3
+ "agent-a",
4
+ "agent-b",
5
+ "agents",
6
+ "model-a",
7
+ "model-b",
8
+ "summary-agent",
9
+ "summary-model",
10
+ "turns",
11
+ "files",
12
+ "context",
13
+ "no-summary",
14
+ "no-early-stop",
15
+ "pull-models",
16
+ "show-prompt",
17
+ "plain",
18
+ "terminal",
19
+ "json"
20
+ ];
21
+ export function clearTuiRunOverrides(flags) {
22
+ for (const flag of TUI_RUN_OVERRIDE_FLAGS) {
23
+ delete flags[flag];
24
+ }
25
+ }
26
+ export function askAgentSeedsForMode(mode, explicitAskAgents, defaultAskAgents) {
27
+ if (mode !== "ask") {
28
+ return [];
29
+ }
30
+ return explicitAskAgents.length > 0 ? explicitAskAgents : defaultAskAgents ?? [];
31
+ }
package/dist/update.js CHANGED
@@ -2,11 +2,13 @@ import { spawn } from "node:child_process";
2
2
  import { access } from "node:fs/promises";
3
3
  import path from "node:path";
4
4
  import { fileURLToPath } from "node:url";
5
+ import { getLatestPackageVersion } from "./version.js";
5
6
  /** Détecte le mode d'installation (source ou package) à partir de la présence d'un dossier `.git`. */
6
7
  export async function getUpdateInfo(version) {
7
8
  const projectRoot = path.resolve(path.dirname(fileURLToPath(import.meta.url)), "..");
8
9
  return {
9
10
  version,
11
+ latestVersion: await getLatestPackageVersion(),
10
12
  projectRoot,
11
13
  sourceCheckout: await exists(path.join(projectRoot, ".git"))
12
14
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "palabre",
3
- "version": "0.7.0",
3
+ "version": "0.8.1",
4
4
  "description": "Orchestrateur de debat entre agents IA locaux, CLIs et Ollama.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -21,6 +21,7 @@
21
21
  "codex",
22
22
  "claude",
23
23
  "opencode",
24
+ "vibe",
24
25
  "debate",
25
26
  "orchestrator"
26
27
  ],
@@ -39,23 +39,6 @@
39
39
  "role": "reviewer",
40
40
  "tier": "primary"
41
41
  },
42
- "gemini": {
43
- "type": "cli",
44
- "command": "gemini",
45
- "args": [
46
- "--output-format",
47
- "text",
48
- "--approval-mode",
49
- "plan",
50
- "--skip-trust",
51
- "--prompt",
52
- "-"
53
- ],
54
- "promptMode": "stdin",
55
- "shell": true,
56
- "role": "reviewer",
57
- "tier": "primary"
58
- },
59
42
  "opencode": {
60
43
  "type": "cli",
61
44
  "command": "opencode",