super-backlog 0.9.0 → 1.0.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 +5 -5
- package/dist/cli.js +32 -13
- package/dist/commands/backlog-alias.js +21 -0
- package/dist/commands/dashboard.js +36 -35
- package/dist/commands/init.js +1 -7
- package/dist/commands/serve.js +3 -0
- package/dist/commands/update.js +1 -14
- package/dist/dashboard/data.js +26 -2
- package/dist/dashboard/server.js +182 -19
- package/dist/init/execute.js +1 -32
- package/dist/init/planner.js +0 -4
- package/dist/templates/dashboard.html +214 -231
- package/package.json +1 -1
- package/dist/dashboard/regen.js +0 -28
package/dist/init/execute.js
CHANGED
|
@@ -4,7 +4,7 @@ import { dirname, basename, join, resolve } from 'node:path';
|
|
|
4
4
|
import { fileURLToPath } from 'node:url';
|
|
5
5
|
import process from 'node:process';
|
|
6
6
|
import { atomicWrite } from '../lib/atomic.js';
|
|
7
|
-
import { installGuardHook
|
|
7
|
+
import { installGuardHook } from '../lib/hooks.js';
|
|
8
8
|
import { injectBlock } from '../lib/markers.js';
|
|
9
9
|
import { applyPluginEntry } from '../lib/opencode.js';
|
|
10
10
|
import { OwnershipError, renderSkill } from '../lib/ownership.js';
|
|
@@ -150,22 +150,6 @@ function applyCopySkills(cwd, version) {
|
|
|
150
150
|
}
|
|
151
151
|
return true;
|
|
152
152
|
}
|
|
153
|
-
async function applyGenerateDashboard(cwd, warnings) {
|
|
154
|
-
try {
|
|
155
|
-
// Non-literal specifier: the dashboard module lands in a later batch; a missing
|
|
156
|
-
// module must degrade to a warning here, never crash init.
|
|
157
|
-
const specifier = '../commands/dashboard.js';
|
|
158
|
-
const mod = (await import(specifier));
|
|
159
|
-
if (typeof mod.generateDashboard !== 'function') {
|
|
160
|
-
throw new Error('dashboard module does not export generateDashboard');
|
|
161
|
-
}
|
|
162
|
-
await mod.generateDashboard(cwd, { serve: false });
|
|
163
|
-
}
|
|
164
|
-
catch (err) {
|
|
165
|
-
warnings.push(`dashboard generation skipped (${err instanceof Error ? err.message : String(err)})`);
|
|
166
|
-
}
|
|
167
|
-
return true;
|
|
168
|
-
}
|
|
169
153
|
export async function executeActions(cwd, actions, ctx) {
|
|
170
154
|
const warnings = [];
|
|
171
155
|
let applied = 0;
|
|
@@ -214,21 +198,6 @@ export async function executeActions(cwd, actions, ctx) {
|
|
|
214
198
|
}
|
|
215
199
|
break;
|
|
216
200
|
}
|
|
217
|
-
case 'install-refresh-hook': {
|
|
218
|
-
const gitDir = findGitDir(cwd);
|
|
219
|
-
if (!gitDir) {
|
|
220
|
-
warnings.push('no .git directory found - dashboard refresh hook not installed');
|
|
221
|
-
skipped++;
|
|
222
|
-
}
|
|
223
|
-
else {
|
|
224
|
-
installRefreshHook(gitDir, ctx.version);
|
|
225
|
-
applied++;
|
|
226
|
-
}
|
|
227
|
-
break;
|
|
228
|
-
}
|
|
229
|
-
case 'generate-dashboard':
|
|
230
|
-
(await applyGenerateDashboard(cwd, warnings)) ? applied++ : skipped++;
|
|
231
|
-
break;
|
|
232
201
|
case 'install-model-router': {
|
|
233
202
|
const { installOpenCodeAdapter } = await import('../models/opencode.js');
|
|
234
203
|
const { installClaudeAdapter } = await import('../models/claude.js');
|
package/dist/init/planner.js
CHANGED
|
@@ -58,10 +58,6 @@ export function planInit(state, opts, _version) {
|
|
|
58
58
|
actions.push({ kind: 'write-claude-pointer' });
|
|
59
59
|
if (opts.guard)
|
|
60
60
|
actions.push({ kind: 'install-guard-hook' });
|
|
61
|
-
if (opts.refreshHook ?? true)
|
|
62
|
-
actions.push({ kind: 'install-refresh-hook' });
|
|
63
|
-
if (opts.dashboard)
|
|
64
|
-
actions.push({ kind: 'generate-dashboard' });
|
|
65
61
|
if (opts.models === true)
|
|
66
62
|
actions.push({ kind: 'install-model-router', enabled: true });
|
|
67
63
|
return { actions, warnings };
|