rvlib-shipkit 2.16.0 → 2.17.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/CHANGELOG.md +11 -0
- package/package.json +1 -1
- package/src/assets/kit-config.ts +19 -1
- package/src/assets/run-assets.ts +18 -0
- package/src/cli/cmd_Review.ts +22 -7
- package/src/cli/cmd_Secret.ts +127 -0
- package/src/cli/cmd_Wiki.ts +4 -4
- package/src/cli/family-pages.ts +1 -0
- package/src/cli/registry.ts +4 -0
- package/src/core/scope.ts +42 -0
- package/src/repo-config.ts +3 -0
- package/src/review/auto.ts +7 -2
- package/src/review/cells.ts +1 -1
- package/src/review/format.ts +2 -2
- package/src/review/model.ts +46 -13
- package/src/review/previews.ts +1 -1
- package/src/review/routes.ts +11 -0
- package/src/review/store.ts +18 -10
- package/src/secrets/list.ts +40 -0
- package/src/serve/hub-app/review/review-kit.ts +4 -0
- package/src/serve/hub-app/review/review-st.ts +40 -3
- package/src/serve/hub-app/review/review-views.tsx +145 -64
- package/src/serve/hub-app/review/thread-st.ts +76 -16
- package/src/serve/hub-app/review.css +17 -2
- package/src/shipkit.ts +1 -1
- package/src/wiki/run-wiki.ts +13 -3
package/src/wiki/run-wiki.ts
CHANGED
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
// md-wiki graph server + link lint (folded in from the standalone mdwiki
|
|
2
2
|
// lib; that npm package is frozen). Plain modules behind cmd_Wiki —
|
|
3
3
|
// clipanion owns the option parsing.
|
|
4
|
-
import {
|
|
4
|
+
import { existsSync } from 'fs'
|
|
5
|
+
import { basename, join, relative, resolve } from 'path'
|
|
6
|
+
import { agentDirAt } from '../core/agent-dir-at.ts'
|
|
5
7
|
import { lintMd } from './lint-md.ts'
|
|
6
8
|
import { scanMdGraph } from './scan-md.ts'
|
|
7
9
|
import { serveMdGraph } from './serve-graph.ts'
|
|
8
10
|
|
|
9
11
|
export type WikiScanOpts = {
|
|
10
|
-
|
|
12
|
+
/** default: the repo's wiki, as the hub mounts it (`wiki/`, else the agent folder, else the cwd) */
|
|
13
|
+
root?: string
|
|
11
14
|
index?: string
|
|
12
15
|
skip?: string
|
|
13
16
|
/** where the verdict goes. The command passes its own stream, so the
|
|
@@ -16,8 +19,15 @@ export type WikiScanOpts = {
|
|
|
16
19
|
print?: (line: string) => void
|
|
17
20
|
}
|
|
18
21
|
|
|
22
|
+
// a `→ <path>` ref is relative to the wiki folder, so a lint rooted above it reports every ref as dangling
|
|
23
|
+
export function defaultWikiRoot(cwd: string): string {
|
|
24
|
+
if (existsSync(join(cwd, 'wiki'))) return 'wiki'
|
|
25
|
+
const agent = agentDirAt(cwd)
|
|
26
|
+
return existsSync(join(cwd, agent)) ? agent : '.'
|
|
27
|
+
}
|
|
28
|
+
|
|
19
29
|
const scanConfig = (o: WikiScanOpts): { root: string; index?: string; skipDirs?: string[] } => ({
|
|
20
|
-
root: resolve(process.cwd(), o.root),
|
|
30
|
+
root: resolve(process.cwd(), o.root ?? defaultWikiRoot(process.cwd())),
|
|
21
31
|
index: o.index,
|
|
22
32
|
skipDirs: o.skip?.split(',').filter(Boolean),
|
|
23
33
|
})
|