newapi-python 0.1.0__tar.gz → 0.3.0__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.
- newapi_python-0.3.0/.mimosa/finding-ledger/v1/events/batch-posttooluse-48aef1dee53250877e9903ca7c2b5602.json +23 -0
- newapi_python-0.3.0/.mimosa/finding-ledger/v1/events/batch-pretooluse-6268e66558b9f7a250aa50afc99ccc21.json +23 -0
- newapi_python-0.3.0/.mimosa/hook-state/sess_1433cec3-1da2-46c1-88de-192e7415d559.json +1 -0
- newapi_python-0.3.0/.mimosa/hook-state/sess_1433cec3-1da2-46c1-88de-192e7415d559.mtjfq1ha-24876-f1aebcd4dc.baseline/1252fc55de5f372ed4dcbb82a75b61002c7dfd9076f095c21e54449336bf6ba8.source +707 -0
- newapi_python-0.3.0/.mimosa/hook-state/sess_1433cec3-1da2-46c1-88de-192e7415d559.mtjfq1ha-24876-f1aebcd4dc.baseline/2c0a3ea4b52b71cebbbb4c27ee4939eeecbb634105d6a4ad0b51984b9dbfa04b.source +75 -0
- newapi_python-0.3.0/.mimosa/hook-status/sess_1433cec3-1da2-46c1-88de-192e7415d559-b601df6c7a.json +14 -0
- {newapi_python-0.1.0 → newapi_python-0.3.0}/PKG-INFO +22 -2
- {newapi_python-0.1.0 → newapi_python-0.3.0}/README.md +21 -1
- {newapi_python-0.1.0 → newapi_python-0.3.0}/pyproject.toml +1 -1
- {newapi_python-0.1.0 → newapi_python-0.3.0}/src/newapi/__init__.py +1 -1
- {newapi_python-0.1.0 → newapi_python-0.3.0}/src/newapi/_client.py +92 -5
- {newapi_python-0.1.0 → newapi_python-0.3.0}/src/newapi/_models.py +3 -1
- newapi_python-0.3.0/src/newapi/_session_blob.py +109 -0
- {newapi_python-0.1.0 → newapi_python-0.3.0}/tests/test_client.py +179 -3
- {newapi_python-0.1.0 → newapi_python-0.3.0}/tests/test_resources.py +1 -0
- newapi_python-0.3.0/tests/test_session_blob.py +78 -0
- {newapi_python-0.1.0 → newapi_python-0.3.0}/.gitignore +0 -0
- {newapi_python-0.1.0 → newapi_python-0.3.0}/LICENSE +0 -0
- {newapi_python-0.1.0 → newapi_python-0.3.0}/src/newapi/_crypto.py +0 -0
- {newapi_python-0.1.0 → newapi_python-0.3.0}/src/newapi/_exceptions.py +0 -0
- {newapi_python-0.1.0 → newapi_python-0.3.0}/src/newapi/_resources.py +0 -0
- {newapi_python-0.1.0 → newapi_python-0.3.0}/src/newapi/py.typed +0 -0
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": "mimosa-finding-ledger-batch/v1",
|
|
3
|
+
"batchId": "posttooluse-48aef1dee53250877e9903ca7c2b5602",
|
|
4
|
+
"runId": null,
|
|
5
|
+
"runStatus": "completed",
|
|
6
|
+
"coverage": {
|
|
7
|
+
"status": "complete",
|
|
8
|
+
"reasons": []
|
|
9
|
+
},
|
|
10
|
+
"source": {
|
|
11
|
+
"component": "zcode-hook",
|
|
12
|
+
"operationId": "PostToolUse"
|
|
13
|
+
},
|
|
14
|
+
"revision": null,
|
|
15
|
+
"diffHash": null,
|
|
16
|
+
"rulesVersion": null,
|
|
17
|
+
"sessionHash": "b601df6c7ab8c95836c9aa408671dade9f8500578f3b99ff004a48d719d630b4",
|
|
18
|
+
"reportRef": null,
|
|
19
|
+
"events": [],
|
|
20
|
+
"observedFindingIds": [],
|
|
21
|
+
"verifiedFiles": [],
|
|
22
|
+
"recordedAt": "2026-09-02T01:47:00.021Z"
|
|
23
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": "mimosa-finding-ledger-batch/v1",
|
|
3
|
+
"batchId": "pretooluse-6268e66558b9f7a250aa50afc99ccc21",
|
|
4
|
+
"runId": null,
|
|
5
|
+
"runStatus": "completed",
|
|
6
|
+
"coverage": {
|
|
7
|
+
"status": "complete",
|
|
8
|
+
"reasons": []
|
|
9
|
+
},
|
|
10
|
+
"source": {
|
|
11
|
+
"component": "zcode-hook",
|
|
12
|
+
"operationId": "PreToolUse"
|
|
13
|
+
},
|
|
14
|
+
"revision": null,
|
|
15
|
+
"diffHash": null,
|
|
16
|
+
"rulesVersion": null,
|
|
17
|
+
"sessionHash": "b601df6c7ab8c95836c9aa408671dade9f8500578f3b99ff004a48d719d630b4",
|
|
18
|
+
"reportRef": null,
|
|
19
|
+
"events": [],
|
|
20
|
+
"observedFindingIds": [],
|
|
21
|
+
"verifiedFiles": [],
|
|
22
|
+
"recordedAt": "2026-09-02T01:46:45.535Z"
|
|
23
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"touched":["/Users/Administrator/eightlabs/newapi/src/newapi/__init__.py","/Users/Administrator/eightlabs/newapi/src/newapi/_client.py"],"bashMutation":true,"reportedFindings":["mimosa-66b5d60954ca90ad7e673501"],"findingEvents":[{"finding_id":"mimosa-66b5d60954ca90ad7e673501","file":"../../../../tmp/live_test_newapi.py","line":24,"rule_id":"security","severity":"high","category":"硬编码凭据","evidence":{"type":"static_observation","line_hash":"655080fc4deb5d7ba132e4dfa5eeff0e63181ed39fbd3b9c4a74fd5f35f100c8","source":"semgrep"},"status":"blocked","decision":"deny","at":"2026-09-02T01:46:45.217Z"},{"finding_id":"mimosa-66b5d60954ca90ad7e673501","file":"../../../../tmp/live_test_newapi.py","line":24,"rule_id":"security","severity":"high","category":"硬编码凭据","evidence":{"type":"static_observation","line_hash":"655080fc4deb5d7ba132e4dfa5eeff0e63181ed39fbd3b9c4a74fd5f35f100c8","source":"semgrep","candidate_before_line_hash":"655080fc4deb5d7ba132e4dfa5eeff0e63181ed39fbd3b9c4a74fd5f35f100c8","post_change_line_hash_at_previous_location":"67d27e371a21402ee7ba4fe1136e7650c84740034f83bec4ec36d2baf6964c0f","verification":{"method":"mimosa-posttool-static-rescan","finding_absent":true,"runtime_oracle":false}},"status":"fixed_candidate","decision":"repair_observed","at":"2026-09-02T01:46:59.695Z"},{"finding_id":"mimosa-66b5d60954ca90ad7e673501","file":"../../../../tmp/live_test_newapi.py","line":24,"rule_id":"security","severity":"high","category":"硬编码凭据","evidence":{"type":"static_observation","line_hash":"655080fc4deb5d7ba132e4dfa5eeff0e63181ed39fbd3b9c4a74fd5f35f100c8","source":"semgrep","candidate_before_line_hash":"655080fc4deb5d7ba132e4dfa5eeff0e63181ed39fbd3b9c4a74fd5f35f100c8","post_change_line_hash_at_previous_location":"67d27e371a21402ee7ba4fe1136e7650c84740034f83bec4ec36d2baf6964c0f","verification":{"method":"mimosa-posttool-static-rescan","finding_absent":true,"runtime_oracle":false}},"status":"static_verified","decision":"static_rescan_passed","at":"2026-09-02T01:46:59.695Z"}],"baseline":{"storageId":"mtjfq1ha-24876-f1aebcd4dc","createdAt":"2026-09-02T01:46:04.414Z","files":{"src/newapi/__init__.py":{"existed":true,"snapshot":"2c0a3ea4b52b71cebbbb4c27ee4939eeecbb634105d6a4ad0b51984b9dbfa04b.source"},"src/newapi/_client.py":{"existed":true,"snapshot":"1252fc55de5f372ed4dcbb82a75b61002c7dfd9076f095c21e54449336bf6ba8.source"}},"complete":false,"candidateLimit":5000,"discoveredFiles":0,"capturedFiles":2,"truncated":false,"omittedAtLeast":0,"firstOmitted":"","errors":[{"stage":"baseline-capture","target":".","reason":"global task baseline was unavailable; captured only the touched file"},{"stage":"baseline-snapshot","target":"../../../../tmp/live_test_newapi.py","reason":"file is outside project"},{"stage":"baseline-snapshot","target":"../../../../tmp/live_test_newapi.py","reason":"file is outside project"},{"stage":"baseline-snapshot","target":"../../../../tmp/live_test_newapi.py","reason":"file is outside project"},{"stage":"baseline-snapshot","target":"../../../../tmp/live_test_newapi.py","reason":"file is outside project"}]},"stateErrors":[],"omittedReportedFindings":0,"omittedFindingEvents":0,"processing":null,"updatedAt":"2026-09-02T01:47:47.717Z"}
|