nfcscript 0.0.8__tar.gz → 0.0.9__tar.gz
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.
- {nfcscript-0.0.8 → nfcscript-0.0.9}/PKG-INFO +12 -2
- {nfcscript-0.0.8 → nfcscript-0.0.9}/README.md +11 -1
- {nfcscript-0.0.8 → nfcscript-0.0.9}/pyproject.toml +2 -2
- {nfcscript-0.0.8 → nfcscript-0.0.9}/src/nfcscript.egg-info/PKG-INFO +12 -2
- {nfcscript-0.0.8 → nfcscript-0.0.9}/setup.cfg +0 -0
- {nfcscript-0.0.8 → nfcscript-0.0.9}/src/nfc/__init__.py +0 -0
- {nfcscript-0.0.8 → nfcscript-0.0.9}/src/nfc/assertions.py +0 -0
- {nfcscript-0.0.8 → nfcscript-0.0.9}/src/nfc/bits.py +0 -0
- {nfcscript-0.0.8 → nfcscript-0.0.9}/src/nfc/checksum.py +0 -0
- {nfcscript-0.0.8 → nfcscript-0.0.9}/src/nfc/cli.py +0 -0
- {nfcscript-0.0.8 → nfcscript-0.0.9}/src/nfc/delay.py +0 -0
- {nfcscript-0.0.8 → nfcscript-0.0.9}/src/nfc/hex_util.py +0 -0
- {nfcscript-0.0.8 → nfcscript-0.0.9}/src/nfc/nfc_cli.py +0 -0
- {nfcscript-0.0.8 → nfcscript-0.0.9}/src/nfc/reader.py +0 -0
- {nfcscript-0.0.8 → nfcscript-0.0.9}/src/nfc/trace.py +0 -0
- {nfcscript-0.0.8 → nfcscript-0.0.9}/src/nfcscript.egg-info/SOURCES.txt +0 -0
- {nfcscript-0.0.8 → nfcscript-0.0.9}/src/nfcscript.egg-info/dependency_links.txt +0 -0
- {nfcscript-0.0.8 → nfcscript-0.0.9}/src/nfcscript.egg-info/entry_points.txt +0 -0
- {nfcscript-0.0.8 → nfcscript-0.0.9}/src/nfcscript.egg-info/requires.txt +0 -0
- {nfcscript-0.0.8 → nfcscript-0.0.9}/src/nfcscript.egg-info/top_level.txt +0 -0
- {nfcscript-0.0.8 → nfcscript-0.0.9}/tests/test_main.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: nfcscript
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.9
|
|
4
4
|
Summary: A plugin-based core engine for DSL-style NFC testing automation.
|
|
5
5
|
Author: crthu
|
|
6
6
|
Requires-Python: >=3.14
|
|
@@ -191,7 +191,7 @@ with session() as reader:
|
|
|
191
191
|
|
|
192
192
|
| 函数 | 说明 |
|
|
193
193
|
|------|------|
|
|
194
|
-
| `ASSERT_EQUAL(
|
|
194
|
+
| `ASSERT_EQUAL(actual, expected, msg)` | 相等断言 |
|
|
195
195
|
| `ASSERT_LEN(data, expected_len, msg)` | 长度断言 |
|
|
196
196
|
| `ASSERT_IS_NOT_NONE(value, msg)` | 非空断言 |
|
|
197
197
|
| `ASSERT_IS_NONE(value, msg)` | 空值断言 |
|
|
@@ -253,6 +253,16 @@ NFC_TRACE_DRIVER=true
|
|
|
253
253
|
NFC_TRACE_PROTOCOL=true
|
|
254
254
|
```
|
|
255
255
|
|
|
256
|
+
## AI 编写脚本
|
|
257
|
+
|
|
258
|
+
本目录下 `SKILL.md` 提供了 DSL 的完整 API 参考和 few-shot 示例,可直接用于 AI Agent 生成 NFC 脚本。
|
|
259
|
+
|
|
260
|
+
**使用方式**:在 AI 对话中引用该文件,例如:
|
|
261
|
+
```
|
|
262
|
+
@nfcscript/SKILL.md
|
|
263
|
+
```
|
|
264
|
+
Agent 会基于 SKILL.md 中的 API 签名、few-shot 示例和约定生成正确的脚本代码。
|
|
265
|
+
|
|
256
266
|
## 开发
|
|
257
267
|
|
|
258
268
|
```bash
|
|
@@ -181,7 +181,7 @@ with session() as reader:
|
|
|
181
181
|
|
|
182
182
|
| 函数 | 说明 |
|
|
183
183
|
|------|------|
|
|
184
|
-
| `ASSERT_EQUAL(
|
|
184
|
+
| `ASSERT_EQUAL(actual, expected, msg)` | 相等断言 |
|
|
185
185
|
| `ASSERT_LEN(data, expected_len, msg)` | 长度断言 |
|
|
186
186
|
| `ASSERT_IS_NOT_NONE(value, msg)` | 非空断言 |
|
|
187
187
|
| `ASSERT_IS_NONE(value, msg)` | 空值断言 |
|
|
@@ -243,6 +243,16 @@ NFC_TRACE_DRIVER=true
|
|
|
243
243
|
NFC_TRACE_PROTOCOL=true
|
|
244
244
|
```
|
|
245
245
|
|
|
246
|
+
## AI 编写脚本
|
|
247
|
+
|
|
248
|
+
本目录下 `SKILL.md` 提供了 DSL 的完整 API 参考和 few-shot 示例,可直接用于 AI Agent 生成 NFC 脚本。
|
|
249
|
+
|
|
250
|
+
**使用方式**:在 AI 对话中引用该文件,例如:
|
|
251
|
+
```
|
|
252
|
+
@nfcscript/SKILL.md
|
|
253
|
+
```
|
|
254
|
+
Agent 会基于 SKILL.md 中的 API 签名、few-shot 示例和约定生成正确的脚本代码。
|
|
255
|
+
|
|
246
256
|
## 开发
|
|
247
257
|
|
|
248
258
|
```bash
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "nfcscript"
|
|
3
|
-
version = "0.0.
|
|
3
|
+
version = "0.0.9"
|
|
4
4
|
description = "A plugin-based core engine for DSL-style NFC testing automation."
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
requires-python = ">=3.14"
|
|
@@ -34,7 +34,7 @@ dev = [
|
|
|
34
34
|
]
|
|
35
35
|
|
|
36
36
|
[tool.bumpversion]
|
|
37
|
-
current_version = "0.0.
|
|
37
|
+
current_version = "0.0.9"
|
|
38
38
|
commit = true
|
|
39
39
|
tag = true
|
|
40
40
|
allow_dirty = true
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: nfcscript
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.9
|
|
4
4
|
Summary: A plugin-based core engine for DSL-style NFC testing automation.
|
|
5
5
|
Author: crthu
|
|
6
6
|
Requires-Python: >=3.14
|
|
@@ -191,7 +191,7 @@ with session() as reader:
|
|
|
191
191
|
|
|
192
192
|
| 函数 | 说明 |
|
|
193
193
|
|------|------|
|
|
194
|
-
| `ASSERT_EQUAL(
|
|
194
|
+
| `ASSERT_EQUAL(actual, expected, msg)` | 相等断言 |
|
|
195
195
|
| `ASSERT_LEN(data, expected_len, msg)` | 长度断言 |
|
|
196
196
|
| `ASSERT_IS_NOT_NONE(value, msg)` | 非空断言 |
|
|
197
197
|
| `ASSERT_IS_NONE(value, msg)` | 空值断言 |
|
|
@@ -253,6 +253,16 @@ NFC_TRACE_DRIVER=true
|
|
|
253
253
|
NFC_TRACE_PROTOCOL=true
|
|
254
254
|
```
|
|
255
255
|
|
|
256
|
+
## AI 编写脚本
|
|
257
|
+
|
|
258
|
+
本目录下 `SKILL.md` 提供了 DSL 的完整 API 参考和 few-shot 示例,可直接用于 AI Agent 生成 NFC 脚本。
|
|
259
|
+
|
|
260
|
+
**使用方式**:在 AI 对话中引用该文件,例如:
|
|
261
|
+
```
|
|
262
|
+
@nfcscript/SKILL.md
|
|
263
|
+
```
|
|
264
|
+
Agent 会基于 SKILL.md 中的 API 签名、few-shot 示例和约定生成正确的脚本代码。
|
|
265
|
+
|
|
256
266
|
## 开发
|
|
257
267
|
|
|
258
268
|
```bash
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|