@polydeukes/adapter-claude-code 0.6.0 → 0.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.ko.md +41 -40
- package/README.md +41 -55
- package/package.json +3 -3
package/README.ko.md
CHANGED
|
@@ -1,40 +1,41 @@
|
|
|
1
|
-
#
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
-
|
|
15
|
-
|
|
16
|
-
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
1
|
+
# `@polydeukes/adapter-claude-code`
|
|
2
|
+
|
|
3
|
+
[English](./README.md) · **한국어**
|
|
4
|
+
|
|
5
|
+
이 어댑터는 Claude Code PreToolUse 페이로드를 약속(covenant) 입력 IR로 변환합니다.
|
|
6
|
+
우산 패키지가 세션 표면에 주입할 읽기 함수를 만드는 팩터리도 제공합니다.
|
|
7
|
+
|
|
8
|
+
<a id="overview"></a>
|
|
9
|
+
## 개요
|
|
10
|
+
|
|
11
|
+
공개 계약 심볼은 다음과 같습니다.
|
|
12
|
+
|
|
13
|
+
- `runAdapterPath`
|
|
14
|
+
- `sessionSourceReader`
|
|
15
|
+
- `sessionChannelReader`
|
|
16
|
+
- `transcriptPathFromPayload`
|
|
17
|
+
- `transcriptFromJsonlFile`
|
|
18
|
+
- `COMMAND_ARGS`
|
|
19
|
+
- `MUTATING_TOOLS`
|
|
20
|
+
- `SHELL_TOOLS`
|
|
21
|
+
|
|
22
|
+
<a id="examples"></a>
|
|
23
|
+
## 예제
|
|
24
|
+
|
|
25
|
+
```ts
|
|
26
|
+
import { runAdapterPath } from '@polydeukes/adapter-claude-code';
|
|
27
|
+
|
|
28
|
+
const outcome = await runAdapterPath({
|
|
29
|
+
rawPayload: '{}',
|
|
30
|
+
telemetryPath: '.polydeukes/roi.log',
|
|
31
|
+
dispatch: async () => ({ exitCode: 0, results: [] }),
|
|
32
|
+
});
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
<a id="see-also"></a>
|
|
36
|
+
## 같이 보기
|
|
37
|
+
|
|
38
|
+
- [`@polydeukes/adapter-claude-code` 패키지
|
|
39
|
+
레퍼런스](../../docs/reference/packages/adapter-claude-code.ko.md)
|
|
40
|
+
- [`polydeukes/claude-code`](../../docs/reference/packages/polydeukes.ko.md#polydeukes-entry-points)
|
|
41
|
+
- [`@polydeukes/covenant`](../../docs/reference/packages/covenant.ko.md)
|
package/README.md
CHANGED
|
@@ -1,55 +1,41 @@
|
|
|
1
|
-
#
|
|
2
|
-
|
|
3
|
-
**English** ·
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
true }`): the covenant flattens it into a snapshot at supply time, so this adapter adds no
|
|
43
|
-
reader for it.
|
|
44
|
-
- **Telemetry wiring** — `runAdapterPath` drives the full funnel: raw payload → translation (a
|
|
45
|
-
failure logs one blocked record and exits `2`) → dispatch through an *injected* seam → funnel
|
|
46
|
-
completion, so exactly one record lands per call, witnessed rows included. The dispatch seam is
|
|
47
|
-
injected because this package never imports the covenant package — dependencies stay one-way,
|
|
48
|
-
through the core only.
|
|
49
|
-
|
|
50
|
-
See the [project repository](https://github.com/huskyhoochu/polydeukes) for the architecture
|
|
51
|
-
blueprint and design rationale.
|
|
52
|
-
|
|
53
|
-
## License
|
|
54
|
-
|
|
55
|
-
MIT
|
|
1
|
+
# `@polydeukes/adapter-claude-code`
|
|
2
|
+
|
|
3
|
+
**English** · [한국어](./README.ko.md)
|
|
4
|
+
|
|
5
|
+
This adapter translates Claude Code PreToolUse payloads into covenant input IR and provides the
|
|
6
|
+
session-side reader factories the umbrella injects.
|
|
7
|
+
|
|
8
|
+
<a id="overview"></a>
|
|
9
|
+
## Overview
|
|
10
|
+
|
|
11
|
+
Public contract symbols include:
|
|
12
|
+
|
|
13
|
+
- `runAdapterPath`
|
|
14
|
+
- `sessionSourceReader`
|
|
15
|
+
- `sessionChannelReader`
|
|
16
|
+
- `transcriptPathFromPayload`
|
|
17
|
+
- `transcriptFromJsonlFile`
|
|
18
|
+
- `COMMAND_ARGS`
|
|
19
|
+
- `MUTATING_TOOLS`
|
|
20
|
+
- `SHELL_TOOLS`
|
|
21
|
+
|
|
22
|
+
<a id="examples"></a>
|
|
23
|
+
## Examples
|
|
24
|
+
|
|
25
|
+
```ts
|
|
26
|
+
import { runAdapterPath } from '@polydeukes/adapter-claude-code';
|
|
27
|
+
|
|
28
|
+
const outcome = await runAdapterPath({
|
|
29
|
+
rawPayload: '{}',
|
|
30
|
+
telemetryPath: '.polydeukes/roi.log',
|
|
31
|
+
dispatch: async () => ({ exitCode: 0, results: [] }),
|
|
32
|
+
});
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
<a id="see-also"></a>
|
|
36
|
+
## See also
|
|
37
|
+
|
|
38
|
+
- [`@polydeukes/adapter-claude-code` package
|
|
39
|
+
reference](../../docs/reference/packages/adapter-claude-code.md)
|
|
40
|
+
- [`polydeukes/claude-code`](../../docs/reference/packages/polydeukes.md#polydeukes-entry-points)
|
|
41
|
+
- [`@polydeukes/covenant`](../../docs/reference/packages/covenant.md)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@polydeukes/adapter-claude-code",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.1",
|
|
4
4
|
"description": "Polydeukes adapter for Claude Code — up-translates PreToolUse hook payloads into the agent-neutral covenant input IR. Alpha.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -32,10 +32,10 @@
|
|
|
32
32
|
"@types/node": "^24.0.0",
|
|
33
33
|
"typescript": "7.0.2",
|
|
34
34
|
"vitest": "^4.1.0",
|
|
35
|
-
"@polydeukes/core": "^0.6.
|
|
35
|
+
"@polydeukes/core": "^0.6.1"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
|
-
"@polydeukes/core": "^0.6.
|
|
38
|
+
"@polydeukes/core": "^0.6.1"
|
|
39
39
|
},
|
|
40
40
|
"scripts": {
|
|
41
41
|
"build": "tsc -p tsconfig.build.json",
|