@methiu/raigal 0.2.0 → 0.2.3
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/dist/{AgentApp-CIiRfOun.js → AgentApp-DJYdD1VH.js} +4 -2
- package/dist/adapters/astro.d.ts +1 -6
- package/dist/adapters/astro.js +1 -5
- package/dist/adapters/expo.d.ts +2 -6
- package/dist/adapters/expo.js +2 -5
- package/dist/adapters/nuxt.d.ts +1 -6
- package/dist/adapters/nuxt.js +1 -5
- package/dist/adapters/sveltekit.d.ts +1 -6
- package/dist/adapters/sveltekit.js +3 -7
- package/dist/adapters/vite.d.ts +1 -7
- package/dist/adapters/vite.js +3 -7
- package/dist/cli.js +1582 -865
- package/dist/{finding-assessment-M5fUTE-C.js → finding-assessment-CGpt5YUR.js} +3 -0
- package/dist/index.d.ts +59 -0
- package/dist/index.js +1529 -157
- package/dist/{json-C9fBWj3V.js → json-BaycSoJP.js} +2 -1
- package/dist/{json-C2IwKr9o.js → json-BflWt4dX.js} +4 -3
- package/dist/mcp.js +500 -126
- package/dist/{mount-DTc8WaIt.js → mount-CHGc3gB6.js} +1 -1
- package/dist/{sarif--DI_2p2r.js → sarif-CdtsAfJ1.js} +1 -1
- package/dist/{sarif-Do8E1xhZ.js → sarif-CpuYM3aK.js} +2 -2
- package/dist/{version-v4OAaBLZ.js → version-B4eYJn3o.js} +1 -1
- package/package.json +8 -6
- package/scripts/release-guard.mjs +2 -2
|
@@ -12,11 +12,12 @@ const colorFor$1 = (kind) => {
|
|
|
12
12
|
};
|
|
13
13
|
const prefixFor = (kind) => kind === "assistant" ? "" : `${kind} `;
|
|
14
14
|
const ActivityPane = ({ activity, rows }) => {
|
|
15
|
+
const visible = activity.slice(-Math.max(1, rows));
|
|
15
16
|
return /* @__PURE__ */ jsx(Box, {
|
|
16
17
|
flexDirection: "column",
|
|
17
18
|
flexGrow: 1,
|
|
18
19
|
paddingX: 1,
|
|
19
|
-
children:
|
|
20
|
+
children: visible.map((line, index) => /* @__PURE__ */ jsxs(Text, {
|
|
20
21
|
color: colorFor$1(line.kind),
|
|
21
22
|
wrap: "truncate-end",
|
|
22
23
|
children: [/* @__PURE__ */ jsx(Text, {
|
|
@@ -203,6 +204,7 @@ const Sidebar = ({ state }) => {
|
|
|
203
204
|
const cost = state.usage?.costUsd ?? computeCostUsd(pricing, state.tokens);
|
|
204
205
|
const ctx = pricing ? state.tokens.in / pricing.contextWindow * 100 : null;
|
|
205
206
|
const hasUsage = state.tokens.total > 0;
|
|
207
|
+
const title = state.model ? `${state.provider} · ${state.model}` : state.provider;
|
|
206
208
|
return /* @__PURE__ */ jsxs(Box, {
|
|
207
209
|
flexDirection: "column",
|
|
208
210
|
width: 30,
|
|
@@ -212,7 +214,7 @@ const Sidebar = ({ state }) => {
|
|
|
212
214
|
borderColor: "gray",
|
|
213
215
|
children: [/* @__PURE__ */ jsx(Text, {
|
|
214
216
|
bold: true,
|
|
215
|
-
children:
|
|
217
|
+
children: title
|
|
216
218
|
}), /* @__PURE__ */ jsxs(Box, {
|
|
217
219
|
marginTop: 1,
|
|
218
220
|
flexDirection: "column",
|
package/dist/adapters/astro.d.ts
CHANGED
|
@@ -9,14 +9,9 @@ interface AstroIntegration {
|
|
|
9
9
|
interface RaigalAstroOptions extends RaigalAdapterOptions {
|
|
10
10
|
runOnBuild?: boolean;
|
|
11
11
|
}
|
|
12
|
-
type AislopAstroOptions = RaigalAstroOptions;
|
|
13
12
|
declare const createAstroRaigalScripts: () => Record<string, string>;
|
|
14
|
-
declare const createAstroAislopScripts: () => Record<string, string>;
|
|
15
13
|
declare const createAstroRaigalWorkflow: () => string;
|
|
16
|
-
declare const createAstroAislopWorkflow: () => string;
|
|
17
14
|
declare const runAstroRaigal: (options?: RaigalAstroOptions) => Promise<RaigalRunResult>;
|
|
18
|
-
declare const runAstroAislop: (options?: RaigalAstroOptions) => Promise<RaigalRunResult>;
|
|
19
15
|
declare const raigalAstro: (options?: RaigalAstroOptions) => AstroIntegration;
|
|
20
|
-
declare const aislopAstro: (options?: RaigalAstroOptions) => AstroIntegration;
|
|
21
16
|
//#endregion
|
|
22
|
-
export {
|
|
17
|
+
export { AstroIntegration, RaigalAstroOptions, createAstroRaigalScripts, createAstroRaigalWorkflow, raigalAstro as default, runAstroRaigal };
|
package/dist/adapters/astro.js
CHANGED
|
@@ -1,20 +1,16 @@
|
|
|
1
1
|
import { n as createRaigalPackageScripts, r as maybeRunRaigal, t as createRaigalCiWorkflow } from "../core-kJtASBYe.js";
|
|
2
2
|
//#region src/framework-adapters/astro.ts
|
|
3
3
|
const createAstroRaigalScripts = () => createRaigalPackageScripts("astro");
|
|
4
|
-
const createAstroAislopScripts = createAstroRaigalScripts;
|
|
5
4
|
const createAstroRaigalWorkflow = () => createRaigalCiWorkflow();
|
|
6
|
-
const createAstroAislopWorkflow = createAstroRaigalWorkflow;
|
|
7
5
|
const runAstroRaigal = async (options = {}) => maybeRunRaigal("astro", {
|
|
8
6
|
...options,
|
|
9
7
|
enabled: options.enabled ?? options.runOnBuild ?? false
|
|
10
8
|
});
|
|
11
|
-
const runAstroAislop = runAstroRaigal;
|
|
12
9
|
const raigalAstro = (options = {}) => ({
|
|
13
10
|
name: "@raigal/astro",
|
|
14
11
|
hooks: { "astro:build:start": async () => {
|
|
15
12
|
await runAstroRaigal(options);
|
|
16
13
|
} }
|
|
17
14
|
});
|
|
18
|
-
const aislopAstro = raigalAstro;
|
|
19
15
|
//#endregion
|
|
20
|
-
export {
|
|
16
|
+
export { createAstroRaigalScripts, createAstroRaigalWorkflow, raigalAstro as default, runAstroRaigal };
|
package/dist/adapters/expo.d.ts
CHANGED
|
@@ -11,14 +11,10 @@ interface RaigalExpoOptions extends RaigalAdapterOptions {
|
|
|
11
11
|
*/
|
|
12
12
|
runDuringConfig?: boolean;
|
|
13
13
|
}
|
|
14
|
-
type AislopExpoOptions = RaigalExpoOptions;
|
|
15
14
|
declare const createExpoRaigalScripts: () => Record<string, string>;
|
|
16
|
-
declare const createExpoAislopScripts: () => Record<string, string>;
|
|
17
15
|
declare const createExpoRaigalWorkflow: () => string;
|
|
18
|
-
declare const createExpoAislopWorkflow: () => string;
|
|
19
16
|
declare const runExpoRaigal: (options?: RaigalExpoOptions) => Promise<RaigalRunResult>;
|
|
20
|
-
declare const runExpoAislop: (options?: RaigalExpoOptions) => Promise<RaigalRunResult>;
|
|
21
17
|
declare const withRaigalExpo: <TConfig extends ExpoConfigLike>(config: TConfig, _options?: RaigalExpoOptions) => TConfig;
|
|
22
|
-
declare const withAislopExpo: <TConfig extends ExpoConfigLike>(config: TConfig,
|
|
18
|
+
declare const withAislopExpo: <TConfig extends ExpoConfigLike>(config: TConfig, options?: RaigalExpoOptions) => TConfig;
|
|
23
19
|
//#endregion
|
|
24
|
-
export {
|
|
20
|
+
export { ExpoConfigLike, RaigalExpoOptions, createExpoRaigalScripts, createExpoRaigalWorkflow, withRaigalExpo as default, runExpoRaigal, withAislopExpo };
|
package/dist/adapters/expo.js
CHANGED
|
@@ -1,14 +1,11 @@
|
|
|
1
1
|
import { n as createRaigalPackageScripts, r as maybeRunRaigal, t as createRaigalCiWorkflow } from "../core-kJtASBYe.js";
|
|
2
2
|
//#region src/framework-adapters/expo.ts
|
|
3
3
|
const createExpoRaigalScripts = () => createRaigalPackageScripts("expo");
|
|
4
|
-
const createExpoAislopScripts = createExpoRaigalScripts;
|
|
5
4
|
const createExpoRaigalWorkflow = () => createRaigalCiWorkflow();
|
|
6
|
-
const createExpoAislopWorkflow = createExpoRaigalWorkflow;
|
|
7
5
|
const runExpoRaigal = async (options = {}) => maybeRunRaigal("expo", {
|
|
8
6
|
...options,
|
|
9
7
|
enabled: options.enabled ?? options.runDuringConfig ?? false
|
|
10
8
|
});
|
|
11
|
-
const runExpoAislop = runExpoRaigal;
|
|
12
9
|
const withRaigalExpo = (config, _options = {}) => {
|
|
13
10
|
const extra = {
|
|
14
11
|
...config.extra,
|
|
@@ -28,6 +25,6 @@ const withRaigalExpo = (config, _options = {}) => {
|
|
|
28
25
|
extra
|
|
29
26
|
};
|
|
30
27
|
};
|
|
31
|
-
const withAislopExpo = withRaigalExpo;
|
|
28
|
+
const withAislopExpo = (config, options = {}) => withRaigalExpo(config, options);
|
|
32
29
|
//#endregion
|
|
33
|
-
export {
|
|
30
|
+
export { createExpoRaigalScripts, createExpoRaigalWorkflow, withRaigalExpo as default, runExpoRaigal, withAislopExpo };
|
package/dist/adapters/nuxt.d.ts
CHANGED
|
@@ -11,7 +11,6 @@ interface RaigalNuxtOptions extends RaigalAdapterOptions {
|
|
|
11
11
|
runOnBuild?: boolean;
|
|
12
12
|
hook?: NuxtHookName;
|
|
13
13
|
}
|
|
14
|
-
type AislopNuxtOptions = RaigalNuxtOptions;
|
|
15
14
|
interface NuxtModuleLike {
|
|
16
15
|
meta: {
|
|
17
16
|
name: string;
|
|
@@ -21,13 +20,9 @@ interface NuxtModuleLike {
|
|
|
21
20
|
setup: (options: RaigalNuxtOptions, nuxt: NuxtLike) => void | Promise<void>;
|
|
22
21
|
}
|
|
23
22
|
declare const createNuxtRaigalScripts: () => Record<string, string>;
|
|
24
|
-
declare const createNuxtAislopScripts: () => Record<string, string>;
|
|
25
23
|
declare const createNuxtRaigalWorkflow: () => string;
|
|
26
|
-
declare const createNuxtAislopWorkflow: () => string;
|
|
27
24
|
declare const runNuxtRaigal: (options?: RaigalNuxtOptions) => Promise<RaigalRunResult>;
|
|
28
|
-
declare const runNuxtAislop: (options?: RaigalNuxtOptions) => Promise<RaigalRunResult>;
|
|
29
25
|
declare const createRaigalNuxtModule: (defaults?: RaigalNuxtOptions) => NuxtModuleLike;
|
|
30
|
-
declare const createAislopNuxtModule: (defaults?: RaigalNuxtOptions) => NuxtModuleLike;
|
|
31
26
|
declare const _default: NuxtModuleLike;
|
|
32
27
|
//#endregion
|
|
33
|
-
export {
|
|
28
|
+
export { NuxtLike, NuxtModuleLike, RaigalNuxtOptions, createNuxtRaigalScripts, createNuxtRaigalWorkflow, createRaigalNuxtModule, _default as default, runNuxtRaigal };
|
package/dist/adapters/nuxt.js
CHANGED
|
@@ -7,14 +7,11 @@ const DEFAULTS = {
|
|
|
7
7
|
hook: "build:before"
|
|
8
8
|
};
|
|
9
9
|
const createNuxtRaigalScripts = () => createRaigalPackageScripts("nuxt");
|
|
10
|
-
const createNuxtAislopScripts = createNuxtRaigalScripts;
|
|
11
10
|
const createNuxtRaigalWorkflow = () => createRaigalCiWorkflow();
|
|
12
|
-
const createNuxtAislopWorkflow = createNuxtRaigalWorkflow;
|
|
13
11
|
const runNuxtRaigal = async (options = {}) => maybeRunRaigal("nuxt", {
|
|
14
12
|
...options,
|
|
15
13
|
enabled: options.enabled ?? options.runOnBuild ?? false
|
|
16
14
|
});
|
|
17
|
-
const runNuxtAislop = runNuxtRaigal;
|
|
18
15
|
const createRaigalNuxtModule = (defaults = {}) => ({
|
|
19
16
|
meta: {
|
|
20
17
|
name: "@raigal/nuxt",
|
|
@@ -35,7 +32,6 @@ const createRaigalNuxtModule = (defaults = {}) => ({
|
|
|
35
32
|
});
|
|
36
33
|
}
|
|
37
34
|
});
|
|
38
|
-
const createAislopNuxtModule = createRaigalNuxtModule;
|
|
39
35
|
var nuxt_default = createRaigalNuxtModule();
|
|
40
36
|
//#endregion
|
|
41
|
-
export {
|
|
37
|
+
export { createNuxtRaigalScripts, createNuxtRaigalWorkflow, createRaigalNuxtModule, nuxt_default as default, runNuxtRaigal };
|
|
@@ -2,14 +2,9 @@ import { r as RaigalRunResult } from "../core-BpOFk2i9.js";
|
|
|
2
2
|
import { RaigalViteOptions, VitePluginLike } from "./vite.js";
|
|
3
3
|
//#region src/framework-adapters/sveltekit.d.ts
|
|
4
4
|
type RaigalSvelteKitOptions = Omit<RaigalViteOptions, "framework">;
|
|
5
|
-
type AislopSvelteKitOptions = RaigalSvelteKitOptions;
|
|
6
5
|
declare const createSvelteKitRaigalScripts: () => Record<string, string>;
|
|
7
|
-
declare const createSvelteKitAislopScripts: () => Record<string, string>;
|
|
8
6
|
declare const createSvelteKitRaigalWorkflow: () => string;
|
|
9
|
-
declare const createSvelteKitAislopWorkflow: () => string;
|
|
10
7
|
declare const runSvelteKitRaigal: (options?: RaigalSvelteKitOptions) => Promise<RaigalRunResult>;
|
|
11
|
-
declare const runSvelteKitAislop: (options?: RaigalSvelteKitOptions) => Promise<RaigalRunResult>;
|
|
12
8
|
declare const raigalSvelteKit: (options?: RaigalSvelteKitOptions) => VitePluginLike;
|
|
13
|
-
declare const aislopSvelteKit: (options?: RaigalSvelteKitOptions) => VitePluginLike;
|
|
14
9
|
//#endregion
|
|
15
|
-
export {
|
|
10
|
+
export { RaigalSvelteKitOptions, createSvelteKitRaigalScripts, createSvelteKitRaigalWorkflow, raigalSvelteKit as default, runSvelteKitRaigal };
|
|
@@ -1,19 +1,15 @@
|
|
|
1
1
|
import { n as createRaigalPackageScripts, t as createRaigalCiWorkflow } from "../core-kJtASBYe.js";
|
|
2
|
-
import raigalVite, {
|
|
2
|
+
import raigalVite, { runViteRaigal } from "./vite.js";
|
|
3
3
|
//#region src/framework-adapters/sveltekit.ts
|
|
4
4
|
const createSvelteKitRaigalScripts = () => createRaigalPackageScripts("sveltekit");
|
|
5
|
-
const createSvelteKitAislopScripts = createSvelteKitRaigalScripts;
|
|
6
5
|
const createSvelteKitRaigalWorkflow = () => createRaigalCiWorkflow();
|
|
7
|
-
const
|
|
8
|
-
const runSvelteKitRaigal = async (options = {}) => runRaigalVite({
|
|
6
|
+
const runSvelteKitRaigal = async (options = {}) => runViteRaigal({
|
|
9
7
|
...options,
|
|
10
8
|
framework: "sveltekit"
|
|
11
9
|
});
|
|
12
|
-
const runSvelteKitAislop = runSvelteKitRaigal;
|
|
13
10
|
const raigalSvelteKit = (options = {}) => raigalVite({
|
|
14
11
|
...options,
|
|
15
12
|
framework: "sveltekit"
|
|
16
13
|
});
|
|
17
|
-
const aislopSvelteKit = raigalSvelteKit;
|
|
18
14
|
//#endregion
|
|
19
|
-
export {
|
|
15
|
+
export { createSvelteKitRaigalScripts, createSvelteKitRaigalWorkflow, raigalSvelteKit as default, runSvelteKitRaigal };
|
package/dist/adapters/vite.d.ts
CHANGED
|
@@ -12,15 +12,9 @@ interface RaigalViteOptions extends RaigalAdapterOptions {
|
|
|
12
12
|
runOnBuild?: boolean;
|
|
13
13
|
hook?: "buildStart" | "closeBundle";
|
|
14
14
|
}
|
|
15
|
-
type AislopViteOptions = RaigalViteOptions;
|
|
16
15
|
declare const createViteRaigalScripts: (framework?: RaigalViteOptions["framework"]) => Record<string, string>;
|
|
17
|
-
declare const createViteAislopScripts: (framework?: RaigalViteOptions["framework"]) => Record<string, string>;
|
|
18
16
|
declare const createViteRaigalWorkflow: () => string;
|
|
19
|
-
declare const createViteAislopWorkflow: () => string;
|
|
20
17
|
declare const runViteRaigal: (options?: RaigalViteOptions) => Promise<RaigalRunResult>;
|
|
21
|
-
declare const runRaigalVite: (options?: RaigalViteOptions) => Promise<RaigalRunResult>;
|
|
22
|
-
declare const runViteAislop: (options?: RaigalViteOptions) => Promise<RaigalRunResult>;
|
|
23
18
|
declare const raigalVite: (options?: RaigalViteOptions) => VitePluginLike;
|
|
24
|
-
declare const aislopVite: (options?: RaigalViteOptions) => VitePluginLike;
|
|
25
19
|
//#endregion
|
|
26
|
-
export {
|
|
20
|
+
export { RaigalViteOptions, VitePluginLike, createViteRaigalScripts, createViteRaigalWorkflow, raigalVite as default, runViteRaigal };
|
package/dist/adapters/vite.js
CHANGED
|
@@ -6,17 +6,14 @@ const createViteRaigalScripts = (framework = "vite") => {
|
|
|
6
6
|
scripts["aislop:build-gate"] = "raigal ci --changes";
|
|
7
7
|
return scripts;
|
|
8
8
|
};
|
|
9
|
-
const createViteAislopScripts = createViteRaigalScripts;
|
|
10
9
|
const createViteRaigalWorkflow = () => createRaigalCiWorkflow();
|
|
11
|
-
const createViteAislopWorkflow = createViteRaigalWorkflow;
|
|
12
10
|
const runViteRaigal = async (options = {}) => {
|
|
13
|
-
|
|
11
|
+
const framework = options.framework ?? "vite";
|
|
12
|
+
return maybeRunRaigal(framework, {
|
|
14
13
|
...options,
|
|
15
14
|
enabled: options.enabled ?? options.runOnBuild ?? false
|
|
16
15
|
});
|
|
17
16
|
};
|
|
18
|
-
const runRaigalVite = runViteRaigal;
|
|
19
|
-
const runViteAislop = runViteRaigal;
|
|
20
17
|
const raigalVite = (options = {}) => {
|
|
21
18
|
const hook = options.hook ?? "closeBundle";
|
|
22
19
|
const run = async () => {
|
|
@@ -28,6 +25,5 @@ const raigalVite = (options = {}) => {
|
|
|
28
25
|
...hook === "buildStart" ? { buildStart: run } : { closeBundle: run }
|
|
29
26
|
};
|
|
30
27
|
};
|
|
31
|
-
const aislopVite = raigalVite;
|
|
32
28
|
//#endregion
|
|
33
|
-
export {
|
|
29
|
+
export { createViteRaigalScripts, createViteRaigalWorkflow, raigalVite as default, runViteRaigal };
|