@makaio/client-codex 1.0.0-dev-1779051654000

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 (43) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +103 -0
  3. package/descriptor.json +21 -0
  4. package/dist/codex-client-session-service-DD2LkxP1.mjs +1551 -0
  5. package/dist/definition.d.ts +90 -0
  6. package/dist/definition.d.ts.map +1 -0
  7. package/dist/index.d.ts +8 -0
  8. package/dist/index.d.ts.map +1 -0
  9. package/dist/index.mjs +4 -0
  10. package/dist/package.d.ts +18 -0
  11. package/dist/package.d.ts.map +1 -0
  12. package/dist/runtime/client-settings.d.ts +149 -0
  13. package/dist/runtime/client-settings.d.ts.map +1 -0
  14. package/dist/runtime/codex-client-session-service.d.ts +148 -0
  15. package/dist/runtime/codex-client-session-service.d.ts.map +1 -0
  16. package/dist/runtime/config-prime-handler.d.ts +37 -0
  17. package/dist/runtime/config-prime-handler.d.ts.map +1 -0
  18. package/dist/runtime/hook-normalizer.d.ts +79 -0
  19. package/dist/runtime/hook-normalizer.d.ts.map +1 -0
  20. package/dist/runtime/namespace.d.ts +193 -0
  21. package/dist/runtime/namespace.d.ts.map +1 -0
  22. package/dist/runtime/package.d.ts +22 -0
  23. package/dist/runtime/package.d.ts.map +1 -0
  24. package/dist/runtime/package.mjs +33 -0
  25. package/dist/runtime/schemas.d.ts +26 -0
  26. package/dist/runtime/schemas.d.ts.map +1 -0
  27. package/dist/runtime/session-config-handler.d.ts +40 -0
  28. package/dist/runtime/session-config-handler.d.ts.map +1 -0
  29. package/dist/runtime/settings-paths.d.ts +43 -0
  30. package/dist/runtime/settings-paths.d.ts.map +1 -0
  31. package/dist/runtime/wiring.d.ts +88 -0
  32. package/dist/runtime/wiring.d.ts.map +1 -0
  33. package/dist/schemas/config.d.ts +306 -0
  34. package/dist/schemas/config.d.ts.map +1 -0
  35. package/dist/schemas/index.d.ts +9 -0
  36. package/dist/schemas/index.d.ts.map +1 -0
  37. package/dist/schemas/wiring.d.ts +108 -0
  38. package/dist/schemas/wiring.d.ts.map +1 -0
  39. package/dist/server.d.ts +3 -0
  40. package/dist/server.d.ts.map +1 -0
  41. package/dist/server.mjs +8 -0
  42. package/dist/src-DkIyzWF3.mjs +19 -0
  43. package/package.json +49 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026-present Makaio GmbH
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,103 @@
1
+ # @makaio/client-codex
2
+
3
+ Static client definition and schema library for the OpenAI Codex CLI. This package declares the user-facing identity of the `codex` binary within the framework — its stable ID, native tool catalog with capability tags drawn from the shared `codexCapabilityMap`, hook event map, and Zod schemas covering Codex's hook configuration and wiring RPCs. A separate `./runtime` entrypoint registers the client-native bus namespace and provides the `CodexClientSessionService` that bridges raw hook events into normalized `client.session.*` observations.
4
+
5
+ ## Client Identity
6
+
7
+ | Field | Value |
8
+ |-------|-------|
9
+ | `id` | `codex` |
10
+ | `name` | `Codex` |
11
+ | `version` | `0.1.0` |
12
+ | `description` | OpenAI Codex CLI — an agentic coding assistant |
13
+ | `binary.name` | `codex` |
14
+ | `binary.supportedVersions` | `*` |
15
+ | `defaultApprovalPolicy` | `full-access` |
16
+ | `defaultProviderId` | `openai-codex` |
17
+ | `configIsolation.envVar` | `CODEX_HOME` |
18
+ | `configIsolation.defaultPath` | `~/.codex` |
19
+
20
+ ### Runtime Capabilities
21
+
22
+ | Capability | Value |
23
+ |-----------|-------|
24
+ | `supportsHooks` | `true` |
25
+ | `supportsStatusline` | `false` |
26
+ | `supportsSupervisorLaunch` | `true` |
27
+ | `supportsManagedBinary` | `false` |
28
+
29
+ ### Hook Events
30
+
31
+ | Hook Name | Framework Subject |
32
+ |-----------|------------------|
33
+ | `SessionStart` | `client.session.started` |
34
+ | `UserPromptSubmit` | `client.session.userPrompt.submitted` |
35
+ | `PreToolUse` | `client.session.tool.pre` |
36
+ | `PostToolUse` | `client.session.tool.post` |
37
+ | `Stop` | `client.session.turn.completed` |
38
+
39
+ ## Native Tools
40
+
41
+ Capabilities are sourced from `codexCapabilityMap` in `@makaio/contracts`, keeping the capability taxonomy in one canonical location.
42
+
43
+ | Tool | Friendly Name | Category | Capabilities |
44
+ |------|---------------|----------|-------------|
45
+ | `bash` | Terminal | System | `shell.execute`, `file.read`, `file.write`, `file.delete`, `network.request`, `process.manage` |
46
+ | `patch` | Patch File | Files | `file.write` |
47
+
48
+ ## Served By (Adapters)
49
+
50
+ | Adapter ID | Package |
51
+ |-----------|---------|
52
+ | `codex-app-server` | `@makaio/ai-adapters-codex-app-server` — direct integration with the Codex app-server via stdio subprocess |
53
+
54
+ ## Exports
55
+
56
+ ### Main entrypoint (`.`)
57
+
58
+ | Export | Kind | Description |
59
+ |--------|------|-------------|
60
+ | `clientDefinition` | `ClientDefinition` | Static client definition (identity, tools, approval policy) |
61
+ | `codexPackage` | `MakaioExtension` | Package descriptor for framework extension discovery |
62
+ | `CodexClientSessionService` | class | Session normalization service (re-exported from `./runtime`) |
63
+ | `CodexClientSubjects` | namespace subjects | Typed bus subjects for `client:codex.*` (re-exported from `./runtime`) |
64
+
65
+ #### Config Schemas
66
+
67
+ | Export | Description |
68
+ |--------|-------------|
69
+ | `CodexConfigSchemas` | Bus-subject schema map for all config hook RPCs |
70
+ | `CodexScopeSchema` | Scope enum for Codex configuration |
71
+ | `CodexHookEntrySchema` | Single hook entry |
72
+ | `CodexNativeCommandHookSchema` | Native command hook definition |
73
+ | `CodexNativeHookMatcherGroupSchema` | Hook matcher group |
74
+ | `CodexNativeHooksFileSchema` | Full native hooks file structure |
75
+ | `CodexScopeHookRecordSchema` | Per-scope hook record |
76
+ | `CodexConfigHooksListRequestSchema` / `…ResponseSchema` | List hooks RPC |
77
+ | `CodexConfigHooksAddRequestSchema` / `…ResponseSchema` | Add hook RPC |
78
+ | `CodexConfigHooksRemoveRequestSchema` / `…ResponseSchema` | Remove hook RPC |
79
+ | `AbsolutePathSchema` | Absolute filesystem path validation |
80
+
81
+ #### Wiring Schemas
82
+
83
+ | Export | Description |
84
+ |--------|-------------|
85
+ | `CodexWiringSchemas` | Bus-subject schema map for wiring list/apply/remove RPCs |
86
+
87
+ ### Runtime entrypoint (`./runtime`)
88
+
89
+ | Export | Kind | Description |
90
+ |--------|------|-------------|
91
+ | `codexClientRuntimePackage` | `MakaioExtension` | Registers `codex.runtime` namespace and creates the client session service |
92
+ | `CodexClientSessionService` | class | Bridges raw `client:codex.hook.received` events into normalized `client.session.*` observations |
93
+ | `CodexClientSubjects` | namespace subjects | Typed bus subjects for `client:codex.*` |
94
+ | `CODEX_CLIENT_NAMESPACE` | `string` | Fully-qualified namespace domain (`'client:codex'`) |
95
+ | `normalizeCodexHook` | function | Normalizes a raw Codex hook payload into a `CodexNormalizedEvent` |
96
+
97
+ ### Server entrypoint (`./server`)
98
+
99
+ Default export is `[codexPackage, codexClientRuntimePackage]` — the array of packages registered when this client is activated as a server entry.
100
+
101
+ ## Installation
102
+
103
+ `@makaio/client-codex` is a private workspace package used internally by the framework.
@@ -0,0 +1,21 @@
1
+ {
2
+ "name": "codex",
3
+ "displayName": "Codex",
4
+ "version": "0.1.0",
5
+ "makaio": {
6
+ "framework": ">=0.1.0"
7
+ },
8
+ "entrypoints": {
9
+ "server": true
10
+ },
11
+ "contributions": {
12
+ "clients": [
13
+ {
14
+ "id": "codex",
15
+ "name": "Codex",
16
+ "description": "OpenAI Codex CLI \u2014 an agentic coding assistant",
17
+ "binary": { "name": "codex", "managed": true, "version": "0.130.0" }
18
+ }
19
+ ]
20
+ }
21
+ }