specproof 0.2.1 → 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.
- package/README.md +35 -27
- package/components/CoverageProof.tsx +2 -2
- package/next.config.js +3 -0
- package/package.json +26 -10
- package/scripts/cli.ts +113 -0
- package/scripts/generate-proof.ts +100 -17
- package/.github/workflows/ci.yml +0 -69
- package/.github/workflows/release.yml +0 -49
- package/CHANGELOG.md +0 -52
- package/CLAUDE.md +0 -82
- package/app/proof-contract.test.ts +0 -95
- package/app/proof.generated.json +0 -288
- package/bun.lock +0 -991
- package/eslint.config.mjs +0 -43
- package/example/api/openapi.json +0 -88
- package/example/tests/auth.test.ts +0 -25
- package/example/tests/client.ts +0 -53
- package/example/tests/tasks.test.ts +0 -83
- package/lib/api-test-coverage.test.ts +0 -423
- package/marketing/index.html +0 -1083
- package/marketing/package.json +0 -10
- package/marketing/server.ts +0 -27
- package/public/banner.png +0 -0
- package/public/icon.png +0 -0
- package/public/logo.png +0 -0
- package/vitest.config.ts +0 -19
package/marketing/package.json
DELETED
package/marketing/server.ts
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
const port = Number(process.env.PORT) || 3002;
|
|
2
|
-
const root = new URL('./', import.meta.url).pathname;
|
|
3
|
-
|
|
4
|
-
const MIME: Record<string, string> = {
|
|
5
|
-
'.html': 'text/html; charset=utf-8',
|
|
6
|
-
'.css': 'text/css; charset=utf-8',
|
|
7
|
-
'.js': 'text/javascript; charset=utf-8',
|
|
8
|
-
'.png': 'image/png',
|
|
9
|
-
'.jpg': 'image/jpeg',
|
|
10
|
-
'.jpeg': 'image/jpeg',
|
|
11
|
-
'.svg': 'image/svg+xml',
|
|
12
|
-
'.ico': 'image/x-icon'
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
Bun.serve({
|
|
16
|
-
port,
|
|
17
|
-
async fetch(req) {
|
|
18
|
-
const url = new URL(req.url);
|
|
19
|
-
const pathname = url.pathname === '/' ? '/index.html' : url.pathname;
|
|
20
|
-
const file = Bun.file(root + pathname.slice(1));
|
|
21
|
-
if (!(await file.exists())) return new Response('Not found', { status: 404 });
|
|
22
|
-
const ext = pathname.slice(pathname.lastIndexOf('.'));
|
|
23
|
-
return new Response(file, { headers: { 'Content-Type': MIME[ext] ?? 'application/octet-stream' } });
|
|
24
|
-
}
|
|
25
|
-
});
|
|
26
|
-
|
|
27
|
-
console.log(`SpecProof marketing site → http://localhost:${port}`);
|
package/public/banner.png
DELETED
|
Binary file
|
package/public/icon.png
DELETED
|
Binary file
|
package/public/logo.png
DELETED
|
Binary file
|
package/vitest.config.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { resolve } from "node:path";
|
|
2
|
-
import { defineConfig } from "vitest/config";
|
|
3
|
-
|
|
4
|
-
// Contract-test config: the proof drift guards are pure node tests that read
|
|
5
|
-
// the checked-in artifact and the apps/web sources it derives from.
|
|
6
|
-
export default defineConfig({
|
|
7
|
-
resolve: {
|
|
8
|
-
alias: {
|
|
9
|
-
// Mirror the tsconfig "@/*" -> "./*" path mapping (specproof root).
|
|
10
|
-
"@": resolve(__dirname, "."),
|
|
11
|
-
},
|
|
12
|
-
},
|
|
13
|
-
test: {
|
|
14
|
-
environment: "node",
|
|
15
|
-
include: ["**/*.test.ts"],
|
|
16
|
-
// example/ holds fixture tests for the analyzer to parse — never run them
|
|
17
|
-
exclude: ["node_modules/**", ".next/**", "example/**"],
|
|
18
|
-
},
|
|
19
|
-
});
|