@apaas-ai/code-sdk-core
Advanced tools
Comparing version 0.1.0-beta.9 to 0.1.0
@@ -26,1 +26,2 @@ import { Builder } from './message'; | ||
export { getReporterCtx } from './credential/nodeClsCtx'; | ||
export { MDXToCardDSL } from './temp_content_transformer'; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.getReporterCtx = exports.callAction = exports.getEnvInfo = exports.message = void 0; | ||
exports.MDXToCardDSL = exports.getReporterCtx = exports.callAction = exports.getEnvInfo = exports.message = void 0; | ||
const message_1 = require("./message"); | ||
@@ -15,2 +15,4 @@ exports.message = { | ||
Object.defineProperty(exports, "getReporterCtx", { enumerable: true, get: function () { return nodeClsCtx_1.getReporterCtx; } }); | ||
var temp_content_transformer_1 = require("./temp_content_transformer"); | ||
Object.defineProperty(exports, "MDXToCardDSL", { enumerable: true, get: function () { return temp_content_transformer_1.MDXToCardDSL; } }); | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@apaas-ai/code-sdk-core", | ||
"version": "0.1.0-beta.9", | ||
"version": "0.1.0", | ||
"description": "Aily Code SDK Core", | ||
@@ -19,5 +19,7 @@ "license": "ISC", | ||
"@types/node": "^18.17.18", | ||
"esbuild": "0.19.7", | ||
"eslint": "^8", | ||
"typescript": "^4", | ||
"vitest": "1.0.4", | ||
"@apaas-ai/content-transformer": "0.1.0-beta.73", | ||
"@apaas-infra/config": "1.0.0" | ||
@@ -27,4 +29,4 @@ }, | ||
"scripts": { | ||
"build": "tsc --project ./tsconfig.build.json", | ||
"build:ci": "tsc --project ./tsconfig.build.json", | ||
"build": "tsc --project ./tsconfig.build.json && node ./scripts/compile-content-transformer.js", | ||
"build:ci": "tsc --project ./tsconfig.build.json && node ./scripts/compile-content-transformer.js", | ||
"lint": "eslint ./src", | ||
@@ -31,0 +33,0 @@ "test": "vitest --run", |
@@ -41,2 +41,17 @@ Aily Code SDK JavaScript | ||
### MDX 转飞书卡片 DSL | ||
```ts | ||
const { MDXToCardDSL } = require('@apaas-ai/code-sdk-core'); | ||
console.log(MDXToCardDSL(`<title style="blue">Title</title> | ||
# 12312 | ||
**ss** | ||
`)); | ||
``` | ||
**限制:** | ||
1. SDK 没有处理图片上传逻辑,如果你的 MDX 的图片语法是直接传的链接,需要自己做一个转换,参考 https://open.larkoffice.com/document/uAjLw4CM/ukzMukzMukzM/feishu-cards/card-components/content-components/image | ||
2. Aily 里流转的人员信息是 aily user id,在飞书里发送需要 lark user id,这一层转换目前无法支持,解法可能是统一用 open_id 解决,涉及到的语法为 <at id='xxx'></at> 和表格的人员列 | ||
## Development | ||
@@ -43,0 +58,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
High entropy strings
Supply chain riskContains high entropy strings. This could be a sign of encrypted data, leaked secrets or obfuscated code.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1115510
114
33039
67
7
11
2