@codyswann/lisa 2.74.1 → 2.75.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.
- package/dist/utils/usage-accounting.js +2 -2
- package/dist/utils/usage-accounting.js.map +1 -1
- package/package.json +1 -1
- package/plugins/lisa/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa/rules/config-resolution.md +44 -0
- package/plugins/lisa/rules/usage-accounting.md +9 -0
- package/plugins/lisa-cdk/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-expo/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-rails/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki/.codex-plugin/plugin.json +1 -1
- package/plugins/src/base/rules/config-resolution.md +44 -0
- package/plugins/src/base/rules/usage-accounting.md +9 -0
|
@@ -151,8 +151,8 @@ export function createLisaUsageRollup(entries, previousRollup) {
|
|
|
151
151
|
const directCost = sumNullable(entries.map(entry => entry.cost));
|
|
152
152
|
const childEntryIds = previousRollup?.childEntryIds ?? [];
|
|
153
153
|
const childRefs = previousRollup?.childRefs ?? [];
|
|
154
|
-
const childTokens = previousRollup
|
|
155
|
-
const childCost = previousRollup
|
|
154
|
+
const childTokens = previousRollup ? previousRollup.childTokens : null;
|
|
155
|
+
const childCost = previousRollup ? previousRollup.childCost : null;
|
|
156
156
|
const totalTokens = directTokens === null && childTokens === null
|
|
157
157
|
? null
|
|
158
158
|
: (directTokens ?? 0) + (childTokens ?? 0);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"usage-accounting.js","sourceRoot":"","sources":["../../src/utils/usage-accounting.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,kBAAkB,GAAG,eAAe,CAAC;AAkDlD,MAAM,aAAa,GACjB,uUAAuU,CAAC;AAE1U,MAAM,cAAc,GAClB,uNAAuN,CAAC;AAE1N;;;;;GAKG;AACH,SAAS,mBAAmB,CAAC,KAAa;IACxC,IAAI,KAAK,KAAK,MAAM,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QAC3C,OAAO,IAAI,CAAC;IACd,CAAC;IAED,MAAM,MAAM,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC;IAC7B,OAAO,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC;AACjD,CAAC;AAED;;;;;GAKG;AACH,SAAS,mBAAmB,CAAC,KAAa;IACxC,IAAI,KAAK,KAAK,MAAM,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QAC3C,OAAO,IAAI,CAAC;IACd,CAAC;IAED,OAAO,KAAK,CAAC;AACf,CAAC;AAED;;;;;GAKG;AACH,SAAS,cAAc,CAAC,KAA6B;IACnD,OAAO,KAAK,KAAK,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;AACjD,CAAC;AAED;;;;;GAKG;AACH,SAAS,QAAQ,CAAC,KAAa;IAC7B,IAAI,KAAK,CAAC,MA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C,CAAC;IACtE,MAAM,YAAY,GAAG,sBAAsB,CAAC;QAC1C,OAAO,EAAE,aAAa;QACtB,MAAM;KACP,CAAC,CAAC,OAAO,EAAE,CAAC;IACb,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,wBAAwB,CAAC,QAAQ,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC;IAE3E,IAAI,CAAC,MAAM,EAAE,CAAC;QACZ,OAAO,KAAK,CAAC,CAAC,CAAC,GAAG,YAAY,OAAO,KAAK,IAAI,CAAC,CAAC,CAAC,GAAG,YAAY,IAAI,CAAC;IACvE,CAAC;IAED,IAAI,CAAC,KAAK,EAAE,CAAC;QACX,OAAO,GAAG,MAAM,OAAO,YAAY,IAAI,CAAC;IAC1C,CAAC;IAED,OAAO,GAAG,MAAM,OAAO,YAAY,OAAO,KAAK,IAAI,CAAC;AACtD,CAAC"}
|
package/package.json
CHANGED
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
"lodash": ">=4.18.1"
|
|
83
83
|
},
|
|
84
84
|
"name": "@codyswann/lisa",
|
|
85
|
-
"version": "2.
|
|
85
|
+
"version": "2.75.1",
|
|
86
86
|
"description": "Claude Code governance framework that applies guardrails, guidance, and automated enforcement to projects",
|
|
87
87
|
"main": "dist/index.js",
|
|
88
88
|
"exports": {
|
|
@@ -132,6 +132,22 @@ fi
|
|
|
132
132
|
}
|
|
133
133
|
},
|
|
134
134
|
|
|
135
|
+
"usage": {
|
|
136
|
+
"pricing": {
|
|
137
|
+
"currency": "USD",
|
|
138
|
+
"source": "openai-api-pricing",
|
|
139
|
+
"snapshot": "2026-05-25",
|
|
140
|
+
"models": {
|
|
141
|
+
"openai/gpt-5": {
|
|
142
|
+
"inputPer1M": 1.25,
|
|
143
|
+
"cachedInputPer1M": 0.125,
|
|
144
|
+
"outputPer1M": 10.0,
|
|
145
|
+
"reasoningPer1M": 10.0
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
},
|
|
150
|
+
|
|
135
151
|
"intake": {
|
|
136
152
|
"assignee": "<vendor-user-id-or-login>",
|
|
137
153
|
"repair": {
|
|
@@ -213,6 +229,34 @@ When `github.projects.v2` is present, later setup/doctor and writer preflight va
|
|
|
213
229
|
| `linear.workspace` | `tracker = "linear"`, `source = "linear"`, or any `linear-*` skill is invoked | Linear workspace slug (e.g. `acme`). |
|
|
214
230
|
| `linear.teamKey` | `tracker = "linear"` | Linear team key (e.g. `ENG`). The team owns the destination Issues. For source mode, projects are workspace-scoped or team-scoped per the URL passed. |
|
|
215
231
|
|
|
232
|
+
#### `usage`
|
|
233
|
+
|
|
234
|
+
`usage` is optional. It carries non-secret pricing metadata Lisa may use when runtime token counts are trustworthy but runtime monetary cost is absent.
|
|
235
|
+
|
|
236
|
+
| Field | Required when | Where it lives | Notes |
|
|
237
|
+
|-------|---------------|----------------|-------|
|
|
238
|
+
| `usage.pricing.currency` | estimating cost from config | **committed** | ISO currency code paired with the configured rates (for example `USD`). |
|
|
239
|
+
| `usage.pricing.source` | estimating cost from config | **committed** | Human-readable source label for the configured pricing schedule (for example `openai-api-pricing`). This is metadata, not a URL requirement. |
|
|
240
|
+
| `usage.pricing.snapshot` | no | **committed** | Version/date/hash describing when the pricing schedule was captured. Use it to make estimated-cost provenance durable across later vendor price changes. |
|
|
241
|
+
| `usage.pricing.models` | estimating cost from config | **committed** | Map of `<provider>/<model>` to per-million-token rates. Lisa has **no built-in provider rates**; every estimated-cost model must be declared here explicitly. |
|
|
242
|
+
|
|
243
|
+
Each `usage.pricing.models["<provider>/<model>"]` value supports these numeric keys:
|
|
244
|
+
|
|
245
|
+
| Key | Required | Notes |
|
|
246
|
+
|-----|----------|-------|
|
|
247
|
+
| `inputPer1M` | yes | Price per 1M non-cached input tokens. |
|
|
248
|
+
| `cachedInputPer1M` | no | Price per 1M cached input tokens when the runtime exposes them separately. If absent, cached tokens cannot be priced and the entry falls back to `pricing_status=missing` unless the runtime already supplied cost. |
|
|
249
|
+
| `outputPer1M` | yes | Price per 1M output/completion tokens. |
|
|
250
|
+
| `reasoningPer1M` | no | Price per 1M reasoning/internal tokens when the provider bills them separately. If absent, treat reasoning tokens as unpriceable rather than folding them into another bucket. |
|
|
251
|
+
|
|
252
|
+
Resolution rules for estimated pricing:
|
|
253
|
+
|
|
254
|
+
- Resolve `usage.pricing.*` with the same per-key local-overrides-global precedence as every other config section.
|
|
255
|
+
- Estimates are allowed only when trustworthy token counts exist and a matching `usage.pricing.models["<provider>/<model>"]` entry supplies every rate needed for the exposed token buckets.
|
|
256
|
+
- Missing model entries or missing required bucket rates do **not** trigger built-in defaults. Preserve the token counts, leave `cost = null`, and emit `pricing_status = missing`.
|
|
257
|
+
- When an estimate is produced from config, write `pricing_source` as `config:<source>@<snapshot>` when both fields exist, `config:<source>` when only `source` exists, or `config` when neither metadata field is available.
|
|
258
|
+
- Runtime-observed monetary cost always wins over config estimates; config pricing is fallback-only.
|
|
259
|
+
|
|
216
260
|
## Workflow & vocabulary roles
|
|
217
261
|
|
|
218
262
|
Every lifecycle skill operates on a fixed set of **roles** (`ready`, `claimed`, `done`, etc.), not concrete status/label strings. The role → string mapping lives in the per-vendor section above, with defaults that match the legacy hardcoded names. A project that uses different names overrides the relevant key; everything else inherits.
|
|
@@ -50,6 +50,10 @@ Each direct usage entry records one logical Lisa run or sub-run on one artifact.
|
|
|
50
50
|
|
|
51
51
|
The absence of data is never treated as zero. `null` means unknown; `0` means explicitly observed or derived zero.
|
|
52
52
|
|
|
53
|
+
For example, an unavailable Verify run still records a direct entry with `source = unavailable`,
|
|
54
|
+
`pricing_status = unavailable`, and `null` token/cost fields so downstream readers can distinguish
|
|
55
|
+
"missing telemetry" from "zero usage."
|
|
56
|
+
|
|
53
57
|
## Pricing semantics
|
|
54
58
|
|
|
55
59
|
`pricing_status` describes how trustworthy the money fields are:
|
|
@@ -121,6 +125,11 @@ Rollups aggregate descendant usage from native tracker hierarchy, documented gen
|
|
|
121
125
|
- Preserve direct totals separately from child totals.
|
|
122
126
|
- Exclude descendant entries whose `entry_id` is already present in the artifact's direct-entry set.
|
|
123
127
|
|
|
128
|
+
Concrete example: if child artifact A and child artifact B both surface descendant entry
|
|
129
|
+
`verify-123`, the parent rollup lists `verify-123` once in `child_entry_ids`. If the parent also
|
|
130
|
+
records `verify-123` directly, exclude that descendant copy from child totals and keep the entry in
|
|
131
|
+
the direct half only.
|
|
132
|
+
|
|
124
133
|
The rollup contract is additive across the hierarchy: PRDs may roll up Epics/Stories/leaves, and leaves may roll up evidence or verification artifacts, without double counting shared descendants.
|
|
125
134
|
|
|
126
135
|
## Idempotent rewrite rules
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lisa-openclaw",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.75.1",
|
|
4
4
|
"description": "Connect staff roles to Telegram or Slack via OpenClaw — facilitator/specialist hub-and-spoke routing and repo-coding topics, for Claude Code and Codex",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Cody Swann"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lisa-openclaw",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.75.1",
|
|
4
4
|
"description": "Connect staff roles to Telegram or Slack via OpenClaw — facilitator/specialist hub-and-spoke routing and repo-coding topics, across Claude and Codex.",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Cody Swann"
|
|
@@ -132,6 +132,22 @@ fi
|
|
|
132
132
|
}
|
|
133
133
|
},
|
|
134
134
|
|
|
135
|
+
"usage": {
|
|
136
|
+
"pricing": {
|
|
137
|
+
"currency": "USD",
|
|
138
|
+
"source": "openai-api-pricing",
|
|
139
|
+
"snapshot": "2026-05-25",
|
|
140
|
+
"models": {
|
|
141
|
+
"openai/gpt-5": {
|
|
142
|
+
"inputPer1M": 1.25,
|
|
143
|
+
"cachedInputPer1M": 0.125,
|
|
144
|
+
"outputPer1M": 10.0,
|
|
145
|
+
"reasoningPer1M": 10.0
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
},
|
|
150
|
+
|
|
135
151
|
"intake": {
|
|
136
152
|
"assignee": "<vendor-user-id-or-login>",
|
|
137
153
|
"repair": {
|
|
@@ -213,6 +229,34 @@ When `github.projects.v2` is present, later setup/doctor and writer preflight va
|
|
|
213
229
|
| `linear.workspace` | `tracker = "linear"`, `source = "linear"`, or any `linear-*` skill is invoked | Linear workspace slug (e.g. `acme`). |
|
|
214
230
|
| `linear.teamKey` | `tracker = "linear"` | Linear team key (e.g. `ENG`). The team owns the destination Issues. For source mode, projects are workspace-scoped or team-scoped per the URL passed. |
|
|
215
231
|
|
|
232
|
+
#### `usage`
|
|
233
|
+
|
|
234
|
+
`usage` is optional. It carries non-secret pricing metadata Lisa may use when runtime token counts are trustworthy but runtime monetary cost is absent.
|
|
235
|
+
|
|
236
|
+
| Field | Required when | Where it lives | Notes |
|
|
237
|
+
|-------|---------------|----------------|-------|
|
|
238
|
+
| `usage.pricing.currency` | estimating cost from config | **committed** | ISO currency code paired with the configured rates (for example `USD`). |
|
|
239
|
+
| `usage.pricing.source` | estimating cost from config | **committed** | Human-readable source label for the configured pricing schedule (for example `openai-api-pricing`). This is metadata, not a URL requirement. |
|
|
240
|
+
| `usage.pricing.snapshot` | no | **committed** | Version/date/hash describing when the pricing schedule was captured. Use it to make estimated-cost provenance durable across later vendor price changes. |
|
|
241
|
+
| `usage.pricing.models` | estimating cost from config | **committed** | Map of `<provider>/<model>` to per-million-token rates. Lisa has **no built-in provider rates**; every estimated-cost model must be declared here explicitly. |
|
|
242
|
+
|
|
243
|
+
Each `usage.pricing.models["<provider>/<model>"]` value supports these numeric keys:
|
|
244
|
+
|
|
245
|
+
| Key | Required | Notes |
|
|
246
|
+
|-----|----------|-------|
|
|
247
|
+
| `inputPer1M` | yes | Price per 1M non-cached input tokens. |
|
|
248
|
+
| `cachedInputPer1M` | no | Price per 1M cached input tokens when the runtime exposes them separately. If absent, cached tokens cannot be priced and the entry falls back to `pricing_status=missing` unless the runtime already supplied cost. |
|
|
249
|
+
| `outputPer1M` | yes | Price per 1M output/completion tokens. |
|
|
250
|
+
| `reasoningPer1M` | no | Price per 1M reasoning/internal tokens when the provider bills them separately. If absent, treat reasoning tokens as unpriceable rather than folding them into another bucket. |
|
|
251
|
+
|
|
252
|
+
Resolution rules for estimated pricing:
|
|
253
|
+
|
|
254
|
+
- Resolve `usage.pricing.*` with the same per-key local-overrides-global precedence as every other config section.
|
|
255
|
+
- Estimates are allowed only when trustworthy token counts exist and a matching `usage.pricing.models["<provider>/<model>"]` entry supplies every rate needed for the exposed token buckets.
|
|
256
|
+
- Missing model entries or missing required bucket rates do **not** trigger built-in defaults. Preserve the token counts, leave `cost = null`, and emit `pricing_status = missing`.
|
|
257
|
+
- When an estimate is produced from config, write `pricing_source` as `config:<source>@<snapshot>` when both fields exist, `config:<source>` when only `source` exists, or `config` when neither metadata field is available.
|
|
258
|
+
- Runtime-observed monetary cost always wins over config estimates; config pricing is fallback-only.
|
|
259
|
+
|
|
216
260
|
## Workflow & vocabulary roles
|
|
217
261
|
|
|
218
262
|
Every lifecycle skill operates on a fixed set of **roles** (`ready`, `claimed`, `done`, etc.), not concrete status/label strings. The role → string mapping lives in the per-vendor section above, with defaults that match the legacy hardcoded names. A project that uses different names overrides the relevant key; everything else inherits.
|
|
@@ -50,6 +50,10 @@ Each direct usage entry records one logical Lisa run or sub-run on one artifact.
|
|
|
50
50
|
|
|
51
51
|
The absence of data is never treated as zero. `null` means unknown; `0` means explicitly observed or derived zero.
|
|
52
52
|
|
|
53
|
+
For example, an unavailable Verify run still records a direct entry with `source = unavailable`,
|
|
54
|
+
`pricing_status = unavailable`, and `null` token/cost fields so downstream readers can distinguish
|
|
55
|
+
"missing telemetry" from "zero usage."
|
|
56
|
+
|
|
53
57
|
## Pricing semantics
|
|
54
58
|
|
|
55
59
|
`pricing_status` describes how trustworthy the money fields are:
|
|
@@ -121,6 +125,11 @@ Rollups aggregate descendant usage from native tracker hierarchy, documented gen
|
|
|
121
125
|
- Preserve direct totals separately from child totals.
|
|
122
126
|
- Exclude descendant entries whose `entry_id` is already present in the artifact's direct-entry set.
|
|
123
127
|
|
|
128
|
+
Concrete example: if child artifact A and child artifact B both surface descendant entry
|
|
129
|
+
`verify-123`, the parent rollup lists `verify-123` once in `child_entry_ids`. If the parent also
|
|
130
|
+
records `verify-123` directly, exclude that descendant copy from child totals and keep the entry in
|
|
131
|
+
the direct half only.
|
|
132
|
+
|
|
124
133
|
The rollup contract is additive across the hierarchy: PRDs may roll up Epics/Stories/leaves, and leaves may roll up evidence or verification artifacts, without double counting shared descendants.
|
|
125
134
|
|
|
126
135
|
## Idempotent rewrite rules
|