everything-dev 1.27.0 → 1.28.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.
Files changed (104) hide show
  1. package/dist/cli/infra.cjs +1 -1
  2. package/dist/cli/infra.mjs +1 -1
  3. package/dist/cli/init.cjs +7 -9
  4. package/dist/cli/init.cjs.map +1 -1
  5. package/dist/cli/init.d.cts +1 -1
  6. package/dist/cli/init.d.cts.map +1 -1
  7. package/dist/cli/init.d.mts +1 -1
  8. package/dist/cli/init.d.mts.map +1 -1
  9. package/dist/cli/init.mjs +7 -9
  10. package/dist/cli/init.mjs.map +1 -1
  11. package/dist/cli/prompts.cjs +28 -24
  12. package/dist/cli/prompts.cjs.map +1 -1
  13. package/dist/cli/prompts.mjs +27 -24
  14. package/dist/cli/prompts.mjs.map +1 -1
  15. package/dist/cli/sync.cjs +4 -1
  16. package/dist/cli/sync.cjs.map +1 -1
  17. package/dist/cli/sync.mjs +4 -1
  18. package/dist/cli/sync.mjs.map +1 -1
  19. package/dist/cli.cjs +187 -12
  20. package/dist/cli.cjs.map +1 -1
  21. package/dist/cli.mjs +186 -11
  22. package/dist/cli.mjs.map +1 -1
  23. package/dist/contract.cjs +1 -1
  24. package/dist/contract.cjs.map +1 -1
  25. package/dist/contract.d.cts +38 -34
  26. package/dist/contract.d.cts.map +1 -1
  27. package/dist/contract.d.mts +38 -34
  28. package/dist/contract.d.mts.map +1 -1
  29. package/dist/contract.mjs +1 -0
  30. package/dist/contract.mjs.map +1 -1
  31. package/dist/dev-session.cjs +0 -1
  32. package/dist/dev-session.mjs +1 -1
  33. package/dist/index.cjs +0 -2
  34. package/dist/index.d.cts +2 -2
  35. package/dist/index.d.mts +2 -2
  36. package/dist/index.mjs +0 -1
  37. package/dist/near-cli.cjs +1 -1
  38. package/dist/near-cli.mjs +1 -1
  39. package/dist/orchestrator.cjs +1 -1
  40. package/dist/orchestrator.mjs +1 -1
  41. package/dist/plugin.cjs +163 -139
  42. package/dist/plugin.cjs.map +1 -1
  43. package/dist/plugin.d.cts +67 -34
  44. package/dist/plugin.d.cts.map +1 -1
  45. package/dist/plugin.d.mts +66 -34
  46. package/dist/plugin.d.mts.map +1 -1
  47. package/dist/plugin.mjs +153 -130
  48. package/dist/plugin.mjs.map +1 -1
  49. package/dist/service-descriptor.d.cts +34 -0
  50. package/dist/service-descriptor.d.cts.map +1 -0
  51. package/dist/service-descriptor.d.mts +36 -0
  52. package/dist/service-descriptor.d.mts.map +1 -0
  53. package/dist/types.d.cts +2 -2
  54. package/dist/types.d.mts +2 -2
  55. package/package.json +2 -2
  56. package/src/api-contract.ts +0 -623
  57. package/src/app.ts +0 -193
  58. package/src/cli/catalog.ts +0 -49
  59. package/src/cli/framework-version.ts +0 -61
  60. package/src/cli/help.ts +0 -13
  61. package/src/cli/infra.ts +0 -190
  62. package/src/cli/init.ts +0 -1145
  63. package/src/cli/parse.ts +0 -147
  64. package/src/cli/prompts.ts +0 -135
  65. package/src/cli/snapshot.ts +0 -46
  66. package/src/cli/status.ts +0 -99
  67. package/src/cli/sync.ts +0 -429
  68. package/src/cli/timing.ts +0 -63
  69. package/src/cli/upgrade.ts +0 -869
  70. package/src/cli.ts +0 -516
  71. package/src/components/dev-view.tsx +0 -352
  72. package/src/components/streaming-view.ts +0 -177
  73. package/src/config.ts +0 -893
  74. package/src/contract.meta.ts +0 -140
  75. package/src/contract.ts +0 -326
  76. package/src/dev-logs.ts +0 -92
  77. package/src/dev-session.ts +0 -283
  78. package/src/fastkv.ts +0 -181
  79. package/src/index.ts +0 -8
  80. package/src/integrity.ts +0 -138
  81. package/src/internal/manifest-normalizer.ts +0 -290
  82. package/src/merge.ts +0 -187
  83. package/src/mf.ts +0 -147
  84. package/src/near-cli.ts +0 -259
  85. package/src/network.ts +0 -3
  86. package/src/orchestrator.ts +0 -493
  87. package/src/plugin.ts +0 -1799
  88. package/src/sdk.ts +0 -14
  89. package/src/service-descriptor.ts +0 -281
  90. package/src/shared.ts +0 -249
  91. package/src/sidebar.ts +0 -140
  92. package/src/types.ts +0 -330
  93. package/src/ui/head.ts +0 -83
  94. package/src/ui/index.ts +0 -5
  95. package/src/ui/metadata.ts +0 -95
  96. package/src/ui/router.ts +0 -88
  97. package/src/ui/runtime.ts +0 -42
  98. package/src/ui/types.ts +0 -65
  99. package/src/utils/banner.ts +0 -21
  100. package/src/utils/linkify.ts +0 -11
  101. package/src/utils/path-match.ts +0 -16
  102. package/src/utils/run.ts +0 -31
  103. package/src/utils/save-config.ts +0 -20
  104. package/src/utils/theme.ts +0 -39
package/src/ui/types.ts DELETED
@@ -1,65 +0,0 @@
1
- import type { QueryClient } from "@tanstack/react-query";
2
- import type { AnyRouteMatch, AnyRouter, RouterHistory } from "@tanstack/react-router";
3
- import type { ClientRuntimeConfig } from "../types";
4
-
5
- export interface RouterContext<TSession = unknown> {
6
- queryClient: QueryClient;
7
- assetsUrl: string;
8
- runtimeConfig?: Partial<ClientRuntimeConfig>;
9
- session?: TSession;
10
- }
11
-
12
- export interface RouterContextWithApi<TApiClient = unknown, TSession = unknown>
13
- extends RouterContext<TSession> {
14
- apiClient?: TApiClient;
15
- }
16
-
17
- export interface CreateRouterOptions<TApiClient = unknown, TSession = unknown> {
18
- history?: RouterHistory;
19
- context?: Partial<RouterContextWithApi<TApiClient, TSession>>;
20
- basepath?: string;
21
- }
22
-
23
- export type HeadMeta = NonNullable<AnyRouteMatch["meta"]>[number];
24
- export type HeadLink = NonNullable<AnyRouteMatch["links"]>[number];
25
- export type HeadScript = NonNullable<AnyRouteMatch["headScripts"]>[number];
26
-
27
- export interface HeadData {
28
- meta: HeadMeta[];
29
- links: HeadLink[];
30
- scripts: HeadScript[];
31
- }
32
-
33
- export interface RenderOptions<TSession = unknown> {
34
- assetsUrl: string;
35
- runtimeConfig: Partial<ClientRuntimeConfig>;
36
- basepath?: string;
37
- session?: TSession;
38
- }
39
-
40
- export interface RenderOptionsWithApi<TApiClient = unknown, TSession = unknown>
41
- extends RenderOptions<TSession> {
42
- apiClient: TApiClient;
43
- authClient?: unknown;
44
- }
45
-
46
- export interface RenderResult {
47
- stream: ReadableStream;
48
- statusCode: number;
49
- headers: Headers;
50
- }
51
-
52
- export interface RouterModule<TApiClient = unknown, TSession = unknown> {
53
- createRouter: (opts?: CreateRouterOptions<TApiClient, TSession>) => {
54
- router: AnyRouter;
55
- queryClient: QueryClient;
56
- };
57
- getRouteHead: (
58
- pathname: string,
59
- context?: Partial<RouterContextWithApi<TApiClient, TSession>>,
60
- ) => Promise<HeadData>;
61
- renderToStream: (
62
- request: Request,
63
- options: RenderOptionsWithApi<TApiClient, TSession>,
64
- ) => Promise<RenderResult>;
65
- }
@@ -1,21 +0,0 @@
1
- import { createRequire } from "node:module";
2
- import { colors, divider, gradients } from "./theme";
3
-
4
- const require = createRequire(import.meta.url);
5
- const pkg = require("../../package.json") as { version: string };
6
-
7
- const ASCII_BOS = `
8
- ██████╗ ██████╗ ███████╗
9
- ██╔══██╗██╔═══██╗██╔════╝
10
- ██████╔╝██║ ██║███████╗
11
- ██╔══██╗██║ ██║╚════██║
12
- ██████╔╝╚██████╔╝███████║
13
- ╚═════╝ ╚═════╝ ╚══════╝`;
14
-
15
- export function printBanner(title = "everything-dev", version = pkg.version) {
16
- console.log(gradients.cyber(ASCII_BOS));
17
- console.log();
18
- console.log(colors.dim(` ${title} ${colors.cyan(`v${version}`)}`));
19
- console.log(colors.dim(` ${divider(30)}`));
20
- console.log();
21
- }
@@ -1,11 +0,0 @@
1
- const URL_REGEX = /https?:\/\/[^\s<>"{}|\\^`[\]]+/g;
2
-
3
- const OSC_START = "\x1b]8;;";
4
- const OSC_END = "\x07";
5
- const OSC_RESET = "\x1b]8;;\x07";
6
-
7
- export const linkify = (text: string): string => {
8
- return text.replace(URL_REGEX, (url) => {
9
- return `${OSC_START}${url}${OSC_END}${url}${OSC_RESET}`;
10
- });
11
- };
@@ -1,16 +0,0 @@
1
- export function isPathExcluded(filePath: string, excludePatterns: string[]): boolean {
2
- if (excludePatterns.length === 0) return false;
3
- for (const pattern of excludePatterns) {
4
- if (pattern.endsWith("/**")) {
5
- const prefix = pattern.slice(0, -3);
6
- if (filePath.startsWith(`${prefix}/`) || filePath === prefix) return true;
7
- } else if (pattern.endsWith("/*")) {
8
- const prefix = pattern.slice(0, -2);
9
- const slashIdx = filePath.indexOf("/", prefix.length + 1);
10
- if (filePath.startsWith(`${prefix}/`) && slashIdx === -1) return true;
11
- } else if (filePath === pattern || filePath.startsWith(`${pattern}/`)) {
12
- return true;
13
- }
14
- }
15
- return false;
16
- }
package/src/utils/run.ts DELETED
@@ -1,31 +0,0 @@
1
- type RunResult = { stdout: string; stderr: string; exitCode: number };
2
-
3
- export async function run(
4
- cmd: string,
5
- args: string[],
6
- options: { cwd?: string; env?: Record<string, string>; capture?: boolean } = {},
7
- ): Promise<RunResult | undefined> {
8
- const proc = Bun.spawn({
9
- cmd: [cmd, ...args],
10
- cwd: options.cwd,
11
- env: options.env ? { ...(process.env as Record<string, string>), ...options.env } : process.env,
12
- stdio: options.capture ? ["inherit", "pipe", "pipe"] : ["inherit", "inherit", "inherit"],
13
- });
14
-
15
- if (!options.capture) {
16
- const exitCode = await proc.exited;
17
- if (exitCode !== 0) {
18
- throw new Error(`${cmd} ${args.join(" ")} failed with exit code ${exitCode}`);
19
- }
20
- return;
21
- }
22
-
23
- const [stdout, stderr, exitCode] = await Promise.all([
24
- new Response(proc.stdout).text(),
25
- new Response(proc.stderr).text(),
26
- proc.exited,
27
- ]);
28
-
29
- const result = { stdout, stderr, exitCode };
30
- return result;
31
- }
@@ -1,20 +0,0 @@
1
- import { readFileSync, writeFileSync } from "node:fs";
2
- import { join } from "node:path";
3
- import { rebuildOrderedConfig } from "../merge";
4
- import type { BosConfig } from "../types";
5
-
6
- export async function saveBosConfig(
7
- configDir: string,
8
- config: BosConfig | Record<string, unknown>,
9
- ): Promise<void> {
10
- const filePath = join(configDir, "bos.config.json");
11
- const ordered = rebuildOrderedConfig(config as Record<string, unknown>);
12
- const next = `${JSON.stringify(ordered, null, 2)}\n`;
13
- try {
14
- if (readFileSync(filePath, "utf8") === next) return;
15
- } catch {
16
- // file does not exist yet
17
- }
18
-
19
- writeFileSync(filePath, next);
20
- }
@@ -1,39 +0,0 @@
1
- import chalk from "chalk";
2
- import gradient from "gradient-string";
3
-
4
- export const gradients: Record<string, (text: string) => string> = {
5
- cyber: gradient(["#00ffff", "#ff00ff"]),
6
- };
7
-
8
- export const colors = {
9
- cyan: chalk.hex("#00ffff"),
10
- magenta: chalk.hex("#ff00ff"),
11
- green: chalk.hex("#00ff41"),
12
- blue: chalk.hex("#0080ff"),
13
- yellow: chalk.hex("#ffcc00"),
14
- white: chalk.hex("#f0f0f0"),
15
- gray: chalk.hex("#555555"),
16
- dim: chalk.dim,
17
- error: chalk.hex("#ff3366"),
18
- };
19
-
20
- export const icons = {
21
- scan: "○",
22
- run: "▶",
23
- ok: "✓",
24
- err: "✗",
25
- pending: "○",
26
- arrow: "→",
27
- dot: "·",
28
- app: "◉",
29
- config: "⚙",
30
- };
31
-
32
- export const frames = {
33
- top: (width: number) => `┌${"─".repeat(width - 2)}┐`,
34
- bottom: (width: number) => `└${"─".repeat(width - 2)}┘`,
35
- };
36
-
37
- export function divider(width = 48): string {
38
- return colors.dim("─".repeat(width));
39
- }