everything-dev 1.27.0 → 1.28.1

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 (114) hide show
  1. package/dist/cli/infra.cjs +1 -1
  2. package/dist/cli/infra.mjs +1 -1
  3. package/dist/cli/init.cjs +34 -9
  4. package/dist/cli/init.cjs.map +1 -1
  5. package/dist/cli/init.d.cts +2 -1
  6. package/dist/cli/init.d.cts.map +1 -1
  7. package/dist/cli/init.d.mts +2 -1
  8. package/dist/cli/init.d.mts.map +1 -1
  9. package/dist/cli/init.mjs +34 -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 +40 -3
  16. package/dist/cli/sync.cjs.map +1 -1
  17. package/dist/cli/sync.mjs +40 -3
  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/config.cjs +1 -0
  24. package/dist/config.cjs.map +1 -1
  25. package/dist/config.d.cts.map +1 -1
  26. package/dist/config.d.mts.map +1 -1
  27. package/dist/config.mjs +1 -0
  28. package/dist/config.mjs.map +1 -1
  29. package/dist/contract.cjs +1 -1
  30. package/dist/contract.cjs.map +1 -1
  31. package/dist/contract.d.cts +38 -34
  32. package/dist/contract.d.cts.map +1 -1
  33. package/dist/contract.d.mts +38 -34
  34. package/dist/contract.d.mts.map +1 -1
  35. package/dist/contract.mjs +1 -0
  36. package/dist/contract.mjs.map +1 -1
  37. package/dist/dev-session.cjs +0 -1
  38. package/dist/dev-session.mjs +1 -1
  39. package/dist/index.cjs +0 -2
  40. package/dist/index.d.cts +2 -2
  41. package/dist/index.d.mts +2 -2
  42. package/dist/index.mjs +0 -1
  43. package/dist/near-cli.cjs +1 -1
  44. package/dist/near-cli.mjs +1 -1
  45. package/dist/orchestrator.cjs +1 -1
  46. package/dist/orchestrator.mjs +1 -1
  47. package/dist/plugin.cjs +183 -151
  48. package/dist/plugin.cjs.map +1 -1
  49. package/dist/plugin.d.cts +67 -34
  50. package/dist/plugin.d.cts.map +1 -1
  51. package/dist/plugin.d.mts +66 -34
  52. package/dist/plugin.d.mts.map +1 -1
  53. package/dist/plugin.mjs +173 -142
  54. package/dist/plugin.mjs.map +1 -1
  55. package/dist/service-descriptor.d.cts +34 -0
  56. package/dist/service-descriptor.d.cts.map +1 -0
  57. package/dist/service-descriptor.d.mts +36 -0
  58. package/dist/service-descriptor.d.mts.map +1 -0
  59. package/dist/types.d.cts +2 -2
  60. package/dist/types.d.mts +2 -2
  61. package/dist/utils/run.cjs +9 -20
  62. package/dist/utils/run.cjs.map +1 -1
  63. package/dist/utils/run.mjs +9 -20
  64. package/dist/utils/run.mjs.map +1 -1
  65. package/package.json +2 -2
  66. package/src/api-contract.ts +0 -623
  67. package/src/app.ts +0 -193
  68. package/src/cli/catalog.ts +0 -49
  69. package/src/cli/framework-version.ts +0 -61
  70. package/src/cli/help.ts +0 -13
  71. package/src/cli/infra.ts +0 -190
  72. package/src/cli/init.ts +0 -1145
  73. package/src/cli/parse.ts +0 -147
  74. package/src/cli/prompts.ts +0 -135
  75. package/src/cli/snapshot.ts +0 -46
  76. package/src/cli/status.ts +0 -99
  77. package/src/cli/sync.ts +0 -429
  78. package/src/cli/timing.ts +0 -63
  79. package/src/cli/upgrade.ts +0 -869
  80. package/src/cli.ts +0 -516
  81. package/src/components/dev-view.tsx +0 -352
  82. package/src/components/streaming-view.ts +0 -177
  83. package/src/config.ts +0 -893
  84. package/src/contract.meta.ts +0 -140
  85. package/src/contract.ts +0 -326
  86. package/src/dev-logs.ts +0 -92
  87. package/src/dev-session.ts +0 -283
  88. package/src/fastkv.ts +0 -181
  89. package/src/index.ts +0 -8
  90. package/src/integrity.ts +0 -138
  91. package/src/internal/manifest-normalizer.ts +0 -290
  92. package/src/merge.ts +0 -187
  93. package/src/mf.ts +0 -147
  94. package/src/near-cli.ts +0 -259
  95. package/src/network.ts +0 -3
  96. package/src/orchestrator.ts +0 -493
  97. package/src/plugin.ts +0 -1799
  98. package/src/sdk.ts +0 -14
  99. package/src/service-descriptor.ts +0 -281
  100. package/src/shared.ts +0 -249
  101. package/src/sidebar.ts +0 -140
  102. package/src/types.ts +0 -330
  103. package/src/ui/head.ts +0 -83
  104. package/src/ui/index.ts +0 -5
  105. package/src/ui/metadata.ts +0 -95
  106. package/src/ui/router.ts +0 -88
  107. package/src/ui/runtime.ts +0 -42
  108. package/src/ui/types.ts +0 -65
  109. package/src/utils/banner.ts +0 -21
  110. package/src/utils/linkify.ts +0 -11
  111. package/src/utils/path-match.ts +0 -16
  112. package/src/utils/run.ts +0 -31
  113. package/src/utils/save-config.ts +0 -20
  114. 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
- }