@pragma-sh/constants 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/README.md ADDED
@@ -0,0 +1,26 @@
1
+ # @pragma-sh/constants
2
+
3
+ Shared constants for Pragma's TypeScript and Rust sides. Part of [Pragma](https://github.com/pragma-sh/pragma) — a desktop workspace for
4
+ running persistent, worktree-scoped coding agents.
5
+
6
+ Generated from one `schema.json` + `values.json` pair, so the frontend, the host
7
+ and every client agree on names, defaults and wire shapes without a value being
8
+ copied across the language boundary.
9
+
10
+ ```sh
11
+ bun add @pragma-sh/constants
12
+ ```
13
+
14
+ ```ts
15
+ import { constants } from "@pragma-sh/constants";
16
+ ```
17
+
18
+ Published as TypeScript source; consume it through a bundler or Bun. Most
19
+ integrations want [`@pragma-sh/sdk`](https://www.npmjs.com/package/@pragma-sh/sdk)
20
+ instead — this is the low-level shared vocabulary it is built on.
21
+
22
+ Docs: <https://pragma-app.sh/docs>
23
+
24
+ ## License
25
+
26
+ AGPL-3.0-only. See [LICENSE](https://github.com/pragma-sh/pragma/blob/main/LICENSE).
package/package.json ADDED
@@ -0,0 +1,42 @@
1
+ {
2
+ "name": "@pragma-sh/constants",
3
+ "version": "0.1.0",
4
+ "description": "Shared constants for the Pragma frontend and Tauri backend. Source of truth: schema.json + values.json.",
5
+ "homepage": "https://github.com/pragma-sh/pragma#readme",
6
+ "bugs": "https://github.com/pragma-sh/pragma/issues",
7
+ "license": "AGPL-3.0-only",
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "git+https://github.com/pragma-sh/pragma.git",
11
+ "directory": "packages/constants"
12
+ },
13
+ "files": [
14
+ "src",
15
+ "!src/**/*.test.ts",
16
+ "!src/lib.rs",
17
+ "values.json",
18
+ "schema.json"
19
+ ],
20
+ "type": "module",
21
+ "exports": {
22
+ ".": "./src/index.ts",
23
+ "./values.json": "./values.json"
24
+ },
25
+ "publishConfig": {
26
+ "access": "public"
27
+ },
28
+ "scripts": {
29
+ "generate": "bun scripts/generate-types.ts",
30
+ "build": "bun run generate",
31
+ "typecheck": "tsc --noEmit",
32
+ "pretypecheck": "bun run generate",
33
+ "test": "bun --bun vitest run",
34
+ "pretest": "bun run generate",
35
+ "lint": "oxlint ."
36
+ },
37
+ "devDependencies": {
38
+ "json-schema-to-typescript": "^15.0.4",
39
+ "typescript": "^6.0.3",
40
+ "vitest": "^4.1.8"
41
+ }
42
+ }