symforge 1.2.3 → 1.3.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.
- package/LICENSE +73 -0
- package/package.json +4 -3
- package/scripts/install.js +11 -43
package/LICENSE
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
PolyForm Noncommercial License 1.0.0
|
|
2
|
+
|
|
3
|
+
Required Notice: Copyright (c) 2026 special-place-administrator
|
|
4
|
+
|
|
5
|
+
Acceptance
|
|
6
|
+
|
|
7
|
+
In order to get any license under these terms, you must agree to them as both strict obligations and conditions to all your licenses.
|
|
8
|
+
|
|
9
|
+
Copyright License
|
|
10
|
+
|
|
11
|
+
The licensor grants you a copyright license for the software to do everything you might do with the software that would otherwise infringe the licensor's copyright in it for any permitted purpose. However, you may only distribute the software according to Distribution License and make changes or new works based on the software according to Changes and New Works License.
|
|
12
|
+
|
|
13
|
+
Distribution License
|
|
14
|
+
|
|
15
|
+
The licensor grants you an additional copyright license to distribute copies of the software. Your license to distribute covers distributing the software with changes and new works permitted by Changes and New Works License.
|
|
16
|
+
|
|
17
|
+
Notices
|
|
18
|
+
|
|
19
|
+
You must ensure that anyone who gets a copy of any part of the software from you also gets a copy of these terms or the URL for them above, as well as copies of any plain-text lines beginning with `Required Notice:` that the licensor provided with the software. For example:
|
|
20
|
+
|
|
21
|
+
Required Notice: Copyright Yoyodyne, Inc. (http://example.com)
|
|
22
|
+
|
|
23
|
+
Changes and New Works License
|
|
24
|
+
|
|
25
|
+
The licensor grants you an additional copyright license to make changes and new works based on the software for any permitted purpose.
|
|
26
|
+
|
|
27
|
+
Patent License
|
|
28
|
+
|
|
29
|
+
The licensor grants you a patent license for the software that covers patent claims the licensor can license, or becomes able to license, that you would infringe by using the software.
|
|
30
|
+
|
|
31
|
+
Noncommercial Purposes
|
|
32
|
+
|
|
33
|
+
Any noncommercial purpose is a permitted purpose.
|
|
34
|
+
|
|
35
|
+
Personal Uses
|
|
36
|
+
|
|
37
|
+
Personal use for research, experiment, and testing for the benefit of public knowledge, personal study, private entertainment, hobby projects, amateur pursuits, or religious observance, without any anticipated commercial application, is use for a permitted purpose.
|
|
38
|
+
|
|
39
|
+
Noncommercial Organizations
|
|
40
|
+
|
|
41
|
+
Use by any charitable organization, educational institution, public research organization, public safety or health organization, environmental protection organization, or government institution is use for a permitted purpose regardless of the source of funding or obligations resulting from the funding.
|
|
42
|
+
|
|
43
|
+
Fair Use
|
|
44
|
+
|
|
45
|
+
You may have "fair use" rights for the software under the law. These terms do not limit them.
|
|
46
|
+
|
|
47
|
+
No Other Rights
|
|
48
|
+
|
|
49
|
+
These terms do not allow you to sublicense or transfer any of your licenses to anyone else, or prevent the licensor from granting licenses to anyone else. These terms do not imply any other licenses.
|
|
50
|
+
|
|
51
|
+
Patent Defense
|
|
52
|
+
|
|
53
|
+
If you make any written claim that the software infringes or contributes to infringement of any patent, your patent license for the software granted under these terms ends immediately. If your company makes such a claim, your patent license ends immediately for work on behalf of your company.
|
|
54
|
+
|
|
55
|
+
Violations
|
|
56
|
+
|
|
57
|
+
The first time you are notified in writing that you have violated any of these terms, or done anything with the software not covered by your licenses, your licenses can nonetheless continue if you come into full compliance with these terms, and take practical steps to correct past violations, within 32 days of receiving notice. Otherwise, all your licenses end immediately.
|
|
58
|
+
|
|
59
|
+
No Liability
|
|
60
|
+
|
|
61
|
+
As far as the law allows, the software comes as is, without any warranty or condition, and the licensor will not be liable to you for any damages arising out of these terms or the use or nature of the software, under any kind of legal claim.
|
|
62
|
+
|
|
63
|
+
Definitions
|
|
64
|
+
|
|
65
|
+
The licensor is the individual or entity offering these terms, and the software is the software the licensor makes available under these terms.
|
|
66
|
+
|
|
67
|
+
You refers to the individual or entity agreeing to these terms.
|
|
68
|
+
|
|
69
|
+
Your company is any legal entity, sole proprietorship, or other kind of organization that you work for, plus all organizations that have control over, are under the control of, or are under common control with that organization. Control means ownership of substantially all the assets of an entity, or the power to direct its management and policies by vote, contract, or otherwise. Control can be direct or indirect.
|
|
70
|
+
|
|
71
|
+
Your licenses are all the licenses granted to you for the software under these terms.
|
|
72
|
+
|
|
73
|
+
Use means anything you do with the software requiring one of your licenses.
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "symforge",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0",
|
|
4
4
|
"description": "SymForge — in-memory code intelligence for Claude Code, Codex, and Gemini CLI",
|
|
5
|
-
"license": "
|
|
5
|
+
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
8
|
"url": "https://github.com/special-place-administrator/symforge"
|
|
@@ -16,7 +16,8 @@
|
|
|
16
16
|
},
|
|
17
17
|
"files": [
|
|
18
18
|
"bin/",
|
|
19
|
-
"scripts/"
|
|
19
|
+
"scripts/",
|
|
20
|
+
"LICENSE"
|
|
20
21
|
],
|
|
21
22
|
"keywords": [
|
|
22
23
|
"mcp",
|
package/scripts/install.js
CHANGED
|
@@ -191,48 +191,19 @@ function createInstaller(overrides = {}) {
|
|
|
191
191
|
}
|
|
192
192
|
|
|
193
193
|
/**
|
|
194
|
-
* Stop symforge
|
|
195
|
-
*
|
|
196
|
-
*
|
|
197
|
-
* Daemons are identifiable because they were launched with the `daemon` arg,
|
|
198
|
-
* visible in the process command line. On Windows we filter via WMI
|
|
199
|
-
* CommandLine; on Unix we use `pkill -f`.
|
|
194
|
+
* Stop all running symforge processes before an update. This includes
|
|
195
|
+
* active stdio MCP sessions; callers are expected to run updates only when
|
|
196
|
+
* interrupting those sessions is acceptable.
|
|
200
197
|
*
|
|
201
198
|
* Returns an array of killed PIDs (Windows) or [] (Unix, best-effort).
|
|
202
199
|
*/
|
|
203
|
-
function
|
|
200
|
+
function stopAllRunningProcesses(binPath) {
|
|
204
201
|
if (processMod.platform === "win32") {
|
|
205
|
-
|
|
206
|
-
// This avoids killing the MCP stdio process that Claude Code is using.
|
|
207
|
-
// NOTE: PowerShell -and operators must stay on the same line as their
|
|
208
|
-
// operands — semicolons are statement terminators, not line joiners.
|
|
209
|
-
const script = [
|
|
210
|
-
"$procs = Get-CimInstance Win32_Process | Where-Object { $_.Name -eq 'symforge.exe' -and $_.CommandLine -and $_.CommandLine -match '\\bdaemon\\b' }",
|
|
211
|
-
"$ids = @($procs | ForEach-Object { [int]$_.ProcessId })",
|
|
212
|
-
"if ($ids.Count -gt 0) { Stop-Process -Id $ids -Force -ErrorAction SilentlyContinue; $ids | ConvertTo-Json -Compress }",
|
|
213
|
-
].join("; ");
|
|
214
|
-
|
|
215
|
-
try {
|
|
216
|
-
const output = execFileSyncFn(
|
|
217
|
-
"powershell.exe",
|
|
218
|
-
["-NoProfile", "-NonInteractive", "-ExecutionPolicy", "Bypass", "-Command", script],
|
|
219
|
-
{ encoding: "utf8", env: processMod.env }
|
|
220
|
-
).trim();
|
|
221
|
-
|
|
222
|
-
if (!output) return [];
|
|
223
|
-
const parsed = JSON.parse(output);
|
|
224
|
-
return Array.isArray(parsed) ? parsed : [parsed];
|
|
225
|
-
} catch (error) {
|
|
226
|
-
consoleMod.log(
|
|
227
|
-
`Note: could not stop daemon processes: ${error.message}`
|
|
228
|
-
);
|
|
229
|
-
return [];
|
|
230
|
-
}
|
|
202
|
+
return stopRunningWindowsProcesses(binPath);
|
|
231
203
|
}
|
|
232
204
|
|
|
233
|
-
// Unix: kill only daemon processes (best-effort)
|
|
234
205
|
try {
|
|
235
|
-
execSyncFn("pkill -
|
|
206
|
+
execSyncFn("pkill -x symforge 2>/dev/null || true", {
|
|
236
207
|
encoding: "utf8",
|
|
237
208
|
});
|
|
238
209
|
} catch {
|
|
@@ -364,15 +335,12 @@ function createInstaller(overrides = {}) {
|
|
|
364
335
|
);
|
|
365
336
|
}
|
|
366
337
|
|
|
367
|
-
// Stop
|
|
368
|
-
//
|
|
369
|
-
|
|
370
|
-
// the stdio process, the installer will stage to .pending and the
|
|
371
|
-
// launcher will apply it on next start.
|
|
372
|
-
const stoppedPids = stopDaemonProcesses();
|
|
338
|
+
// Stop all running SymForge processes before install so the binary can be
|
|
339
|
+
// replaced in place, even if a live stdio MCP session is currently using it.
|
|
340
|
+
const stoppedPids = stopAllRunningProcesses(binPath);
|
|
373
341
|
if (stoppedPids.length > 0) {
|
|
374
342
|
consoleMod.log(
|
|
375
|
-
`Stopped ${stoppedPids.length}
|
|
343
|
+
`Stopped ${stoppedPids.length} running SymForge process(es) for update`
|
|
376
344
|
);
|
|
377
345
|
// Brief pause to let OS release file handles
|
|
378
346
|
await sleep(500);
|
|
@@ -431,8 +399,8 @@ function createInstaller(overrides = {}) {
|
|
|
431
399
|
installDownloadedBinary,
|
|
432
400
|
isLockedError,
|
|
433
401
|
main,
|
|
402
|
+
stopAllRunningProcesses,
|
|
434
403
|
stopRunningWindowsProcesses,
|
|
435
|
-
stopDaemonProcesses,
|
|
436
404
|
detectClients,
|
|
437
405
|
runAutoInit,
|
|
438
406
|
};
|