@monotykamary/pi-ledger 0.2.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 +21 -0
- package/README.md +406 -0
- package/extensions/pi-ledger/__tests__/helpers.ts +326 -0
- package/extensions/pi-ledger/__tests__/ledger.test.ts +2528 -0
- package/extensions/pi-ledger/index.ts +2698 -0
- package/package.json +70 -0
package/package.json
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@monotykamary/pi-ledger",
|
|
3
|
+
"version": "0.2.0",
|
|
4
|
+
"description": "Billing engine for the serverless agency — a pi extension that meters agentic dev work like cloud compute and invoices it like a timesheet.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"pi-package"
|
|
7
|
+
],
|
|
8
|
+
"license": "MIT",
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "github:inloopstudio-team/pi-ledger"
|
|
12
|
+
},
|
|
13
|
+
"homepage": "https://github.com/inloopstudio-team/pi-ledger#readme",
|
|
14
|
+
"bugs": "https://github.com/inloopstudio-team/pi-ledger/issues",
|
|
15
|
+
"pi": {
|
|
16
|
+
"extensions": [
|
|
17
|
+
"./extensions"
|
|
18
|
+
]
|
|
19
|
+
},
|
|
20
|
+
"simple-git-hooks": {
|
|
21
|
+
"pre-commit": "npx lint-staged",
|
|
22
|
+
"pre-push": "npm run typecheck && npm run test",
|
|
23
|
+
"commit-msg": "npx commitlint --edit ${1}"
|
|
24
|
+
},
|
|
25
|
+
"lint-staged": {
|
|
26
|
+
"*.{ts,js,json,md}": [
|
|
27
|
+
"prettier --write"
|
|
28
|
+
]
|
|
29
|
+
},
|
|
30
|
+
"devDependencies": {
|
|
31
|
+
"@commitlint/cli": "21.0.1",
|
|
32
|
+
"@commitlint/config-conventional": "21.0.1",
|
|
33
|
+
"@earendil-works/pi-coding-agent": "0.80.6",
|
|
34
|
+
"@earendil-works/pi-tui": "0.80.6",
|
|
35
|
+
"@types/node": "25.9.1",
|
|
36
|
+
"@vitest/coverage-v8": "4.1.7",
|
|
37
|
+
"knip": "6.14.1",
|
|
38
|
+
"lint-staged": "17.0.5",
|
|
39
|
+
"prettier": "3.8.3",
|
|
40
|
+
"simple-git-hooks": "2.13.1",
|
|
41
|
+
"typescript": "6.0.3",
|
|
42
|
+
"vitest": "4.1.7"
|
|
43
|
+
},
|
|
44
|
+
"peerDependencies": {
|
|
45
|
+
"@earendil-works/pi-coding-agent": ">=0.80.4",
|
|
46
|
+
"@earendil-works/pi-tui": ">=0.80.4"
|
|
47
|
+
},
|
|
48
|
+
"overrides": {
|
|
49
|
+
"brace-expansion": "5.0.6",
|
|
50
|
+
"fast-xml-builder": "1.2.0",
|
|
51
|
+
"protobufjs": "8.4.0",
|
|
52
|
+
"ws": "8.20.1"
|
|
53
|
+
},
|
|
54
|
+
"files": [
|
|
55
|
+
"extensions",
|
|
56
|
+
"README.md",
|
|
57
|
+
"LICENSE"
|
|
58
|
+
],
|
|
59
|
+
"publishConfig": {
|
|
60
|
+
"access": "public"
|
|
61
|
+
},
|
|
62
|
+
"scripts": {
|
|
63
|
+
"test": "vitest run",
|
|
64
|
+
"test:watch": "vitest",
|
|
65
|
+
"test:coverage": "vitest run --coverage",
|
|
66
|
+
"typecheck": "tsc --noEmit",
|
|
67
|
+
"lint:dead": "knip --no-gitignore",
|
|
68
|
+
"postinstall": "simple-git-hooks 2>/dev/null || true"
|
|
69
|
+
}
|
|
70
|
+
}
|