opencode-total-session-cost 1.0.0 → 1.0.1
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.
|
@@ -3,25 +3,28 @@ name: Publish to NPM
|
|
|
3
3
|
on:
|
|
4
4
|
release:
|
|
5
5
|
types: [published]
|
|
6
|
+
workflow_dispatch:
|
|
6
7
|
|
|
7
8
|
jobs:
|
|
8
9
|
publish:
|
|
9
10
|
name: Publish Package
|
|
10
11
|
runs-on: ubuntu-latest
|
|
12
|
+
permissions:
|
|
13
|
+
contents: read
|
|
14
|
+
id-token: write
|
|
11
15
|
steps:
|
|
12
16
|
- name: Checkout Code
|
|
13
|
-
uses: actions/checkout@
|
|
17
|
+
uses: actions/checkout@v6
|
|
14
18
|
|
|
15
|
-
- name: Setup Node.js
|
|
16
|
-
uses: actions/setup-node@
|
|
19
|
+
- name: Setup Node.js
|
|
20
|
+
uses: actions/setup-node@v6
|
|
17
21
|
with:
|
|
18
|
-
node-version:
|
|
22
|
+
node-version: 24
|
|
19
23
|
registry-url: 'https://registry.npmjs.org'
|
|
24
|
+
package-manager-cache: false
|
|
20
25
|
|
|
21
26
|
- name: Install Dependencies
|
|
22
27
|
run: npm ci
|
|
23
28
|
|
|
24
29
|
- name: Publish Package
|
|
25
|
-
run: npm publish --
|
|
26
|
-
env:
|
|
27
|
-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
30
|
+
run: npm publish --access public
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opencode-total-session-cost",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "Real-time cumulative cost tracker for Opencode sessions, aggregating costs from parent sessions, archived messages, and all child sub-agent tasks.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./index.ts",
|
|
@@ -19,6 +19,14 @@
|
|
|
19
19
|
],
|
|
20
20
|
"author": "crazybyte",
|
|
21
21
|
"license": "MIT",
|
|
22
|
+
"repository": {
|
|
23
|
+
"type": "git",
|
|
24
|
+
"url": "git+https://github.com/StayPirate/opencode-total-session-cost.git"
|
|
25
|
+
},
|
|
26
|
+
"bugs": {
|
|
27
|
+
"url": "https://github.com/StayPirate/opencode-total-session-cost/issues"
|
|
28
|
+
},
|
|
29
|
+
"homepage": "https://github.com/StayPirate/opencode-total-session-cost#readme",
|
|
22
30
|
"dependencies": {
|
|
23
31
|
"@opencode-ai/plugin": "^1.18.30",
|
|
24
32
|
"@opencode-ai/sdk": "^1.18.30"
|