@tonysbb/magpie-notion 1.0.6 → 1.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # magpie-notion
2
2
 
3
- 版本:1.0.6
3
+ 版本:1.0.7
4
4
 
5
5
  `magpie-notion` 是一个把 Notion AI 接入 Magpie / OpenCode 的非官方插件。它使用
6
6
  Notion 网页客户端所调用的内部接口,不是 Notion 的公开 Integration API;Notion
@@ -20,6 +20,8 @@ Notion 网页客户端所调用的内部接口,不是 Notion 的公开 Integra
20
20
  - 每段对话都会在 Notion AI 聊天记录中留下一个线程。系统提示发生变化、切换模型或
21
21
  reasoning effort,或插件进程重启后,后续对话可能会新建线程,而不是继续原来的
22
22
  线程;插件会把有界近期上下文重新发送到新线程。
23
+ - 插件创建的 Notion 线程会自动批准 Notion 内置工具操作,不再等待网页端人工确认;
24
+ 联网和文件下载仍由插件禁用。
23
25
 
24
26
  插件图标使用 Notion 官方黑白 N 方块标志,源文件保存在 `notion.svg`,
25
27
  并内嵌到包元数据里。名称与标志属于 Notion;本项目是非官方插件。
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tonysbb/magpie-notion",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "description": "Magpie / OpenCode 的 Notion AI 插件:登录时只粘贴自己的 token_v2,工作区自动发现。",
5
5
  "type": "module",
6
6
  "main": "./index.mjs",
package/protocol.mjs CHANGED
@@ -752,7 +752,7 @@ export default {
752
752
  type: "personal_agent", spaceId: account.spaceId, threadId,
753
753
  model: chat.model, ...(effort !== undefined ? { reasoningEffort: effort } : {}),
754
754
  createdSource: "full_page_chat", content: content(plan.text),
755
- policies: { approval_mode: "ask", disable_internet_access: true, disable_computer_file_downloads: true },
755
+ policies: { approval_mode: "never", disable_internet_access: true, disable_computer_file_downloads: true },
756
756
  agentMemorySettings: { useMemories: false, excludeChatFromMemories: true },
757
757
  browserEnabled: false, clientMessageId: randomUUID(),
758
758
  }, account, signal)