everything-dev 1.26.1 → 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 (166) hide show
  1. package/dist/api-contract.cjs.map +1 -1
  2. package/dist/api-contract.mjs.map +1 -1
  3. package/dist/cli/catalog.cjs.map +1 -1
  4. package/dist/cli/catalog.mjs.map +1 -1
  5. package/dist/cli/framework-version.cjs.map +1 -1
  6. package/dist/cli/framework-version.mjs.map +1 -1
  7. package/dist/cli/infra.cjs +1 -1
  8. package/dist/cli/infra.cjs.map +1 -1
  9. package/dist/cli/infra.mjs +1 -1
  10. package/dist/cli/infra.mjs.map +1 -1
  11. package/dist/cli/init.cjs +127 -121
  12. package/dist/cli/init.cjs.map +1 -1
  13. package/dist/cli/init.d.cts +6 -6
  14. package/dist/cli/init.d.cts.map +1 -1
  15. package/dist/cli/init.d.mts +6 -6
  16. package/dist/cli/init.d.mts.map +1 -1
  17. package/dist/cli/init.mjs +125 -121
  18. package/dist/cli/init.mjs.map +1 -1
  19. package/dist/cli/parse.cjs.map +1 -1
  20. package/dist/cli/parse.mjs.map +1 -1
  21. package/dist/cli/prompts.cjs +29 -25
  22. package/dist/cli/prompts.cjs.map +1 -1
  23. package/dist/cli/prompts.mjs +28 -25
  24. package/dist/cli/prompts.mjs.map +1 -1
  25. package/dist/cli/status.cjs.map +1 -1
  26. package/dist/cli/status.mjs.map +1 -1
  27. package/dist/cli/sync.cjs +46 -93
  28. package/dist/cli/sync.cjs.map +1 -1
  29. package/dist/cli/sync.mjs +49 -96
  30. package/dist/cli/sync.mjs.map +1 -1
  31. package/dist/cli/timing.cjs.map +1 -1
  32. package/dist/cli/timing.mjs.map +1 -1
  33. package/dist/cli/upgrade.cjs +41 -20
  34. package/dist/cli/upgrade.cjs.map +1 -1
  35. package/dist/cli/upgrade.mjs +43 -22
  36. package/dist/cli/upgrade.mjs.map +1 -1
  37. package/dist/cli.cjs +187 -12
  38. package/dist/cli.cjs.map +1 -1
  39. package/dist/cli.mjs +187 -12
  40. package/dist/cli.mjs.map +1 -1
  41. package/dist/components/dev-view.cjs.map +1 -1
  42. package/dist/components/dev-view.mjs.map +1 -1
  43. package/dist/components/streaming-view.cjs.map +1 -1
  44. package/dist/components/streaming-view.mjs.map +1 -1
  45. package/dist/config.cjs.map +1 -1
  46. package/dist/config.mjs.map +1 -1
  47. package/dist/contract.cjs +174 -173
  48. package/dist/contract.cjs.map +1 -1
  49. package/dist/contract.d.cts +48 -44
  50. package/dist/contract.d.cts.map +1 -1
  51. package/dist/contract.d.mts +48 -44
  52. package/dist/contract.d.mts.map +1 -1
  53. package/dist/contract.mjs +3 -1
  54. package/dist/contract.mjs.map +1 -1
  55. package/dist/dev-logs.cjs.map +1 -1
  56. package/dist/dev-logs.mjs.map +1 -1
  57. package/dist/dev-session.cjs +0 -1
  58. package/dist/dev-session.mjs +1 -1
  59. package/dist/fastkv.cjs.map +1 -1
  60. package/dist/fastkv.mjs.map +1 -1
  61. package/dist/index.cjs +2 -4
  62. package/dist/index.d.cts +3 -3
  63. package/dist/index.d.mts +3 -3
  64. package/dist/index.mjs +1 -2
  65. package/dist/integrity.cjs.map +1 -1
  66. package/dist/integrity.mjs.map +1 -1
  67. package/dist/internal/manifest-normalizer.cjs.map +1 -1
  68. package/dist/internal/manifest-normalizer.mjs.map +1 -1
  69. package/dist/merge.cjs.map +1 -1
  70. package/dist/merge.mjs.map +1 -1
  71. package/dist/near-cli.cjs +1 -1
  72. package/dist/near-cli.cjs.map +1 -1
  73. package/dist/near-cli.mjs +1 -1
  74. package/dist/near-cli.mjs.map +1 -1
  75. package/dist/orchestrator.cjs +1 -1
  76. package/dist/orchestrator.cjs.map +1 -1
  77. package/dist/orchestrator.mjs +1 -1
  78. package/dist/orchestrator.mjs.map +1 -1
  79. package/dist/plugin.cjs +182 -171
  80. package/dist/plugin.cjs.map +1 -1
  81. package/dist/plugin.d.cts +72 -39
  82. package/dist/plugin.d.cts.map +1 -1
  83. package/dist/plugin.d.mts +71 -39
  84. package/dist/plugin.d.mts.map +1 -1
  85. package/dist/plugin.mjs +170 -160
  86. package/dist/plugin.mjs.map +1 -1
  87. package/dist/sdk.cjs +2 -2
  88. package/dist/sdk.d.cts +1 -1
  89. package/dist/sdk.d.mts +1 -1
  90. package/dist/sdk.mjs +1 -1
  91. package/dist/service-descriptor.d.cts +34 -0
  92. package/dist/service-descriptor.d.cts.map +1 -0
  93. package/dist/service-descriptor.d.mts +36 -0
  94. package/dist/service-descriptor.d.mts.map +1 -0
  95. package/dist/shared.cjs.map +1 -1
  96. package/dist/shared.mjs.map +1 -1
  97. package/dist/types.cjs +184 -184
  98. package/dist/types.cjs.map +1 -1
  99. package/dist/types.d.cts +5 -5
  100. package/dist/types.d.mts +5 -5
  101. package/dist/types.mjs +1 -1
  102. package/dist/types.mjs.map +1 -1
  103. package/dist/ui/types.d.cts +1 -0
  104. package/dist/ui/types.d.cts.map +1 -1
  105. package/dist/ui/types.d.mts +1 -0
  106. package/dist/ui/types.d.mts.map +1 -1
  107. package/dist/utils/banner.cjs.map +1 -1
  108. package/dist/utils/banner.mjs.map +1 -1
  109. package/dist/utils/run.cjs.map +1 -1
  110. package/dist/utils/run.mjs.map +1 -1
  111. package/package.json +3 -3
  112. package/skills/init-upgrade/SKILL.md +22 -16
  113. package/skills/publish-sync/SKILL.md +7 -18
  114. package/dist/utils/path-match.cjs +0 -18
  115. package/dist/utils/path-match.cjs.map +0 -1
  116. package/dist/utils/path-match.mjs +0 -17
  117. package/dist/utils/path-match.mjs.map +0 -1
  118. package/src/api-contract.ts +0 -623
  119. package/src/app.ts +0 -193
  120. package/src/cli/catalog.ts +0 -49
  121. package/src/cli/framework-version.ts +0 -61
  122. package/src/cli/help.ts +0 -13
  123. package/src/cli/infra.ts +0 -190
  124. package/src/cli/init.ts +0 -1202
  125. package/src/cli/parse.ts +0 -147
  126. package/src/cli/prompts.ts +0 -135
  127. package/src/cli/snapshot.ts +0 -46
  128. package/src/cli/status.ts +0 -99
  129. package/src/cli/sync.ts +0 -518
  130. package/src/cli/timing.ts +0 -63
  131. package/src/cli/upgrade.ts +0 -828
  132. package/src/cli.ts +0 -516
  133. package/src/components/dev-view.tsx +0 -352
  134. package/src/components/streaming-view.ts +0 -177
  135. package/src/config.ts +0 -893
  136. package/src/contract.meta.ts +0 -140
  137. package/src/contract.ts +0 -325
  138. package/src/dev-logs.ts +0 -92
  139. package/src/dev-session.ts +0 -283
  140. package/src/fastkv.ts +0 -181
  141. package/src/index.ts +0 -8
  142. package/src/integrity.ts +0 -138
  143. package/src/internal/manifest-normalizer.ts +0 -290
  144. package/src/merge.ts +0 -187
  145. package/src/mf.ts +0 -147
  146. package/src/near-cli.ts +0 -259
  147. package/src/network.ts +0 -3
  148. package/src/orchestrator.ts +0 -493
  149. package/src/plugin.ts +0 -1821
  150. package/src/sdk.ts +0 -14
  151. package/src/service-descriptor.ts +0 -281
  152. package/src/shared.ts +0 -249
  153. package/src/sidebar.ts +0 -140
  154. package/src/types.ts +0 -330
  155. package/src/ui/head.ts +0 -83
  156. package/src/ui/index.ts +0 -5
  157. package/src/ui/metadata.ts +0 -95
  158. package/src/ui/router.ts +0 -88
  159. package/src/ui/runtime.ts +0 -42
  160. package/src/ui/types.ts +0 -64
  161. package/src/utils/banner.ts +0 -21
  162. package/src/utils/linkify.ts +0 -11
  163. package/src/utils/path-match.ts +0 -16
  164. package/src/utils/run.ts +0 -31
  165. package/src/utils/save-config.ts +0 -20
  166. package/src/utils/theme.ts +0 -39
package/src/ui/types.ts DELETED
@@ -1,64 +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
- }
44
-
45
- export interface RenderResult {
46
- stream: ReadableStream;
47
- statusCode: number;
48
- headers: Headers;
49
- }
50
-
51
- export interface RouterModule<TApiClient = unknown, TSession = unknown> {
52
- createRouter: (opts?: CreateRouterOptions<TApiClient, TSession>) => {
53
- router: AnyRouter;
54
- queryClient: QueryClient;
55
- };
56
- getRouteHead: (
57
- pathname: string,
58
- context?: Partial<RouterContextWithApi<TApiClient, TSession>>,
59
- ) => Promise<HeadData>;
60
- renderToStream: (
61
- request: Request,
62
- options: RenderOptionsWithApi<TApiClient, TSession>,
63
- ) => Promise<RenderResult>;
64
- }
@@ -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
- }