@mnemonica/tactica 0.1.10 → 0.1.12
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/README.md +4 -9
- package/lib/analyzer.js +11 -42
- package/lib/types.d.ts +1 -1
- package/lib/types.js +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -136,7 +136,7 @@ Tactica writes everything under the `--output` directory (default `.tactica/`):
|
|
|
136
136
|
| `definitions.json` | always | One entry per discovered type: `{ name, location, kind: 'define'\|'decorate', parent, strictChain, blockErrors }`. Consumed by `mnemographica`'s Go to Definition. |
|
|
137
137
|
| `usages.json` | always | One entry per type, value is an array of `{ location, kind, code }` records — where each type is instantiated, referenced, accessed, or looked up. Consumed by `mnemographica`'s Find References. |
|
|
138
138
|
| `flow.json` | always | Native instance-flow patterns (property reads/writes, method calls, destructuring, returns, spreads, etc.) per type. |
|
|
139
|
-
| `eds.json` | when EDS enabled | Execution-flow patterns (`wrap`, `
|
|
139
|
+
| `eds.json` | when EDS enabled | Execution-flow patterns (`wrap`, `current`, `getFlow`, `attachHooks` lifecycle wiring). Consumed by tools that visualize execution chains. |
|
|
140
140
|
|
|
141
141
|
### Default mode (types.ts + registry.ts)
|
|
142
142
|
|
|
@@ -565,14 +565,9 @@ When enabled, tactica detects execution-flow patterns alongside type definitions
|
|
|
565
565
|
|
|
566
566
|
| Function | EDS kind | Description |
|
|
567
567
|
|---|---|---|
|
|
568
|
-
| `wrap(fn)`, `
|
|
569
|
-
| `
|
|
570
|
-
| `
|
|
571
|
-
| `enrichError(err, inst)` | `errorEnrich` | Attach an instance to an error |
|
|
572
|
-
| `attachHooks(types)` | `hookAttach` | Install hooks on the given types |
|
|
573
|
-
| `createDiveInterceptor()` | `adapterUse` | NestJS interceptor adapter |
|
|
574
|
-
| `createDivePlugin()` | `adapterUse` | Fastify plugin adapter |
|
|
575
|
-
| `createDiveMiddleware()` | `adapterUse` | Express middleware adapter |
|
|
568
|
+
| `wrap(fn)`, `wrapConstructorArg(fn, parent)`, `upgradeConstructorArg(arg, inst)`, `wrapInstanceMethods(obj)` | `wrap` | Wrap a function / constructor argument / instance methods for context propagation and tracing (`@mnemonica/dive`) |
|
|
569
|
+
| `current()`, `getErrorInstance(err)`, `getFlow(target?)` | `contextConsume` | Read the current context, the error-pinned instance, or the recorded flow (`@mnemonica/dive`) |
|
|
570
|
+
| `attachHooks(collection)` | `hookAttach` | Wire a TypesCollection to dive's lifecycle tracing (`@mnemonica/nestjs`) |
|
|
576
571
|
|
|
577
572
|
`eds.json` structure:
|
|
578
573
|
|