@lark-apaas/coding-miaoda-sandbox-skills 0.1.0-dev.7b2c2ad → 0.1.0-dev.7cbbb20

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.
Files changed (72) hide show
  1. package/miaoda/charts-skill/SKILL.md +1 -1
  2. package/miaoda/creative-to-fullstack/SKILL.md +38 -226
  3. package/miaoda/debug-investigation/SKILL.md +17 -8
  4. package/miaoda/feishu/SKILL.md +4 -4
  5. package/miaoda/forms-skill/SKILL.md +46 -4
  6. package/miaoda/lark-apps-db/SKILL.md +12 -4
  7. package/miaoda/lark-apps-db/references/full-reference.md +13 -4
  8. package/miaoda/lark-apps-ops/SKILL.md +2 -1
  9. package/miaoda/lark-apps-ops/references/lark-apps-export.md +46 -0
  10. package/miaoda/lark-design-prototype/DESIGN.md +603 -0
  11. package/miaoda/lark-design-prototype/SKILL.md +85 -0
  12. package/miaoda/lark-design-prototype/references/assets/card-illustration-library.md +113 -0
  13. package/miaoda/lark-design-prototype/references/case-matching.md +53 -0
  14. package/miaoda/lark-design-prototype/references/cases/conversational-ai-home.md +27 -0
  15. package/miaoda/lark-design-prototype/references/cases/data-table.md +30 -0
  16. package/miaoda/lark-design-prototype/references/cases/official-home.md +26 -0
  17. package/miaoda/lark-design-prototype/references/cases/workspace-home.md +34 -0
  18. package/miaoda/lark-design-prototype/references/color-roles.md +163 -0
  19. package/miaoda/lark-design-prototype/references/component-selection.md +134 -0
  20. package/miaoda/lark-design-prototype/references/design-quality-checklist.md +156 -0
  21. package/miaoda/lark-design-prototype/references/form-shell-patterns.md +77 -0
  22. package/miaoda/lark-design-prototype/references/icon-semantics.md +237 -0
  23. package/miaoda/lark-design-prototype/references/layout-interaction.md +164 -0
  24. package/miaoda/lark-design-prototype/references/page-contract.md +281 -0
  25. package/miaoda/lark-design-prototype/references/product-patterns.md +93 -0
  26. package/miaoda/lark-design-prototype/references/prompt-expansion.md +107 -0
  27. package/miaoda/lark-design-prototype/references/restoration-traps.md +113 -0
  28. package/miaoda/lark-design-prototype/references/token-semantics.md +112 -0
  29. package/miaoda/lark-design-prototype/references/visual-brief.md +125 -0
  30. package/miaoda/lark-design-prototype/references/visual-style-prompts.md +61 -0
  31. package/miaoda/lark-design-prototype/scripts/icon-query.mjs +272 -0
  32. package/miaoda/lark-design-prototype/scripts/token-query.mjs +76 -0
  33. package/miaoda/lark-design-prototype/scripts/verify-static-html.mjs +117 -0
  34. package/miaoda/miaoda-sql/SKILL.md +6 -0
  35. package/miaoda/performance-review/SKILL.md +3 -3
  36. package/miaoda/testing-guide/SKILL.md +114 -13
  37. package/miaoda-modern/charts-skill/SKILL.md +1 -1
  38. package/miaoda-modern/debug-investigation/SKILL.md +1 -1
  39. package/miaoda-modern/forms-skill/SKILL.md +70 -7
  40. package/miaoda-modern/lark-apps-ops/SKILL.md +2 -1
  41. package/miaoda-modern/lark-apps-ops/references/lark-apps-export.md +46 -0
  42. package/miaoda-modern/lark-design-prototype/DESIGN.md +603 -0
  43. package/miaoda-modern/lark-design-prototype/SKILL.md +85 -0
  44. package/miaoda-modern/lark-design-prototype/references/assets/card-illustration-library.md +113 -0
  45. package/miaoda-modern/lark-design-prototype/references/case-matching.md +53 -0
  46. package/miaoda-modern/lark-design-prototype/references/cases/conversational-ai-home.md +27 -0
  47. package/miaoda-modern/lark-design-prototype/references/cases/data-table.md +30 -0
  48. package/miaoda-modern/lark-design-prototype/references/cases/official-home.md +26 -0
  49. package/miaoda-modern/lark-design-prototype/references/cases/workspace-home.md +34 -0
  50. package/miaoda-modern/lark-design-prototype/references/color-roles.md +163 -0
  51. package/miaoda-modern/lark-design-prototype/references/component-selection.md +134 -0
  52. package/miaoda-modern/lark-design-prototype/references/design-quality-checklist.md +156 -0
  53. package/miaoda-modern/lark-design-prototype/references/form-shell-patterns.md +77 -0
  54. package/miaoda-modern/lark-design-prototype/references/icon-semantics.md +237 -0
  55. package/miaoda-modern/lark-design-prototype/references/layout-interaction.md +164 -0
  56. package/miaoda-modern/lark-design-prototype/references/page-contract.md +281 -0
  57. package/miaoda-modern/lark-design-prototype/references/product-patterns.md +93 -0
  58. package/miaoda-modern/lark-design-prototype/references/prompt-expansion.md +107 -0
  59. package/miaoda-modern/lark-design-prototype/references/restoration-traps.md +113 -0
  60. package/miaoda-modern/lark-design-prototype/references/token-semantics.md +112 -0
  61. package/miaoda-modern/lark-design-prototype/references/visual-brief.md +125 -0
  62. package/miaoda-modern/lark-design-prototype/references/visual-style-prompts.md +61 -0
  63. package/miaoda-modern/lark-design-prototype/scripts/icon-query.mjs +272 -0
  64. package/miaoda-modern/lark-design-prototype/scripts/token-query.mjs +76 -0
  65. package/miaoda-modern/lark-design-prototype/scripts/verify-static-html.mjs +117 -0
  66. package/miaoda-modern/performance-review/SKILL.md +3 -3
  67. package/miaoda-modern/reviewer-usage/SKILL.md +2 -0
  68. package/package.json +1 -1
  69. package/shared/attachment/SKILL.md +5 -1
  70. package/miaoda/creative-to-fullstack/references/artifact-signals.md +0 -46
  71. package/miaoda/creative-to-fullstack/references/ui-to-function.md +0 -134
  72. package/miaoda-modern/testing-guide/SKILL.md +0 -221
@@ -0,0 +1,46 @@
1
+ # apps +export
2
+
3
+ 把妙搭应用的源码打成 zip 下载到本地。运行时命令事实以 `lark-cli apps +export --help` 为准。只读操作。
4
+
5
+ ## 何时用
6
+
7
+ 只要一份源码快照的场景:读代码、审计、归档、做静态分析、把源码喂给别的工具。
8
+
9
+ **跨应用是它的核心价值**:创意应用的分享链接(`/page/<token>`)指向别人的应用,你对那个仓库没有权限,`git clone` 走不通;`+export` 只要求你对该应用有下载权限。
10
+
11
+ ## 不要用它的时候
12
+
13
+ 当前应用要继续开发时不用它——当前应用源码通常已在工作区,直接改。`+export` 只给一个 zip:无 git 历史、无远端、无凭证、不拉环境变量,改完发不回去,只适合「拿一份只读快照」。
14
+
15
+ ## 导出的是「最后一次提交」,不是沙箱当前状态
16
+
17
+ 服务端对远端仓库跑 `git archive`,从不读沙箱文件系统。沙箱里改了文件但没提交或发布,**那些改动不在归档里**。若导出结果看起来"少了刚写的代码",先确认改动是否已提交,而不是重试导出。
18
+
19
+ ## 命令骨架
20
+
21
+ - `--app-id` 与 `--meta-token` **恰传其一**:前者是应用 ID(`$app_id`),后者是分享链接 `/page/<token>` 里的 token。两者作为独立字段走 `POST /apps/export`(`app_id` / `meta_token`),服务端按传入字段区分。
22
+ - 两者都只收**裸标识符**。拿到的是整条链接(`.../app/<app_id>` 或 `.../page/<token>`)时只传最后一段——整条 URL 传进来会被本地拦下并提示,不会变成看起来像"应用不存在"的 404。
23
+ - `--output` 可选,相对当前目录;省略时用服务端给的文件名(通常 `<app_id>.zip`)。
24
+
25
+ ## 示例
26
+
27
+ ```bash
28
+ lark-cli apps +export --app-id "$app_id" --output ./src.zip
29
+ lark-cli apps +export --app-id "$app_id" # 存成 ./<app_id>.zip
30
+ lark-cli apps +export --meta-token <share-token> # 别人分享给你的应用
31
+ lark-cli apps +export --app-id "$app_id" --dry-run
32
+ ```
33
+
34
+ ## 输出契约
35
+
36
+ - 成功时 stdout 是 JSON envelope,含 `output`(落盘的绝对路径)与 `size_bytes`;传了 `--app-id` 时还会回显 `app_id`。
37
+ - 归档以流式写盘,不会整包驻留内存,大仓库也安全。
38
+ - 失败时不会留下半个文件。
39
+
40
+ ## 错误处理
41
+
42
+ | 情况 | 怎么办 |
43
+ |---|---|
44
+ | 应用尚未发布(`code 40901 app not published`) | 该应用是产物托管形态(如静态 HTML 应用),导出的是「最新已发布产物」,而它还没有成功发布过版本,此刻没有可导的东西。**先发布应用再重试**——不是 app_id 写错,重试也没用 |
45
+ | 权限不足(403) | 需要该应用的下载权限。**持有分享 token 不等于有权限** |
46
+ | 应用不存在(404) | 核对 `--app-id` / `--meta-token` 传的是不是对应的裸标识符(不是整条 URL) |