@memberjunction/code-execution 6.2.0-edge.8 → 6.2.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/.turbo/turbo-build.log +2 -2
- package/CHANGELOG.md +183 -0
- package/package.json +3 -3
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @memberjunction/code-execution@6.2.
|
|
2
|
+
> @memberjunction/code-execution@6.2.1 build /home/runner/work/MJ/MJ/packages/Actions/CodeExecution
|
|
3
3
|
> tsc && tsc-alias -f && npm run copy:bundled-libs
|
|
4
4
|
|
|
5
5
|
npm warn Unknown env config "enable-pre-post-scripts". This will stop working in the next major version of npm. See `npm help npmrc` for supported config options.
|
|
@@ -8,6 +8,6 @@ npm warn Unknown env config "npm-globalconfig". This will stop working in the ne
|
|
|
8
8
|
npm warn Unknown env config "link-workspace-packages". This will stop working in the next major version of npm. See `npm help npmrc` for supported config options.
|
|
9
9
|
npm warn Unknown env config "_jsr-registry". This will stop working in the next major version of npm. See `npm help npmrc` for supported config options.
|
|
10
10
|
|
|
11
|
-
> @memberjunction/code-execution@6.2.
|
|
11
|
+
> @memberjunction/code-execution@6.2.1 copy:bundled-libs
|
|
12
12
|
> node -e "const fs=require('fs'),p=require('path');const src=p.join('src','libraries','bundled-libs');const dst=p.join('dist','libraries','bundled-libs');fs.mkdirSync(dst,{recursive:true});for(const f of fs.readdirSync(src))fs.copyFileSync(p.join(src,f),p.join(dst,f));"
|
|
13
13
|
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,188 @@
|
|
|
1
1
|
# @memberjunction/code-execution
|
|
2
2
|
|
|
3
|
+
## 6.2.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [41142bd]
|
|
8
|
+
- @memberjunction/core@6.2.1
|
|
9
|
+
- @memberjunction/global@6.2.1
|
|
10
|
+
|
|
11
|
+
## 6.2.0
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- fe39606: Memory-leak audit round 17 fixes.
|
|
16
|
+
- **Core entity forms:** twelve custom form components (Lists, Tests, Entities, Templates, AI Agent Runs, Search Scopes, AI Agents, AI Prompt Runs, Queries) overrode `ngOnDestroy` without calling `super.ngOnDestroy()`, so every opened form stayed subscribed to the root-singleton form-state stream. They now call `super`.
|
|
17
|
+
- **Testing engine:** the per-suite rubric version pins and labels grew on every run on a process-lifetime driver. They are now bounded LRU caches with a TTL.
|
|
18
|
+
- **CodeGen:** `RunCommand` now clears its timeout timer when the command finishes first, so it no longer kills a recycled PID later or holds the event loop open.
|
|
19
|
+
- **Code execution:** a sandbox worker that fails to start is now killed instead of orphaned, and `Shutdown()` decides whether a worker has exited from `exitCode`/`signalCode` rather than `killed`.
|
|
20
|
+
|
|
21
|
+
- 80905a1: Rename public class members and exported functions to PascalCase, per MJ's naming convention,
|
|
22
|
+
**without breaking a single consumer**.
|
|
23
|
+
|
|
24
|
+
Every renamed symbol keeps its old name beside the new one as a `@deprecated` stub that forwards to
|
|
25
|
+
it — a delegating method or function, a getter/setter pair for a property, and for Angular a
|
|
26
|
+
readable accessor pair for an `@Input` and a second `@Output` sharing the same `EventEmitter`, so a
|
|
27
|
+
template still binding the old name keeps receiving events. Old names still compile, still resolve,
|
|
28
|
+
and still behave identically; the deprecation tag rides through to the published `.d.ts`, so editors
|
|
29
|
+
point callers at the replacement. Where a package re-exports through an explicit `export { … }`
|
|
30
|
+
list, the new name is added alongside the old, so the correct name is actually on the public surface
|
|
31
|
+
rather than merely declared.
|
|
32
|
+
|
|
33
|
+
The rename is deliberately refused wherever a mechanical stub would not be equivalent, because
|
|
34
|
+
several of those shapes change a type contract while still compiling in the package that declares
|
|
35
|
+
them:
|
|
36
|
+
- an **optional** property or parameter property — TypeScript has no optional accessor, so a stub
|
|
37
|
+
would promote `foo?` to a required member and break every object literal that omits it;
|
|
38
|
+
- a class that is a **data shape** (no methods, or `@ObjectType`/`@InputType`) — object literals are
|
|
39
|
+
assigned to it, and an accessor stub changes what they must supply;
|
|
40
|
+
- a property whose **subclass redeclares it**, since TypeScript forbids a property overriding an
|
|
41
|
+
accessor (TS2610);
|
|
42
|
+
- a name whose PascalCase form is **already bound** in that file or class;
|
|
43
|
+
- decorated members, `get`/`set` pairs behind a decorator, generators, destructured parameters,
|
|
44
|
+
overload sets and abstract members.
|
|
45
|
+
|
|
46
|
+
**One wire-visible consequence, for version skew only.** `BaseInfo.toJSON` walks `_`-prefixed
|
|
47
|
+
backing fields and emits them through their public getter, preferring the PascalCase one. Renaming
|
|
48
|
+
the 23 field aliases in `MJCore/src/generic` therefore changes what `AllMetadata` carries:
|
|
49
|
+
`EntityInfo.spCreate` and friends now serialize as `SpCreate`. A same-version client is unaffected —
|
|
50
|
+
`copyInitData` accepts a value through a settable accessor, so either spelling lands on the right
|
|
51
|
+
field. An OLDER client against a newer server has no such path in its `copyInitData` and drops those
|
|
52
|
+
fields silently. Same-version deployments, which is the supported configuration, see no change.
|
|
53
|
+
|
|
54
|
+
Each package was verified against its own pre-change baseline rather than against zero, because
|
|
55
|
+
several packages in this repo do not typecheck cleanly to begin with. Angular packages were verified
|
|
56
|
+
with `ngc`, not `tsc`: a plain typecheck does not compile templates, and an earlier write-only
|
|
57
|
+
`@Input` alias passed `tsc` while breaking six template reads.
|
|
58
|
+
|
|
59
|
+
- 200e634: Round 16 memory-leak audit fixes: bound three previously-unbounded caches and fix a dead process-kill escalation.
|
|
60
|
+
- `RealtimeClientSessionService`'s `sessionWireActionMaps`/`targetWireActionMaps`/`sessionDirectConfigs` and `bridge-room-transcript-sink.ts`'s `roomToConversation`/`writeChains` were plain `Map`s on process-lifetime objects with no session/room-ended hook to evict on — every realtime voice session or meeting room ever handled left a permanent entry. Converted to `MJLruCache` (bounded, TTL'd), mirroring the same file's existing `promptRunWriteChains` pattern.
|
|
61
|
+
- `EntityActionEngineServer.RunEntityAction()` constructed a fresh `EntityActionInvocationBase` on every single dispatch instead of reusing one per invocation type, silently discarding the Script invocation type's own `_scriptCache` before a second lookup could ever hit it. Added an instance cache keyed by `InvocationType.Name`.
|
|
62
|
+
- `ChildProcessExecutor`'s `Kill()` sent only `SIGTERM` with no `SIGKILL` follow-up, on the hot path of every AI-agent CLI turn. Added a `SIGTERM`→5s grace→`SIGKILL` escalation.
|
|
63
|
+
- While testing that escalation, found `WorkerPool.Shutdown()`'s own `SIGTERM`→`SIGKILL` escalation — believed correct since this audit's Round 10 — was dead code: `ChildProcess.killed` is set `true` synchronously once `kill()` sends a signal, not once the process exits, so the old `if (!worker.process.killed)` guard never actually fired `SIGKILL`. Fixed to key off the process's `exit` event instead.
|
|
64
|
+
|
|
65
|
+
No behavior changes on any success path; all four packages' full test suites pass with new coverage for each fix.
|
|
66
|
+
|
|
67
|
+
- Updated dependencies [1419ba7]
|
|
68
|
+
- Updated dependencies [39b35f1]
|
|
69
|
+
- Updated dependencies [e97d95c]
|
|
70
|
+
- Updated dependencies [6c36fb6]
|
|
71
|
+
- Updated dependencies [cc36de5]
|
|
72
|
+
- Updated dependencies [9cb815b]
|
|
73
|
+
- Updated dependencies [709de1a]
|
|
74
|
+
- Updated dependencies [c159e2f]
|
|
75
|
+
- Updated dependencies [d2db108]
|
|
76
|
+
- Updated dependencies [dfe40a4]
|
|
77
|
+
- Updated dependencies [a3539d2]
|
|
78
|
+
- Updated dependencies [db39145]
|
|
79
|
+
- Updated dependencies [41274aa]
|
|
80
|
+
- Updated dependencies [29b16ee]
|
|
81
|
+
- Updated dependencies [c671f85]
|
|
82
|
+
- Updated dependencies [49f26d9]
|
|
83
|
+
- Updated dependencies [5e4205c]
|
|
84
|
+
- Updated dependencies [7be1684]
|
|
85
|
+
- Updated dependencies [21f9e15]
|
|
86
|
+
- Updated dependencies [c8c48e1]
|
|
87
|
+
- Updated dependencies [f2248d5]
|
|
88
|
+
- Updated dependencies [81aea34]
|
|
89
|
+
- Updated dependencies [5465489]
|
|
90
|
+
- Updated dependencies [3bace5a]
|
|
91
|
+
- Updated dependencies [88e6902]
|
|
92
|
+
- Updated dependencies [c87f87a]
|
|
93
|
+
- Updated dependencies [f4cd5fb]
|
|
94
|
+
- Updated dependencies [e1fd4c1]
|
|
95
|
+
- Updated dependencies [4248fb3]
|
|
96
|
+
- Updated dependencies [d29b5c2]
|
|
97
|
+
- Updated dependencies [59e32e0]
|
|
98
|
+
- Updated dependencies [0a7c255]
|
|
99
|
+
- Updated dependencies [0adaf76]
|
|
100
|
+
- Updated dependencies [0ff7523]
|
|
101
|
+
- Updated dependencies [d86bcbc]
|
|
102
|
+
- Updated dependencies [42df19d]
|
|
103
|
+
- Updated dependencies [4283a82]
|
|
104
|
+
- Updated dependencies [d6b39c4]
|
|
105
|
+
- Updated dependencies [5f0baf7]
|
|
106
|
+
- Updated dependencies [f65fec7]
|
|
107
|
+
- Updated dependencies [9b5b489]
|
|
108
|
+
- Updated dependencies [cb205de]
|
|
109
|
+
- Updated dependencies [a6f8c1c]
|
|
110
|
+
- Updated dependencies [56d7614]
|
|
111
|
+
- Updated dependencies [683f652]
|
|
112
|
+
- Updated dependencies [914e6ff]
|
|
113
|
+
- Updated dependencies [2274f42]
|
|
114
|
+
- Updated dependencies [0fb3649]
|
|
115
|
+
- Updated dependencies [902d086]
|
|
116
|
+
- Updated dependencies [62c91ea]
|
|
117
|
+
- Updated dependencies [705ab4e]
|
|
118
|
+
- Updated dependencies [a7da50b]
|
|
119
|
+
- Updated dependencies [0f04590]
|
|
120
|
+
- Updated dependencies [4c0eaec]
|
|
121
|
+
- Updated dependencies [f26084f]
|
|
122
|
+
- Updated dependencies [db39145]
|
|
123
|
+
- Updated dependencies [f48dffc]
|
|
124
|
+
- Updated dependencies [41c2c08]
|
|
125
|
+
- Updated dependencies [630bb88]
|
|
126
|
+
- Updated dependencies [e69634e]
|
|
127
|
+
- Updated dependencies [b73e3bc]
|
|
128
|
+
- Updated dependencies [08be974]
|
|
129
|
+
- Updated dependencies [17cc774]
|
|
130
|
+
- Updated dependencies [dae1d31]
|
|
131
|
+
- Updated dependencies [bfd67c6]
|
|
132
|
+
- Updated dependencies [80905a1]
|
|
133
|
+
- Updated dependencies [397ae9a]
|
|
134
|
+
- Updated dependencies [7e72c86]
|
|
135
|
+
- Updated dependencies [a17a228]
|
|
136
|
+
- Updated dependencies [ee1f0d9]
|
|
137
|
+
- Updated dependencies [4ef13d6]
|
|
138
|
+
- Updated dependencies [25f7b82]
|
|
139
|
+
- Updated dependencies [104125c]
|
|
140
|
+
- Updated dependencies [7e57b48]
|
|
141
|
+
- Updated dependencies [7e57b48]
|
|
142
|
+
- Updated dependencies [d296edd]
|
|
143
|
+
- Updated dependencies [66fd011]
|
|
144
|
+
- Updated dependencies [6a5fb64]
|
|
145
|
+
- Updated dependencies [0e93e1f]
|
|
146
|
+
- Updated dependencies [509d2aa]
|
|
147
|
+
- Updated dependencies [196160a]
|
|
148
|
+
- Updated dependencies [5513c2a]
|
|
149
|
+
- Updated dependencies [90829e3]
|
|
150
|
+
- Updated dependencies [5986939]
|
|
151
|
+
- Updated dependencies [4d647e6]
|
|
152
|
+
- Updated dependencies [8c120db]
|
|
153
|
+
- Updated dependencies [9a2d7cc]
|
|
154
|
+
- Updated dependencies [3ab85f9]
|
|
155
|
+
- Updated dependencies [17a4137]
|
|
156
|
+
- Updated dependencies [b4afc13]
|
|
157
|
+
- Updated dependencies [36a3f9e]
|
|
158
|
+
- Updated dependencies [c65f754]
|
|
159
|
+
- Updated dependencies [49d0d3c]
|
|
160
|
+
- Updated dependencies [60bd774]
|
|
161
|
+
- Updated dependencies [0a348e2]
|
|
162
|
+
- Updated dependencies [ac18db8]
|
|
163
|
+
- Updated dependencies [35da130]
|
|
164
|
+
- Updated dependencies [5b41d48]
|
|
165
|
+
- Updated dependencies [4b9542c]
|
|
166
|
+
- Updated dependencies [28c92e0]
|
|
167
|
+
- Updated dependencies [5f707d1]
|
|
168
|
+
- Updated dependencies [369e229]
|
|
169
|
+
- Updated dependencies [ba00ac7]
|
|
170
|
+
- Updated dependencies [8a5d2c0]
|
|
171
|
+
- Updated dependencies [aca4317]
|
|
172
|
+
- Updated dependencies [d52f9ba]
|
|
173
|
+
- Updated dependencies [0e5a4cd]
|
|
174
|
+
- Updated dependencies [b968642]
|
|
175
|
+
- Updated dependencies [68a7e3b]
|
|
176
|
+
- Updated dependencies [718b01c]
|
|
177
|
+
- Updated dependencies [374b1a4]
|
|
178
|
+
- Updated dependencies [2c590b0]
|
|
179
|
+
- Updated dependencies [1ba9315]
|
|
180
|
+
- Updated dependencies [b8a9e5e]
|
|
181
|
+
- Updated dependencies [e8258a1]
|
|
182
|
+
- Updated dependencies [dc38250]
|
|
183
|
+
- @memberjunction/global@6.2.0
|
|
184
|
+
- @memberjunction/core@6.2.0
|
|
185
|
+
|
|
3
186
|
## 6.2.0-edge.8
|
|
4
187
|
|
|
5
188
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@memberjunction/code-execution",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "6.2.
|
|
4
|
+
"version": "6.2.1",
|
|
5
5
|
"description": "Sandboxed code execution service for MemberJunction actions and agents",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@memberjunction/core": "6.2.
|
|
10
|
-
"@memberjunction/global": "6.2.
|
|
9
|
+
"@memberjunction/core": "6.2.1",
|
|
10
|
+
"@memberjunction/global": "6.2.1",
|
|
11
11
|
"isolated-vm": "^6.0.2",
|
|
12
12
|
"lodash": "^4.17.23",
|
|
13
13
|
"date-fns": "^3.0.0",
|