tencil 0.0.0-stage → 0.3.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.
@@ -0,0 +1,22 @@
1
+ //#region src/integrations/vite.d.ts
2
+ /** Structural subset of Vite's Plugin type, so `vite` stays an optional peer. */
3
+ interface VitePlugin {
4
+ name: string;
5
+ apply: 'serve';
6
+ transformIndexHtml(): Array<{
7
+ tag: string;
8
+ children: string;
9
+ injectTo: 'body';
10
+ }>;
11
+ transform(code: string, id: string): string | undefined;
12
+ }
13
+ export interface TencilViteOptions {
14
+ /** Port of the Tencil daemon. Defaults to TENCIL_PORT or 4747. */
15
+ port?: number;
16
+ }
17
+ /**
18
+ * Dev-only: loads the overlay from the Tencil daemon on the machine serving the
19
+ * page (`npx tencil start`). Without a running daemon nothing appears.
20
+ */
21
+ export default function tencil(options?: TencilViteOptions): VitePlugin;
22
+ //#endregion
package/dist/vite.mjs ADDED
@@ -0,0 +1,27 @@
1
+ import { n as overlayLoader } from "./loader-BevujQ44.mjs";
2
+ //#region src/integrations/vite.ts
3
+ /** Vite's dev client, which every dev page loads, whether or not it has an index.html. */
4
+ const VITE_CLIENT = /vite\/dist\/client\/(?:client|bundledDevClient)\.mjs$/;
5
+ /**
6
+ * Dev-only: loads the overlay from the Tencil daemon on the machine serving the
7
+ * page (`npx tencil start`). Without a running daemon nothing appears.
8
+ */
9
+ function tencil(options = {}) {
10
+ const loader = overlayLoader(options.port ?? Number(process.env.TENCIL_PORT ?? 4747));
11
+ return {
12
+ name: "tencil",
13
+ apply: "serve",
14
+ transform(code, id) {
15
+ return VITE_CLIENT.test(id) ? `${code}\n${loader}\n` : void 0;
16
+ },
17
+ transformIndexHtml() {
18
+ return [{
19
+ tag: "script",
20
+ children: loader,
21
+ injectTo: "body"
22
+ }];
23
+ }
24
+ };
25
+ }
26
+ //#endregion
27
+ export { tencil as default };
package/package.json CHANGED
@@ -1,6 +1,100 @@
1
1
  {
2
2
  "name": "tencil",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
3
+ "version": "0.3.0",
4
+ "description": "Point at any element of your running app and tell your coding agent what to fix.",
5
+ "license": "MIT",
6
+ "author": "Pixel Perfect Agency",
7
+ "homepage": "https://tencil.dev",
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "git+https://github.com/pixel-perfect-agency/tencil.git",
11
+ "directory": "packages/tencil"
12
+ },
13
+ "bugs": {
14
+ "url": "https://github.com/pixel-perfect-agency/tencil/issues"
15
+ },
16
+ "keywords": [
17
+ "agent",
18
+ "ai",
19
+ "claude-code",
20
+ "code-review",
21
+ "comments",
22
+ "devtools",
23
+ "nextjs",
24
+ "overlay",
25
+ "react",
26
+ "review",
27
+ "t3",
28
+ "t3code",
29
+ "vite"
30
+ ],
31
+ "type": "module",
32
+ "bin": {
33
+ "tencil": "./dist/cli.mjs"
34
+ },
35
+ "exports": {
36
+ ".": {
37
+ "types": "./dist/index.d.mts",
38
+ "default": "./dist/index.mjs"
39
+ },
40
+ "./vite": {
41
+ "types": "./dist/vite.d.mts",
42
+ "default": "./dist/vite.mjs"
43
+ },
44
+ "./react": {
45
+ "types": "./dist/react.d.mts",
46
+ "default": "./dist/react.mjs"
47
+ },
48
+ "./overlay.js": "./dist/overlay.global.js",
49
+ "./package.json": "./package.json"
50
+ },
51
+ "files": [
52
+ "dist",
53
+ "THIRD_PARTY_NOTICES.md"
54
+ ],
55
+ "publishConfig": {
56
+ "access": "public"
57
+ },
58
+ "engines": {
59
+ "node": ">=22"
60
+ },
61
+ "dependencies": {
62
+ "picocolors": "^1.1.1",
63
+ "ws": "^8.22.0",
64
+ "zod": "^4.6.5"
65
+ },
66
+ "peerDependencies": {
67
+ "@anthropic-ai/claude-agent-sdk": "^0.3.293",
68
+ "react": ">=18",
69
+ "vite": ">=5"
70
+ },
71
+ "peerDependenciesMeta": {
72
+ "@anthropic-ai/claude-agent-sdk": {
73
+ "optional": true
74
+ },
75
+ "react": {
76
+ "optional": true
77
+ },
78
+ "vite": {
79
+ "optional": true
80
+ }
81
+ },
82
+ "devDependencies": {
83
+ "@anthropic-ai/claude-agent-sdk": "^0.3.293",
84
+ "@types/react": "^19.3.0",
85
+ "@types/ws": "^8.18.2",
86
+ "react": "^19.3.0",
87
+ "tsdown": "^0.23.0",
88
+ "@tencil/overlay": "0.0.0",
89
+ "@tencil/testing": "0.0.0",
90
+ "@tencil/provider-t3code": "0.0.0",
91
+ "@tencil/tsconfig": "0.0.0",
92
+ "@tencil/provider-claude-code": "0.0.0",
93
+ "@tencil/protocol": "0.0.0"
94
+ },
95
+ "scripts": {
96
+ "build": "tsdown && node scripts/copy-overlay.mjs",
97
+ "dev": "tsdown --watch",
98
+ "typecheck": "tsc -p ."
99
+ }
6
100
  }