Codync
免费开源的 1:1 Grok Bot 与 Muse 替代方案。可在 iPhone、Mac 或 Linux 桌面上将 Claude 代码、Codex、Cursor 以及 40 多个编码代理作为持久机器人使用。支持群组聊天、线程、应用。
AI 翻译
尚未检测到更新。GitHub 发布版本后会显示在这里。
个人 GitHub 账号下公开仓库的所有者可以登录并验证所有权,自行管理介绍,无需管理员批准。
登录并生成验证文件,在 30 分钟内将其提交到此仓库的默认分支。其他分支或分叉仓库中的文件无效。然后在下方检查文件,即可无需管理员批准直接管理项目。请保留文件以维持管理权限。
如需登录,将前往登录页面。登录后请回到此处,再次点击所选的验证按钮。
在项目文件夹中运行 /nomorevibe verify,即可验证所有权并自行管理介绍。
一分钟完成验证制作者的介绍仅有上面的一句话。 更多详情请阅读仓库 README。 仓库 README ↗
正在加载完整 README。
查看完整 README ↗Convert Web Annotation TextQuoteSelectors into
Text Fragment URLs (#:~:text=prefix-,start,end,-suffix), and parse them back.
Zero dependencies; ESM; browser and Node >= 18.
No existing library did this (see apache/incubator-annotator#60, which describes the idea without shipping it).
import { textQuoteToUrl, annotationToUrl, urlToSelectors } from 'annotation-text-fragment';
textQuoteToUrl('https://example.com/a', { type: 'TextQuoteSelector', exact: 'brown fox', prefix: 'quick ', suffix: ' jumps' });
// https://example.com/a#:~:text=quick-,brown%20fox,-jumps
annotationToUrl(annotation); // first target with a TextQuoteSelector, or null
urlToSelectors(url); // text directives -> TextQuoteSelector / RangeSelector
Also exported: textQuoteToDirective(selector) (just the text=... term) and parseTextDirectives(url).
Existing #fragment and :~: directives on the URL are preserved; multiple selectors become &text= terms.
-, , and & are percent-encoded as the spec requires (encodeURIComponent misses -).normalize: false to disable). Lone surrogates are made well-formed.exact/prefix/suffix marks a block boundary, which one term cannot span: exact becomes textStart,textEnd; context is cut at the boundary.exact longer than maxLength (300) becomes start,end using ~edgeLength (50) characters at each end; prefix/suffix are trimmed to maxContext (64).Intl.Segmenter (so CJK/Thai work), with a whitespace fallback. Pass locale as a hint.start,end matches the first end after the first start; keep prefix to disambiguate.urlToSelectors is only an approximation of how the browser would anchor it.'fragmentDirective' in document.npm test runs the tests.