moyan-security-audit 1.0.0 → 1.0.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.md CHANGED
@@ -101,7 +101,7 @@ console.log(result);
101
101
  All audit requests are sent to:
102
102
 
103
103
  ```
104
- POST https://sixu-ai.net.cn/api/v1/audit
104
+ POST https://api.sixu-ai.net.cn/api/v1/audit
105
105
  Authorization: Bearer <MOYAN_API_KEY>
106
106
  Content-Type: application/json
107
107
 
package/dist/audit.js CHANGED
@@ -8,7 +8,7 @@ const axios_1 = __importDefault(require("axios"));
8
8
  const zod_1 = require("zod");
9
9
  const config_1 = require("./config");
10
10
  const utils_1 = require("./utils");
11
- const API_BASE = 'https://sixu-ai.net.cn/api/v1/audit';
11
+ const API_BASE = 'https://api.sixu-ai.net.cn/api/v1/audit';
12
12
  const optionsSchema = zod_1.z.object({
13
13
  code: zod_1.z.string().min(1, 'code must be non-empty'),
14
14
  language: zod_1.z.enum(['sql', 'python', 'javascript', 'typescript', 'java', 'go', 'rust', 'solidity']),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "moyan-security-audit",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Agent-native security audit SDK — audit(code, language, auditLevel) → { audit_id, pmi_score, severity, violations, recommendation }",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",