@codyswann/lisa 2.168.0 → 2.169.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.
Files changed (57) hide show
  1. package/package.json +1 -1
  2. package/plugins/lisa/.claude-plugin/plugin.json +1 -1
  3. package/plugins/lisa/.codex-plugin/plugin.json +1 -1
  4. package/plugins/lisa-agy/plugin.json +1 -1
  5. package/plugins/lisa-cdk/.claude-plugin/plugin.json +1 -1
  6. package/plugins/lisa-cdk/.codex-plugin/plugin.json +1 -1
  7. package/plugins/lisa-cdk-agy/plugin.json +1 -1
  8. package/plugins/lisa-cdk-copilot/.claude-plugin/plugin.json +1 -1
  9. package/plugins/lisa-cdk-cursor/.claude-plugin/plugin.json +1 -1
  10. package/plugins/lisa-copilot/.claude-plugin/plugin.json +1 -1
  11. package/plugins/lisa-cursor/.claude-plugin/plugin.json +1 -1
  12. package/plugins/lisa-expo/.claude-plugin/plugin.json +1 -1
  13. package/plugins/lisa-expo/.codex-plugin/plugin.json +1 -1
  14. package/plugins/lisa-expo-agy/plugin.json +1 -1
  15. package/plugins/lisa-expo-copilot/.claude-plugin/plugin.json +1 -1
  16. package/plugins/lisa-expo-cursor/.claude-plugin/plugin.json +1 -1
  17. package/plugins/lisa-harper-fabric/.claude-plugin/plugin.json +1 -1
  18. package/plugins/lisa-harper-fabric/.codex-plugin/plugin.json +1 -1
  19. package/plugins/lisa-harper-fabric/skills/harper-operations/SKILL.md +239 -0
  20. package/plugins/lisa-harper-fabric/skills/harper-operations/agents/openai.yaml +4 -0
  21. package/plugins/lisa-harper-fabric-agy/plugin.json +1 -1
  22. package/plugins/lisa-harper-fabric-agy/skills/harper-operations/SKILL.md +239 -0
  23. package/plugins/lisa-harper-fabric-copilot/.claude-plugin/plugin.json +1 -1
  24. package/plugins/lisa-harper-fabric-copilot/skills/harper-operations/SKILL.md +239 -0
  25. package/plugins/lisa-harper-fabric-cursor/.claude-plugin/plugin.json +1 -1
  26. package/plugins/lisa-harper-fabric-cursor/skills/harper-operations/SKILL.md +239 -0
  27. package/plugins/lisa-nestjs/.claude-plugin/plugin.json +1 -1
  28. package/plugins/lisa-nestjs/.codex-plugin/plugin.json +1 -1
  29. package/plugins/lisa-nestjs-agy/plugin.json +1 -1
  30. package/plugins/lisa-nestjs-copilot/.claude-plugin/plugin.json +1 -1
  31. package/plugins/lisa-nestjs-cursor/.claude-plugin/plugin.json +1 -1
  32. package/plugins/lisa-openclaw/.claude-plugin/plugin.json +1 -1
  33. package/plugins/lisa-openclaw/.codex-plugin/plugin.json +1 -1
  34. package/plugins/lisa-openclaw-agy/plugin.json +1 -1
  35. package/plugins/lisa-openclaw-copilot/.claude-plugin/plugin.json +1 -1
  36. package/plugins/lisa-openclaw-cursor/.claude-plugin/plugin.json +1 -1
  37. package/plugins/lisa-phaser/.claude-plugin/plugin.json +1 -1
  38. package/plugins/lisa-phaser/.codex-plugin/plugin.json +1 -1
  39. package/plugins/lisa-phaser-agy/plugin.json +1 -1
  40. package/plugins/lisa-phaser-copilot/.claude-plugin/plugin.json +1 -1
  41. package/plugins/lisa-phaser-cursor/.claude-plugin/plugin.json +1 -1
  42. package/plugins/lisa-rails/.claude-plugin/plugin.json +1 -1
  43. package/plugins/lisa-rails/.codex-plugin/plugin.json +1 -1
  44. package/plugins/lisa-rails-agy/plugin.json +1 -1
  45. package/plugins/lisa-rails-copilot/.claude-plugin/plugin.json +1 -1
  46. package/plugins/lisa-rails-cursor/.claude-plugin/plugin.json +1 -1
  47. package/plugins/lisa-typescript/.claude-plugin/plugin.json +1 -1
  48. package/plugins/lisa-typescript/.codex-plugin/plugin.json +1 -1
  49. package/plugins/lisa-typescript-agy/plugin.json +1 -1
  50. package/plugins/lisa-typescript-copilot/.claude-plugin/plugin.json +1 -1
  51. package/plugins/lisa-typescript-cursor/.claude-plugin/plugin.json +1 -1
  52. package/plugins/lisa-wiki/.claude-plugin/plugin.json +1 -1
  53. package/plugins/lisa-wiki/.codex-plugin/plugin.json +1 -1
  54. package/plugins/lisa-wiki-agy/plugin.json +1 -1
  55. package/plugins/lisa-wiki-copilot/.claude-plugin/plugin.json +1 -1
  56. package/plugins/lisa-wiki-cursor/.claude-plugin/plugin.json +1 -1
  57. package/plugins/src/harper-fabric/skills/harper-operations/SKILL.md +239 -0
package/package.json CHANGED
@@ -85,7 +85,7 @@
85
85
  "lodash": ">=4.18.1"
86
86
  },
87
87
  "name": "@codyswann/lisa",
88
- "version": "2.168.0",
88
+ "version": "2.169.0",
89
89
  "description": "Claude Code governance framework that applies guardrails, guidance, and automated enforcement to projects",
90
90
  "main": "dist/index.js",
91
91
  "exports": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa",
3
- "version": "2.168.0",
3
+ "version": "2.169.0",
4
4
  "description": "Universal governance — agents, skills, commands, hooks, and rules for all projects",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa",
3
- "version": "2.168.0",
3
+ "version": "2.169.0",
4
4
  "description": "Universal governance: agents, skills, commands, hooks, and rules for all projects.",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa",
3
- "version": "2.168.0",
3
+ "version": "2.169.0",
4
4
  "description": "Universal governance — agents, skills, commands, hooks, and rules for all projects",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-cdk",
3
- "version": "2.168.0",
3
+ "version": "2.169.0",
4
4
  "description": "AWS CDK-specific plugin",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-cdk",
3
- "version": "2.168.0",
3
+ "version": "2.169.0",
4
4
  "description": "AWS CDK-specific Lisa plugin.",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-cdk",
3
- "version": "2.168.0",
3
+ "version": "2.169.0",
4
4
  "description": "AWS CDK-specific plugin",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-cdk",
3
- "version": "2.168.0",
3
+ "version": "2.169.0",
4
4
  "description": "AWS CDK-specific plugin",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-cdk",
3
- "version": "2.168.0",
3
+ "version": "2.169.0",
4
4
  "description": "AWS CDK-specific plugin",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa",
3
- "version": "2.168.0",
3
+ "version": "2.169.0",
4
4
  "description": "Universal governance — agents, skills, commands, hooks, and rules for all projects",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa",
3
- "version": "2.168.0",
3
+ "version": "2.169.0",
4
4
  "description": "Universal governance — agents, skills, commands, hooks, and rules for all projects",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-expo",
3
- "version": "2.168.0",
3
+ "version": "2.169.0",
4
4
  "description": "Expo/React Native-specific skills, agents, rules, and MCP servers",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-expo",
3
- "version": "2.168.0",
3
+ "version": "2.169.0",
4
4
  "description": "Expo and React Native-specific skills, agents, rules, and MCP servers.",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-expo",
3
- "version": "2.168.0",
3
+ "version": "2.169.0",
4
4
  "description": "Expo/React Native-specific skills, agents, rules, and MCP servers",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-expo",
3
- "version": "2.168.0",
3
+ "version": "2.169.0",
4
4
  "description": "Expo/React Native-specific skills, agents, rules, and MCP servers",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-expo",
3
- "version": "2.168.0",
3
+ "version": "2.169.0",
4
4
  "description": "Expo/React Native-specific skills, agents, rules, and MCP servers",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-harper-fabric",
3
- "version": "2.168.0",
3
+ "version": "2.169.0",
4
4
  "description": "Harper/Fabric-specific rules for TypeScript component apps",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-harper-fabric",
3
- "version": "2.168.0",
3
+ "version": "2.169.0",
4
4
  "description": "Harper/Fabric-specific Lisa rules for TypeScript component apps.",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -0,0 +1,239 @@
1
+ ---
2
+ name: harper-operations
3
+ description: This skill should be used when operating, monitoring, or debugging a Harper (HarperDB/Fabric) component after it builds or deploys - Operations API calls, component inventory, log retrieval, health checks, job lookup, local 500 debugging, and escalation boundaries. Pairs with harper-build-and-deploy, harper-config-yaml, harper-resources, and harper-rest-queries.
4
+ ---
5
+
6
+ # Harper Operations
7
+
8
+ ## Overview
9
+
10
+ Use Harper's Operations API when the app built or deployed but runtime behavior is
11
+ unknown: a REST endpoint returns 500, a component did not load, logs show worker
12
+ errors, a table shape differs from the expected schema, or a deploy job needs to be
13
+ checked. The Operations API is the administrative surface; application REST
14
+ endpoints are the user-facing data/resource surface.
15
+
16
+ Cross-check deploy packaging and Fabric topology in [[harper-build-and-deploy]].
17
+ Cross-check active extensions and config replacement behavior in
18
+ [[harper-config-yaml]]. Cross-check custom Resource method ownership in
19
+ [[harper-resources]] and query shape in [[harper-rest-queries]].
20
+
21
+ ## Endpoint, auth, and request shape
22
+
23
+ Operations API requests are JSON `POST` requests to the operations endpoint. Harper
24
+ listens on port `9925` at the root path by default:
25
+
26
+ ```bash
27
+ curl -sS http://<harper-host>:9925/ \
28
+ -u "$HARPER_USERNAME:$HARPER_PASSWORD" \
29
+ -H 'Content-Type: application/json' \
30
+ --data '{"operation":"system_information"}'
31
+ ```
32
+
33
+ For local development:
34
+
35
+ ```bash
36
+ curl -sS http://localhost:9925/ \
37
+ -u "$HARPER_USERNAME:$HARPER_PASSWORD" \
38
+ -H 'Content-Type: application/json' \
39
+ --data '{"operation":"get_components"}'
40
+ ```
41
+
42
+ Authentication options:
43
+
44
+ - Basic auth: `Authorization: Basic ...`, or `curl -u "$USER:$PASS"`.
45
+ - JWT operation token: `Authorization: Bearer <token>` from
46
+ `create_authentication_tokens`.
47
+ - CLI: `harper login <target>` for persistent remote auth, or environment
48
+ credentials such as `HARPER_CLI_USERNAME` / `HARPER_CLI_PASSWORD`.
49
+
50
+ Most operational reads require a `super_user` or a role explicitly allowed to run
51
+ the named operation. If an operation is denied, check role `operations` permissions
52
+ before assuming the endpoint or component is broken.
53
+
54
+ ## High-value operations
55
+
56
+ | Operation | Use it for | Example |
57
+ | --- | --- | --- |
58
+ | `get_components` | Confirm component names, files, and configuration loaded from `harper-config.yaml`. | `{"operation":"get_components"}` |
59
+ | `describe_all` | See all database/table definitions and record counts visible to the caller. | `{"operation":"describe_all"}` |
60
+ | `describe_table` | Confirm table/database names, attributes, and primary key shape. | `{"operation":"describe_table","database":"data","table":"Product"}` |
61
+ | `system_information` | Capture runtime, host, and process information for health/debug reports. | `{"operation":"system_information"}` |
62
+ | `read_log` | Read Harper's primary `hdb.log` with level/time/filter controls. | `{"operation":"read_log","level":"error","limit":50,"order":"desc"}` |
63
+ | `search_jobs_by_start_date` | Find background jobs when deploys, imports, or long operations are involved. | `{"operation":"search_jobs_by_start_date","from_date":"2026-06-16T00:00:00.000+0000","to_date":"2026-06-17T00:00:00.000+0000"}` |
64
+ | `get_job` | Inspect one known job id returned by a search or operation response. | `{"operation":"get_job","id":"<job-id>"}` |
65
+ | `get_configuration` | Find runtime paths such as `rootPath`, `componentsRoot`, ports, and logging config. | `{"operation":"get_configuration"}` |
66
+
67
+ Use CLI shortcuts when the operation only needs flat key/value arguments:
68
+
69
+ ```bash
70
+ harper get_components target="$HARPER_TARGET" json=true
71
+ harper describe_all target="$HARPER_TARGET" json=true
72
+ harper read_log target="$HARPER_TARGET" level=error limit=50 order=desc json=true
73
+ ```
74
+
75
+ If the CLI cannot represent the nested request body, use `curl` against the
76
+ Operations API directly.
77
+
78
+ ## Reading logs
79
+
80
+ `read_log` reads the primary Harper log (`hdb.log`) and is restricted to
81
+ `super_user` roles unless a custom role grants it. Useful parameters include
82
+ `level`, `from`, `until`, `limit`, `order`, and `filter`.
83
+
84
+ Recent errors:
85
+
86
+ ```bash
87
+ curl -sS "$HARPER_TARGET" \
88
+ -u "$HARPER_USERNAME:$HARPER_PASSWORD" \
89
+ -H 'Content-Type: application/json' \
90
+ --data '{
91
+ "operation": "read_log",
92
+ "level": "error",
93
+ "limit": 50,
94
+ "order": "desc"
95
+ }'
96
+ ```
97
+
98
+ Filter by component, route, or correlation id:
99
+
100
+ ```bash
101
+ curl -sS "$HARPER_TARGET" \
102
+ -u "$HARPER_USERNAME:$HARPER_PASSWORD" \
103
+ -H 'Content-Type: application/json' \
104
+ --data '{
105
+ "operation": "read_log",
106
+ "filter": "orders",
107
+ "from": "2026-06-16 00:00:00",
108
+ "limit": 100,
109
+ "order": "desc"
110
+ }'
111
+ ```
112
+
113
+ In local `harper dev`, also watch the terminal output. The dev command restarts
114
+ worker threads on file changes and prints console/log output close to the failing
115
+ request. Use `harper run` or a deployed local instance when you need to restart the
116
+ main thread, not only workers.
117
+
118
+ ## Logging from Resources
119
+
120
+ For Resource methods, log enough to identify the request path, authenticated user
121
+ or tenant id, and failing branch without emitting secrets or whole request bodies.
122
+ Prefer structured, searchable messages:
123
+
124
+ ```javascript
125
+ export class Orders extends tables.Orders {
126
+ static async post(data, context) {
127
+ const input = await data;
128
+ console.info('orders.post received', {
129
+ orderId: input.id,
130
+ userId: context.user?.id,
131
+ });
132
+
133
+ try {
134
+ return await super.post(input, context);
135
+ } catch (error) {
136
+ console.error('orders.post failed', {
137
+ orderId: input.id,
138
+ message: error?.message,
139
+ });
140
+ throw error;
141
+ }
142
+ }
143
+ }
144
+ ```
145
+
146
+ Guidance:
147
+
148
+ - Use `console.info` or `console.debug` for normal trace points, and
149
+ `console.warn` / `console.error` for actionable failures.
150
+ - Never log passwords, tokens, cookies, API keys, raw Authorization headers, or
151
+ full personal data payloads.
152
+ - Include a request id or deterministic entity id when the caller can provide one.
153
+ - Remove noisy temporary logs once the root cause is fixed, or lower them to debug.
154
+
155
+ ## Debugging a 500 endpoint
156
+
157
+ When a deployed REST endpoint returns 500, follow this path before changing code:
158
+
159
+ 1. Identify the exact endpoint, method, payload, authenticated user, target URL,
160
+ and timestamp. Save a reproducible `curl` command with headers scrubbed.
161
+ 2. Confirm the component is installed and named as expected:
162
+
163
+ ```bash
164
+ harper get_components target="$HARPER_TARGET" json=true
165
+ ```
166
+
167
+ 3. Read recent errors around the failing timestamp:
168
+
169
+ ```bash
170
+ harper read_log target="$HARPER_TARGET" level=error limit=100 order=desc json=true
171
+ ```
172
+
173
+ 4. Check table/resource shape when the failure mentions a missing table, attribute,
174
+ index, relationship, or schema directive:
175
+
176
+ ```bash
177
+ curl -sS "$HARPER_TARGET" \
178
+ -u "$HARPER_USERNAME:$HARPER_PASSWORD" \
179
+ -H 'Content-Type: application/json' \
180
+ --data '{"operation":"describe_all"}'
181
+ ```
182
+
183
+ 5. Reproduce locally with the same built artifact path:
184
+
185
+ ```bash
186
+ bun run build
187
+ harper dev harper-app
188
+ curl -i http://localhost:9926/<project>/<resource-path>
189
+ ```
190
+
191
+ 6. Isolate the smallest Resource method or table call involved. If the route uses a
192
+ custom Resource, call its underlying table/search operation directly when safe,
193
+ then add one temporary log at the branch boundary that chooses the failing path.
194
+ 7. Fix source files, not generated deploy artifacts. Rebuild and repeat the same
195
+ local `curl`, then repeat the deployed smoke path after redeploy.
196
+
197
+ Treat the incident as unresolved until the same request path returns the expected
198
+ status and the logs no longer show the error.
199
+
200
+ ## Health and deploy checks
201
+
202
+ After deploy or restart, check:
203
+
204
+ - Component inventory: `get_components` includes the expected project and files.
205
+ - System/runtime info: `system_information` returns from the target node.
206
+ - Configuration: `get_configuration` shows the expected operations/API ports,
207
+ `rootPath`, `componentsRoot`, and logging configuration.
208
+ - Schema/data shape: `describe_all` or `describe_table` matches the expected
209
+ database/table definitions and exported tables.
210
+ - Logs: `read_log` has no new error entries for the deploy/restart window.
211
+ - Jobs: `search_jobs_by_start_date` and `get_job` show background work completed
212
+ when deploy, import, backup, or long-running data operations were involved.
213
+ - Public smoke: the project-specific HTTP smoke command passes from the same route
214
+ users will hit. For Fabric, verify through the public route and any direct
215
+ node/region route the project exposes.
216
+
217
+ ## What is not available
218
+
219
+ Do not invent observability that the target does not expose:
220
+
221
+ - If there is no Fabric credential or operations role, you cannot prove remote
222
+ component state; ask for credentials or a trusted operator readback.
223
+ - If the app does not emit a request id, logs may not be attributable to one HTTP
224
+ request. Reproduce in a narrow time window or add a safe correlation id first.
225
+ - If a Fabric project hides direct node/region URLs, verify through the public
226
+ route and record that node-level proof is unavailable.
227
+ - If Harper returns an auth/permission denial for `read_log`,
228
+ `system_information`, or component operations, treat it as an access blocker,
229
+ not as evidence that logs or components are empty.
230
+ - Third-party APM, trace collection, and performance tuning are outside this
231
+ skill. Capture Harper-native facts first, then escalate to the project's
232
+ runbook or platform owner.
233
+
234
+ ## Sources
235
+
236
+ - [Operations API Overview](https://docs.harperdb.io/reference/v5/operations-api/overview)
237
+ - [Operations Reference](https://docs.harperdb.io/reference/v5/operations-api/operations)
238
+ - [Logging Operations](https://docs.harperdb.io/reference/v5/logging/operations)
239
+ - [Applications / Component Operations](https://docs.harperdb.io/reference/v5/components/applications)
@@ -0,0 +1,4 @@
1
+ display_name: "Harper Operations"
2
+ short_description: "operating, monitoring, or debugging a Harper (HarperDB/Fabric) component after it builds or deploys - Operations API calls, component…"
3
+ default_prompt:
4
+ - "Use $harper-operations: operating, monitoring, or debugging a Harper (HarperDB/Fabric) component after it builds or deploys - Operations API calls, component…."
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-harper-fabric",
3
- "version": "2.168.0",
3
+ "version": "2.169.0",
4
4
  "description": "Harper/Fabric-specific rules for TypeScript component apps",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -0,0 +1,239 @@
1
+ ---
2
+ name: harper-operations
3
+ description: This skill should be used when operating, monitoring, or debugging a Harper (HarperDB/Fabric) component after it builds or deploys - Operations API calls, component inventory, log retrieval, health checks, job lookup, local 500 debugging, and escalation boundaries. Pairs with harper-build-and-deploy, harper-config-yaml, harper-resources, and harper-rest-queries.
4
+ ---
5
+
6
+ # Harper Operations
7
+
8
+ ## Overview
9
+
10
+ Use Harper's Operations API when the app built or deployed but runtime behavior is
11
+ unknown: a REST endpoint returns 500, a component did not load, logs show worker
12
+ errors, a table shape differs from the expected schema, or a deploy job needs to be
13
+ checked. The Operations API is the administrative surface; application REST
14
+ endpoints are the user-facing data/resource surface.
15
+
16
+ Cross-check deploy packaging and Fabric topology in [[harper-build-and-deploy]].
17
+ Cross-check active extensions and config replacement behavior in
18
+ [[harper-config-yaml]]. Cross-check custom Resource method ownership in
19
+ [[harper-resources]] and query shape in [[harper-rest-queries]].
20
+
21
+ ## Endpoint, auth, and request shape
22
+
23
+ Operations API requests are JSON `POST` requests to the operations endpoint. Harper
24
+ listens on port `9925` at the root path by default:
25
+
26
+ ```bash
27
+ curl -sS http://<harper-host>:9925/ \
28
+ -u "$HARPER_USERNAME:$HARPER_PASSWORD" \
29
+ -H 'Content-Type: application/json' \
30
+ --data '{"operation":"system_information"}'
31
+ ```
32
+
33
+ For local development:
34
+
35
+ ```bash
36
+ curl -sS http://localhost:9925/ \
37
+ -u "$HARPER_USERNAME:$HARPER_PASSWORD" \
38
+ -H 'Content-Type: application/json' \
39
+ --data '{"operation":"get_components"}'
40
+ ```
41
+
42
+ Authentication options:
43
+
44
+ - Basic auth: `Authorization: Basic ...`, or `curl -u "$USER:$PASS"`.
45
+ - JWT operation token: `Authorization: Bearer <token>` from
46
+ `create_authentication_tokens`.
47
+ - CLI: `harper login <target>` for persistent remote auth, or environment
48
+ credentials such as `HARPER_CLI_USERNAME` / `HARPER_CLI_PASSWORD`.
49
+
50
+ Most operational reads require a `super_user` or a role explicitly allowed to run
51
+ the named operation. If an operation is denied, check role `operations` permissions
52
+ before assuming the endpoint or component is broken.
53
+
54
+ ## High-value operations
55
+
56
+ | Operation | Use it for | Example |
57
+ | --- | --- | --- |
58
+ | `get_components` | Confirm component names, files, and configuration loaded from `harper-config.yaml`. | `{"operation":"get_components"}` |
59
+ | `describe_all` | See all database/table definitions and record counts visible to the caller. | `{"operation":"describe_all"}` |
60
+ | `describe_table` | Confirm table/database names, attributes, and primary key shape. | `{"operation":"describe_table","database":"data","table":"Product"}` |
61
+ | `system_information` | Capture runtime, host, and process information for health/debug reports. | `{"operation":"system_information"}` |
62
+ | `read_log` | Read Harper's primary `hdb.log` with level/time/filter controls. | `{"operation":"read_log","level":"error","limit":50,"order":"desc"}` |
63
+ | `search_jobs_by_start_date` | Find background jobs when deploys, imports, or long operations are involved. | `{"operation":"search_jobs_by_start_date","from_date":"2026-06-16T00:00:00.000+0000","to_date":"2026-06-17T00:00:00.000+0000"}` |
64
+ | `get_job` | Inspect one known job id returned by a search or operation response. | `{"operation":"get_job","id":"<job-id>"}` |
65
+ | `get_configuration` | Find runtime paths such as `rootPath`, `componentsRoot`, ports, and logging config. | `{"operation":"get_configuration"}` |
66
+
67
+ Use CLI shortcuts when the operation only needs flat key/value arguments:
68
+
69
+ ```bash
70
+ harper get_components target="$HARPER_TARGET" json=true
71
+ harper describe_all target="$HARPER_TARGET" json=true
72
+ harper read_log target="$HARPER_TARGET" level=error limit=50 order=desc json=true
73
+ ```
74
+
75
+ If the CLI cannot represent the nested request body, use `curl` against the
76
+ Operations API directly.
77
+
78
+ ## Reading logs
79
+
80
+ `read_log` reads the primary Harper log (`hdb.log`) and is restricted to
81
+ `super_user` roles unless a custom role grants it. Useful parameters include
82
+ `level`, `from`, `until`, `limit`, `order`, and `filter`.
83
+
84
+ Recent errors:
85
+
86
+ ```bash
87
+ curl -sS "$HARPER_TARGET" \
88
+ -u "$HARPER_USERNAME:$HARPER_PASSWORD" \
89
+ -H 'Content-Type: application/json' \
90
+ --data '{
91
+ "operation": "read_log",
92
+ "level": "error",
93
+ "limit": 50,
94
+ "order": "desc"
95
+ }'
96
+ ```
97
+
98
+ Filter by component, route, or correlation id:
99
+
100
+ ```bash
101
+ curl -sS "$HARPER_TARGET" \
102
+ -u "$HARPER_USERNAME:$HARPER_PASSWORD" \
103
+ -H 'Content-Type: application/json' \
104
+ --data '{
105
+ "operation": "read_log",
106
+ "filter": "orders",
107
+ "from": "2026-06-16 00:00:00",
108
+ "limit": 100,
109
+ "order": "desc"
110
+ }'
111
+ ```
112
+
113
+ In local `harper dev`, also watch the terminal output. The dev command restarts
114
+ worker threads on file changes and prints console/log output close to the failing
115
+ request. Use `harper run` or a deployed local instance when you need to restart the
116
+ main thread, not only workers.
117
+
118
+ ## Logging from Resources
119
+
120
+ For Resource methods, log enough to identify the request path, authenticated user
121
+ or tenant id, and failing branch without emitting secrets or whole request bodies.
122
+ Prefer structured, searchable messages:
123
+
124
+ ```javascript
125
+ export class Orders extends tables.Orders {
126
+ static async post(data, context) {
127
+ const input = await data;
128
+ console.info('orders.post received', {
129
+ orderId: input.id,
130
+ userId: context.user?.id,
131
+ });
132
+
133
+ try {
134
+ return await super.post(input, context);
135
+ } catch (error) {
136
+ console.error('orders.post failed', {
137
+ orderId: input.id,
138
+ message: error?.message,
139
+ });
140
+ throw error;
141
+ }
142
+ }
143
+ }
144
+ ```
145
+
146
+ Guidance:
147
+
148
+ - Use `console.info` or `console.debug` for normal trace points, and
149
+ `console.warn` / `console.error` for actionable failures.
150
+ - Never log passwords, tokens, cookies, API keys, raw Authorization headers, or
151
+ full personal data payloads.
152
+ - Include a request id or deterministic entity id when the caller can provide one.
153
+ - Remove noisy temporary logs once the root cause is fixed, or lower them to debug.
154
+
155
+ ## Debugging a 500 endpoint
156
+
157
+ When a deployed REST endpoint returns 500, follow this path before changing code:
158
+
159
+ 1. Identify the exact endpoint, method, payload, authenticated user, target URL,
160
+ and timestamp. Save a reproducible `curl` command with headers scrubbed.
161
+ 2. Confirm the component is installed and named as expected:
162
+
163
+ ```bash
164
+ harper get_components target="$HARPER_TARGET" json=true
165
+ ```
166
+
167
+ 3. Read recent errors around the failing timestamp:
168
+
169
+ ```bash
170
+ harper read_log target="$HARPER_TARGET" level=error limit=100 order=desc json=true
171
+ ```
172
+
173
+ 4. Check table/resource shape when the failure mentions a missing table, attribute,
174
+ index, relationship, or schema directive:
175
+
176
+ ```bash
177
+ curl -sS "$HARPER_TARGET" \
178
+ -u "$HARPER_USERNAME:$HARPER_PASSWORD" \
179
+ -H 'Content-Type: application/json' \
180
+ --data '{"operation":"describe_all"}'
181
+ ```
182
+
183
+ 5. Reproduce locally with the same built artifact path:
184
+
185
+ ```bash
186
+ bun run build
187
+ harper dev harper-app
188
+ curl -i http://localhost:9926/<project>/<resource-path>
189
+ ```
190
+
191
+ 6. Isolate the smallest Resource method or table call involved. If the route uses a
192
+ custom Resource, call its underlying table/search operation directly when safe,
193
+ then add one temporary log at the branch boundary that chooses the failing path.
194
+ 7. Fix source files, not generated deploy artifacts. Rebuild and repeat the same
195
+ local `curl`, then repeat the deployed smoke path after redeploy.
196
+
197
+ Treat the incident as unresolved until the same request path returns the expected
198
+ status and the logs no longer show the error.
199
+
200
+ ## Health and deploy checks
201
+
202
+ After deploy or restart, check:
203
+
204
+ - Component inventory: `get_components` includes the expected project and files.
205
+ - System/runtime info: `system_information` returns from the target node.
206
+ - Configuration: `get_configuration` shows the expected operations/API ports,
207
+ `rootPath`, `componentsRoot`, and logging configuration.
208
+ - Schema/data shape: `describe_all` or `describe_table` matches the expected
209
+ database/table definitions and exported tables.
210
+ - Logs: `read_log` has no new error entries for the deploy/restart window.
211
+ - Jobs: `search_jobs_by_start_date` and `get_job` show background work completed
212
+ when deploy, import, backup, or long-running data operations were involved.
213
+ - Public smoke: the project-specific HTTP smoke command passes from the same route
214
+ users will hit. For Fabric, verify through the public route and any direct
215
+ node/region route the project exposes.
216
+
217
+ ## What is not available
218
+
219
+ Do not invent observability that the target does not expose:
220
+
221
+ - If there is no Fabric credential or operations role, you cannot prove remote
222
+ component state; ask for credentials or a trusted operator readback.
223
+ - If the app does not emit a request id, logs may not be attributable to one HTTP
224
+ request. Reproduce in a narrow time window or add a safe correlation id first.
225
+ - If a Fabric project hides direct node/region URLs, verify through the public
226
+ route and record that node-level proof is unavailable.
227
+ - If Harper returns an auth/permission denial for `read_log`,
228
+ `system_information`, or component operations, treat it as an access blocker,
229
+ not as evidence that logs or components are empty.
230
+ - Third-party APM, trace collection, and performance tuning are outside this
231
+ skill. Capture Harper-native facts first, then escalate to the project's
232
+ runbook or platform owner.
233
+
234
+ ## Sources
235
+
236
+ - [Operations API Overview](https://docs.harperdb.io/reference/v5/operations-api/overview)
237
+ - [Operations Reference](https://docs.harperdb.io/reference/v5/operations-api/operations)
238
+ - [Logging Operations](https://docs.harperdb.io/reference/v5/logging/operations)
239
+ - [Applications / Component Operations](https://docs.harperdb.io/reference/v5/components/applications)
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-harper-fabric",
3
- "version": "2.168.0",
3
+ "version": "2.169.0",
4
4
  "description": "Harper/Fabric-specific rules for TypeScript component apps",
5
5
  "author": {
6
6
  "name": "Cody Swann"