@tapcue/extension-sdk 0.1.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.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Tapcue
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,28 @@
1
+ # @tapcue/extension-sdk
2
+
3
+ The API a [Tapcue](https://tapcue.io) extension is written against: the types for commands,
4
+ scopes, and views, the capability surface an extension may ask for, and `validateManifest` —
5
+ the manifest rules themselves, as code.
6
+
7
+ ```ts
8
+ import { defineExtension, defineScope } from "@tapcue/extension-sdk";
9
+ ```
10
+
11
+ ## It ships as TypeScript source
12
+
13
+ `exports` points at `src/*.ts`, not at compiled JavaScript, and that is deliberate rather than
14
+ an oversight. `validateManifest` is the executable specification of what a manifest may say —
15
+ the Rust installer and the Swift shell are both required to reject exactly what it rejects. A
16
+ compiled copy would make "the same rules everywhere" a claim about a build step instead of a
17
+ fact about a file.
18
+
19
+ Nothing consumes this package at runtime. `tapcue extension build` bundles it into your
20
+ extension with esbuild, and your editor and `tsc` read the same source for types. If you reach
21
+ for it with a toolchain that does not transpile dependencies, it will not work — that is the
22
+ trade this package makes.
23
+
24
+ ## Documentation
25
+
26
+ The extension model, the permission system, and the package format are documented at
27
+ [docs.tapcue.io](https://docs.tapcue.io). `@tapcue/extension-cli` builds, packs, and verifies
28
+ what you write here.
package/package.json ADDED
@@ -0,0 +1,45 @@
1
+ {
2
+ "name": "@tapcue/extension-sdk",
3
+ "version": "0.1.0",
4
+ "description": "The Tapcue extension API: types, helpers, and the manifest validator that is the executable spec",
5
+ "license": "MIT",
6
+ "type": "module",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "git+https://github.com/tapcue/tapcue.git",
10
+ "directory": "packages/extension-sdk"
11
+ },
12
+ "homepage": "https://docs.tapcue.io",
13
+ "keywords": [
14
+ "tapcue",
15
+ "extension",
16
+ "launcher",
17
+ "sdk"
18
+ ],
19
+ "files": [
20
+ "src"
21
+ ],
22
+ "exports": {
23
+ ".": "./src/index.ts",
24
+ "./jsx-runtime": "./src/jsx-runtime.ts",
25
+ "./jsx-dev-runtime": "./src/jsx-runtime.ts",
26
+ "./overlay": "./src/overlay.ts",
27
+ "./overlay/jsx-runtime": "./src/overlay-jsx-runtime.ts",
28
+ "./overlay/jsx-dev-runtime": "./src/overlay-jsx-runtime.ts",
29
+ "./testing": "./src/testing/index.ts"
30
+ },
31
+ "types": "./src/index.ts",
32
+ "publishConfig": {
33
+ "access": "public"
34
+ },
35
+ "devDependencies": {
36
+ "typescript": "^5.8.2",
37
+ "vitest": "^3.0.8"
38
+ },
39
+ "scripts": {
40
+ "build": "tsc -p tsconfig.json --noEmit",
41
+ "lint": "node -e \"console.log('lint placeholder: extension-sdk')\"",
42
+ "test": "vitest run",
43
+ "typecheck": "tsc -p tsconfig.json --noEmit"
44
+ }
45
+ }