Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@apaas-ai/code-sdk-core

Package Overview
Dependencies
Maintainers
0
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@apaas-ai/code-sdk-core - npm Package Compare versions

Comparing version 0.1.0-beta.9 to 0.1.0

CHANGELOG.md

1

dist/index.d.ts

@@ -26,1 +26,2 @@ import { Builder } from './message';

export { getReporterCtx } from './credential/nodeClsCtx';
export { MDXToCardDSL } from './temp_content_transformer';

4

dist/index.js
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc