Skip to content

Commit df3bbfd

Browse files
committed
(feat) (openai/gpt-5.5, reviewed T, tested T) add core sdk package
1 parent ccd3100 commit df3bbfd

7 files changed

Lines changed: 111 additions & 0 deletions

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ At the foundation of fcf is the **Repository Identity Key** (**RIK**), an ERC-72
1616

1717
- `contracts/`: EVM smart contracts that define protocol identity and funding primitives.
1818
- `packages/cli/`: command-line tooling for repository onboarding and protocol operations.
19+
- `packages/core-sdk/`: core TypeScript SDK for fcf integrations.
1920

2021
## Create a RIK
2122

packages/core-sdk/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
node_modules/
2+
dist/

packages/core-sdk/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# @freecodexyz/core-sdk
2+
3+
Core TypeScript SDK for fcf.

packages/core-sdk/package.json

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
{
2+
"name": "@freecodexyz/core-sdk",
3+
"version": "0.1.0",
4+
"description": "",
5+
"type": "module",
6+
"repository": {
7+
"type": "git",
8+
"url": "https://github.com/freecodexyz/fcf.git",
9+
"directory": "packages/core-sdk"
10+
},
11+
"main": "./dist/index.js",
12+
"types": "./dist/index.d.ts",
13+
"exports": {
14+
".": {
15+
"types": "./dist/index.d.ts",
16+
"import": "./dist/index.js"
17+
}
18+
},
19+
"files": [
20+
"dist"
21+
],
22+
"publishConfig": {
23+
"access": "public"
24+
},
25+
"scripts": {
26+
"build": "tsup src/index.ts --format esm --dts --clean",
27+
"typecheck": "tsc --noEmit"
28+
},
29+
"keywords": [],
30+
"author": "",
31+
"license": "ISC",
32+
"packageManager": "pnpm@10.24.0",
33+
"devDependencies": {
34+
"@types/node": "^25.9.1",
35+
"tsup": "^8.5.1",
36+
"typescript": "^6.0.3"
37+
}
38+
}

packages/core-sdk/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export {};

packages/core-sdk/tsconfig.json

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
{
2+
// Visit https://aka.ms/tsconfig to read more about this file
3+
"compilerOptions": {
4+
// know bug -> https://github.com/egoist/tsup/issues/1389
5+
"ignoreDeprecations": "6.0",
6+
// File Layout
7+
"rootDir": ".",
8+
"outDir": "./dist",
9+
"paths": {
10+
"@/*": ["./src/*"]
11+
},
12+
13+
// JSON Module Import
14+
"resolveJsonModule": true,
15+
"esModuleInterop": true,
16+
17+
// Environment Settings
18+
// See also https://aka.ms/tsconfig/module
19+
"module": "nodenext",
20+
"target": "esnext",
21+
"types": ["node"],
22+
"lib": ["esnext"],
23+
// For nodejs:
24+
// "lib": ["esnext"],
25+
// "types": ["node"],
26+
// and npm install -D @types/node
27+
28+
// Other Outputs
29+
"sourceMap": true,
30+
"declaration": true,
31+
"declarationMap": true,
32+
33+
// Stricter Typechecking Options
34+
"noUncheckedIndexedAccess": true,
35+
"exactOptionalPropertyTypes": true,
36+
37+
// Style Options
38+
// "noImplicitReturns": true,
39+
// "noImplicitOverride": true,
40+
// "noUnusedLocals": true,
41+
// "noUnusedParameters": true,
42+
// "noFallthroughCasesInSwitch": true,
43+
// "noPropertyAccessFromIndexSignature": true,
44+
45+
// Recommended Options
46+
"strict": true,
47+
"jsx": "react-jsx",
48+
"verbatimModuleSyntax": true,
49+
"isolatedModules": true,
50+
"noUncheckedSideEffectImports": true,
51+
"moduleDetection": "force",
52+
"skipLibCheck": true,
53+
}
54+
}

pnpm-lock.yaml

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)