@s-gw/s-gw 0.1.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 (123) hide show
  1. package/.codex-plugin/plugin.json +35 -0
  2. package/.mcp.json +16 -0
  3. package/LICENSE +201 -0
  4. package/NOTICE +7 -0
  5. package/README.md +197 -0
  6. package/TRADEMARKS.md +9 -0
  7. package/assets/icons/aws-ec2.png +0 -0
  8. package/assets/icons/lucide/bot.svg +8 -0
  9. package/assets/icons/lucide/monitor.svg +5 -0
  10. package/assets/icons/lucide/server.svg +6 -0
  11. package/assets/icons/lucide/terminal.svg +4 -0
  12. package/assets/icons/s-gw-128.png +0 -0
  13. package/assets/icons/s-gw-16.png +0 -0
  14. package/assets/icons/s-gw-180.png +0 -0
  15. package/assets/icons/s-gw-192.png +0 -0
  16. package/assets/icons/s-gw-32.png +0 -0
  17. package/assets/icons/s-gw-64.png +0 -0
  18. package/assets/icons/s-gw-menu-bar-template.png +0 -0
  19. package/dist/agent-context.d.ts +17 -0
  20. package/dist/agent-context.js +207 -0
  21. package/dist/agents.d.ts +64 -0
  22. package/dist/agents.js +763 -0
  23. package/dist/cli.d.ts +2 -0
  24. package/dist/cli.js +1385 -0
  25. package/dist/command-suggest.d.ts +3 -0
  26. package/dist/command-suggest.js +131 -0
  27. package/dist/console-server.d.ts +16 -0
  28. package/dist/console-server.js +978 -0
  29. package/dist/console-ui/assets/codex-DYTPdPxi.png +0 -0
  30. package/dist/console-ui/assets/cursor-CBrUTJD-.png +0 -0
  31. package/dist/console-ui/assets/geist-cyrillic-ext-wght-normal-DjL33-gN.woff2 +0 -0
  32. package/dist/console-ui/assets/geist-cyrillic-wght-normal-BEAKL7Jp.woff2 +0 -0
  33. package/dist/console-ui/assets/geist-latin-ext-wght-normal-DC-KSUi6.woff2 +0 -0
  34. package/dist/console-ui/assets/geist-latin-wght-normal-BgDaEnEv.woff2 +0 -0
  35. package/dist/console-ui/assets/geist-vietnamese-wght-normal-6IgcOCM7.woff2 +0 -0
  36. package/dist/console-ui/assets/hermes-B8hNbJPm.png +0 -0
  37. package/dist/console-ui/assets/index-BxUf0Sye.js +96 -0
  38. package/dist/console-ui/assets/index-CmTiBR_w.css +2 -0
  39. package/dist/console-ui/assets/omnigent-Cxa4p2Mq.png +0 -0
  40. package/dist/console-ui/assets/openclaw-C5wL4ZVW.png +0 -0
  41. package/dist/console-ui/assets/opencode-D_wFATSC.png +0 -0
  42. package/dist/console-ui/assets/openhands-DnrlGgev.svg +9 -0
  43. package/dist/console-ui/assets/s-gw-64-ByMUGQ3K.png +0 -0
  44. package/dist/console-ui/assets/vscode-Bdtr9eyf.png +0 -0
  45. package/dist/console-ui/assets/zeptoclaw-DztQW8Sw.png +0 -0
  46. package/dist/console-ui/index.html +13 -0
  47. package/dist/crypto.d.ts +6 -0
  48. package/dist/crypto.js +53 -0
  49. package/dist/executor.d.ts +7 -0
  50. package/dist/executor.js +297 -0
  51. package/dist/gateway.d.ts +31 -0
  52. package/dist/gateway.js +114 -0
  53. package/dist/guard.d.ts +61 -0
  54. package/dist/guard.js +247 -0
  55. package/dist/install.d.ts +146 -0
  56. package/dist/install.js +629 -0
  57. package/dist/mcp-server.d.ts +2 -0
  58. package/dist/mcp-server.js +119 -0
  59. package/dist/native/s-gw-core +0 -0
  60. package/dist/native/s-gw-keychain-helper +0 -0
  61. package/dist/onepassword.d.ts +48 -0
  62. package/dist/onepassword.js +412 -0
  63. package/dist/paths.d.ts +4 -0
  64. package/dist/paths.js +22 -0
  65. package/dist/s-gw Menu Bar.app/Contents/Info.plist +28 -0
  66. package/dist/s-gw Menu Bar.app/Contents/MacOS/s-gw-menu-bar-helper +0 -0
  67. package/dist/s-gw Menu Bar.app/Contents/Resources/AppIcon.icns +0 -0
  68. package/dist/s-gw Menu Bar.app/Contents/Resources/AwsEc2.png +0 -0
  69. package/dist/s-gw Menu Bar.app/Contents/Resources/Lucide-bot.svg +8 -0
  70. package/dist/s-gw Menu Bar.app/Contents/Resources/Lucide-monitor.svg +5 -0
  71. package/dist/s-gw Menu Bar.app/Contents/Resources/Lucide-server.svg +6 -0
  72. package/dist/s-gw Menu Bar.app/Contents/Resources/Lucide-terminal.svg +4 -0
  73. package/dist/s-gw Menu Bar.app/Contents/Resources/MenuBarTemplate.png +0 -0
  74. package/dist/s-gw Menu Bar.app/Contents/_CodeSignature/CodeResources +194 -0
  75. package/dist/s-gw.app/Contents/Info.plist +28 -0
  76. package/dist/s-gw.app/Contents/MacOS/s-gw +0 -0
  77. package/dist/s-gw.app/Contents/Resources/AppIcon.icns +0 -0
  78. package/dist/s-gw.app/Contents/Resources/MenuBarTemplate.png +0 -0
  79. package/dist/s-gw.app/Contents/_CodeSignature/CodeResources +139 -0
  80. package/dist/scanner.d.ts +9 -0
  81. package/dist/scanner.js +437 -0
  82. package/dist/ssh.d.ts +31 -0
  83. package/dist/ssh.js +286 -0
  84. package/dist/store.d.ts +131 -0
  85. package/dist/store.js +1611 -0
  86. package/dist/types.d.ts +196 -0
  87. package/dist/types.js +2 -0
  88. package/dist/unlock.d.ts +29 -0
  89. package/dist/unlock.js +274 -0
  90. package/dist/windows/VERSION.txt +1 -0
  91. package/dist/windows/s-gw-client.cmd +4 -0
  92. package/dist/windows/s-gw-client.ps1 +106 -0
  93. package/dist/windows/s-gw-credential.cmd +4 -0
  94. package/dist/windows/s-gw-credential.ps1 +167 -0
  95. package/dist/windows/s-gw-helper.cmd +4 -0
  96. package/dist/windows/s-gw-helper.ps1 +180 -0
  97. package/docs/README.md +23 -0
  98. package/docs/agents.md +160 -0
  99. package/docs/architecture.md +72 -0
  100. package/docs/deployment.md +447 -0
  101. package/docs/detection.md +44 -0
  102. package/docs/images/s-gw-overview.png +0 -0
  103. package/docs/integrations.md +195 -0
  104. package/docs/keychain.md +39 -0
  105. package/docs/onepassword.md +84 -0
  106. package/docs/quickstart.md +104 -0
  107. package/docs/threat-model.md +100 -0
  108. package/docs/ui/THIRD_PARTY_NOTICES.md +111 -0
  109. package/docs/ui/apple-touch-icon.png +0 -0
  110. package/docs/ui/favicon-32.png +0 -0
  111. package/docs/ui/local-console.html +4477 -0
  112. package/docs/ui/vendor/d3-sankey/d3-array.LICENSE.txt +27 -0
  113. package/docs/ui/vendor/d3-sankey/d3-array.min.js +2 -0
  114. package/docs/ui/vendor/d3-sankey/d3-path.LICENSE.txt +27 -0
  115. package/docs/ui/vendor/d3-sankey/d3-path.min.js +2 -0
  116. package/docs/ui/vendor/d3-sankey/d3-sankey.LICENSE.txt +27 -0
  117. package/docs/ui/vendor/d3-sankey/d3-sankey.min.js +2 -0
  118. package/docs/ui/vendor/d3-sankey/d3-shape.LICENSE.txt +27 -0
  119. package/docs/ui/vendor/d3-sankey/d3-shape.min.js +2 -0
  120. package/docs/ui/vendor/sankeymatic/LICENSE.txt +17 -0
  121. package/docs/ui/vendor/sankeymatic/sankey.js +897 -0
  122. package/package.json +117 -0
  123. package/skills/s-gw/SKILL.md +19 -0
@@ -0,0 +1,194 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
+ <plist version="1.0">
4
+ <dict>
5
+ <key>files</key>
6
+ <dict>
7
+ <key>Resources/AppIcon.icns</key>
8
+ <data>
9
+ JywaUVc6haIxKNxcz9lxO8j0Fvc=
10
+ </data>
11
+ <key>Resources/AwsEc2.png</key>
12
+ <data>
13
+ ZeSnwDB+7t5wEJ9XmJRFZnQGZys=
14
+ </data>
15
+ <key>Resources/Lucide-bot.svg</key>
16
+ <data>
17
+ juvmtW9KfnghW4nvJSn++LLK270=
18
+ </data>
19
+ <key>Resources/Lucide-monitor.svg</key>
20
+ <data>
21
+ TVXfxP236Wm1u8AD1Vi/VT2gZXs=
22
+ </data>
23
+ <key>Resources/Lucide-server.svg</key>
24
+ <data>
25
+ LBh5XNyummm8oRLGUkL2fgq7IQU=
26
+ </data>
27
+ <key>Resources/Lucide-terminal.svg</key>
28
+ <data>
29
+ VF0hDu9BOW5kvciAMcWwEKyMBV4=
30
+ </data>
31
+ <key>Resources/MenuBarTemplate.png</key>
32
+ <data>
33
+ Q4tT/iIdDwDHFlCP0fysR1pvR60=
34
+ </data>
35
+ </dict>
36
+ <key>files2</key>
37
+ <dict>
38
+ <key>Resources/AppIcon.icns</key>
39
+ <dict>
40
+ <key>hash2</key>
41
+ <data>
42
+ y5Wmyq7lZUVRTk76TZtk3FY+n0IruvFyCqCC7qxhuxo=
43
+ </data>
44
+ </dict>
45
+ <key>Resources/AwsEc2.png</key>
46
+ <dict>
47
+ <key>hash2</key>
48
+ <data>
49
+ MYfrpyh5yMMYqZFfFWthsANnDKQGW0JzNXSgCMfdlrQ=
50
+ </data>
51
+ </dict>
52
+ <key>Resources/Lucide-bot.svg</key>
53
+ <dict>
54
+ <key>hash2</key>
55
+ <data>
56
+ dAi+yeXxuw6K1ugeu6/1fG9c9LT8FcRr/rBieN8pTuM=
57
+ </data>
58
+ </dict>
59
+ <key>Resources/Lucide-monitor.svg</key>
60
+ <dict>
61
+ <key>hash2</key>
62
+ <data>
63
+ RG2PXCNdGLydXCxtA8AhbCxPw3Pkb6UaufoIL5i3UJw=
64
+ </data>
65
+ </dict>
66
+ <key>Resources/Lucide-server.svg</key>
67
+ <dict>
68
+ <key>hash2</key>
69
+ <data>
70
+ heiJrOUkODuISdKhdezlRTgt1oPUTSu4wu9MdKRdqyI=
71
+ </data>
72
+ </dict>
73
+ <key>Resources/Lucide-terminal.svg</key>
74
+ <dict>
75
+ <key>hash2</key>
76
+ <data>
77
+ n2uynkLmVi+g7wTvtOy95Bg8byYCt8XU/hxMJFzU19k=
78
+ </data>
79
+ </dict>
80
+ <key>Resources/MenuBarTemplate.png</key>
81
+ <dict>
82
+ <key>hash2</key>
83
+ <data>
84
+ p3fUkGm5GytQpJc9BR1xjI4apaVy8HSDlJpE/cls+MY=
85
+ </data>
86
+ </dict>
87
+ </dict>
88
+ <key>rules</key>
89
+ <dict>
90
+ <key>^Resources/</key>
91
+ <true/>
92
+ <key>^Resources/.*\.lproj/</key>
93
+ <dict>
94
+ <key>optional</key>
95
+ <true/>
96
+ <key>weight</key>
97
+ <real>1000</real>
98
+ </dict>
99
+ <key>^Resources/.*\.lproj/locversion.plist$</key>
100
+ <dict>
101
+ <key>omit</key>
102
+ <true/>
103
+ <key>weight</key>
104
+ <real>1100</real>
105
+ </dict>
106
+ <key>^Resources/Base\.lproj/</key>
107
+ <dict>
108
+ <key>weight</key>
109
+ <real>1010</real>
110
+ </dict>
111
+ <key>^version.plist$</key>
112
+ <true/>
113
+ </dict>
114
+ <key>rules2</key>
115
+ <dict>
116
+ <key>.*\.dSYM($|/)</key>
117
+ <dict>
118
+ <key>weight</key>
119
+ <real>11</real>
120
+ </dict>
121
+ <key>^(.*/)?\.DS_Store$</key>
122
+ <dict>
123
+ <key>omit</key>
124
+ <true/>
125
+ <key>weight</key>
126
+ <real>2000</real>
127
+ </dict>
128
+ <key>^(Frameworks|SharedFrameworks|PlugIns|Plug-ins|XPCServices|Helpers|MacOS|Library/(Automator|Spotlight|LoginItems))/</key>
129
+ <dict>
130
+ <key>nested</key>
131
+ <true/>
132
+ <key>weight</key>
133
+ <real>10</real>
134
+ </dict>
135
+ <key>^.*</key>
136
+ <true/>
137
+ <key>^Info\.plist$</key>
138
+ <dict>
139
+ <key>omit</key>
140
+ <true/>
141
+ <key>weight</key>
142
+ <real>20</real>
143
+ </dict>
144
+ <key>^PkgInfo$</key>
145
+ <dict>
146
+ <key>omit</key>
147
+ <true/>
148
+ <key>weight</key>
149
+ <real>20</real>
150
+ </dict>
151
+ <key>^Resources/</key>
152
+ <dict>
153
+ <key>weight</key>
154
+ <real>20</real>
155
+ </dict>
156
+ <key>^Resources/.*\.lproj/</key>
157
+ <dict>
158
+ <key>optional</key>
159
+ <true/>
160
+ <key>weight</key>
161
+ <real>1000</real>
162
+ </dict>
163
+ <key>^Resources/.*\.lproj/locversion.plist$</key>
164
+ <dict>
165
+ <key>omit</key>
166
+ <true/>
167
+ <key>weight</key>
168
+ <real>1100</real>
169
+ </dict>
170
+ <key>^Resources/Base\.lproj/</key>
171
+ <dict>
172
+ <key>weight</key>
173
+ <real>1010</real>
174
+ </dict>
175
+ <key>^[^/]+$</key>
176
+ <dict>
177
+ <key>nested</key>
178
+ <true/>
179
+ <key>weight</key>
180
+ <real>10</real>
181
+ </dict>
182
+ <key>^embedded\.provisionprofile$</key>
183
+ <dict>
184
+ <key>weight</key>
185
+ <real>20</real>
186
+ </dict>
187
+ <key>^version\.plist$</key>
188
+ <dict>
189
+ <key>weight</key>
190
+ <real>20</real>
191
+ </dict>
192
+ </dict>
193
+ </dict>
194
+ </plist>
@@ -0,0 +1,28 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
+ <plist version="1.0">
4
+ <dict>
5
+ <key>CFBundleExecutable</key>
6
+ <string>s-gw</string>
7
+ <key>CFBundleIdentifier</key>
8
+ <string>com.s-gw.sgw.app</string>
9
+ <key>CFBundleIconFile</key>
10
+ <string>AppIcon</string>
11
+ <key>CFBundleName</key>
12
+ <string>s-gw</string>
13
+ <key>CFBundleDisplayName</key>
14
+ <string>s-gw</string>
15
+ <key>CFBundlePackageType</key>
16
+ <string>APPL</string>
17
+ <key>CFBundleShortVersionString</key>
18
+ <string>0.1.0</string>
19
+ <key>CFBundleVersion</key>
20
+ <string>1</string>
21
+ <key>LSMinimumSystemVersion</key>
22
+ <string>14.0</string>
23
+ <key>NSPrincipalClass</key>
24
+ <string>NSApplication</string>
25
+ <key>NSSupportsAutomaticGraphicsSwitching</key>
26
+ <true/>
27
+ </dict>
28
+ </plist>
@@ -0,0 +1,139 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
+ <plist version="1.0">
4
+ <dict>
5
+ <key>files</key>
6
+ <dict>
7
+ <key>Resources/AppIcon.icns</key>
8
+ <data>
9
+ JywaUVc6haIxKNxcz9lxO8j0Fvc=
10
+ </data>
11
+ <key>Resources/MenuBarTemplate.png</key>
12
+ <data>
13
+ Q4tT/iIdDwDHFlCP0fysR1pvR60=
14
+ </data>
15
+ </dict>
16
+ <key>files2</key>
17
+ <dict>
18
+ <key>Resources/AppIcon.icns</key>
19
+ <dict>
20
+ <key>hash2</key>
21
+ <data>
22
+ y5Wmyq7lZUVRTk76TZtk3FY+n0IruvFyCqCC7qxhuxo=
23
+ </data>
24
+ </dict>
25
+ <key>Resources/MenuBarTemplate.png</key>
26
+ <dict>
27
+ <key>hash2</key>
28
+ <data>
29
+ p3fUkGm5GytQpJc9BR1xjI4apaVy8HSDlJpE/cls+MY=
30
+ </data>
31
+ </dict>
32
+ </dict>
33
+ <key>rules</key>
34
+ <dict>
35
+ <key>^Resources/</key>
36
+ <true/>
37
+ <key>^Resources/.*\.lproj/</key>
38
+ <dict>
39
+ <key>optional</key>
40
+ <true/>
41
+ <key>weight</key>
42
+ <real>1000</real>
43
+ </dict>
44
+ <key>^Resources/.*\.lproj/locversion.plist$</key>
45
+ <dict>
46
+ <key>omit</key>
47
+ <true/>
48
+ <key>weight</key>
49
+ <real>1100</real>
50
+ </dict>
51
+ <key>^Resources/Base\.lproj/</key>
52
+ <dict>
53
+ <key>weight</key>
54
+ <real>1010</real>
55
+ </dict>
56
+ <key>^version.plist$</key>
57
+ <true/>
58
+ </dict>
59
+ <key>rules2</key>
60
+ <dict>
61
+ <key>.*\.dSYM($|/)</key>
62
+ <dict>
63
+ <key>weight</key>
64
+ <real>11</real>
65
+ </dict>
66
+ <key>^(.*/)?\.DS_Store$</key>
67
+ <dict>
68
+ <key>omit</key>
69
+ <true/>
70
+ <key>weight</key>
71
+ <real>2000</real>
72
+ </dict>
73
+ <key>^(Frameworks|SharedFrameworks|PlugIns|Plug-ins|XPCServices|Helpers|MacOS|Library/(Automator|Spotlight|LoginItems))/</key>
74
+ <dict>
75
+ <key>nested</key>
76
+ <true/>
77
+ <key>weight</key>
78
+ <real>10</real>
79
+ </dict>
80
+ <key>^.*</key>
81
+ <true/>
82
+ <key>^Info\.plist$</key>
83
+ <dict>
84
+ <key>omit</key>
85
+ <true/>
86
+ <key>weight</key>
87
+ <real>20</real>
88
+ </dict>
89
+ <key>^PkgInfo$</key>
90
+ <dict>
91
+ <key>omit</key>
92
+ <true/>
93
+ <key>weight</key>
94
+ <real>20</real>
95
+ </dict>
96
+ <key>^Resources/</key>
97
+ <dict>
98
+ <key>weight</key>
99
+ <real>20</real>
100
+ </dict>
101
+ <key>^Resources/.*\.lproj/</key>
102
+ <dict>
103
+ <key>optional</key>
104
+ <true/>
105
+ <key>weight</key>
106
+ <real>1000</real>
107
+ </dict>
108
+ <key>^Resources/.*\.lproj/locversion.plist$</key>
109
+ <dict>
110
+ <key>omit</key>
111
+ <true/>
112
+ <key>weight</key>
113
+ <real>1100</real>
114
+ </dict>
115
+ <key>^Resources/Base\.lproj/</key>
116
+ <dict>
117
+ <key>weight</key>
118
+ <real>1010</real>
119
+ </dict>
120
+ <key>^[^/]+$</key>
121
+ <dict>
122
+ <key>nested</key>
123
+ <true/>
124
+ <key>weight</key>
125
+ <real>10</real>
126
+ </dict>
127
+ <key>^embedded\.provisionprofile$</key>
128
+ <dict>
129
+ <key>weight</key>
130
+ <real>20</real>
131
+ </dict>
132
+ <key>^version\.plist$</key>
133
+ <dict>
134
+ <key>weight</key>
135
+ <real>20</real>
136
+ </dict>
137
+ </dict>
138
+ </dict>
139
+ </plist>
@@ -0,0 +1,9 @@
1
+ import type { ScanCandidate, ScanResult } from "./types.js";
2
+ export type HandleForCandidate = (candidate: ScanCandidate) => Promise<string> | string;
3
+ export declare function scanText(text: string, getHandle: HandleForCandidate): Promise<ScanResult>;
4
+ export declare function previewHandle(candidate: ScanCandidate): string;
5
+ export declare function tokenForHandle(handle: string): string;
6
+ export declare function sanitizeKnownSecrets(text: string, pairs: Array<{
7
+ handle: string;
8
+ value: string;
9
+ }>): string;