@ozyman42/ozy-cli 0.4.5 → 0.4.6-darwin-arm64.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 (202) hide show
  1. package/multi-call-binary +0 -0
  2. package/package.json +12 -55
  3. package/dist/commands/git/hosts.js +0 -18
  4. package/dist/commands/git/hosts.js.map +0 -1
  5. package/dist/commands/git/index.js +0 -8
  6. package/dist/commands/git/index.js.map +0 -1
  7. package/dist/commands/git/setup.js +0 -145
  8. package/dist/commands/git/setup.js.map +0 -1
  9. package/dist/commands/index.js +0 -13
  10. package/dist/commands/index.js.map +0 -1
  11. package/dist/commands/npm/index.js +0 -7
  12. package/dist/commands/npm/index.js.map +0 -1
  13. package/dist/commands/npm/setup/git-remote.js +0 -66
  14. package/dist/commands/npm/setup/git-remote.js.map +0 -1
  15. package/dist/commands/npm/setup/index.js +0 -168
  16. package/dist/commands/npm/setup/index.js.map +0 -1
  17. package/dist/commands/npm/setup/npm-auth.js +0 -62
  18. package/dist/commands/npm/setup/npm-auth.js.map +0 -1
  19. package/dist/commands/npm/setup/package-json-validate.js +0 -47
  20. package/dist/commands/npm/setup/package-json-validate.js.map +0 -1
  21. package/dist/commands/npm/setup/package-registry.js +0 -20
  22. package/dist/commands/npm/setup/package-registry.js.map +0 -1
  23. package/dist/commands/npm/setup/setup.test.js +0 -95
  24. package/dist/commands/npm/setup/setup.test.js.map +0 -1
  25. package/dist/commands/npm/setup/trusted-publishing.js +0 -84
  26. package/dist/commands/npm/setup/trusted-publishing.js.map +0 -1
  27. package/dist/commands/npm/setup/workflow.js +0 -19
  28. package/dist/commands/npm/setup/workflow.js.map +0 -1
  29. package/dist/commands/ssh/get-sk-credential.js +0 -104
  30. package/dist/commands/ssh/get-sk-credential.js.map +0 -1
  31. package/dist/commands/ssh/index.js +0 -7
  32. package/dist/commands/ssh/index.js.map +0 -1
  33. package/dist/commands/upgrade.js +0 -81
  34. package/dist/commands/upgrade.js.map +0 -1
  35. package/dist/common/command.js +0 -15
  36. package/dist/common/command.js.map +0 -1
  37. package/dist/common/constants.js +0 -24
  38. package/dist/common/constants.js.map +0 -1
  39. package/dist/common/effective-modules-extensions.js +0 -13
  40. package/dist/common/effective-modules-extensions.js.map +0 -1
  41. package/dist/common/log.js +0 -4
  42. package/dist/common/log.js.map +0 -1
  43. package/dist/common/render-caller-tree.js +0 -20
  44. package/dist/common/render-caller-tree.js.map +0 -1
  45. package/dist/entrypoints/ozy-signing-agent.js +0 -48
  46. package/dist/entrypoints/ozy-signing-agent.js.map +0 -1
  47. package/dist/entrypoints/ozy-ssh-keygen.js +0 -9
  48. package/dist/entrypoints/ozy-ssh-keygen.js.map +0 -1
  49. package/dist/entrypoints/ozy-virtual-security-key.js +0 -18
  50. package/dist/entrypoints/ozy-virtual-security-key.js.map +0 -1
  51. package/dist/entrypoints/ozy.js +0 -3
  52. package/dist/entrypoints/ozy.js.map +0 -1
  53. package/dist/index.js +0 -2
  54. package/dist/index.js.map +0 -1
  55. package/dist/internal/thing.js +0 -4
  56. package/dist/internal/thing.js.map +0 -1
  57. package/dist/modules/cli/agent-client/impl.js +0 -109
  58. package/dist/modules/cli/agent-client/impl.js.map +0 -1
  59. package/dist/modules/cli/agent-client/interface.js +0 -11
  60. package/dist/modules/cli/agent-client/interface.js.map +0 -1
  61. package/dist/modules/cli/git/impl.js +0 -124
  62. package/dist/modules/cli/git/impl.js.map +0 -1
  63. package/dist/modules/cli/git/interface.js +0 -3
  64. package/dist/modules/cli/git/interface.js.map +0 -1
  65. package/dist/modules/cli/git/submodule/fix.js +0 -257
  66. package/dist/modules/cli/git/submodule/fix.js.map +0 -1
  67. package/dist/modules/cli/git/submodule/git-state.js +0 -154
  68. package/dist/modules/cli/git/submodule/git-state.js.map +0 -1
  69. package/dist/modules/cli/git/submodule/gitmodules.js +0 -113
  70. package/dist/modules/cli/git/submodule/gitmodules.js.map +0 -1
  71. package/dist/modules/cli/git/submodule/printer.js +0 -232
  72. package/dist/modules/cli/git/submodule/printer.js.map +0 -1
  73. package/dist/modules/cli/git/submodule/resolve-git-dir.js +0 -16
  74. package/dist/modules/cli/git/submodule/resolve-git-dir.js.map +0 -1
  75. package/dist/modules/cli/github/impl.js +0 -137
  76. package/dist/modules/cli/github/impl.js.map +0 -1
  77. package/dist/modules/cli/github/interface.js +0 -2
  78. package/dist/modules/cli/github/interface.js.map +0 -1
  79. package/dist/modules/cli/index.js +0 -9
  80. package/dist/modules/cli/index.js.map +0 -1
  81. package/dist/modules/common/crypto/impl.js +0 -133
  82. package/dist/modules/common/crypto/impl.js.map +0 -1
  83. package/dist/modules/common/crypto/interface.js +0 -2
  84. package/dist/modules/common/crypto/interface.js.map +0 -1
  85. package/dist/modules/common/index.js +0 -10
  86. package/dist/modules/common/index.js.map +0 -1
  87. package/dist/modules/common/kep-map-store/impl.js +0 -42
  88. package/dist/modules/common/kep-map-store/impl.js.map +0 -1
  89. package/dist/modules/common/kep-map-store/interface.js +0 -2
  90. package/dist/modules/common/kep-map-store/interface.js.map +0 -1
  91. package/dist/modules/common/os-platform/caller-info.js +0 -132
  92. package/dist/modules/common/os-platform/caller-info.js.map +0 -1
  93. package/dist/modules/common/os-platform/impl.js +0 -87
  94. package/dist/modules/common/os-platform/impl.js.map +0 -1
  95. package/dist/modules/common/os-platform/interface.js +0 -2
  96. package/dist/modules/common/os-platform/interface.js.map +0 -1
  97. package/dist/modules/common/os-platform/virtual-hid/index.js +0 -12
  98. package/dist/modules/common/os-platform/virtual-hid/index.js.map +0 -1
  99. package/dist/modules/common/os-platform/virtual-hid/linux.js +0 -5
  100. package/dist/modules/common/os-platform/virtual-hid/linux.js.map +0 -1
  101. package/dist/modules/common/os-platform/virtual-hid/mac.js +0 -119
  102. package/dist/modules/common/os-platform/virtual-hid/mac.js.map +0 -1
  103. package/dist/modules/common/os-platform/virtual-hid/windows.js +0 -5
  104. package/dist/modules/common/os-platform/virtual-hid/windows.js.map +0 -1
  105. package/dist/modules/common/ssh-config/impl.js +0 -116
  106. package/dist/modules/common/ssh-config/impl.js.map +0 -1
  107. package/dist/modules/common/ssh-config/interface.js +0 -10
  108. package/dist/modules/common/ssh-config/interface.js.map +0 -1
  109. package/dist/modules/ssh-agent/index.js +0 -8
  110. package/dist/modules/ssh-agent/index.js.map +0 -1
  111. package/dist/modules/ssh-agent/session/impl.js +0 -265
  112. package/dist/modules/ssh-agent/session/impl.js.map +0 -1
  113. package/dist/modules/ssh-agent/session/interface-rpc.js +0 -20
  114. package/dist/modules/ssh-agent/session/interface-rpc.js.map +0 -1
  115. package/dist/modules/ssh-agent/session/interface.js +0 -32
  116. package/dist/modules/ssh-agent/session/interface.js.map +0 -1
  117. package/dist/modules/ssh-agent/session/passkey-prf-page.js +0 -204
  118. package/dist/modules/ssh-agent/session/passkey-prf-page.js.map +0 -1
  119. package/dist/modules/ssh-agent/session/prf-flow.js +0 -103
  120. package/dist/modules/ssh-agent/session/prf-flow.js.map +0 -1
  121. package/dist/modules/ssh-agent/ssh-agent/impl.js +0 -117
  122. package/dist/modules/ssh-agent/ssh-agent/impl.js.map +0 -1
  123. package/dist/modules/ssh-agent/ssh-agent/interface.js +0 -2
  124. package/dist/modules/ssh-agent/ssh-agent/interface.js.map +0 -1
  125. package/dist/scripts/build.js +0 -460
  126. package/dist/scripts/build.js.map +0 -1
  127. package/dist/scripts/check-npm-version.js +0 -8
  128. package/dist/scripts/check-npm-version.js.map +0 -1
  129. package/dist/scripts/kill-existing-agent.js +0 -21
  130. package/dist/scripts/kill-existing-agent.js.map +0 -1
  131. package/dist/scripts/publish.js +0 -46
  132. package/dist/scripts/publish.js.map +0 -1
  133. package/multi-call.js +0 -85
  134. package/src/commands/git/hosts.ts +0 -20
  135. package/src/commands/git/index.ts +0 -9
  136. package/src/commands/git/setup.ts +0 -182
  137. package/src/commands/index.ts +0 -15
  138. package/src/commands/npm/index.ts +0 -8
  139. package/src/commands/npm/setup/git-remote.ts +0 -78
  140. package/src/commands/npm/setup/index.ts +0 -189
  141. package/src/commands/npm/setup/npm-auth.ts +0 -58
  142. package/src/commands/npm/setup/package-json-validate.ts +0 -68
  143. package/src/commands/npm/setup/package-registry.ts +0 -24
  144. package/src/commands/npm/setup/publish-workflow.yml +0 -35
  145. package/src/commands/npm/setup/setup.test.ts +0 -117
  146. package/src/commands/npm/setup/trusted-publishing.ts +0 -106
  147. package/src/commands/npm/setup/workflow.ts +0 -20
  148. package/src/commands/ssh/get-sk-credential.ts +0 -110
  149. package/src/commands/ssh/index.ts +0 -8
  150. package/src/commands/upgrade.ts +0 -90
  151. package/src/common/command.ts +0 -16
  152. package/src/common/constants.ts +0 -24
  153. package/src/common/effective-modules-extensions.ts +0 -24
  154. package/src/common/log.ts +0 -3
  155. package/src/common/render-caller-tree.ts +0 -22
  156. package/src/entrypoints/ozy-signing-agent.ts +0 -48
  157. package/src/entrypoints/ozy-ssh-keygen.ts +0 -10
  158. package/src/entrypoints/ozy-virtual-security-key.ts +0 -21
  159. package/src/entrypoints/ozy.ts +0 -2
  160. package/src/index.ts +0 -1
  161. package/src/internal/thing.ts +0 -3
  162. package/src/modules/cli/agent-client/impl.ts +0 -152
  163. package/src/modules/cli/agent-client/interface.ts +0 -17
  164. package/src/modules/cli/git/impl.ts +0 -133
  165. package/src/modules/cli/git/interface.ts +0 -23
  166. package/src/modules/cli/git/submodule/fix.ts +0 -298
  167. package/src/modules/cli/git/submodule/git-state.ts +0 -217
  168. package/src/modules/cli/git/submodule/gitmodules.ts +0 -126
  169. package/src/modules/cli/git/submodule/printer.ts +0 -256
  170. package/src/modules/cli/git/submodule/resolve-git-dir.ts +0 -14
  171. package/src/modules/cli/github/impl.ts +0 -169
  172. package/src/modules/cli/github/interface.ts +0 -29
  173. package/src/modules/cli/index.ts +0 -16
  174. package/src/modules/common/crypto/impl.ts +0 -173
  175. package/src/modules/common/crypto/interface.ts +0 -20
  176. package/src/modules/common/index.ts +0 -19
  177. package/src/modules/common/kep-map-store/impl.ts +0 -47
  178. package/src/modules/common/kep-map-store/interface.ts +0 -9
  179. package/src/modules/common/os-platform/caller-info.ts +0 -152
  180. package/src/modules/common/os-platform/impl.ts +0 -86
  181. package/src/modules/common/os-platform/interface.ts +0 -16
  182. package/src/modules/common/os-platform/virtual-hid/index.ts +0 -12
  183. package/src/modules/common/os-platform/virtual-hid/linux.ts +0 -7
  184. package/src/modules/common/os-platform/virtual-hid/mac.ts +0 -150
  185. package/src/modules/common/os-platform/virtual-hid/windows.ts +0 -7
  186. package/src/modules/common/ssh-config/impl.ts +0 -130
  187. package/src/modules/common/ssh-config/interface.ts +0 -33
  188. package/src/modules/ssh-agent/index.ts +0 -13
  189. package/src/modules/ssh-agent/session/agent-notes.md +0 -210
  190. package/src/modules/ssh-agent/session/design.md +0 -2
  191. package/src/modules/ssh-agent/session/html-refactor.md +0 -23
  192. package/src/modules/ssh-agent/session/impl.ts +0 -328
  193. package/src/modules/ssh-agent/session/interface-rpc.ts +0 -24
  194. package/src/modules/ssh-agent/session/interface.ts +0 -62
  195. package/src/modules/ssh-agent/session/passkey-prf-page.ts +0 -224
  196. package/src/modules/ssh-agent/session/prf-flow.ts +0 -152
  197. package/src/modules/ssh-agent/ssh-agent/impl.ts +0 -136
  198. package/src/modules/ssh-agent/ssh-agent/interface.ts +0 -9
  199. package/src/scripts/build.ts +0 -543
  200. package/src/scripts/check-npm-version.ts +0 -7
  201. package/src/scripts/kill-existing-agent.ts +0 -22
  202. package/src/scripts/publish.ts +0 -47
@@ -1,20 +0,0 @@
1
- import { Option } from "effect";
2
- const CYAN = '\x1b[36m';
3
- const DIM = '\x1b[2m';
4
- const RESET = '\x1b[0m';
5
- function fmtNode(node) {
6
- const dir = Option.getOrElse(() => '?')(node.directory);
7
- return `${CYAN}${node.command}${RESET} ${DIM}${dir}${RESET}`;
8
- }
9
- export function renderCallerTree(chain) {
10
- if (chain.length === 0)
11
- return '(empty)';
12
- const lines = [fmtNode(chain[0])];
13
- let indent = '';
14
- for (let i = 1; i < chain.length; i++) {
15
- lines.push(`${indent}└── ${fmtNode(chain[i])}`);
16
- indent += ' ';
17
- }
18
- return lines.join('\n');
19
- }
20
- //# sourceMappingURL=render-caller-tree.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"render-caller-tree.js","sourceRoot":"","sources":["../../../../../src/common/render-caller-tree.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAEhC,MAAM,IAAI,GAAG,UAAU,CAAC;AACxB,MAAM,GAAG,GAAG,SAAS,CAAC;AACtB,MAAM,KAAK,GAAG,SAAS,CAAC;AAExB,SAAS,OAAO,CAAC,IAAmB;IAClC,MAAM,GAAG,GAAG,MAAM,CAAC,SAAS,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;IACxD,OAAO,GAAG,IAAI,GAAG,IAAI,CAAC,OAAO,GAAG,KAAK,KAAK,GAAG,GAAG,GAAG,GAAG,KAAK,EAAE,CAAC;AAChE,CAAC;AAED,MAAM,UAAU,gBAAgB,CAAC,KAAsB;IACrD,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,SAAS,CAAC;IACzC,MAAM,KAAK,GAAa,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAE,CAAC,CAAC,CAAC;IAC7C,IAAI,MAAM,GAAG,EAAE,CAAC;IAChB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;QACtC,KAAK,CAAC,IAAI,CAAC,GAAG,MAAM,OAAO,OAAO,CAAC,KAAK,CAAC,CAAC,CAAE,CAAC,EAAE,CAAC,CAAC;QACjD,MAAM,IAAI,MAAM,CAAC;IACnB,CAAC;IACD,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAC1B,CAAC"}
@@ -1,48 +0,0 @@
1
- import { appendFileSync } from "node:fs";
2
- import { Effect, Layer, pipe } from "effect";
3
- import { OSPlatformImpl } from "@/modules/common/os-platform/impl";
4
- import { CryptoImpl } from "@/modules/common/crypto/impl";
5
- import { KeyMapStoreImpl } from "@/modules/common/kep-map-store/impl";
6
- import { SSHConfigImpl } from "@/modules/common/ssh-config/impl";
7
- import { SSHAgentImpl } from "@/modules/ssh-agent/ssh-agent/impl";
8
- import { SessionImpl } from "@/modules/ssh-agent/session/impl";
9
- import { AGENT_LOG_FILE_PATH, AGENT_PID_FILE_PATH, AGENT_PORT_FILE_PATH, AGENT_SOCK_FILE_PATH } from "@/common/constants";
10
- import { rmSync } from "node:fs";
11
- const origLog = console.log.bind(console);
12
- const origError = console.error.bind(console);
13
- const origWarn = console.warn.bind(console);
14
- function logToFile(...args) {
15
- try {
16
- appendFileSync(AGENT_LOG_FILE_PATH, args.map(arg => {
17
- try {
18
- return JSON.stringify(arg);
19
- }
20
- catch (e) {
21
- return String(e);
22
- }
23
- }).join(' ') + '\n');
24
- }
25
- catch { }
26
- }
27
- console.log = (...args) => { logToFile(...args); origLog(...args); };
28
- console.error = (...args) => { logToFile(...args); origError(...args); };
29
- console.warn = (...args) => { logToFile(...args); origWarn(...args); };
30
- function cleanup() {
31
- try {
32
- rmSync(AGENT_PID_FILE_PATH);
33
- }
34
- catch { }
35
- try {
36
- rmSync(AGENT_PORT_FILE_PATH);
37
- }
38
- catch { }
39
- try {
40
- rmSync(AGENT_SOCK_FILE_PATH);
41
- }
42
- catch { }
43
- }
44
- process.on("exit", cleanup);
45
- process.on("SIGTERM", () => { cleanup(); process.exit(0); });
46
- process.on("SIGINT", () => { cleanup(); process.exit(0); });
47
- pipe(SSHAgentImpl.ServiceLayer, Layer.provideMerge(SessionImpl.makeRpcLayer()), Layer.provideMerge(KeyMapStoreImpl.Layer), Layer.provideMerge(SSHConfigImpl.Layer), Layer.provideMerge(CryptoImpl.Layer), Layer.provideMerge(OSPlatformImpl.Layer), Layer.launch, Effect.runPromise);
48
- //# sourceMappingURL=ozy-signing-agent.js.map
@@ -1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AAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAE5D,IAAI,CACF,YAAY,CAAC,YAAY,EACzB,KAAK,CAAC,YAAY,CAAC,WAAW,CAAC,YAAY,EAAE,CAAC,EAC9C,KAAK,CAAC,YAAY,CAAC,eAAe,CAAC,KAAK,CAAC,EACzC,KAAK,CAAC,YAAY,CAAC,aAAa,CAAC,KAAK,CAAC,EACvC,KAAK,CAAC,YAAY,CAAC,UAAU,CAAC,KAAK,CAAC,EACpC,KAAK,CAAC,YAAY,CAAC,cAAc,CAAC,KAAK,CAAC,EACxC,KAAK,CAAC,MAAM,EACZ,MAAM,CAAC,UAAU,CAClB,CAAC"}
@@ -1,9 +0,0 @@
1
- import { AGENT_SOCK_FILE_PATH } from "@/common/constants";
2
- const result = Bun.spawnSync(["ssh-keygen", ...Bun.argv.slice(2)], {
3
- stdin: "inherit",
4
- stdout: "inherit",
5
- stderr: "inherit",
6
- env: { ...process.env, SSH_AUTH_SOCK: AGENT_SOCK_FILE_PATH },
7
- });
8
- process.exit(result.exitCode ?? 1);
9
- //# sourceMappingURL=ozy-ssh-keygen.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ozy-ssh-keygen.js","sourceRoot":"","sources":["../../../../../src/entrypoints/ozy-ssh-keygen.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,MAAM,MAAM,GAAG,GAAG,CAAC,SAAS,CAAC,CAAC,YAAY,EAAE,GAAG,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE;IACjE,KAAK,EAAE,SAAS;IAChB,MAAM,EAAE,SAAS;IACjB,MAAM,EAAE,SAAS;IACjB,GAAG,EAAE,EAAE,GAAG,OAAO,CAAC,GAAG,EAAE,aAAa,EAAE,oBAAoB,EAAE;CAC7D,CAAC,CAAC;AAEH,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,IAAI,CAAC,CAAC,CAAC"}
@@ -1,18 +0,0 @@
1
- import { Effect } from "effect";
2
- import { appendFileSync } from "node:fs";
3
- import { commonModules } from "@/modules/common";
4
- import { OSPlatformImpl } from "@/modules/common/os-platform/impl";
5
- import { VIRTUAL_KEY_LOG_FILE_PATH } from "@/common/constants";
6
- const program = Effect.gen(function* () {
7
- const platform = yield* commonModules.OSPlatform;
8
- yield* platform.registerVirtualHID((data) => Effect.sync(() => {
9
- appendFileSync(VIRTUAL_KEY_LOG_FILE_PATH, `[vhid] received ${data.length} bytes: ${data.toString('hex')}\n`);
10
- return Buffer.alloc(64);
11
- }));
12
- yield* Effect.never;
13
- }).pipe(Effect.provide(OSPlatformImpl.Layer));
14
- Effect.runPromise(program).catch(e => {
15
- console.error('Virtual security key failed:', e);
16
- process.exit(1);
17
- });
18
- //# sourceMappingURL=ozy-virtual-security-key.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ozy-virtual-security-key.js","sourceRoot":"","sources":["../../../../../src/entrypoints/ozy-virtual-security-key.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAChC,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AACzC,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AACnE,OAAO,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAC;AAE/D,MAAM,OAAO,GAAG,MAAM,CAAC,GAAG,CAAC,QAAQ,CAAC;IAClC,MAAM,QAAQ,GAAG,KAAK,CAAC,CAAC,aAAa,CAAC,UAAU,CAAC;IACjD,KAAK,CAAC,CAAC,QAAQ,CAAC,kBAAkB,CAAC,CAAC,IAAI,EAAE,EAAE,CAC1C,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE;QACf,cAAc,CAAC,yBAAyB,EAAE,mBAAmB,IAAI,CAAC,MAAM,WAAW,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QAC7G,OAAO,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;IAC1B,CAAC,CAAC,CACH,CAAC;IACF,KAAK,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC;AACtB,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC,CAAC;AAE9C,MAAM,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE;IACnC,OAAO,CAAC,KAAK,CAAC,8BAA8B,EAAE,CAAC,CAAC,CAAC;IACjD,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC,CAAC,CAAC"}
@@ -1,3 +0,0 @@
1
- // TODO: we should move commands to its own layer
2
- import '@/commands';
3
- //# sourceMappingURL=ozy.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ozy.js","sourceRoot":"","sources":["../../../../../src/entrypoints/ozy.ts"],"names":[],"mappings":"AAAA,iDAAiD;AACjD,OAAO,YAAY,CAAC"}
package/dist/index.js DELETED
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=index.js.map
package/dist/index.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC"}
@@ -1,4 +0,0 @@
1
- export function time() {
2
- console.log("is with us all");
3
- }
4
- //# sourceMappingURL=thing.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"thing.js","sourceRoot":"","sources":["../../../../../src/internal/thing.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,IAAI;IAClB,OAAO,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC;AAChC,CAAC"}
@@ -1,109 +0,0 @@
1
- import { Effect, Layer, Match, Option, pipe, Data, FileSystem, Schedule, Result } from "effect";
2
- import { effunct, implementing } from "effective-modules";
3
- import { FetchHttpClient } from "effect/unstable/http";
4
- import { RpcClient, RpcSerialization } from "effect/unstable/rpc";
5
- import { AgentRpcGroup } from "@/modules/ssh-agent/session/interface-rpc";
6
- import { cliModules } from "..";
7
- import { AgentClientError } from "./interface";
8
- import { AGENT_CMD_PATH, AGENT_PID_FILE_PATH, AGENT_PORT_FILE_PATH, AGENT_SOCK_FILE_PATH, CURRENT_VERSION } from "@/common/constants";
9
- import { readFileSync, rmSync } from "node:fs";
10
- import { log } from "@/common/log";
11
- function makeAgentClientLayer(port) {
12
- return pipe(RpcClient.layerProtocolHttp({ url: `http://localhost:${port}/rpc` }), Layer.provideMerge(RpcSerialization.layerJson), Layer.provideMerge(FetchHttpClient.layer));
13
- }
14
- class NoResponseError extends Data.TaggedError("NoResponseError") {
15
- toString() { return "No response from agent."; }
16
- }
17
- class NonMatchingVersionError extends Data.TaggedError("NonMatchingVersionError") {
18
- toString() {
19
- return `Agent running but with mismatched version ${this.agentVersion} compared to CLI version ${this.cliVersion}`;
20
- }
21
- }
22
- export class AgentClientImpl extends implementing(cliModules.AgentClient).uses(FileSystem.FileSystem) {
23
- *readPortFromFile() {
24
- const result = yield* pipe(this.getDependency(FileSystem.FileSystem).readFileString(AGENT_PORT_FILE_PATH), Effect.result);
25
- if (Result.isFailure(result))
26
- return Option.none();
27
- const port = parseInt(result.success.trim());
28
- if (isNaN(port) || port <= 0 || port > 65535) {
29
- log(`Read out of bounds port ${port}`);
30
- return Option.none();
31
- }
32
- return Option.some(port);
33
- }
34
- *pingAtPort(port) {
35
- yield* Effect.scoped(Effect.gen(function* () {
36
- const client = yield* RpcClient.make(AgentRpcGroup);
37
- const { version } = yield* pipe(client.GetVersion({}), Effect.catchTag("RpcClientError", () => new NoResponseError()));
38
- if (version !== CURRENT_VERSION)
39
- yield* new NonMatchingVersionError({ cliVersion: CURRENT_VERSION, agentVersion: version });
40
- })).pipe(Effect.provide(makeAgentClientLayer(port)));
41
- }
42
- *ping() {
43
- const portOption = yield* effunct(this.readPortFromFile)();
44
- if (Option.isNone(portOption))
45
- return yield* new NoResponseError();
46
- const port = portOption.value;
47
- yield* effunct(this.pingAtPort)(port);
48
- return { port };
49
- }
50
- *waitForPidFile(expectedPid) {
51
- const fs = this.getDependency(FileSystem.FileSystem);
52
- yield* pipe(Effect.retry(pipe(fs.readFileString(AGENT_PID_FILE_PATH), Effect.catchTag("PlatformError", () => Effect.fail("pid file not yet written")), Effect.flatMap(content => {
53
- const pid = parseInt(content.trim());
54
- return pid === expectedPid
55
- ? Effect.void
56
- : Effect.fail(`PID mismatch: expected ${expectedPid}, got ${pid}`);
57
- })), Schedule.spaced("50 millis")), Effect.timeout("5 seconds"), Effect.mapError(() => "Agent did not start within 5 seconds"));
58
- }
59
- *startAgent() {
60
- const proc = Bun.spawn([AGENT_CMD_PATH], { stdout: "ignore", stderr: "ignore" });
61
- yield* effunct(this.waitForPidFile)(proc.pid);
62
- const { port } = yield* effunct(this.ping)();
63
- log(`Started agent at PID ${proc.pid}`);
64
- return { pid: proc.pid, port };
65
- }
66
- *killIfRunning() {
67
- try {
68
- // Throws if file missing
69
- const pidFileContent = readFileSync(AGENT_PID_FILE_PATH, "utf-8");
70
- const PID = parseInt(pidFileContent.trim());
71
- // If doesn't exist, below line throws
72
- process.kill(PID, 0);
73
- log(`Killing agent on PID ${PID}`);
74
- process.kill(PID, "SIGTERM");
75
- yield* Effect.sleep(500);
76
- }
77
- catch { }
78
- try {
79
- rmSync(AGENT_PID_FILE_PATH);
80
- }
81
- catch { }
82
- try {
83
- rmSync(AGENT_PORT_FILE_PATH);
84
- }
85
- catch { }
86
- try {
87
- rmSync(AGENT_SOCK_FILE_PATH);
88
- }
89
- catch { }
90
- }
91
- *ensureRunning() {
92
- const pingResult = yield* pipe(effunct(this.ping)(), Effect.result);
93
- if (Result.isSuccess(pingResult))
94
- return pingResult.success;
95
- log(pingResult.failure.toString());
96
- yield* Match.value(pingResult.failure).pipe(Match.tag("NonMatchingVersionError", () => effunct(this.killIfRunning)()), Match.tag("NoResponseError", () => effunct(this.killIfRunning)()), Match.exhaustive);
97
- return yield* pipe(effunct(this.startAgent)(), Effect.mapError(err => typeof err === "string" ?
98
- err :
99
- `Failed to start agent due to ${err.name}: ${err.toString()}`));
100
- }
101
- *usingClient(use) {
102
- const { port } = yield* pipe(effunct(this.ensureRunning)(), Effect.mapError(reason => new AgentClientError.ClientError({ reason })));
103
- return yield* pipe(Effect.scoped(Effect.gen(function* () {
104
- const client = yield* RpcClient.make(AgentRpcGroup);
105
- return yield* use(client);
106
- })), Effect.provide(makeAgentClientLayer(port)), Effect.mapError(e => new AgentClientError.UsageError({ cause: e })));
107
- }
108
- }
109
- //# sourceMappingURL=impl.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"impl.js","sourceRoot":"","sources":["../../../../../../../src/modules/cli/agent-client/impl.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAChG,OAAO,EAAE,OAAO,EAAE,YAAY,EAAkB,MAAM,mBAAmB,CAAC;AAC1E,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAClE,OAAO,EAAE,aAAa,EAAE,MAAM,2CAA2C,CAAC;AAC1E,OAAO,EAAE,UAAU,EAAE,MAAM,IAAI,CAAC;AAChC,OAAO,EAA0C,gBAAgB,EAAE,MAAM,aAAa,CAAC;AACvF,OAAO,EAAE,cAAc,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACtI,OAAO,EAAE,YAAY,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAC/C,OAAO,EAAE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AE,CAAC,EAAE,CAAC,CAAC,CACpE,CAAC;IACJ,CAAC;CACF"}
@@ -1,11 +0,0 @@
1
- import { Data } from "effect";
2
- export var AgentClientError;
3
- (function (AgentClientError) {
4
- class UsageError extends Data.TaggedError("AgentClientUsageError") {
5
- }
6
- AgentClientError.UsageError = UsageError;
7
- class ClientError extends Data.TaggedError("AgentClientError") {
8
- }
9
- AgentClientError.ClientError = ClientError;
10
- })(AgentClientError || (AgentClientError = {}));
11
- //# sourceMappingURL=interface.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"interface.js","sourceRoot":"","sources":["../../../../../../../src/modules/cli/agent-client/interface.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAI9B,MAAM,KAAW,gBAAgB,CAGhC;AAHD,WAAiB,gBAAgB;IAC/B,MAAa,UAAc,SAAQ,IAAI,CAAC,WAAW,CAAC,uBAAuB,CAAwB;KAAG;IAAzF,2BAAU,aAA+E,CAAA;IACtG,MAAa,WAAY,SAAQ,IAAI,CAAC,WAAW,CAAC,kBAAkB,CAA8B;KAAG;IAAxF,4BAAW,cAA6E,CAAA;AACvG,CAAC,EAHgB,gBAAgB,KAAhB,gBAAgB,QAGhC"}
@@ -1,124 +0,0 @@
1
- import { implementing } from "effective-modules";
2
- import { cliModules } from "..";
3
- import { commonModules } from "@/modules/common";
4
- import { $ } from 'bun';
5
- import { Effect, Option, pipe } from "effect";
6
- import { existsSync } from "node:fs";
7
- import { resolve } from "node:path";
8
- import { SSH_KEYGEN_CMD_PATH, STANDARD_REMOTE_PREFIX } from "@/common/constants";
9
- import { Gitmodules } from "./submodule/gitmodules";
10
- import { readGitState } from "./submodule/git-state";
11
- import { fixGitConfig, fixModuleDirs, fixIndexGitlinks } from "./submodule/fix";
12
- import { printSyncState, printFixes } from "./submodule/printer";
13
- export class GitImpl extends implementing(cliModules.Git).uses(commonModules.OSPlatform, commonModules.SSHConfig) {
14
- parseOwnerRepo(remote) {
15
- const sshMatch = remote.match(/^git@[^:]+:([^/]+)\/(.+?)(?:\.git)?$/);
16
- if (sshMatch)
17
- return Effect.succeed({ owner: sshMatch[1], repo: sshMatch[2] });
18
- const httpsMatch = remote.match(/^https?:\/\/[^/]+\/([^/]+)\/(.+?)(?:\.git)?$/);
19
- if (httpsMatch)
20
- return Effect.succeed({ owner: httpsMatch[1], repo: httpsMatch[2] });
21
- return Effect.fail(`Cannot parse owner/repo from remote: ${remote}`);
22
- }
23
- *resolveOwnerAndRepo(maybeOwnerAndRepo) {
24
- if (Option.isSome(maybeOwnerAndRepo)) {
25
- const parts = maybeOwnerAndRepo.value.split('/');
26
- const [owner, repo] = parts;
27
- if (parts.length !== 2 || !owner || !repo)
28
- return yield* Effect.fail(`Cannot parse remote error: Expected "owner/repo", got "${maybeOwnerAndRepo.value}"`);
29
- return { owner, repo };
30
- }
31
- if (!(yield* this.isGitRepository())) {
32
- yield* Effect.fail(`not in git repo: Current directory is not a git repository`);
33
- }
34
- const remoteOption = yield* this.getRemoteOrigin();
35
- if (Option.isNone(remoteOption)) {
36
- return yield* Effect.fail(`no remote origin: No remote.origin.url — pass owner/repo as argument to clone instead`);
37
- }
38
- return yield* this.parseOwnerRepo(remoteOption.value);
39
- }
40
- *isGitRepository() {
41
- return yield* pipe(Effect.tryPromise(async () => {
42
- await $ `git rev-parse --is-inside-work-tree`.quiet();
43
- return true;
44
- }), Effect.catchTag("UnknownError", () => Effect.succeed(false)));
45
- }
46
- *getRemoteOrigin() {
47
- return yield* pipe(Effect.tryPromise(async () => {
48
- return Option.some((await $ `git config --get remote.origin.url`.quiet()).text().trim());
49
- }), Effect.catchTag("UnknownError", () => Effect.succeed(Option.none())));
50
- }
51
- *clone(owner, repo) {
52
- const result = Bun.spawnSync(['git', 'clone', '--recurse-submodules', `${STANDARD_REMOTE_PREFIX}${owner}/${repo}.git`], { stdout: 'inherit', stderr: 'inherit' });
53
- if (result.exitCode !== 0)
54
- return yield* Effect.fail(`git clone failed with exit code ${result.exitCode}`);
55
- process.chdir(`./${repo}`);
56
- }
57
- *setLocalConfig(key, value) {
58
- yield* Effect.tryPromise({
59
- try: async () => { await $ `git config --local ${key} ${value}`.quiet(); },
60
- catch: (e) => `git config ${key}: ${e instanceof Error ? e.message : String(e)}`,
61
- });
62
- }
63
- *configureRepo({ dir, remoteURL, user, pubkeyPath }) {
64
- yield* Effect.log(`Configuring ${dir}`);
65
- yield* Effect.tryPromise({
66
- try: async () => {
67
- const configs = [
68
- ['remote.origin.url', remoteURL],
69
- ['user.name', user.name],
70
- ['user.email', user.email],
71
- ['user.signingkey', pubkeyPath],
72
- ['gpg.format', 'ssh'],
73
- ['gpg.ssh.program', SSH_KEYGEN_CMD_PATH],
74
- ['commit.gpgsign', 'true'],
75
- ['tag.gpgsign', 'true'],
76
- ];
77
- for (const [k, v] of configs) {
78
- const r = Bun.spawnSync(['git', 'config', '--local', k, v], { cwd: dir, stdout: 'pipe', stderr: 'pipe' });
79
- if (r.exitCode !== 0) {
80
- const err = new TextDecoder().decode(r.stderr);
81
- throw new Error(`git config ${k} failed: ${err.trim()}`);
82
- }
83
- }
84
- },
85
- catch: (e) => e instanceof Error ? e.message : String(e),
86
- });
87
- }
88
- *syncSubmoduleState(repoRoot, topLevelRoot) {
89
- const gitmodules = yield* Gitmodules.fromRepoRoot(repoRoot);
90
- if (gitmodules.list.length === 0)
91
- return gitmodules;
92
- const submodulePaths = gitmodules.list.map(m => m.path);
93
- const state = yield* readGitState(repoRoot, submodulePaths);
94
- printSyncState(gitmodules, state);
95
- const fixResults = yield* Effect.all([
96
- fixGitConfig(repoRoot, gitmodules),
97
- fixModuleDirs(repoRoot, gitmodules, state.moduleDirs, state.orphanModuleDirs, topLevelRoot),
98
- fixIndexGitlinks(repoRoot, gitmodules, state.index),
99
- ], { concurrency: "unbounded" });
100
- printFixes(fixResults.flat());
101
- return gitmodules;
102
- }
103
- *setupRepo(input) {
104
- yield* this.setupRepoAt(input, input.dir);
105
- }
106
- *setupRepoAt(input, topLevelRoot) {
107
- yield* this.configureRepo(input);
108
- if (!existsSync(resolve(input.dir, '.gitmodules')))
109
- return;
110
- const gitmodules = yield* this.syncSubmoduleState(input.dir, topLevelRoot);
111
- for (const m of gitmodules.list) {
112
- const subDir = resolve(input.dir, m.path);
113
- if (!existsSync(subDir))
114
- continue;
115
- yield* this.setupRepoAt({
116
- dir: subDir,
117
- remoteURL: m.url,
118
- user: input.user,
119
- pubkeyPath: input.pubkeyPath
120
- }, topLevelRoot);
121
- }
122
- }
123
- }
124
- //# sourceMappingURL=impl.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"impl.js","sourceRoot":"","sources":["../../../../../../../src/modules/cli/git/impl.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAkB,MAAM,mBAAmB,CAAC;AACjE,OAAO,EAAE,UAAU,EAAE,MAAM,IAAI,CAAC;AAChC,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,mBAAmB,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AACjF,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAChF,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjE,MAAM,OAAO,OAAQ,SAAQ,YAAY,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,UAAU,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,CAAC,CAAC,GAAG;gBAChB,IAAI,EAAE,KAAK,CAAC,IAAI;gBAChB,UAAU,EAAE,KAAK,CAAC,UAAU;aAC7B,EAAE,YAAY,CAAC,CAAC;QACnB,CAAC;IACH,CAAC;CACF"}
@@ -1,3 +0,0 @@
1
- import {} from "effective-modules";
2
- import { Option } from "effect";
3
- //# sourceMappingURL=interface.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"interface.js","sourceRoot":"","sources":["../../../../../../../src/modules/cli/git/interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC"}