@pinta-ai/types 0.0.5 → 0.0.7
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/dist/cdm.js +2 -1
- package/dist/cdm.js.map +1 -1
- package/dist/index.js +2 -1
- package/dist/ingest.d.ts +43 -0
- package/dist/ingest.d.ts.map +1 -1
- package/dist/ingest.js +2 -1
- package/dist/ingest.js.map +1 -1
- package/package.json +1 -2
package/dist/cdm.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
/**
|
|
2
3
|
* CDM (Common Data Model) Types
|
|
3
4
|
*
|
|
@@ -9,5 +10,5 @@
|
|
|
9
10
|
* - source.event로 원본 이벤트를 정확히 식별 (디버깅용)
|
|
10
11
|
* - 저장소는 enum을 모름 (string으로 저장, enum 추가 시 스키마 변경 없음)
|
|
11
12
|
*/
|
|
12
|
-
|
|
13
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
14
|
//# sourceMappingURL=cdm.js.map
|
package/dist/cdm.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cdm.js","sourceRoot":"","sources":["../src/cdm.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG"}
|
|
1
|
+
{"version":3,"file":"cdm.js","sourceRoot":"","sources":["../src/cdm.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG"}
|
package/dist/index.js
CHANGED
package/dist/ingest.d.ts
CHANGED
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
export interface IngestTypeMap {
|
|
13
13
|
mcp: MCPSpan;
|
|
14
|
+
cc: CCSpan;
|
|
14
15
|
}
|
|
15
16
|
/**
|
|
16
17
|
* 지원하는 ingest type union
|
|
@@ -61,6 +62,48 @@ export interface MCPSpan {
|
|
|
61
62
|
'mcp.permission.level'?: string;
|
|
62
63
|
'mcp.cost'?: number;
|
|
63
64
|
}
|
|
65
|
+
/**
|
|
66
|
+
* Hook names pinta-cc currently routes via dedicated typed handlers.
|
|
67
|
+
* Other hook names are still emitted by pinta-cc's default handler
|
|
68
|
+
* (with the literal hook name as `cc.hook`); a small set is explicitly
|
|
69
|
+
* skipped (see SKIP_HOOKS in pinta-cc's src/core/types.ts).
|
|
70
|
+
*
|
|
71
|
+
* This union therefore narrows `cc.hook` for known typed-handler events
|
|
72
|
+
* but does NOT enumerate every value the wire may carry — backend code
|
|
73
|
+
* should treat unknown names as valid pass-through.
|
|
74
|
+
*/
|
|
75
|
+
export type CCHookName = 'PreToolUse' | 'PostToolUse' | 'PostToolUseFailure' | 'UserPromptSubmit' | 'SessionStart' | 'SessionEnd' | 'SubagentStart' | 'SubagentStop' | 'Stop' | 'PermissionRequest' | 'PermissionDenied';
|
|
76
|
+
/**
|
|
77
|
+
* pinta-cc adaptor가 전송하는 raw span attribute 인터페이스 (bronze).
|
|
78
|
+
* hook event의 top-level 필드가 `cc.<key>`로 flat하게 직렬화된다.
|
|
79
|
+
*
|
|
80
|
+
* Per Claude Code docs (https://code.claude.com/docs/en/hooks), the exact
|
|
81
|
+
* field presence depends on the hook name — see individual field comments.
|
|
82
|
+
*/
|
|
83
|
+
export interface CCSpan {
|
|
84
|
+
'ingest.type': 'cc';
|
|
85
|
+
'cc.hook': CCHookName;
|
|
86
|
+
'cc.session_id': string;
|
|
87
|
+
'cc.transcript_path': string;
|
|
88
|
+
'cc.cwd': string;
|
|
89
|
+
'cc.permission_mode'?: string;
|
|
90
|
+
'cc.tool_name'?: string;
|
|
91
|
+
'cc.tool_input'?: string;
|
|
92
|
+
'cc.tool_response'?: string;
|
|
93
|
+
'cc.tool_use_id'?: string;
|
|
94
|
+
'cc.prompt'?: string;
|
|
95
|
+
'cc.source'?: string;
|
|
96
|
+
'cc.model'?: string;
|
|
97
|
+
'cc.reason'?: string;
|
|
98
|
+
'cc.agent_id'?: string;
|
|
99
|
+
'cc.agent_type'?: string;
|
|
100
|
+
'cc.agent_transcript_path'?: string;
|
|
101
|
+
'cc.last_assistant_message'?: string;
|
|
102
|
+
'cc.stop_hook_active'?: boolean;
|
|
103
|
+
'cc.error'?: string;
|
|
104
|
+
'cc.is_interrupt'?: boolean;
|
|
105
|
+
'cc.permission_suggestions'?: string;
|
|
106
|
+
}
|
|
64
107
|
/** Resource-level member identity attributes */
|
|
65
108
|
export interface MemberIdentity {
|
|
66
109
|
'member.identity.id'?: string;
|
package/dist/ingest.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ingest.d.ts","sourceRoot":"","sources":["../src/ingest.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH;;;GAGG;AACH,MAAM,WAAW,aAAa;IAC5B,GAAG,EAAE,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"ingest.d.ts","sourceRoot":"","sources":["../src/ingest.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH;;;GAGG;AACH,MAAM,WAAW,aAAa;IAC5B,GAAG,EAAE,OAAO,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;CACZ;AAED;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG,MAAM,aAAa,CAAC;AAM7C;;;;;;;;;;;;;GAaG;AACH,MAAM,WAAW,OAAO;IAEtB,aAAa,EAAE,KAAK,CAAC;IAGrB,UAAU,EAAE,QAAQ,GAAG,SAAS,GAAG,UAAU,GAAG,cAAc,CAAC;IAC/D,eAAe,EAAE,OAAO,GAAG,KAAK,CAAC;IACjC,YAAY,EAAE,MAAM,CAAC;IAGrB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,uBAAuB,CAAC,EAAE,MAAM,CAAC;IACjC,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,wBAAwB,CAAC,EAAE,MAAM,CA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;IAC5B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAG1B,WAAW,CAAC,EAAE,MAAM,CAAC;IAGrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IAGpB,WAAW,CAAC,EAAE,MAAM,CAAC;IAGrB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,0BAA0B,CAAC,EAAE,MAAM,CAAC;IACpC,2BAA2B,CAAC,EAAE,MAAM,CAAC;IACrC,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAGhC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAG5B,2BAA2B,CAAC,EAAE,MAAM,CAAC;CACtC;AAMD,gDAAgD;AAChD,MAAM,WAAW,cAAc;IAC7B,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,uBAAuB,CAAC,EAAE,MAAM,CAAC;CAClC"}
|
package/dist/ingest.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
/**
|
|
2
3
|
* Ingest Types
|
|
3
4
|
*
|
|
@@ -5,5 +6,5 @@
|
|
|
5
6
|
* 각 adapter는 OTel span으로 로그를 전송하며,
|
|
6
7
|
* span attribute의 ingest.type 값으로 로그 종류를 구분한다.
|
|
7
8
|
*/
|
|
8
|
-
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
10
|
//# sourceMappingURL=ingest.js.map
|
package/dist/ingest.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ingest.js","sourceRoot":"","sources":["../src/ingest.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG"}
|
|
1
|
+
{"version":3,"file":"ingest.js","sourceRoot":"","sources":["../src/ingest.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG"}
|
package/package.json
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pinta-ai/types",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.7",
|
|
4
4
|
"description": "Shared type definitions for Pinta AI adapters and log processing server",
|
|
5
|
-
"type": "module",
|
|
6
5
|
"main": "dist/index.js",
|
|
7
6
|
"types": "dist/index.d.ts",
|
|
8
7
|
"publishConfig": {
|