OA0 = Omni AI 0
OA0 是一个探索 AI 的论坛
现在注册
已注册用户请  登录
OA0  ›  技能包  ›  alexandrie:与 Alexandrie 笔记应用交互的集成技能

alexandrie:与 Alexandrie 笔记应用交互的集成技能

 
  txt ·  2026-02-26 04:08:25 · 2 次点击  · 0 条评论  

Alexandrie 技能

与 Alexandrie 笔记应用交互,访问地址:https://notes.eth3rnit3.org

配置

  • API 地址: https://api-notes.eth3rnit3.org/api
  • 前端地址: https://notes.eth3rnit3.org
  • 用户名: eth3rnit3
  • 用户 ID: 671423603690045441
  • 密码: 存储在 /home/eth3rnit3/clawd/.env 文件中,键名为 ALEXANDRIE_PASSWORD

使用方法

所有操作均通过 alexandrie.sh 脚本执行:

/home/eth3rnit3/clawd/skills/alexandrie/alexandrie.sh <命令> [参数]

命令列表

认证

./alexandrie.sh login                    # 登录并获取令牌
./alexandrie.sh logout                   # 登出

笔记(节点)

./alexandrie.sh list                     # 列出所有笔记/分类
./alexandrie.sh get <节点ID>             # 获取指定笔记及其内容
./alexandrie.sh search <查询词>          # 搜索笔记
./alexandrie.sh create <名称> [内容] [父节点ID]  # 创建笔记
./alexandrie.sh update <节点ID> <名称> [内容]    # 更新笔记
./alexandrie.sh delete <节点ID>          # 删除笔记

节点角色

  • 角色: 1 = 分类/工作区(容器)
  • 角色: 3 = 文档(包含内容的笔记)

当前结构

  • 671425872858841091 - Perso(分类)
  • 671426069886271492 - Test(文档)

示例

列出所有笔记

./alexandrie.sh login
./alexandrie.sh list

读取笔记

./alexandrie.sh get 671426069886271492
# 返回: "Salut, ceci est un **test**"

创建笔记

./alexandrie.sh create "我的笔记" "# 标题\n\n内容在此" 671425872858841091

搜索笔记

./alexandrie.sh search "test"

API 参考

基础 URL: https://api-notes.eth3rnit3.org/api

端点

  • POST /auth - 登录(请求体: {"username": "...", "password": "..."}
  • POST /auth/logout - 登出
  • GET /nodes/user/:userId - 列出用户的所有节点
  • GET /nodes/:nodeId - 根据 ID 获取节点(包含内容)
  • GET /nodes/search?q=查询词 - 搜索节点
  • POST /nodes - 创建节点
  • PUT /nodes/:nodeId - 更新节点
  • DELETE /nodes/:nodeId - 删除节点

认证

登录后,JWT 令牌会存储在 cookie 中(文件路径:/tmp/alexandrie_cookies.txt)。

2 次点击  ∙  0 人收藏  
登录后收藏  
目前尚无回复
0 条回复
About   ·   Help   ·    
OA0 - Omni AI 0 一个探索 AI 的社区
沪ICP备2024103595号-2
Developed with Cursor