
Security News
The Next Open Source Security Race: Triage at Machine Speed
Claude Opus 4.6 has uncovered more than 500 open source vulnerabilities, raising new considerations for disclosure, triage, and patching at scale.
abstractless
Advanced tools
A headless component designed for creating customized Post-Abstract-AI in Vue.
基于 TianliGPT,参考 Post-Abstract-AI。
$ pnpm i abstractless
<script lang="ts" setup>
import AbstractLess from "abstractless";
const abstractProps = { /* 一些配置 */ };
</script>
<template>
<AbstractLess v-bind="abstractProps" v-slot="{ error, pending, summary, fetchAbstract }">
<!-- 自定义视图结构 -->
</AbstractLess>
</template>
import { useAbstract } from "abstractless";
const abstractOptions = { /* 一些配置 */ };
const { error, pending, summary, fetchAbstract } = useAbstract(abstractOptions);
你也可以直接使用包里封装好的简易组件:
<script lang="ts" setup>
import { AbstractMore } from "abstractless";
const abstractProps = { /* 一些配置 */ };
</script>
<template>
<AbstractMore v-bind="abstractProps"/>
</template>
向 TianliGPT 发送请求,返回摘要。
export declare function useAbstract(options?: UseAbstractOptions): {
error: Ref<Error>,
pending: Ref<boolean>,
summary: Ref<string>,
fetchAbstract: () => void
}
target
Type: MaybeRefOrGetter<HTMLElement | string>
Default: null
文章容器元素或其 CSS 选择器。
content
Type: MaybeRefOrGetter<string>
Default: null
文章内容,优先于 target 属性生效。
waitFor
Type: MaybeRefOrGetter<boolean>
Default: true
当 defer 属性不为 true 时,将在组件挂载后等待此属性为 Truthy 值时延迟发送请求。
defer
Type: boolean
Default: false
如果为 true,则不会在组件挂载完毕后立即发送请求。
timeout
Type: number
Default: 20000
请求超时的时长。
wordLimit
Type: number
Default: 1000
文章提交的字数限制。
tianliKey
Type: number
Required
TianliGPT 的请求密钥。
使用打字特效。
export declare function useTyping(text: MaybeRefOrGetter<string>, options?: UseTypingOptions): {
isTyping: Ref<boolean>,
typedText: Ref<string>,
run: () => void,
stop: () => void
}
speed
Type: number
Default: 40
每秒输出的字数。
punctuation
Type: Regexp
Default: /[,.!?:;,。、!?:;]/
判断是否为标点的正则表达式。
punctuationSpeedMultiplier
Type: number
Default: 6
当最后一个输出的字符被判断为标点时,输出下一个字符的延时倍率。
FAQs
A headless component designed for creating customized Post-Abstract-AI in Vue.
We found that abstractless demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Claude Opus 4.6 has uncovered more than 500 open source vulnerabilities, raising new considerations for disclosure, triage, and patching at scale.

Research
/Security News
Malicious dYdX client packages were published to npm and PyPI after a maintainer compromise, enabling wallet credential theft and remote code execution.

Security News
gem.coop is testing registry-level dependency cooldowns to limit exposure during the brief window when malicious gems are most likely to spread.