@aiti-ai/aiti-feedback 0.1.1 → 0.1.3

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/AGENTS.md CHANGED
@@ -3,7 +3,7 @@
3
3
  ## 形态
4
4
  - 纯客户端扩展:toolbar「报告问题」按钮 → 弹窗(表单 + 脱敏预览)→ GitHub 预填 issue
5
5
  - 无服务端 API、无数据目录、零 token——用户自己登录 GitHub 提交
6
- - 方案:pi-work `docs/aiti-feedback-plan.md`
6
+ - 方案:workspace-tools `docs/aiti-feedback-plan.md`
7
7
 
8
8
  ## 小改现场流程
9
9
  1. 改 `src/`(client/src)
package/README.md CHANGED
@@ -13,4 +13,4 @@ you log into GitHub yourself and just hit Submit. Zero tokens, zero server.
13
13
  - The full text always lands in your clipboard as a fallback when GitHub
14
14
  truncates the prefilled body.
15
15
 
16
- Plan: internal `aiti-feedback-plan.md` (pi-work docs).
16
+ Plan: internal `aiti-feedback-plan.md` (workspace-tools docs).
package/README.zh-CN.md CHANGED
@@ -10,4 +10,4 @@
10
10
  - 会话内容**永不自动读取**;提供自愿粘贴框(同样脱敏)
11
11
  - GitHub 预填超长时自动截断,全文始终写入剪贴板兜底
12
12
 
13
- 方案:内部 `aiti-feedback-plan.md`(pi-work docs)。
13
+ 方案:内部 `aiti-feedback-plan.md`(workspace-tools docs)。
package/index.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  *
5
5
  * No server API; zero tokens — the user logs into GitHub themselves and
6
6
  * submits; the dialog preview IS the final content (sanitized, user-confirmed
7
- * before redirect). Plan: pi-work docs/aiti-feedback-plan.md.
7
+ * before redirect). Plan: workspace-tools docs/aiti-feedback-plan.md.
8
8
  */
9
9
  export default {
10
10
  id: "aiti-feedback",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aiti-ai/aiti-feedback",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "type": "module",
5
5
  "description": "User feedback — compose a sanitized report and open a prefilled GitHub issue",
6
6
  "displayNameI18n": {
@@ -28,5 +28,8 @@
28
28
  "bugs": {
29
29
  "url": "https://github.com/aiti-ai/aiti-ai/issues"
30
30
  },
31
- "contentHash": "ed6f3fd0cf2e515f"
31
+ "contentHash": "71b28baf44db6abe",
32
+ "dependencies": {
33
+ "@aiti-ai/ext-shared": "^0.1.22"
34
+ }
32
35
  }
package/tools/deploy.mjs CHANGED
@@ -13,12 +13,11 @@ import { resolve } from "node:path";
13
13
  import { fileURLToPath } from "node:url";
14
14
  import { homedir } from "node:os";
15
15
  import { execSync } from "node:child_process";
16
- import { deployCommit } from "../../_shared/deploy-commit.mjs";
17
- import { copyIcons } from "../../_shared/ext-icons-deploy.mjs";
16
+ import { deployCommit } from "@aiti-ai/ext-shared/deploy-commit";
18
17
 
19
18
  // client TS residue check (.mjs hides bad TS syntax from syntax checks; it explodes at runtime)
20
19
  {
21
- const { checkClientDir } = await import("../../_shared/check-client.mjs");
20
+ const { checkClientDir } = await import("@aiti-ai/ext-shared/check-client");
22
21
  checkClientDir(fileURLToPath(new URL("../client", import.meta.url)), { log: (m) => console.log("[deploy] " + m) });
23
22
  }
24
23
 
@@ -49,14 +48,13 @@ for (const extDir of targets) {
49
48
  console.log("[deploy] client → " + resolve(clientDir, "aiti-feedback-client.mjs"));
50
49
  }
51
50
 
52
- for (const t of targets) copyIcons(resolve(t, "icons"), ["discussion", "message-square-text", "message-circle"], { log: (m) => console.log(m) });
53
51
 
54
52
  deployCommit({ repo: extRepo, name: "aiti-feedback", paths: ["aiti-feedback"], ident: true, log: (m) => console.log("[deploy] " + m) });
55
53
 
56
54
  console.log("[deploy] done. Reload via POST /api/extensions/reload; client refreshes on page reload");
57
55
 
58
56
  try {
59
- const { reloadInstances } = await import("../../_shared/reload-instances.mjs");
57
+ const { reloadInstances } = await import("@aiti-ai/ext-shared/reload-instances");
60
58
  await reloadInstances();
61
59
  } catch (e) {
62
60
  console.log("[deploy] auto reload skipped (" + String((e && e.message) || e) + ")");
@@ -1 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M14 9a2 2 0 0 1-2 2H6l-4 4V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2z"/><path d="M18 9h2a2 2 0 0 1 2 2v11l-4-4h-6a2 2 0 0 1-2-2v-1"/></svg>
@@ -1 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M7.9 20A9 9 0 1 0 4 16.1L2 22Z"/></svg>
@@ -1 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"/><path d="M13 8H7"/><path d="M17 12H7"/></svg>