@galda/cli 0.10.108 → 0.10.109
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/app/index.html +34 -4
- package/engine/lib.mjs +1 -1
- package/package.json +1 -1
package/app/index.html
CHANGED
|
@@ -3498,7 +3498,7 @@ const savedTheme = (() => {
|
|
|
3498
3498
|
if (v !== s) localStorage.setItem('theme', v);
|
|
3499
3499
|
return v;
|
|
3500
3500
|
})();
|
|
3501
|
-
const state = { repos: null, repoHome: '', /* GET /api/repos — the folders a project can point at (Context Bar) */ projects: [], goals: [], tasks: [], act: {}, actAt: {}, todos: {}, chatTurns: {}, active: localStorage.getItem('sel:project') || 'default', editing: null, attach: [], connectCommand: '', models: ['sonnet'], agentModels: null, agentEfforts: null, agents: ['claude-code', 'codex'], auth: null, expanded: new Set(), openThreads: new Set(), queueOrder: {}, externalActivity: [], selectedGoal: null, composerDetachedGoal: null, workflowColumns: {}, wfDraft: null, reviewDefinitions: {}, rdDraft: null, runningCounts: {}, parallelLimits: null, connectedApp: localStorage.getItem('sel:agent') || 'claude-code', reviewOpenGoal: null, reviewApprovals: {}, goalDetailOpen: null, qreplyOpen: new Set(), logCollapsed: localStorage.getItem('logCollapsed') !== '0', logEntries: [], layout: localStorage.getItem('layout') || 'flagship', theme: savedTheme, boardskin: localStorage.getItem('boardskin') || 'auto', summaryPattern: Number(localStorage.getItem('summaryPattern')) || 3, peraSpot: 0, skill: null, skillsCache: null, projectRules: {}, rulesOpen: false,
|
|
3501
|
+
const state = { repos: null, repoHome: '', /* GET /api/repos — the folders a project can point at (Context Bar) */ projects: [], goals: [], tasks: [], act: {}, actAt: {}, todos: {}, chatTurns: {}, active: localStorage.getItem('sel:project') || 'default', editing: null, attach: [], connectCommand: '', models: ['sonnet'], agentModels: null, agentEfforts: null, agents: ['claude-code', 'codex'], auth: null, expanded: new Set(), openThreads: new Set(), queueOrder: {}, externalActivity: [], selectedGoal: null, composerDetachedGoal: null, workflowColumns: {}, wfDraft: null, reviewDefinitions: {}, rdDraft: null, runningCounts: {}, parallelLimits: null, hostReadiness: [], connectedApp: localStorage.getItem('sel:agent') || 'claude-code', reviewOpenGoal: null, reviewApprovals: {}, goalDetailOpen: null, qreplyOpen: new Set(), logCollapsed: localStorage.getItem('logCollapsed') !== '0', logEntries: [], layout: localStorage.getItem('layout') || 'flagship', theme: savedTheme, boardskin: localStorage.getItem('boardskin') || 'auto', summaryPattern: Number(localStorage.getItem('summaryPattern')) || 3, peraSpot: 0, skill: null, skillsCache: null, projectRules: {}, rulesOpen: false,
|
|
3502
3502
|
// per-message send overrides set via slash-commands (reset after each send,
|
|
3503
3503
|
// except model which is sticky in localStorage). palette = open command list.
|
|
3504
3504
|
// Scoped per project (msgByProject) so a skill/mode picked in one project can't leak
|
|
@@ -8790,6 +8790,7 @@ async function refresh(){
|
|
|
8790
8790
|
}
|
|
8791
8791
|
state.connectCommand = s.connectCommand ?? ''; state.models = s.models ?? ['sonnet']; state.agentModels = s.agentModels ?? null; state.agentEfforts = s.agentEfforts ?? null; state.agents = s.agents ?? ['claude-code', 'codex']; state.uiVersion = s.uiVersion;
|
|
8792
8792
|
state.billing = s.billing ?? { licensed: false, email: null };
|
|
8793
|
+
state.hostReadiness = s.hostReadiness ?? [];
|
|
8793
8794
|
renderAppSelect(); // picker follows the server's installed-agent set; may correct a stale connectedApp
|
|
8794
8795
|
renderAuthBanner(s.auth); // only the selected worker's auth can raise a banner
|
|
8795
8796
|
setAgentModel(state.connectedApp);
|
|
@@ -9553,7 +9554,7 @@ function closeSummaryPera(){ $('summaryOverlay').classList.remove('show'); }
|
|
|
9553
9554
|
// 4 archived / 5 reverted — session-local; the server round-trip is what
|
|
9554
9555
|
// settles it (see saSync's "returned to review" reset).
|
|
9555
9556
|
// ============================================================================
|
|
9556
|
-
const SA = { open: false, items: [], diffs: {}, actLog: {}, msgs: {}, convOpen: new Set(), shotBox: {}, detOpen: new Set(), diffOpen: new Set(), attachments: {}, focusGid: null, focusScrolled: false, focusTimer: null, cur: null, solo: null, lastMarkup: null };
|
|
9557
|
+
const SA = { open: false, items: [], diffs: {}, actLog: {}, msgs: {}, msgCounts: {}, convOpen: new Set(), shotBox: {}, detOpen: new Set(), diffOpen: new Set(), attachments: {}, focusGid: null, focusScrolled: false, focusTimer: null, cur: null, solo: null, lastMarkup: null };
|
|
9557
9558
|
// Same convention as the existing ?dev=1 devbar flag — off unless someone opts in by URL.
|
|
9558
9559
|
const SA_DEV = new URLSearchParams(location.search).get('dev') === '1';
|
|
9559
9560
|
// task-971: 白黒(モノクロ)版のレールを ?railmono=1 で見比べられるようにする。
|
|
@@ -10118,7 +10119,13 @@ function saReqStackRows(it, attemptEvidence){
|
|
|
10118
10119
|
const gk = it.goalId;
|
|
10119
10120
|
const reqMsgs = SA.msgs[gk];
|
|
10120
10121
|
const reqAsks = Array.isArray(reqMsgs) ? reqMsgs.filter((m) => m?.from === 'you' && String(m.text || '').trim()) : [];
|
|
10121
|
-
|
|
10122
|
+
// The frozen attempt ledger is task-backed and available on first paint. Use it
|
|
10123
|
+
// before the asynchronously loaded conversation so Request #2/#3 cannot vanish
|
|
10124
|
+
// because the browser still holds an older messages cache.
|
|
10125
|
+
const ledgerAsks = Array.isArray(it.attempt?.requirements)
|
|
10126
|
+
? it.attempt.requirements.filter((r) => ['initial', 'reply'].includes(r?.kind) && String(r.text || '').trim())
|
|
10127
|
+
: [];
|
|
10128
|
+
const reqItems = ledgerAsks.length ? ledgerAsks : reqAsks.length ? reqAsks : (it.goalText ? [{ text: it.goalText }] : []);
|
|
10122
10129
|
const row = (m, idx) => {
|
|
10123
10130
|
const text = String(m.text || '').trim();
|
|
10124
10131
|
const isLatest = idx === reqItems.length - 1;
|
|
@@ -10583,8 +10590,11 @@ async function saLoadActivityLog(taskId){
|
|
|
10583
10590
|
// request writes an honest line instead of an empty box — the same rule the
|
|
10584
10591
|
// implementation log follows.
|
|
10585
10592
|
async function saLoadMessages(goalId){
|
|
10586
|
-
if (!Number.isFinite(goalId)
|
|
10593
|
+
if (!Number.isFinite(goalId)) return;
|
|
10594
|
+
const expectedCount = Number(SA.items.find((x) => x.goalId === goalId)?.messageCount) || 0;
|
|
10595
|
+
if (SA.msgs[goalId] !== undefined && SA.msgCounts[goalId] === expectedCount) return;
|
|
10587
10596
|
SA.msgs[goalId] = null; // in flight — a second toggle must not re-fetch
|
|
10597
|
+
SA.msgCounts[goalId] = expectedCount;
|
|
10588
10598
|
let msgs = [];
|
|
10589
10599
|
try {
|
|
10590
10600
|
const r = await fetch(withKey(`/api/goals/${goalId}/messages`));
|
|
@@ -12540,6 +12550,7 @@ function gearSetHTML(){
|
|
|
12540
12550
|
${billingRow}
|
|
12541
12551
|
${stability}
|
|
12542
12552
|
${gearRulesHTML()}
|
|
12553
|
+
${hostReadinessRow()}
|
|
12543
12554
|
<div class="srow dis"><div class="sl">Data folder<span class="sd">Runs are stored in the engine's chat-runs folder on the host</span></div></div>`;
|
|
12544
12555
|
}
|
|
12545
12556
|
async function loadStability(){
|
|
@@ -12552,6 +12563,25 @@ async function loadStability(){
|
|
|
12552
12563
|
// does NOT own these rules, it only surfaces them (editing is done in an editor or
|
|
12553
12564
|
// by asking the AI in chat). §3 段階開示 — when the project has no such file the row
|
|
12554
12565
|
// is absent entirely (never an empty container; the "ask once" flow is §1.5b).
|
|
12566
|
+
// Two capabilities degrade silently depending on the machine: without Chrome
|
|
12567
|
+
// nothing can screenshot or verify in a browser, and without a native picker
|
|
12568
|
+
// "Open folder…" cannot open Finder. The server states them in /api/state
|
|
12569
|
+
// (hostReadiness); this is where a person can read them before spending an hour
|
|
12570
|
+
// treating the absence as a bug.
|
|
12571
|
+
//
|
|
12572
|
+
// Same row shape as Data folder — a host fact, no chip, nothing to press (§SETTINGS
|
|
12573
|
+
// 行=ラベル+説明). When everything is available it stays dimmed like its neighbour;
|
|
12574
|
+
// when something is missing the row is NOT dimmed, because a dimmed row at .38 is
|
|
12575
|
+
// exactly the thing nobody reads. No colour and no fill either way (§1.5-8: an
|
|
12576
|
+
// exception is a small inline element, never a painted surface) — this is a
|
|
12577
|
+
// capability note, not an error.
|
|
12578
|
+
function hostReadinessRow(){
|
|
12579
|
+
const checks = state.hostReadiness || [];
|
|
12580
|
+
if (!checks.length) return ''; // nothing measured → no row (§1.5-3)
|
|
12581
|
+
const missing = checks.filter((c) => !c.ok);
|
|
12582
|
+
const detail = (missing.length ? missing : checks).map((c) => c.detail).join(' · ');
|
|
12583
|
+
return `<div class="srow${missing.length ? '' : ' dis'}"><div class="sl">This machine<span class="sd">${esc(detail)}</span></div></div>`;
|
|
12584
|
+
}
|
|
12555
12585
|
function gearRulesHTML(){
|
|
12556
12586
|
const r = state.projectRules[state.active];
|
|
12557
12587
|
if (!r || !r.files || !r.files.length) return '';
|
package/engine/lib.mjs
CHANGED
|
@@ -1174,7 +1174,7 @@ export function buildReviewAttemptLedger({ goal = null, tasks = [] } = {}) {
|
|
|
1174
1174
|
const outcome = [...settled].sort((a, b) => time(b) - time(a))[0] ?? null;
|
|
1175
1175
|
const requirements = [
|
|
1176
1176
|
goal?.text ? { id: `goal-${goal.id}-initial`, kind: 'initial', text: String(goal.text), at: goal.createdAt ?? null } : null,
|
|
1177
|
-
...own.filter((task) => task?.reply && task?.detail).map((task) => ({
|
|
1177
|
+
...own.filter((task) => task?.reply && task?.detail && (!task.replyFrom || task.replyFrom === 'you')).map((task) => ({
|
|
1178
1178
|
id: task.attemptId || `task-${task.id}`,
|
|
1179
1179
|
kind: 'reply', text: String(task.detail), at: task.createdAt ?? null,
|
|
1180
1180
|
})),
|
package/package.json
CHANGED