@venizia/vulcan 0.4.10-2 → 0.4.10-21
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 +30 -23
- package/base/checks/wiki-source-links.ts +17 -1
- package/base/claude/events.json +1 -11
- package/base/claude/settings.json +5 -76
- package/base/extensions/vulcan-guards.ts +81 -18
- package/base/hooks/guard-git.ts +95 -19
- package/base/hooks/guard-outside.ts +163 -43
- package/base/hooks/guard-writes.ts +15 -36
- package/base/hooks/session-start.ts +1 -1
- package/base/make/vulcan.mk +8 -5
- package/base/packs/venizia.md +16 -0
- package/base/references/delegation-brief.md +3 -5
- package/base/references/testing.md +1 -9
- package/base/rules.md +33 -38
- package/base/skills/build-a-feature/SKILL.md +4 -4
- package/base/skills/docs-update/SKILL.md +19 -8
- package/base/skills/fix-a-bug/SKILL.md +4 -2
- package/base/skills/plan-a-change/SKILL.md +1 -1
- package/base/skills/research/SKILL.md +1 -1
- package/base/skills/retro/SKILL.md +2 -2
- package/base/skills/review-a-change/SKILL.md +1 -1
- package/base/skills/visualize-work/SKILL.md +3 -3
- package/base/skills/visualize-work/references/spec.md +6 -3
- package/base/templates/AGENTS.md +9 -7
- package/base/templates/board.html +10 -110
- package/package.json +3 -3
- package/src/agents/atlas-block.ts +8 -31
- package/src/agents/codex-hooks.ts +1 -1
- package/src/agents/generated-block.ts +52 -0
- package/src/agents/hooks-json.ts +22 -3
- package/src/agents/index.ts +2 -0
- package/src/agents/render.ts +15 -2
- package/src/agents/resolve.ts +1 -0
- package/src/agents/rules-block.ts +92 -0
- package/src/board/command.ts +92 -30
- package/src/board/common/constants.ts +26 -0
- package/src/board/common/types.ts +10 -3
- package/src/board/fold.ts +1 -1
- package/src/board/github.ts +1 -2
- package/src/board/gitlab.ts +436 -0
- package/src/board/index.ts +1 -0
- package/src/board/logo.ts +49 -0
- package/src/board/open-file.ts +110 -0
- package/src/board/page.ts +57 -5
- package/src/board/schema.ts +4 -1
- package/src/board/server.ts +87 -3
- package/src/board/settings.ts +21 -24
- package/src/commands/changelog.command.ts +40 -0
- package/src/commands/clean.command.ts +6 -1
- package/src/commands/help.command.ts +2 -63
- package/src/commands/index.ts +6 -1
- package/src/commands/migrate.command.ts +71 -0
- package/src/commands/profile.command.ts +1 -1
- package/src/commands/runners.command.ts +43 -0
- package/src/commands/sync.command.ts +8 -4
- package/src/commands/table.ts +362 -0
- package/src/commit/check.ts +1 -0
- package/src/commit/common/constants.ts +4 -0
- package/src/commit/hook.ts +112 -8
- package/src/common/constants.ts +11 -9
- package/src/common/env-variables.ts +41 -0
- package/src/common/index.ts +1 -0
- package/src/common/layout-folder.ts +3 -4
- package/src/common/record.ts +5 -0
- package/src/config/common/constants.ts +28 -22
- package/src/config/loader.ts +22 -0
- package/src/config/schema.ts +330 -146
- package/src/create/add-app.ts +7 -2
- package/src/create/add-lib.ts +2 -4
- package/src/create/common/constants.ts +5 -3
- package/src/create/preset.ts +1 -0
- package/src/create/scratch.ts +2 -1
- package/src/doctor/checks.ts +277 -448
- package/src/doctor/common/constants.ts +27 -19
- package/src/doctor/private-values.ts +4 -1
- package/src/doctor/runner.ts +5 -12
- package/src/doctor/schema.ts +4 -0
- package/src/events/common/actor-names.ts +12 -0
- package/src/events/common/constants.ts +65 -38
- package/src/events/common/index.ts +1 -0
- package/src/events/hook.ts +5 -56
- package/src/events/text.ts +41 -6
- package/src/hooks/command-view.ts +80 -19
- package/src/hooks/common/constants.ts +26 -17
- package/src/hooks/common/types.ts +13 -24
- package/src/hooks/decision.ts +30 -12
- package/src/hooks/git-queries.ts +113 -0
- package/src/hooks/guard-git.ts +76 -24
- package/src/hooks/guard-outside.ts +334 -311
- package/src/hooks/guard-runner.ts +206 -0
- package/src/hooks/guard-writes.ts +87 -184
- package/src/hooks/hook-input.ts +57 -0
- package/src/hooks/index.ts +3 -6
- package/src/hooks/link-makers.ts +315 -0
- package/src/hooks/package-runners.ts +268 -0
- package/src/hooks/project-guards.ts +81 -44
- package/src/hooks/project-tmp.ts +39 -4
- package/src/hooks/runner-scan.ts +257 -0
- package/src/hooks/script-runners.ts +400 -0
- package/src/hooks/session-digest.ts +27 -117
- package/src/hooks/shell-folders.ts +760 -0
- package/src/hooks/shell-writes.ts +646 -0
- package/src/hooks/shell.ts +1421 -194
- package/src/hooks/subagent-card.ts +2 -2
- package/src/hooks/write-commands.ts +898 -0
- package/src/init/scaffold.ts +2 -3
- package/src/local/auto-clean.ts +2 -1
- package/src/local/browser-socket.ts +33 -0
- package/src/local/clean.ts +37 -6
- package/src/local/constants.ts +15 -1
- package/src/local/index.ts +1 -0
- package/src/local/scan.ts +41 -10
- package/src/manifest/render.ts +84 -30
- package/src/owner/constants.ts +4 -5
- package/src/owner/index.ts +0 -2
- package/src/owner/profile.ts +1 -0
- package/src/owner/schema.ts +51 -27
- package/src/owner/survey.ts +0 -3
- package/src/owner/view.ts +0 -9
- package/src/router.ts +8 -132
- package/src/rules/base.ts +12 -7
- package/src/rules/index.ts +1 -0
- package/src/rules/packs.ts +44 -0
- package/src/runners/check.ts +130 -0
- package/src/skills/frontmatter.ts +1 -0
- package/src/sync/agents-block.ts +104 -0
- package/src/sync/base-rules.ts +3 -3
- package/src/sync/claude-launch.ts +12 -12
- package/src/sync/common/constants.ts +0 -2
- package/src/sync/index.ts +1 -1
- package/src/sync/local-choice.ts +32 -3
- package/src/sync/planner.ts +2 -15
- package/src/sync/settings.ts +0 -17
- package/src/theme/index.ts +1 -0
- package/src/theme/tokens.ts +410 -0
- package/src/ui/prompt.ts +1 -0
- package/src/visualize/architecture.ts +504 -0
- package/src/visualize/assets.ts +41 -30
- package/src/visualize/compare-render.ts +22 -24
- package/src/visualize/constants.ts +27 -0
- package/src/visualize/diagrams.ts +13 -121
- package/src/visualize/kinds-render.ts +2 -2
- package/src/visualize/kinds-schema.ts +49 -0
- package/src/visualize/labels-vi.ts +25 -0
- package/src/visualize/labels.ts +2 -0
- package/src/visualize/layout.ts +415 -66
- package/src/visualize/page.ts +82 -15
- package/src/visualize/render.ts +2 -1
- package/src/visualize/schema.ts +29 -1
- package/src/visualize/sections.ts +78 -9
- package/src/visualize/theme.ts +49 -18
- package/src/wiki/anchors.ts +1 -0
- package/src/wiki/command.ts +10 -3
- package/src/wiki/source-links.ts +57 -18
- package/base/ci-global.json +0 -13
- package/base/claude/remote-hosts.json +0 -15
- package/base/hooks/guard-manifest.ts +0 -27
- package/base/hooks/guard-package.ts +0 -30
- package/base/hooks/guard-remote-hosts.ts +0 -70
- package/base/hooks/guard-scripting.ts +0 -32
- package/base/hooks/post-tool.ts +0 -37
- package/base/hooks/prompt-submit.ts +0 -54
- package/base/hooks/stop.ts +0 -40
- package/base/skills/build-a-feature/evals/evals.json +0 -29
- package/base/skills/docs-update/evals/evals.json +0 -23
- package/base/skills/docs-writing/evals/evals.json +0 -17
- package/base/skills/fix-a-bug/evals/evals.json +0 -17
- package/base/skills/knowledge-sync/SKILL.md +0 -81
- package/base/skills/knowledge-sync/knowledge-sync.workflow.js +0 -291
- package/base/skills/knowledge-sync/references/workflow.md +0 -44
- package/base/skills/plan-a-change/evals/evals.json +0 -47
- package/base/skills/report-back/evals/evals.json +0 -23
- package/base/skills/research/evals/evals.json +0 -17
- package/base/skills/retro/evals/evals.json +0 -17
- package/base/skills/review-a-change/evals/evals.json +0 -17
- package/base/skills/ship/evals/evals.json +0 -23
- package/base/skills/visualize-work/evals/evals.json +0 -17
- package/base/templates/ci/github-actions.yml +0 -75
- package/base/templates/ci/gitlab-ci.yml +0 -52
- package/base/templates/trusted-hosts.local.example +0 -11
- package/src/ci/affected.ts +0 -176
- package/src/ci/command.ts +0 -166
- package/src/ci/common/constants.ts +0 -76
- package/src/ci/common/index.ts +0 -2
- package/src/ci/common/types.ts +0 -37
- package/src/ci/git.ts +0 -72
- package/src/ci/global.ts +0 -48
- package/src/ci/graph.ts +0 -43
- package/src/ci/index.ts +0 -7
- package/src/ci/workspace.ts +0 -119
- package/src/commands/ci.command.ts +0 -4
- package/src/hooks/guard-manifest.ts +0 -109
- package/src/hooks/guard-package.ts +0 -226
- package/src/hooks/guard-scripting.ts +0 -36
- package/src/hooks/host-pattern.ts +0 -17
- package/src/hooks/owner-reply.ts +0 -162
- package/src/hooks/post-tool.ts +0 -138
- package/src/hooks/remote-hosts.ts +0 -1013
- package/src/hooks/trusted-scripts.ts +0 -212
- package/src/owner/shape.ts +0 -496
- package/src/owner/violations.ts +0 -332
- package/src/signals/claims.ts +0 -73
- package/src/signals/classify.ts +0 -137
- package/src/signals/constants.ts +0 -88
- package/src/signals/index.ts +0 -5
- package/src/signals/loop.ts +0 -48
- package/src/signals/state.ts +0 -271
- package/src/sync/atlas-block.ts +0 -56
package/src/create/add-app.ts
CHANGED
|
@@ -108,7 +108,7 @@ const ADD_KIND_ORDER: TAddKind[] = [PackageKinds.APP, LibraryKinds.LIB, LibraryK
|
|
|
108
108
|
const kindCommands = (opts: { presetValue: string }): string[] =>
|
|
109
109
|
ADD_KIND_ORDER.map(
|
|
110
110
|
(kind) =>
|
|
111
|
-
`bun
|
|
111
|
+
`bun node_modules/.bin/vulcan add --preset ${opts.presetValue} ${ADD_KINDS[kind].flag} <name>`,
|
|
112
112
|
);
|
|
113
113
|
|
|
114
114
|
const NO_BACKEND = ':none';
|
|
@@ -153,7 +153,7 @@ const noSharedKindMessage = (opts: {
|
|
|
153
153
|
];
|
|
154
154
|
const commands = known.map(
|
|
155
155
|
(spec) =>
|
|
156
|
-
`bun
|
|
156
|
+
`bun node_modules/.bin/vulcan add --preset ${spec} ${ADD_KINDS[LibraryKinds.SHARED].flag} ${opts.name}`,
|
|
157
157
|
);
|
|
158
158
|
|
|
159
159
|
return `preset ${opts.located.packageName} has no shared kind (it makes: ${kindsOffered({ located: opts.located }).join(' and ')}); ${
|
|
@@ -236,6 +236,11 @@ const usedPorts = (opts: { root: string; packages: IProjectPackage[] }): number[
|
|
|
236
236
|
/** A terminal picks one of the presets the project recorded or an official one, or types another; null when cancelled. */
|
|
237
237
|
const askPreset = async (opts: { cwd: string }): Promise<string | null> => {
|
|
238
238
|
const loaded = await ConfigLoader.load({ root: opts.cwd });
|
|
239
|
+
const note = ConfigLoader.unreadableNote({ loaded });
|
|
240
|
+
|
|
241
|
+
if (note !== undefined) {
|
|
242
|
+
process.stderr.write(`vulcan add: ${note}\n`);
|
|
243
|
+
}
|
|
239
244
|
|
|
240
245
|
return PresetMenu.askSpec({ recorded: loaded.ok ? (loaded.config.presets ?? []) : [] });
|
|
241
246
|
};
|
package/src/create/add-lib.ts
CHANGED
|
@@ -252,11 +252,9 @@ export class LibraryScaffold {
|
|
|
252
252
|
process.stderr.write(`${warning}\n`);
|
|
253
253
|
}
|
|
254
254
|
|
|
255
|
-
// The folder is used all the same; the layout does not list it
|
|
255
|
+
// The folder is used all the same; the layout does not list it.
|
|
256
256
|
if (notRecorded !== undefined && notRecorded !== '') {
|
|
257
|
-
process.stderr.write(
|
|
258
|
-
`note: '${folder}' is not added to layout.shared (${notRecorded}); guard-package does not cover it\n`,
|
|
259
|
-
);
|
|
257
|
+
process.stderr.write(`note: '${folder}' is not added to layout.shared (${notRecorded})\n`);
|
|
260
258
|
}
|
|
261
259
|
|
|
262
260
|
const rows: [string, string][] = [
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { EnvVariables } from '../../common/env-variables.ts';
|
|
2
|
+
|
|
1
3
|
export class AppSides {
|
|
2
4
|
static readonly BACKEND = 'backend';
|
|
3
5
|
static readonly FRONTEND = 'frontend';
|
|
@@ -35,11 +37,11 @@ export class CreateConstants {
|
|
|
35
37
|
];
|
|
36
38
|
static readonly STDIN_DESCRIPTOR = 0;
|
|
37
39
|
/** Tests only: set to `1`, every install, git and check command is printed as skipped instead of run. */
|
|
38
|
-
static readonly NO_INSTALL_ENV =
|
|
40
|
+
static readonly NO_INSTALL_ENV = EnvVariables.VULCAN_NO_INSTALL;
|
|
39
41
|
/** Tests only: a path that stands in for the `bun` executable, so a test fakes success or failure. */
|
|
40
|
-
static readonly BUN_ENV =
|
|
42
|
+
static readonly BUN_ENV = EnvVariables.VULCAN_BUN;
|
|
41
43
|
/** Tests only: a path that stands in for the `git` executable. */
|
|
42
|
-
static readonly GIT_ENV =
|
|
44
|
+
static readonly GIT_ENV = EnvVariables.VULCAN_GIT;
|
|
43
45
|
static readonly APPS_BLOCK_START =
|
|
44
46
|
'// vulcan:apps:start - written by vulcan init and add; edit outside this block';
|
|
45
47
|
static readonly APPS_BLOCK_END = '// vulcan:apps:end';
|
package/src/create/preset.ts
CHANGED
|
@@ -79,6 +79,7 @@ const resolveInside = (opts: { root: string; from: string; path: string }): stri
|
|
|
79
79
|
return resolved;
|
|
80
80
|
};
|
|
81
81
|
|
|
82
|
+
/** Locates a preset (name, path or spec), reads its files and copies them with names filled in; used by `vulcan init` and `vulcan add`. */
|
|
82
83
|
export class Preset {
|
|
83
84
|
/** Text gets its tokens replaced; anything else is copied as it is. */
|
|
84
85
|
private static substituteTokens(opts: {
|
package/src/create/scratch.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ProjectTmp } from '../hooks/project-tmp.ts';
|
|
1
2
|
import { mkdirSync, mkdtempSync, rmdirSync, rmSync, writeFileSync } from 'node:fs';
|
|
2
3
|
import { join } from 'node:path';
|
|
3
4
|
import { ProjectLayout } from '../common/index.ts';
|
|
@@ -47,7 +48,7 @@ export class PresetScratch {
|
|
|
47
48
|
run: (scratch: string) => Promise<TResult>;
|
|
48
49
|
}): Promise<TResult> {
|
|
49
50
|
const local = join(opts.root, ProjectLayout.LOCAL_DIRECTORY);
|
|
50
|
-
const parent =
|
|
51
|
+
const parent = ProjectTmp.projectOf({ root: opts.root });
|
|
51
52
|
|
|
52
53
|
mkdirSync(parent, { recursive: true });
|
|
53
54
|
|