ambit-ts 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.
Files changed (96) hide show
  1. package/CHANGELOG.md +64 -0
  2. package/LICENSE +21 -0
  3. package/README.md +403 -0
  4. package/dist/checker/authority.d.ts +13 -0
  5. package/dist/checker/authority.js +87 -0
  6. package/dist/checker/backend/legacy-ts.d.ts +26 -0
  7. package/dist/checker/backend/legacy-ts.js +1936 -0
  8. package/dist/checker/config.d.ts +84 -0
  9. package/dist/checker/config.js +391 -0
  10. package/dist/checker/coverage.d.ts +78 -0
  11. package/dist/checker/coverage.js +84 -0
  12. package/dist/checker/diagnose.d.ts +89 -0
  13. package/dist/checker/diagnose.js +734 -0
  14. package/dist/checker/index.d.ts +8 -0
  15. package/dist/checker/index.js +8 -0
  16. package/dist/checker/init.d.ts +38 -0
  17. package/dist/checker/init.js +205 -0
  18. package/dist/checker/propagate.d.ts +69 -0
  19. package/dist/checker/propagate.js +259 -0
  20. package/dist/checker/summarize.d.ts +27 -0
  21. package/dist/checker/summarize.js +411 -0
  22. package/dist/cli/analyze.d.ts +33 -0
  23. package/dist/cli/analyze.js +98 -0
  24. package/dist/cli/approvals.d.ts +28 -0
  25. package/dist/cli/approvals.js +55 -0
  26. package/dist/cli/diff.d.ts +66 -0
  27. package/dist/cli/diff.js +235 -0
  28. package/dist/cli/github.d.ts +33 -0
  29. package/dist/cli/github.js +41 -0
  30. package/dist/cli/main.d.ts +8 -0
  31. package/dist/cli/main.js +385 -0
  32. package/dist/cli/worktree.d.ts +75 -0
  33. package/dist/cli/worktree.js +154 -0
  34. package/dist/config.d.ts +12 -0
  35. package/dist/config.js +10 -0
  36. package/dist/core/approvals.d.ts +82 -0
  37. package/dist/core/approvals.js +0 -0
  38. package/dist/core/authority-diff.d.ts +98 -0
  39. package/dist/core/authority-diff.js +209 -0
  40. package/dist/core/authority.d.ts +109 -0
  41. package/dist/core/authority.js +50 -0
  42. package/dist/core/backend.d.ts +355 -0
  43. package/dist/core/backend.js +1 -0
  44. package/dist/core/budget.d.ts +61 -0
  45. package/dist/core/budget.js +95 -0
  46. package/dist/core/capability.d.ts +53 -0
  47. package/dist/core/capability.js +117 -0
  48. package/dist/core/config.d.ts +59 -0
  49. package/dist/core/config.js +10 -0
  50. package/dist/core/diagnostic.d.ts +126 -0
  51. package/dist/core/diagnostic.js +13 -0
  52. package/dist/core/effects.d.ts +39 -0
  53. package/dist/core/effects.js +72 -0
  54. package/dist/core/index.d.ts +13 -0
  55. package/dist/core/index.js +13 -0
  56. package/dist/core/location.d.ts +15 -0
  57. package/dist/core/location.js +1 -0
  58. package/dist/core/sql.d.ts +22 -0
  59. package/dist/core/sql.js +38 -0
  60. package/dist/core/summary.d.ts +240 -0
  61. package/dist/core/summary.js +8 -0
  62. package/dist/core/symbol-id.d.ts +25 -0
  63. package/dist/core/symbol-id.js +23 -0
  64. package/dist/index.d.ts +14 -0
  65. package/dist/index.js +14 -0
  66. package/dist/runtime/child-process.d.ts +29 -0
  67. package/dist/runtime/child-process.js +124 -0
  68. package/dist/runtime/context.d.ts +37 -0
  69. package/dist/runtime/context.js +8 -0
  70. package/dist/runtime/enforce.d.ts +52 -0
  71. package/dist/runtime/enforce.js +95 -0
  72. package/dist/runtime/fs.d.ts +46 -0
  73. package/dist/runtime/fs.js +188 -0
  74. package/dist/runtime/hono.d.ts +55 -0
  75. package/dist/runtime/hono.js +68 -0
  76. package/dist/runtime/index.d.ts +71 -0
  77. package/dist/runtime/index.js +126 -0
  78. package/dist/runtime/next.d.ts +95 -0
  79. package/dist/runtime/next.js +60 -0
  80. package/dist/runtime/pg.d.ts +48 -0
  81. package/dist/runtime/pg.js +122 -0
  82. package/dist/stubs/constructors.d.ts +34 -0
  83. package/dist/stubs/constructors.js +111 -0
  84. package/dist/stubs/data-clients.d.ts +9 -0
  85. package/dist/stubs/data-clients.js +109 -0
  86. package/dist/stubs/http-capabilities.d.ts +15 -0
  87. package/dist/stubs/http-capabilities.js +70 -0
  88. package/dist/stubs/mutating-builtins.d.ts +1 -0
  89. package/dist/stubs/mutating-builtins.js +48 -0
  90. package/dist/stubs/node-builtins.d.ts +2 -0
  91. package/dist/stubs/node-builtins.js +77 -0
  92. package/dist/stubs/pure-builtins.d.ts +1 -0
  93. package/dist/stubs/pure-builtins.js +89 -0
  94. package/docs/diagnostics/README.md +519 -0
  95. package/docs/limitations.md +712 -0
  96. package/package.json +89 -0
package/package.json ADDED
@@ -0,0 +1,89 @@
1
+ {
2
+ "name": "ambit-ts",
3
+ "version": "0.1.0",
4
+ "description": "A contract layer on top of TypeScript for AI-generated code",
5
+ "keywords": [
6
+ "typescript",
7
+ "jsdoc",
8
+ "static-analysis",
9
+ "effects",
10
+ "capabilities",
11
+ "contracts",
12
+ "ai-generated-code",
13
+ "supply-chain",
14
+ "cli"
15
+ ],
16
+ "license": "MIT",
17
+ "author": "sanosuguru",
18
+ "homepage": "https://github.com/sano-suguru/ambit#readme",
19
+ "repository": {
20
+ "type": "git",
21
+ "url": "git+https://github.com/sano-suguru/ambit.git"
22
+ },
23
+ "bugs": {
24
+ "url": "https://github.com/sano-suguru/ambit/issues"
25
+ },
26
+ "type": "module",
27
+ "packageManager": "pnpm@12.3.4",
28
+ "engines": {
29
+ "node": "^24.0.0"
30
+ },
31
+ "volta": {
32
+ "node": "24.20.0"
33
+ },
34
+ "scripts": {
35
+ "check": "node src/cli/main.ts",
36
+ "typecheck": "tsc --noEmit",
37
+ "lint": "biome check .",
38
+ "lint:fix": "biome check --write .",
39
+ "fmt": "biome format --write .",
40
+ "test": "vitest run",
41
+ "test:watch": "vitest",
42
+ "build": "tsc -p tsconfig.build.json",
43
+ "prepack": "tsc -p tsconfig.build.json"
44
+ },
45
+ "devDependencies": {
46
+ "@biomejs/biome": "^2.5.12",
47
+ "@types/node": "^24.13.3",
48
+ "hono": "^4.13.7",
49
+ "next": "^16.3.4",
50
+ "vite": "^8.2.2",
51
+ "vitest": "^4.1.11"
52
+ },
53
+ "bin": {
54
+ "ambit": "dist/cli/main.js"
55
+ },
56
+ "files": [
57
+ "dist",
58
+ "CHANGELOG.md",
59
+ "docs/diagnostics",
60
+ "docs/limitations.md",
61
+ "README.md",
62
+ "LICENSE"
63
+ ],
64
+ "dependencies": {
65
+ "typescript": "6.0.3"
66
+ },
67
+ "exports": {
68
+ ".": {
69
+ "types": "./dist/index.d.ts",
70
+ "import": "./dist/index.js"
71
+ },
72
+ "./config": {
73
+ "types": "./dist/config.d.ts",
74
+ "import": "./dist/config.js"
75
+ },
76
+ "./runtime": {
77
+ "types": "./dist/runtime/index.d.ts",
78
+ "import": "./dist/runtime/index.js"
79
+ },
80
+ "./runtime/hono": {
81
+ "types": "./dist/runtime/hono.d.ts",
82
+ "import": "./dist/runtime/hono.js"
83
+ },
84
+ "./runtime/next": {
85
+ "types": "./dist/runtime/next.d.ts",
86
+ "import": "./dist/runtime/next.js"
87
+ }
88
+ }
89
+ }