@visulima/vis 1.0.0-alpha.2 → 1.0.0-alpha.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/CHANGELOG.md +840 -14
- package/LICENSE.md +7667 -0
- package/README.md +322 -19
- package/dist/bin.js +1 -146
- package/dist/config/index.d.ts +2795 -0
- package/dist/config/index.js +1 -0
- package/dist/generate/index.d.ts +157 -0
- package/dist/generate/index.js +1 -0
- package/dist/packem_chunks/bin.js +1295 -0
- package/dist/packem_chunks/config.js +19 -0
- package/dist/packem_chunks/doctor-probe.js +2 -0
- package/dist/packem_chunks/fix.js +11 -0
- package/dist/packem_chunks/handler.js +1 -0
- package/dist/packem_chunks/handler10.js +1 -0
- package/dist/packem_chunks/handler11.js +5 -0
- package/dist/packem_chunks/handler12.js +1 -0
- package/dist/packem_chunks/handler13.js +27 -0
- package/dist/packem_chunks/handler14.js +5 -0
- package/dist/packem_chunks/handler15.js +1 -0
- package/dist/packem_chunks/handler16.js +1 -0
- package/dist/packem_chunks/handler17.js +1 -0
- package/dist/packem_chunks/handler18.js +1 -0
- package/dist/packem_chunks/handler19.js +1 -0
- package/dist/packem_chunks/handler2.js +2 -0
- package/dist/packem_chunks/handler20.js +5 -0
- package/dist/packem_chunks/handler21.js +2 -0
- package/dist/packem_chunks/handler22.js +2 -0
- package/dist/packem_chunks/handler23.js +18 -0
- package/dist/packem_chunks/handler24.js +1 -0
- package/dist/packem_chunks/handler25.js +1 -0
- package/dist/packem_chunks/handler26.js +5 -0
- package/dist/packem_chunks/handler27.js +1 -0
- package/dist/packem_chunks/handler28.js +3 -0
- package/dist/packem_chunks/handler29.js +1 -0
- package/dist/packem_chunks/handler3.js +4 -0
- package/dist/packem_chunks/handler30.js +7 -0
- package/dist/packem_chunks/handler31.js +33 -0
- package/dist/packem_chunks/handler32.js +3 -0
- package/dist/packem_chunks/handler33.js +1 -0
- package/dist/packem_chunks/handler34.js +26 -0
- package/dist/packem_chunks/handler35.js +3 -0
- package/dist/packem_chunks/handler36.js +7 -0
- package/dist/packem_chunks/handler37.js +22 -0
- package/dist/packem_chunks/handler38.js +428 -0
- package/dist/packem_chunks/handler39.js +6 -0
- package/dist/packem_chunks/handler4.js +8 -0
- package/dist/packem_chunks/handler40.js +24 -0
- package/dist/packem_chunks/handler41.js +10 -0
- package/dist/packem_chunks/handler42.js +153 -0
- package/dist/packem_chunks/handler43.js +25 -0
- package/dist/packem_chunks/handler44.js +24 -0
- package/dist/packem_chunks/handler45.js +213 -0
- package/dist/packem_chunks/handler46.js +3 -0
- package/dist/packem_chunks/handler47.js +27 -0
- package/dist/packem_chunks/handler48.js +167 -0
- package/dist/packem_chunks/handler49.js +34 -0
- package/dist/packem_chunks/handler5.js +1 -0
- package/dist/packem_chunks/handler6.js +1 -0
- package/dist/packem_chunks/handler7.js +1 -0
- package/dist/packem_chunks/handler8.js +1 -0
- package/dist/packem_chunks/handler9.js +2 -0
- package/dist/packem_chunks/heal-accept.js +10 -0
- package/dist/packem_chunks/heal.js +14 -0
- package/dist/packem_chunks/help-command.js +18 -0
- package/dist/packem_chunks/index.js +7 -0
- package/dist/packem_chunks/keys-refresh.js +4 -0
- package/dist/packem_chunks/list.js +3 -0
- package/dist/packem_chunks/loader.js +1 -0
- package/dist/packem_chunks/prune.js +3 -0
- package/dist/packem_chunks/run.js +1 -0
- package/dist/packem_chunks/status.js +2 -0
- package/dist/packem_chunks/sync.js +2 -0
- package/dist/packem_chunks/sync2.js +2 -0
- package/dist/packem_chunks/tar.js +3 -0
- package/dist/packem_chunks/tripwire.js +2 -0
- package/dist/packem_shared/advisories-DsynpacV.js +1 -0
- package/dist/packem_shared/ai-analysis-uYuTIIXi.js +68 -0
- package/dist/packem_shared/ai-cache-DuwHYx2O.js +1 -0
- package/dist/packem_shared/ai-fix-DzrA-dVz.js +43 -0
- package/dist/packem_shared/applyDefaults-BOVDw1jD.js +1 -0
- package/dist/packem_shared/build-scripts-DsWMSWDs.js +1 -0
- package/dist/packem_shared/cache-directory-DQak1Vjc.js +1 -0
- package/dist/packem_shared/cyclonedx-CiHXuG8M.js +4 -0
- package/dist/packem_shared/definePlugin-CWm4Dv_t.js +1 -0
- package/dist/packem_shared/dependency-scan-DC3nAFHS.js +1 -0
- package/dist/packem_shared/docker-B-CIN_nj.js +60 -0
- package/dist/packem_shared/failure-log-C3LEMmkq.js +2 -0
- package/dist/packem_shared/flakiness-Dq6K4ymq.js +1 -0
- package/dist/packem_shared/giget-CcEy_Elm.js +2 -0
- package/dist/packem_shared/glob-MHJQjR39-CQ2GC0b_.js +1 -0
- package/dist/packem_shared/index-DH-5hsrC.js +1 -0
- package/dist/packem_shared/lifecycle-Dv3nAtoD.js +2 -0
- package/dist/packem_shared/lockfile-C5DYMHVq.js +1 -0
- package/dist/packem_shared/manifests-B0fMp872.js +1 -0
- package/dist/packem_shared/min-release-age-BFozFonQ.js +34 -0
- package/dist/packem_shared/native-config-sync-Dvi1g2nQ.js +21 -0
- package/dist/packem_shared/otelPlugin-CJR2T_lk.js +1 -0
- package/dist/packem_shared/registry-keys-CewRFW0e.js +1 -0
- package/dist/packem_shared/resolve-explicit-CC4Kifk5.js +5 -0
- package/dist/packem_shared/run-summary-utils-BaBGP3bo.js +1 -0
- package/dist/packem_shared/runtime-check-BusAwPb2.js +1 -0
- package/dist/packem_shared/scan-progress-CMynp3eA.js +2 -0
- package/dist/packem_shared/selectors-B2ISH581.js +3 -0
- package/dist/packem_shared/signatures-5ZdjJ2Pu.js +2 -0
- package/dist/packem_shared/symbols-CQmER5MT.js +1 -0
- package/dist/packem_shared/toolchain-Cc3cwyLP.js +5 -0
- package/dist/packem_shared/typosquats-BCeR-sLf.js +1 -0
- package/dist/packem_shared/use-measured-height-DjYgUOKk.js +1 -0
- package/dist/packem_shared/utils-DrNg0XTR.js +1 -0
- package/dist/packem_shared/verify-07kUNTuP.js +1 -0
- package/dist/packem_shared/vis-update-app-CFrlJ3mW.js +1 -0
- package/dist/packem_shared/xxh3-DrAUNq4n.js +1 -0
- package/index.d.ts +358 -0
- package/index.js +609 -0
- package/package.json +57 -22
- package/schemas/project.schema.json +872 -0
- package/schemas/vis-config.schema.json +4306 -0
- package/skills/vis/SKILL.md +96 -0
- package/templates/buildkite-ci/.buildkite/pipeline.yml.tera +85 -0
- package/templates/buildkite-ci/template.yml +20 -0
- package/dist/ai-analysis.d.ts +0 -40
- package/dist/ai-cache.d.ts +0 -21
- package/dist/bin.d.ts +0 -1
- package/dist/catalog.d.ts +0 -110
- package/dist/commands/affected.d.ts +0 -3
- package/dist/commands/ai.d.ts +0 -3
- package/dist/commands/analyze.d.ts +0 -3
- package/dist/commands/check.d.ts +0 -3
- package/dist/commands/graph.d.ts +0 -3
- package/dist/commands/hook/constants.d.ts +0 -8
- package/dist/commands/hook/index.d.ts +0 -3
- package/dist/commands/hook/install.d.ts +0 -7
- package/dist/commands/hook/migrate.d.ts +0 -27
- package/dist/commands/hook/uninstall.d.ts +0 -3
- package/dist/commands/migrate/constants.d.ts +0 -12
- package/dist/commands/migrate/deps.d.ts +0 -32
- package/dist/commands/migrate/index.d.ts +0 -3
- package/dist/commands/migrate/json.d.ts +0 -20
- package/dist/commands/migrate/lint-staged.d.ts +0 -62
- package/dist/commands/migrate/types.d.ts +0 -20
- package/dist/commands/run.d.ts +0 -3
- package/dist/commands/staged.d.ts +0 -3
- package/dist/commands/update.d.ts +0 -3
- package/dist/config.d.ts +0 -40
- package/dist/config.js +0 -1
- package/dist/package-manager.d.ts +0 -23
- package/dist/workspace.d.ts +0 -58
package/dist/config.d.ts
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import type { VisConfig } from "./workspace.d.ts";
|
|
2
|
-
/** Supported config file names, checked in order. */
|
|
3
|
-
declare const CONFIG_FILES: string[];
|
|
4
|
-
/**
|
|
5
|
-
* Find the vis config file in a directory.
|
|
6
|
-
* @param directory The directory to search in.
|
|
7
|
-
* @returns The absolute path to the config file, or `undefined` if not found.
|
|
8
|
-
*/
|
|
9
|
-
declare const findVisConfigFile: (directory: string) => string | undefined;
|
|
10
|
-
/**
|
|
11
|
-
* Load the vis configuration from a `vis.config.ts` (or `.js`, `.mjs`, `.cjs`, `.mts`, `.cts`) file.
|
|
12
|
-
*
|
|
13
|
-
* Uses jiti for runtime TypeScript support — no build step needed for config files.
|
|
14
|
-
* Falls back to an empty config if no config file is found.
|
|
15
|
-
* @param workspaceRoot The workspace root directory to search for the config file.
|
|
16
|
-
* @returns The loaded and resolved configuration.
|
|
17
|
-
*/
|
|
18
|
-
declare const loadVisConfig: (workspaceRoot: string) => Promise<VisConfig>;
|
|
19
|
-
/**
|
|
20
|
-
* Type-safe helper for defining vis configuration.
|
|
21
|
-
* Provides full TypeScript autocomplete when used in `vis.config.ts`.
|
|
22
|
-
* @example
|
|
23
|
-
* ```typescript
|
|
24
|
-
* // vis.config.ts
|
|
25
|
-
* import { defineConfig } from "@visulima/vis/config";
|
|
26
|
-
*
|
|
27
|
-
* export default defineConfig({
|
|
28
|
-
* update: {
|
|
29
|
-
* target: "minor",
|
|
30
|
-
* exclude: ["@types/*"],
|
|
31
|
-
* security: true,
|
|
32
|
-
* },
|
|
33
|
-
* ai: {
|
|
34
|
-
* provider: "claude",
|
|
35
|
-
* },
|
|
36
|
-
* });
|
|
37
|
-
* ```
|
|
38
|
-
*/
|
|
39
|
-
declare const defineConfig: (config: VisConfig) => VisConfig;
|
|
40
|
-
export { CONFIG_FILES, defineConfig, findVisConfigFile, loadVisConfig };
|
package/dist/config.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var r=Object.defineProperty;var n=(e,i)=>r(e,"name",{value:i,configurable:!0});import{createRequire as f}from"node:module";import{join as g}from"@visulima/path";import{createJiti as d}from"jiti";const c=f(import.meta.url),s=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,a=n(e=>{if(typeof s<"u"&&s.versions&&s.versions.node){const[i,o]=s.versions.node.split(".").map(Number);if(i>22||i===22&&o>=3||i===20&&o>=16)return s.getBuiltinModule(e)}return c(e)},"__cjs_getBuiltinModule"),{existsSync:u}=a("node:fs");var l=Object.defineProperty,t=n((e,i)=>l(e,"name",{value:i,configurable:!0}),"o");const m=["vis.config.ts","vis.config.mts","vis.config.cts","vis.config.js","vis.config.mjs","vis.config.cjs"],p=t(e=>{for(const i of m){const o=g(e,i);if(u(o))return o}},"findVisConfigFile"),C=t(async e=>{const i=p(e);if(!i)return{};const o=await d(e).import(i,{default:!0,try:!0})??{};return typeof o=="function"?await o():o},"loadVisConfig"),b=t(e=>e,"defineConfig");export{m as CONFIG_FILES,b as defineConfig,p as findVisConfigFile,C as loadVisConfig};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
interface UpdateCommandOptions {
|
|
2
|
-
dev: boolean;
|
|
3
|
-
filters: string[];
|
|
4
|
-
global: boolean;
|
|
5
|
-
interactive: boolean;
|
|
6
|
-
latest: boolean;
|
|
7
|
-
noOptional: boolean;
|
|
8
|
-
noSave: boolean;
|
|
9
|
-
packages: string[];
|
|
10
|
-
prod: boolean;
|
|
11
|
-
recursive: boolean;
|
|
12
|
-
workspaceRoot: boolean;
|
|
13
|
-
}
|
|
14
|
-
interface ResolvedCommand {
|
|
15
|
-
args: string[];
|
|
16
|
-
bin: string;
|
|
17
|
-
}
|
|
18
|
-
declare const resolveUpdateCommand: (packageManager: "bun" | "npm" | "pnpm" | "yarn", version: string, options: UpdateCommandOptions) => {
|
|
19
|
-
command: ResolvedCommand;
|
|
20
|
-
warnings: string[];
|
|
21
|
-
};
|
|
22
|
-
export type { ResolvedCommand, UpdateCommandOptions };
|
|
23
|
-
export { resolveUpdateCommand };
|
package/dist/workspace.d.ts
DELETED
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import type { ProjectGraph, TargetConfiguration, WorkspaceConfiguration } from "@visulima/task-runner";
|
|
2
|
-
interface PackageJson {
|
|
3
|
-
dependencies?: Record<string, string>;
|
|
4
|
-
devDependencies?: Record<string, string>;
|
|
5
|
-
name?: string;
|
|
6
|
-
peerDependencies?: Record<string, string>;
|
|
7
|
-
scripts?: Record<string, string>;
|
|
8
|
-
workspaces?: string[] | {
|
|
9
|
-
packages: string[];
|
|
10
|
-
};
|
|
11
|
-
}
|
|
12
|
-
interface VisConfig {
|
|
13
|
-
/** AI analysis configuration */
|
|
14
|
-
ai?: {
|
|
15
|
-
/** Cache TTL in milliseconds. Overrides default (1h / 30min for security). */
|
|
16
|
-
cacheTtl?: number;
|
|
17
|
-
/** Override default provider priority. Higher number = preferred. */
|
|
18
|
-
priority?: Record<string, number>;
|
|
19
|
-
/** Use a specific provider instead of auto-detecting (e.g., `"claude"`, `"gemini"`). */
|
|
20
|
-
provider?: string;
|
|
21
|
-
};
|
|
22
|
-
/** Package override mappings applied during migration (e.g., `{ "lodash": "lodash-es" }`) */
|
|
23
|
-
overrides?: Record<string, string>;
|
|
24
|
-
/** Staged file patterns and commands (replaces lint-staged) */
|
|
25
|
-
staged?: Record<string, string | string[]>;
|
|
26
|
-
/** Target default configurations */
|
|
27
|
-
targetDefaults?: Record<string, Partial<TargetConfiguration>>;
|
|
28
|
-
/** Task runner options */
|
|
29
|
-
taskRunnerOptions?: Record<string, unknown>;
|
|
30
|
-
/** Update command defaults */
|
|
31
|
-
update?: {
|
|
32
|
-
exclude?: string[];
|
|
33
|
-
format?: "json" | "minimal" | "table";
|
|
34
|
-
include?: string[];
|
|
35
|
-
install?: boolean;
|
|
36
|
-
prerelease?: boolean;
|
|
37
|
-
security?: boolean;
|
|
38
|
-
target?: "latest" | "minor" | "patch";
|
|
39
|
-
};
|
|
40
|
-
}
|
|
41
|
-
/**
|
|
42
|
-
* Resolves glob-like workspace patterns to actual directories.
|
|
43
|
-
* Supports simple patterns like "packages/*" and "packages/**".
|
|
44
|
-
*/
|
|
45
|
-
declare const resolveWorkspacePatterns: (workspaceRoot: string, patterns: string[]) => string[];
|
|
46
|
-
/**
|
|
47
|
-
* Discovers all projects in the workspace and builds a WorkspaceConfiguration.
|
|
48
|
-
*/
|
|
49
|
-
declare const discoverWorkspace: (workspaceRoot: string, config?: VisConfig) => {
|
|
50
|
-
config: VisConfig;
|
|
51
|
-
workspace: WorkspaceConfiguration;
|
|
52
|
-
};
|
|
53
|
-
/**
|
|
54
|
-
* Builds the project dependency graph from package.json dependencies.
|
|
55
|
-
*/
|
|
56
|
-
declare const buildProjectGraph: (workspaceRoot: string, workspace: WorkspaceConfiguration) => ProjectGraph;
|
|
57
|
-
export type { PackageJson, VisConfig };
|
|
58
|
-
export { buildProjectGraph, discoverWorkspace, resolveWorkspacePatterns };
|