@c4a/extract-thrift 0.0.0-bootstrap.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.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 context4ai
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,22 @@
1
+ # Thrift IDL Catalog for Context
2
+
3
+ [简体中文](./README.zh-CN.md)
4
+
5
+ `@c4a/extract-thrift` parses caller-registered Apache Thrift IDL files into deterministic service, method, type, include, namespace, annotation, generated-boundary, locator, and disposition evidence.
6
+
7
+ ```ts
8
+ import { thriftSourcesToEvidenceAdapterResult } from "@c4a/extract-thrift";
9
+
10
+ const evidence = thriftSourcesToEvidenceAdapterResult(files, invocation);
11
+ ```
12
+
13
+ The parser never reads an include outside the provided source map. Missing, absolute, or escaping includes make the importing file `unsupported`, and unsupported files publish no partial facts. The generated boundary identifies Thrift IDL as the authoritative contract and generated language bindings as derived output; it does not infer private ownership or code-generation platform state.
14
+
15
+ ## Development
16
+
17
+ ```bash
18
+ bun run --filter @c4a/extract-thrift typecheck
19
+ bun run --filter @c4a/extract-thrift lint
20
+ bun run --filter @c4a/extract-thrift test
21
+ bun run --filter @c4a/extract-thrift build
22
+ ```
@@ -0,0 +1,16 @@
1
+ # Context Thrift IDL 目录解析
2
+
3
+ [English](./README.md)
4
+
5
+ `@c4a/extract-thrift` 把调用方已登记的 Apache Thrift IDL 文件解析为确定性的 service、method、type、include、namespace、annotation、generated boundary、locator 和 disposition Evidence。
6
+
7
+ 解析器不会读取输入 source map 之外的 include。include 缺失、使用绝对路径或越出登记范围时,引用文件整体标记为 `unsupported`,且不发布部分 facts。生成边界只声明 Thrift IDL 是权威 contract source、各语言 binding 是派生输出,不推断私有 owner 或 codegen 平台状态。
8
+
9
+ ## 开发
10
+
11
+ ```bash
12
+ bun run --filter @c4a/extract-thrift typecheck
13
+ bun run --filter @c4a/extract-thrift lint
14
+ bun run --filter @c4a/extract-thrift test
15
+ bun run --filter @c4a/extract-thrift build
16
+ ```