mecord-connect 1.0.0 → 2.0.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 (120) hide show
  1. package/DISCLOSURE +47 -47
  2. package/LICENSE +64 -64
  3. package/README.md +46 -44
  4. package/bin/operator.mjs +10 -10
  5. package/package.json +58 -58
  6. package/runtime/app/apps/local-agent/src/approval-store.js +342 -342
  7. package/runtime/app/apps/local-agent/src/bootstrap-config.js +255 -255
  8. package/runtime/app/apps/local-agent/src/cli.js +237 -237
  9. package/runtime/app/apps/local-agent/src/control-center.js +61 -0
  10. package/runtime/app/apps/local-agent/src/device-reset.js +260 -260
  11. package/runtime/app/apps/local-agent/src/emergency-stop.js +141 -141
  12. package/runtime/app/apps/local-agent/src/main.js +448 -311
  13. package/runtime/app/apps/local-agent/src/migration-proofs.js +194 -0
  14. package/runtime/app/apps/local-agent/src/privacy-data.js +129 -129
  15. package/runtime/app/apps/local-agent/src/relay-agent.js +542 -333
  16. package/runtime/app/apps/local-agent/src/relay-enrollment.js +156 -156
  17. package/runtime/app/apps/local-agent/src/relay-session-credentials.js +436 -436
  18. package/runtime/app/apps/local-agent/src/remote.js +130 -130
  19. package/runtime/app/apps/local-agent/src/runtime-factory.js +78 -66
  20. package/runtime/app/apps/local-agent/src/server.js +2069 -578
  21. package/runtime/app/apps/local-agent/src/session-approval.js +119 -0
  22. package/runtime/app/src/capabilities/browser-cdp-connection.js +199 -199
  23. package/runtime/app/src/capabilities/browser-cdp-frames.js +288 -288
  24. package/runtime/app/src/capabilities/browser-cdp-page.js +430 -430
  25. package/runtime/app/src/capabilities/browser-cdp.js +384 -384
  26. package/runtime/app/src/capabilities/browser-managed.js +345 -345
  27. package/runtime/app/src/capabilities/docker.js +448 -448
  28. package/runtime/app/src/capabilities/filesystem.js +546 -264
  29. package/runtime/app/src/capabilities/git-checkpoint.js +415 -415
  30. package/runtime/app/src/capabilities/git-write.js +321 -321
  31. package/runtime/app/src/capabilities/git.js +252 -252
  32. package/runtime/app/src/capabilities/index.js +18 -16
  33. package/runtime/app/src/capabilities/path-scope.js +86 -86
  34. package/runtime/app/src/capabilities/perception.js +138 -0
  35. package/runtime/app/src/capabilities/postgres.js +566 -566
  36. package/runtime/app/src/capabilities/process.js +625 -258
  37. package/runtime/app/src/capabilities/project-command.js +598 -598
  38. package/runtime/app/src/capabilities/project-transaction.js +215 -215
  39. package/runtime/app/src/capabilities/project.js +67 -67
  40. package/runtime/app/src/capabilities/sandboxed-compute.js +226 -0
  41. package/runtime/app/src/capabilities/system.js +40 -40
  42. package/runtime/app/src/capabilities/vscode.js +312 -312
  43. package/runtime/app/src/capabilities/windows-uia.js +616 -331
  44. package/runtime/app/src/core/account-device-registry.js +604 -604
  45. package/runtime/app/src/core/action-identity.js +44 -44
  46. package/runtime/app/src/core/audit.js +383 -295
  47. package/runtime/app/src/core/authority-kernel.js +209 -0
  48. package/runtime/app/src/core/capability-policy.js +69 -58
  49. package/runtime/app/src/core/capability-sdk.js +188 -0
  50. package/runtime/app/src/core/child-environment.js +28 -28
  51. package/runtime/app/src/core/conversation-ledger.js +146 -0
  52. package/runtime/app/src/core/desired-state-reconciler.js +90 -0
  53. package/runtime/app/src/core/desired-state.js +470 -0
  54. package/runtime/app/src/core/developer-relay-surface.js +44 -0
  55. package/runtime/app/src/core/device-enrollment.js +417 -417
  56. package/runtime/app/src/core/device-identity.js +436 -436
  57. package/runtime/app/src/core/device-pool.js +318 -0
  58. package/runtime/app/src/core/device-registry.js +477 -477
  59. package/runtime/app/src/core/device-reset.js +178 -178
  60. package/runtime/app/src/core/device-routing.js +330 -305
  61. package/runtime/app/src/core/digital-operations.js +707 -0
  62. package/runtime/app/src/core/durable-state.js +321 -306
  63. package/runtime/app/src/core/enterprise-policy.js +290 -0
  64. package/runtime/app/src/core/errors.js +20 -20
  65. package/runtime/app/src/core/evaluation.js +336 -0
  66. package/runtime/app/src/core/event-runtime.js +267 -0
  67. package/runtime/app/src/core/event-ticker.js +66 -0
  68. package/runtime/app/src/core/evidence.js +9 -9
  69. package/runtime/app/src/core/execution-optimizer.js +255 -0
  70. package/runtime/app/src/core/index.js +25 -17
  71. package/runtime/app/src/core/intent-kernel.js +152 -0
  72. package/runtime/app/src/core/machine-state.js +161 -160
  73. package/runtime/app/src/core/network-authority.js +20 -20
  74. package/runtime/app/src/core/organization-coordinator.js +410 -0
  75. package/runtime/app/src/core/outcome-planner.js +179 -0
  76. package/runtime/app/src/core/perception-graph.js +365 -0
  77. package/runtime/app/src/core/perception-publication.js +139 -0
  78. package/runtime/app/src/core/policy.js +76 -67
  79. package/runtime/app/src/core/procedure-memory.js +399 -0
  80. package/runtime/app/src/core/product-identity.js +10 -7
  81. package/runtime/app/src/core/provenance.js +18 -18
  82. package/runtime/app/src/core/provider-learning.js +274 -274
  83. package/runtime/app/src/core/public-plugin-surface.js +25 -25
  84. package/runtime/app/src/core/public-restricted-data.js +105 -105
  85. package/runtime/app/src/core/rate-limit.js +118 -118
  86. package/runtime/app/src/core/relay-client.js +629 -568
  87. package/runtime/app/src/core/relay-delivery-store.js +512 -512
  88. package/runtime/app/src/core/relay-result-store.js +321 -321
  89. package/runtime/app/src/core/release-update.js +253 -253
  90. package/runtime/app/src/core/resilience-matrix.js +176 -0
  91. package/runtime/app/src/core/resilience-simulator.js +156 -0
  92. package/runtime/app/src/core/resource-identity.js +55 -0
  93. package/runtime/app/src/core/resource-leases.js +249 -0
  94. package/runtime/app/src/core/router.js +96 -96
  95. package/runtime/app/src/core/runtime.js +138 -136
  96. package/runtime/app/src/core/scoped-path-syntax.js +16 -16
  97. package/runtime/app/src/core/semantic-checkpoint.js +420 -0
  98. package/runtime/app/src/core/session-token.js +499 -498
  99. package/runtime/app/src/core/side-effect.js +30 -0
  100. package/runtime/app/src/core/studio-executor.js +527 -0
  101. package/runtime/app/src/core/studio-teach.js +494 -0
  102. package/runtime/app/src/core/task-failure.js +61 -0
  103. package/runtime/app/src/core/task-orchestrator.js +1682 -1148
  104. package/runtime/app/src/core/task-store.js +526 -517
  105. package/runtime/app/src/core/task-verifier.js +154 -0
  106. package/runtime/app/src/core/task.js +175 -142
  107. package/runtime/app/src/core/team-coordinator.js +988 -0
  108. package/runtime/app/src/core/trusted-executable.js +124 -124
  109. package/runtime/app/src/core/types.js +101 -83
  110. package/runtime/app/src/core/verification-kernel.js +82 -0
  111. package/runtime/app/src/core/windows-path-lease.js +138 -138
  112. package/runtime/app/src/core/world-model.js +528 -0
  113. package/runtime/native/operator-windows-dpapi.exe +0 -0
  114. package/runtime/native/operator-windows-path-lease.exe +0 -0
  115. package/runtime/native/operator-windows-uia.exe +0 -0
  116. package/runtime/runtime-manifest.json +332 -147
  117. package/src/approval-console.mjs +279 -0
  118. package/src/approval-window.ps1 +99 -0
  119. package/src/cli.mjs +425 -345
  120. package/src/publish-check.mjs +22 -22
package/DISCLOSURE CHANGED
@@ -1,47 +1,47 @@
1
- MECORD CONNECT — DUAL-USE CONTENT DISCLOSURE
2
-
3
- Package: mecord-connect
4
- Publisher: Kinthala Samuel Sampath Kumar
5
- Contact: support@splcart.in
6
-
7
- Purpose
8
-
9
- mecord-connect is the Windows runtime used to pair a user-authorized computer with Mecord Connect for legitimate development and computer-automation workflows initiated through ChatGPT.
10
-
11
- Why this package is declared dual-use
12
-
13
- The package contains security-relevant remote-management capabilities because it can:
14
- - connect a local runtime to an authenticated remote relay;
15
- - inspect and modify files within locally authorized project roots;
16
- - expose bounded Git/project operations;
17
- - run locally trusted project commands subject to policy and approval controls;
18
- - interact with browser/UI automation capabilities that are available to the private local runtime but are not broadly exposed by the public plugin.
19
-
20
- These capabilities can be useful for legitimate development, administration, automation, support, and security work, but similar capabilities could be misused if operated without authorization. For that reason the package declares:
21
-
22
- "contentPolicy": {
23
- "class": "dual-use"
24
- }
25
-
26
- Intended legitimate use
27
-
28
- The Runtime is intended only for computers, accounts, repositories, websites, data, and services the user owns or is authorized to control.
29
-
30
- Safeguards
31
-
32
- Mecord Connect is designed to reduce misuse through multiple independent controls, including:
33
- - authenticated OAuth access to the hosted MCP service;
34
- - explicit device pairing and signed device identity;
35
- - locally enforced capability policy and authorized filesystem roots;
36
- - approval requirements for risk-bearing operations;
37
- - restricted public plugin tooling rather than unrestricted terminal/browser/UIA exposure;
38
- - credential/restricted-data guards and minimized public responses;
39
- - fail-closed relay/session behavior;
40
- - ambient credential stripping in the npm launcher;
41
- - immutable source/payload binding, integrity hashes, and Windows-native helper self-tests.
42
-
43
- The package is not intended to provide stealth, persistence, credential theft, malware delivery, access-control bypass, or unauthorized surveillance.
44
-
45
- Security and abuse reports
46
-
47
- Report suspected abuse or security issues privately to support@splcart.in. Do not send live passwords, access tokens, private keys, recovery credentials, or other active secrets.
1
+ MECORD CONNECT — DUAL-USE CONTENT DISCLOSURE
2
+
3
+ Package: mecord-connect
4
+ Publisher: Kinthala Samuel Sampath Kumar
5
+ Contact: support@splcart.in
6
+
7
+ Purpose
8
+
9
+ mecord-connect is the Windows runtime used to pair a user-authorized computer with Mecord Connect for legitimate development and computer-automation workflows initiated through ChatGPT.
10
+
11
+ Why this package is declared dual-use
12
+
13
+ The package contains security-relevant remote-management capabilities because it can:
14
+ - connect a local runtime to an authenticated remote relay;
15
+ - inspect and modify files within locally authorized project roots;
16
+ - expose bounded Git/project operations;
17
+ - run locally trusted project commands subject to policy and approval controls;
18
+ - interact with browser/UI automation capabilities that are available to the private local runtime but are not broadly exposed by the public plugin.
19
+
20
+ These capabilities can be useful for legitimate development, administration, automation, support, and security work, but similar capabilities could be misused if operated without authorization. For that reason the package declares:
21
+
22
+ "contentPolicy": {
23
+ "class": "dual-use"
24
+ }
25
+
26
+ Intended legitimate use
27
+
28
+ The Runtime is intended only for computers, accounts, repositories, websites, data, and services the user owns or is authorized to control.
29
+
30
+ Safeguards
31
+
32
+ Mecord Connect is designed to reduce misuse through multiple independent controls, including:
33
+ - authenticated OAuth access to the hosted MCP service;
34
+ - explicit device pairing and signed device identity;
35
+ - locally enforced capability policy and authorized filesystem roots;
36
+ - approval requirements for risk-bearing operations;
37
+ - restricted public plugin tooling rather than unrestricted terminal/browser/UIA exposure;
38
+ - credential/restricted-data guards and minimized public responses;
39
+ - fail-closed relay/session behavior;
40
+ - ambient credential stripping in the npm launcher;
41
+ - immutable source/payload binding, integrity hashes, and Windows-native helper self-tests.
42
+
43
+ The package is not intended to provide stealth, persistence, credential theft, malware delivery, access-control bypass, or unauthorized surveillance.
44
+
45
+ Security and abuse reports
46
+
47
+ Report suspected abuse or security issues privately to support@splcart.in. Do not send live passwords, access tokens, private keys, recovery credentials, or other active secrets.
package/LICENSE CHANGED
@@ -1,64 +1,64 @@
1
- MECORD CONNECT RUNTIME LICENSE AGREEMENT
2
-
3
- Copyright (c) 2026 Kinthala Samuel Sampath Kumar. All rights reserved.
4
-
5
- This Mecord Connect Runtime License Agreement ("Agreement") governs your use of the software distributed as the mecord-connect package, including its bundled runtime payload, launchers, native helpers, updates, and accompanying documentation (collectively, the "Runtime").
6
-
7
- Licensor
8
- Kinthala Samuel Sampath Kumar
9
- Akkayapalem, Visakhapatnam, Andhra Pradesh, India
10
- Support contact: support@splcart.in
11
-
12
- 1. License Grant
13
-
14
- Subject to this Agreement, the Licensor grants you a limited, non-exclusive, revocable, non-transferable, non-sublicensable license to install and use the Runtime on computers and accounts that you own or are authorized to control, solely for legitimate use with Mecord Connect and its supported local-development workflows.
15
-
16
- 2. Permitted Use
17
-
18
- You may:
19
- - install and run the Runtime on authorized Windows computers;
20
- - use it to connect an authorized computer to Mecord Connect;
21
- - use functionality exposed through the Runtime only within the authorization, safety, approval, and access-control boundaries provided by Mecord Connect and the local Runtime;
22
- - make a reasonable backup copy solely for your own permitted use where applicable law allows.
23
-
24
- 3. Restrictions
25
-
26
- Unless applicable law expressly requires otherwise, you may not:
27
- - redistribute, sell, sublicense, rent, lease, host, mirror, or republish the Runtime or a modified copy;
28
- - remove or alter copyright, license, safety, provenance, or security notices;
29
- - reverse engineer, decompile, disassemble, or attempt to derive source code from compiled components except to the limited extent such restriction is prohibited by applicable law;
30
- - bypass, disable, tamper with, or circumvent pairing, authentication, local approvals, capability policy, authorized-root restrictions, credential protections, rate limits, security checks, or other safeguards;
31
- - use the Runtime to access computers, accounts, data, services, repositories, or networks without authorization;
32
- - use the Runtime to distribute malware, steal credentials, evade access controls, interfere with systems, or violate applicable law or third-party rights.
33
-
34
- 4. Ownership
35
-
36
- The Runtime is licensed, not sold. The Licensor and applicable contributors retain all right, title, and interest in and to the Runtime and all associated intellectual-property rights, except for third-party components governed by their own licenses.
37
-
38
- 5. Hosted Services and Third Parties
39
-
40
- The Runtime may connect to Mecord Connect hosted services and third-party services. Access to those services may be subject to separate terms, privacy notices, availability limits, provider rules, and charges. This Agreement does not grant rights in third-party software or services.
41
-
42
- 6. Updates and Changes
43
-
44
- The Licensor may update, replace, suspend, or discontinue the Runtime or related hosted functionality. Updated versions may require acceptance of updated terms where permitted by law.
45
-
46
- 7. Termination
47
-
48
- This Agreement terminates automatically if you materially breach it. Upon termination, you must stop using and delete copies of the Runtime, except where retention is required by law. Provisions that by their nature should survive termination, including ownership, restrictions, disclaimers, liability limits, and governing law, survive.
49
-
50
- 8. Disclaimer
51
-
52
- TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, THE RUNTIME IS PROVIDED "AS IS" AND "AS AVAILABLE" WITHOUT WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, OR UNINTERRUPTED OR ERROR-FREE OPERATION. NOTHING IN THIS AGREEMENT EXCLUDES WARRANTIES OR RIGHTS THAT CANNOT LEGALLY BE EXCLUDED.
53
-
54
- 9. Limitation of Liability
55
-
56
- TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSOR WILL NOT BE LIABLE FOR INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, PUNITIVE, OR CONSEQUENTIAL DAMAGES, OR FOR LOSS OF PROFITS, REVENUE, DATA, BUSINESS, OR GOODWILL ARISING FROM OR RELATED TO THE RUNTIME. NOTHING IN THIS AGREEMENT LIMITS LIABILITY THAT CANNOT LEGALLY BE LIMITED.
57
-
58
- 10. Governing Law and Jurisdiction
59
-
60
- This Agreement is governed by the laws of India. Subject to mandatory consumer-protection and jurisdiction rules that cannot be waived, disputes relating to this Agreement are subject to the competent courts at Visakhapatnam, Andhra Pradesh, India.
61
-
62
- 11. Contact
63
-
64
- Questions about this Agreement may be sent to support@splcart.in.
1
+ MECORD CONNECT RUNTIME LICENSE AGREEMENT
2
+
3
+ Copyright (c) 2026 Kinthala Samuel Sampath Kumar. All rights reserved.
4
+
5
+ This Mecord Connect Runtime License Agreement ("Agreement") governs your use of the software distributed as the mecord-connect package, including its bundled runtime payload, launchers, native helpers, updates, and accompanying documentation (collectively, the "Runtime").
6
+
7
+ Licensor
8
+ Kinthala Samuel Sampath Kumar
9
+ Akkayapalem, Visakhapatnam, Andhra Pradesh, India
10
+ Support contact: support@splcart.in
11
+
12
+ 1. License Grant
13
+
14
+ Subject to this Agreement, the Licensor grants you a limited, non-exclusive, revocable, non-transferable, non-sublicensable license to install and use the Runtime on computers and accounts that you own or are authorized to control, solely for legitimate use with Mecord Connect and its supported local-development workflows.
15
+
16
+ 2. Permitted Use
17
+
18
+ You may:
19
+ - install and run the Runtime on authorized Windows computers;
20
+ - use it to connect an authorized computer to Mecord Connect;
21
+ - use functionality exposed through the Runtime only within the authorization, safety, approval, and access-control boundaries provided by Mecord Connect and the local Runtime;
22
+ - make a reasonable backup copy solely for your own permitted use where applicable law allows.
23
+
24
+ 3. Restrictions
25
+
26
+ Unless applicable law expressly requires otherwise, you may not:
27
+ - redistribute, sell, sublicense, rent, lease, host, mirror, or republish the Runtime or a modified copy;
28
+ - remove or alter copyright, license, safety, provenance, or security notices;
29
+ - reverse engineer, decompile, disassemble, or attempt to derive source code from compiled components except to the limited extent such restriction is prohibited by applicable law;
30
+ - bypass, disable, tamper with, or circumvent pairing, authentication, local approvals, capability policy, authorized-root restrictions, credential protections, rate limits, security checks, or other safeguards;
31
+ - use the Runtime to access computers, accounts, data, services, repositories, or networks without authorization;
32
+ - use the Runtime to distribute malware, steal credentials, evade access controls, interfere with systems, or violate applicable law or third-party rights.
33
+
34
+ 4. Ownership
35
+
36
+ The Runtime is licensed, not sold. The Licensor and applicable contributors retain all right, title, and interest in and to the Runtime and all associated intellectual-property rights, except for third-party components governed by their own licenses.
37
+
38
+ 5. Hosted Services and Third Parties
39
+
40
+ The Runtime may connect to Mecord Connect hosted services and third-party services. Access to those services may be subject to separate terms, privacy notices, availability limits, provider rules, and charges. This Agreement does not grant rights in third-party software or services.
41
+
42
+ 6. Updates and Changes
43
+
44
+ The Licensor may update, replace, suspend, or discontinue the Runtime or related hosted functionality. Updated versions may require acceptance of updated terms where permitted by law.
45
+
46
+ 7. Termination
47
+
48
+ This Agreement terminates automatically if you materially breach it. Upon termination, you must stop using and delete copies of the Runtime, except where retention is required by law. Provisions that by their nature should survive termination, including ownership, restrictions, disclaimers, liability limits, and governing law, survive.
49
+
50
+ 8. Disclaimer
51
+
52
+ TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, THE RUNTIME IS PROVIDED "AS IS" AND "AS AVAILABLE" WITHOUT WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, OR UNINTERRUPTED OR ERROR-FREE OPERATION. NOTHING IN THIS AGREEMENT EXCLUDES WARRANTIES OR RIGHTS THAT CANNOT LEGALLY BE EXCLUDED.
53
+
54
+ 9. Limitation of Liability
55
+
56
+ TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSOR WILL NOT BE LIABLE FOR INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, PUNITIVE, OR CONSEQUENTIAL DAMAGES, OR FOR LOSS OF PROFITS, REVENUE, DATA, BUSINESS, OR GOODWILL ARISING FROM OR RELATED TO THE RUNTIME. NOTHING IN THIS AGREEMENT LIMITS LIABILITY THAT CANNOT LEGALLY BE LIMITED.
57
+
58
+ 10. Governing Law and Jurisdiction
59
+
60
+ This Agreement is governed by the laws of India. Subject to mandatory consumer-protection and jurisdiction rules that cannot be waived, disputes relating to this Agreement are subject to the competent courts at Visakhapatnam, Andhra Pradesh, India.
61
+
62
+ 11. Contact
63
+
64
+ Questions about this Agreement may be sent to support@splcart.in.
package/README.md CHANGED
@@ -1,44 +1,46 @@
1
- # mecord-connect
2
-
3
- One-command Windows runtime for connecting a user-authorized computer to Mecord Connect in ChatGPT.
4
-
5
- ```powershell
6
- npx mecord-connect@latest remote
7
- ```
8
-
9
- Requires Windows x64 with a supported Node.js line: 22.14+, 24.x, or 26.x. Git features additionally require Git 2.45 or newer; older or missing Git disables only the Git capabilities while the rest of the Mecord Connect runtime remains available.
10
-
11
- The command does **not** install an MSIX and does **not** start a local MCP server. It verifies the package's runtime manifest, starts the existing hardened local policy/runtime agent, and connects that agent to the pinned production relay at `wss://operator.splcart.in/device`. ChatGPT talks to the hosted MCP edge.
12
-
13
- On first use the runtime prints a one-time device pairing code. Claim that code from Mecord Connect in the authenticated ChatGPT connection. The resulting short-lived relay credential is protected for the current Windows user with DPAPI and is rotated by the existing relay-session authority.
14
-
15
- By default the current directory is the authorized filesystem/project root. To authorize another folder explicitly:
16
-
17
- ```powershell
18
- npx mecord-connect@latest remote --root C:\path\to\project
19
- ```
20
-
21
- Use `--no-browser` to disable automatic launch of Mecord Connect's managed-browser capability. Generic terminal execution remains disabled by default; project commands continue to use the existing policy/approval boundary.
22
-
23
- Before starting a session you can verify the package payload and all three Windows-native security helpers:
24
-
25
- ```powershell
26
- npx mecord-connect@latest doctor
27
- ```
28
-
29
- `doctor` verifies every packaged runtime file against SHA-256/size metadata, exercises the DPAPI and Windows path-lease self-tests, and performs a protocol health check against the UI Automation sidecar. It does not start the relay connection.
30
-
31
- ## Security model
32
-
33
- The npm launcher deliberately rebuilds the child environment from a small desktop allowlist. npm/GitHub/cloud tokens, `.npmrc` pointers, `NODE_OPTIONS`, caller-supplied Mecord Connect relay variables, and other ambient credentials are not inherited by the long-running runtime. The public package pins its relay/result authority to `operator.splcart.in`; callers cannot redirect a paired device by setting environment variables.
34
-
35
- The runtime payload is produced from the canonical repository sources at publication time, and includes the native DPAPI, UI Automation, and Windows path-lease helpers compiled in the Windows release workflow. The payload manifest records the exact Git commit and hashes every shipped file.
36
-
37
- ## Support and policies
38
-
39
- - Support: https://operator.splcart.in/support
40
- - Privacy: https://operator.splcart.in/privacy
41
- - Terms: https://operator.splcart.in/terms
42
- - License: proprietary Mecord Connect Runtime License in `LICENSE`
43
- - Dual-use disclosure: `DISCLOSURE`
44
- - Issues: https://github.com/sampathkumar-co/Operator-runtime/issues
1
+ # mecord-connect
2
+
3
+ One-command Windows runtime for connecting a user-authorized computer to Mecord Connect in ChatGPT.
4
+
5
+ ```powershell
6
+ npx mecord-connect@latest remote
7
+ ```
8
+
9
+ Requires Windows x64 with a supported Node.js line: 22.14+, 24.x, or 26.x. Git features additionally require Git 2.45 or newer; older or missing Git disables only the Git capabilities while the rest of the Mecord Connect runtime remains available.
10
+
11
+ The command does **not** install an MSIX and does **not** start a local MCP server. It verifies the package's runtime manifest, starts the existing hardened local policy/runtime agent, and connects that agent to the pinned production relay at `wss://operator.splcart.in/device`. ChatGPT talks to the hosted MCP edge.
12
+
13
+ On first use, when human authorization is actually required, the runtime prints the short-lived secure Mecord pairing link **and automatically opens it in the default Windows browser**. Confirm the device in your Mecord account; ChatGPT does not receive a public device-claim tool. The resulting relay credential is protected for the current Windows user with DPAPI. Future `mecord-connect remote` runs reuse the protected device identity/session path and normally reconnect without opening the browser; pairing reappears only after credential loss, revocation, account/device trust change, or another enrollment requirement.
14
+
15
+ By default the current directory is the authorized filesystem/project root. To authorize another folder explicitly:
16
+
17
+ ```powershell
18
+ npx mecord-connect@latest remote --root C:\path\to\project
19
+ ```
20
+
21
+ Use `--no-browser` to disable automatic launch of Mecord Connect's managed-browser capability. Generic terminal execution remains disabled by default; project commands continue to use the existing policy/approval boundary.
22
+
23
+ When ChatGPT requests an action that requires local approval, Mecord opens a **local Windows approval card** showing the action, risk and target with **Deny**, **Approve Once**, and **Allow Session**. `Allow Session` is memory-only, bound to the same account/device authority generation plus the current authorized roots/capability scope, expires after 8 hours or 60 minutes idle, and disappears when the runtime exits. It suppresses repeated external/system/destructive prompts inside that scope but never bypasses root scoping, capability allowlists, emergency stop, path safety, restricted-data filtering, or provider-specific allowlists. ChatGPT never receives the recovery authority and cannot approve its own request. The terminal remains a fallback with `approve`, `session`, `deny`, `session-status`, and `revoke-session`.
24
+
25
+ Before starting a session you can verify the package payload and all three Windows-native security helpers:
26
+
27
+ ```powershell
28
+ npx mecord-connect@latest doctor
29
+ ```
30
+
31
+ `doctor` verifies every packaged runtime file against SHA-256/size metadata, exercises the DPAPI and Windows path-lease self-tests, and performs a protocol health check against the UI Automation sidecar. It does not start the relay connection.
32
+
33
+ ## Security model
34
+
35
+ The npm launcher deliberately rebuilds the child environment from a small desktop allowlist. npm/GitHub/cloud tokens, `.npmrc` pointers, `NODE_OPTIONS`, caller-supplied Mecord Connect relay variables, and other ambient credentials are not inherited by the long-running runtime. The public package pins its relay/result authority to `operator.splcart.in`; callers cannot redirect a paired device by setting environment variables.
36
+
37
+ The runtime payload is produced from the canonical repository sources at publication time, and includes the native DPAPI, UI Automation, and Windows path-lease helpers compiled in the Windows release workflow. The payload manifest records the exact Git commit and hashes every shipped file.
38
+
39
+ ## Support and policies
40
+
41
+ - Support: https://operator.splcart.in/support
42
+ - Privacy: https://operator.splcart.in/privacy
43
+ - Terms: https://operator.splcart.in/terms
44
+ - License: proprietary Mecord Connect Runtime License in `LICENSE`
45
+ - Dual-use disclosure: `DISCLOSURE`
46
+ - Issues: https://github.com/sampathkumar-co/Operator-runtime/issues
package/bin/operator.mjs CHANGED
@@ -1,10 +1,10 @@
1
- #!/usr/bin/env node
2
- import { main } from '../src/cli.mjs';
3
-
4
- try {
5
- await main(process.argv.slice(2));
6
- } catch (error) {
7
- const message = error instanceof Error ? error.message : String(error);
8
- console.error(`[mecord-connect] ${message}`);
9
- process.exitCode = 1;
10
- }
1
+ #!/usr/bin/env node
2
+ import { main } from '../src/cli.mjs';
3
+
4
+ try {
5
+ await main(process.argv.slice(2));
6
+ } catch (error) {
7
+ const message = error instanceof Error ? error.message : String(error);
8
+ console.error(`[mecord-connect] ${message}`);
9
+ process.exitCode = 1;
10
+ }
package/package.json CHANGED
@@ -1,58 +1,58 @@
1
- {
2
- "name": "mecord-connect",
3
- "version": "1.0.0",
4
- "description": "Secure one-command Mecord Connect runtime for connecting ChatGPT to a user-authorized Windows computer.",
5
- "type": "module",
6
- "bin": {
7
- "mecord-connect": "bin/operator.mjs"
8
- },
9
- "files": [
10
- "bin",
11
- "src",
12
- "runtime",
13
- "README.md",
14
- "DISCLOSURE",
15
- "LICENSE"
16
- ],
17
- "engines": {
18
- "node": ">=22.14.0 <23 || >=24.0.0 <25 || >=26.0.0 <27"
19
- },
20
- "os": [
21
- "win32"
22
- ],
23
- "cpu": [
24
- "x64"
25
- ],
26
- "publishConfig": {
27
- "access": "public"
28
- },
29
- "license": "SEE LICENSE IN LICENSE",
30
- "scripts": {
31
- "build:runtime": "node ./scripts/build-runtime-payload.mjs",
32
- "prepublishOnly": "node ./src/publish-check.mjs"
33
- },
34
- "repository": {
35
- "type": "git",
36
- "url": "git+https://github.com/sampathkumar-co/Operator-runtime.git"
37
- },
38
- "homepage": "https://operator.splcart.in",
39
- "keywords": [
40
- "mecord-connect",
41
- "chatgpt",
42
- "mcp",
43
- "windows",
44
- "automation",
45
- "developer-tools"
46
- ],
47
- "bugs": {
48
- "url": "https://github.com/sampathkumar-co/Operator-runtime/issues",
49
- "email": "support@splcart.in"
50
- },
51
- "contentPolicy": {
52
- "class": "dual-use"
53
- },
54
- "author": {
55
- "name": "Kinthala Samuel Sampath Kumar",
56
- "email": "support@splcart.in"
57
- }
58
- }
1
+ {
2
+ "name": "mecord-connect",
3
+ "version": "2.0.0",
4
+ "description": "Secure one-command Mecord Connect runtime for connecting ChatGPT to a user-authorized Windows computer.",
5
+ "type": "module",
6
+ "bin": {
7
+ "mecord-connect": "bin/operator.mjs"
8
+ },
9
+ "files": [
10
+ "bin",
11
+ "src",
12
+ "runtime",
13
+ "README.md",
14
+ "DISCLOSURE",
15
+ "LICENSE"
16
+ ],
17
+ "engines": {
18
+ "node": ">=22.14.0 <23 || >=24.0.0 <25 || >=26.0.0 <27"
19
+ },
20
+ "os": [
21
+ "win32"
22
+ ],
23
+ "cpu": [
24
+ "x64"
25
+ ],
26
+ "publishConfig": {
27
+ "access": "public"
28
+ },
29
+ "license": "SEE LICENSE IN LICENSE",
30
+ "scripts": {
31
+ "build:runtime": "node ./scripts/build-runtime-payload.mjs",
32
+ "prepublishOnly": "node ./src/publish-check.mjs"
33
+ },
34
+ "repository": {
35
+ "type": "git",
36
+ "url": "git+https://github.com/sampathkumar-co/Operator-runtime.git"
37
+ },
38
+ "homepage": "https://operator.splcart.in",
39
+ "keywords": [
40
+ "mecord-connect",
41
+ "chatgpt",
42
+ "mcp",
43
+ "windows",
44
+ "automation",
45
+ "developer-tools"
46
+ ],
47
+ "bugs": {
48
+ "url": "https://github.com/sampathkumar-co/Operator-runtime/issues",
49
+ "email": "support@splcart.in"
50
+ },
51
+ "contentPolicy": {
52
+ "class": "dual-use"
53
+ },
54
+ "author": {
55
+ "name": "Kinthala Samuel Sampath Kumar",
56
+ "email": "support@splcart.in"
57
+ }
58
+ }