hap-cli 0.9.14__tar.gz → 0.9.15__tar.gz

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 (213) hide show
  1. {hap_cli-0.9.14 → hap_cli-0.9.15}/PKG-INFO +1 -1
  2. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/__init__.py +1 -1
  3. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/commands/calendar_cmd.py +4 -4
  4. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/commands/record_cmd.py +4 -3
  5. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/core/chat.py +44 -4
  6. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/guide/en/record.md +4 -3
  7. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/guide/zh-Hans/record.md +3 -2
  8. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/locale/messages.json +4 -4
  9. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli.egg-info/PKG-INFO +1 -1
  10. {hap_cli-0.9.14 → hap_cli-0.9.15}/MANIFEST.in +0 -0
  11. {hap_cli-0.9.14 → hap_cli-0.9.15}/README.md +0 -0
  12. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/README.md +0 -0
  13. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/README_CN.md +0 -0
  14. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/__main__.py +0 -0
  15. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/_entry.py +0 -0
  16. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/commands/__init__.py +0 -0
  17. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/commands/app_cmd.py +0 -0
  18. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/commands/app_creator_cmd.py +0 -0
  19. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/commands/app_editor_cmd.py +0 -0
  20. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/commands/attachment_cmd.py +0 -0
  21. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/commands/auth_cmd.py +0 -0
  22. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/commands/chart_cmd.py +0 -0
  23. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/commands/chat_cmd.py +0 -0
  24. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/commands/chatbot_cmd.py +0 -0
  25. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/commands/config_cmd.py +0 -0
  26. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/commands/contact_cmd.py +0 -0
  27. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/commands/department_cmd.py +0 -0
  28. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/commands/group_cmd.py +0 -0
  29. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/commands/guide_cmd.py +0 -0
  30. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/commands/icon_cmd.py +0 -0
  31. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/commands/instance_cmd.py +0 -0
  32. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/commands/node_cmd.py +0 -0
  33. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/commands/optionset_cmd.py +0 -0
  34. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/commands/page_cmd.py +0 -0
  35. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/commands/post_cmd.py +0 -0
  36. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/commands/region_cmd.py +0 -0
  37. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/commands/role_cmd.py +0 -0
  38. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/commands/update_cmd.py +0 -0
  39. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/commands/upload_cmd.py +0 -0
  40. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/commands/v3_registry.py +0 -0
  41. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/commands/workflow_cmd.py +0 -0
  42. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/commands/worksheet_cmd.py +0 -0
  43. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/context.py +0 -0
  44. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/core/__init__.py +0 -0
  45. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/core/action_spec_adapter.py +0 -0
  46. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/core/app.py +0 -0
  47. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/core/app_creator/__init__.py +0 -0
  48. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/core/app_creator/_hapmeta/__init__.py +0 -0
  49. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/core/app_creator/_hapmeta/control_type_codes.py +0 -0
  50. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/core/app_creator/_hapmeta/worksheet_templates.py +0 -0
  51. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/core/app_creator/charts.py +0 -0
  52. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/core/app_creator/cleanup.py +0 -0
  53. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/core/app_creator/compiler.py +0 -0
  54. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/core/app_creator/config.py +0 -0
  55. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/core/app_creator/design/design.schema.json +0 -0
  56. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/core/app_creator/errors.py +0 -0
  57. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/core/app_creator/examples/minimal.design.json +0 -0
  58. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/core/app_creator/executor.py +0 -0
  59. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/core/app_creator/fields.py +0 -0
  60. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/core/app_creator/hap.py +0 -0
  61. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/core/app_creator/merge.py +0 -0
  62. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/core/app_creator/recording/__init__.py +0 -0
  63. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/core/app_creator/recording/console.py +0 -0
  64. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/core/app_creator/recording/jsonl.py +0 -0
  65. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/core/app_creator/recording/mirror.py +0 -0
  66. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/core/app_creator/recording/report.py +0 -0
  67. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/core/app_creator/schema.py +0 -0
  68. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/core/app_creator/seed/INSTRUCTIONS.md +0 -0
  69. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/core/app_creator/seed/__init__.py +0 -0
  70. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/core/app_creator/seed/cli.py +0 -0
  71. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/core/app_creator/seed/executor.py +0 -0
  72. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/core/app_creator/seed/resources/attachments.json +0 -0
  73. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/core/app_creator/seed/resources/sample.docx +0 -0
  74. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/core/app_creator/seed/resources/sample.pdf +0 -0
  75. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/core/app_creator/seed/resources/sample_images.json +0 -0
  76. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/core/app_creator/seed/template.py +0 -0
  77. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/core/app_creator/selftest.py +0 -0
  78. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/core/app_creator/smoke.py +0 -0
  79. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/core/app_creator/steps.py +0 -0
  80. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/core/app_creator/store.py +0 -0
  81. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/core/app_creator/validate.py +0 -0
  82. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/core/app_creator/workflow_dsl.py +0 -0
  83. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/core/attachment.py +0 -0
  84. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/core/auth.py +0 -0
  85. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/core/calendar_mod.py +0 -0
  86. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/core/chart.py +0 -0
  87. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/core/chatbot.py +0 -0
  88. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/core/cli_access.py +0 -0
  89. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/core/condition_dsl.py +0 -0
  90. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/core/contact.py +0 -0
  91. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/core/control_type_codes.py +0 -0
  92. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/core/department.py +0 -0
  93. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/core/editor/__init__.py +0 -0
  94. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/core/editor/_hapmeta/__init__.py +0 -0
  95. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/core/editor/_hapmeta/control_type_codes.py +0 -0
  96. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/core/editor/apply.py +0 -0
  97. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/core/editor/componentlower.py +0 -0
  98. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/core/editor/editspec/component.schema.json +0 -0
  99. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/core/editor/editspec/custom-action.schema.json +0 -0
  100. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/core/editor/editspec/envelope.schema.json +0 -0
  101. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/core/editor/editspec/field.schema.json +0 -0
  102. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/core/editor/editspec.py +0 -0
  103. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/core/editor/errors.py +0 -0
  104. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/core/editor/fieldlower.py +0 -0
  105. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/core/editor/jsonschema_mini.py +0 -0
  106. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/core/editor/models.py +0 -0
  107. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/core/editor/ops.py +0 -0
  108. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/core/editor/planner.py +0 -0
  109. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/core/editor/reader.py +0 -0
  110. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/core/field_normalizer.py +0 -0
  111. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/core/field_spec_adapter.py +0 -0
  112. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/core/filter_translator.py +0 -0
  113. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/core/filter_v3.py +0 -0
  114. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/core/flow_node.py +0 -0
  115. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/core/global_meta.py +0 -0
  116. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/core/group.py +0 -0
  117. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/core/guide.py +0 -0
  118. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/core/icon_index.py +0 -0
  119. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/core/instance.py +0 -0
  120. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/core/layout_check.py +0 -0
  121. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/core/logger.py +0 -0
  122. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/core/optionset.py +0 -0
  123. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/core/page.py +0 -0
  124. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/core/post.py +0 -0
  125. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/core/record.py +0 -0
  126. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/core/record_defaults.py +0 -0
  127. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/core/record_discussions.py +0 -0
  128. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/core/record_form_checks.py +0 -0
  129. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/core/record_lookups.py +0 -0
  130. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/core/record_rules.py +0 -0
  131. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/core/relation_scope.py +0 -0
  132. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/core/relogin.py +0 -0
  133. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/core/response_crypto.py +0 -0
  134. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/core/role.py +0 -0
  135. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/core/role_perm_builder.py +0 -0
  136. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/core/rule_spec_adapter.py +0 -0
  137. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/core/session.py +0 -0
  138. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/core/token_crypto.py +0 -0
  139. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/core/update.py +0 -0
  140. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/core/upload.py +0 -0
  141. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/core/v3/__init__.py +0 -0
  142. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/core/v3/dispatcher.py +0 -0
  143. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/core/v3/render.py +0 -0
  144. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/core/v3/schema.py +0 -0
  145. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/core/view_spec_adapter.py +0 -0
  146. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/core/workflow.py +0 -0
  147. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/core/workflow_node_dsl.py +0 -0
  148. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/core/worksheet.py +0 -0
  149. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/core/worksheet_form.py +0 -0
  150. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/core/worksheet_reference.py +0 -0
  151. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/core/worksheet_templates.py +0 -0
  152. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/guide/en/approval.md +0 -0
  153. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/guide/en/chart.md +0 -0
  154. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/guide/en/messages.md +0 -0
  155. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/guide/en/overview.md +0 -0
  156. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/guide/en/post.md +0 -0
  157. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/guide/en/setup.md +0 -0
  158. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/guide/en/skills.md +0 -0
  159. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/guide/en/workflow.md +0 -0
  160. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/guide/en/worksheet.md +0 -0
  161. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/guide/index.json +0 -0
  162. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/guide/zh-Hans/approval.md +0 -0
  163. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/guide/zh-Hans/chart.md +0 -0
  164. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/guide/zh-Hans/messages.md +0 -0
  165. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/guide/zh-Hans/overview.md +0 -0
  166. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/guide/zh-Hans/post.md +0 -0
  167. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/guide/zh-Hans/setup.md +0 -0
  168. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/guide/zh-Hans/skills.md +0 -0
  169. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/guide/zh-Hans/workflow.md +0 -0
  170. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/guide/zh-Hans/worksheet.md +0 -0
  171. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/i18n.py +0 -0
  172. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/locale/__init__.py +0 -0
  173. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/locale/messages.schema.json +0 -0
  174. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/utils/__init__.py +0 -0
  175. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/utils/atomic_write.py +0 -0
  176. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/utils/confirm.py +0 -0
  177. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/utils/formatting.py +0 -0
  178. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/utils/options.py +0 -0
  179. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli/utils/parameter_mapping.py +0 -0
  180. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli.egg-info/SOURCES.txt +0 -0
  181. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli.egg-info/dependency_links.txt +0 -0
  182. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli.egg-info/entry_points.txt +0 -0
  183. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli.egg-info/requires.txt +0 -0
  184. {hap_cli-0.9.14 → hap_cli-0.9.15}/hap_cli.egg-info/top_level.txt +0 -0
  185. {hap_cli-0.9.14 → hap_cli-0.9.15}/setup.cfg +0 -0
  186. {hap_cli-0.9.14 → hap_cli-0.9.15}/setup.py +0 -0
  187. {hap_cli-0.9.14 → hap_cli-0.9.15}/sources/v3-api-schema/INDEX.json +0 -0
  188. {hap_cli-0.9.14 → hap_cli-0.9.15}/sources/v3-api-schema/add_member_to_role.yaml +0 -0
  189. {hap_cli-0.9.14 → hap_cli-0.9.15}/sources/v3-api-schema/batch_delete_records.yaml +0 -0
  190. {hap_cli-0.9.14 → hap_cli-0.9.15}/sources/v3-api-schema/create_optionset.yaml +0 -0
  191. {hap_cli-0.9.14 → hap_cli-0.9.15}/sources/v3-api-schema/create_role.yaml +0 -0
  192. {hap_cli-0.9.14 → hap_cli-0.9.15}/sources/v3-api-schema/delete_optionset.yaml +0 -0
  193. {hap_cli-0.9.14 → hap_cli-0.9.15}/sources/v3-api-schema/delete_record.yaml +0 -0
  194. {hap_cli-0.9.14 → hap_cli-0.9.15}/sources/v3-api-schema/delete_role.yaml +0 -0
  195. {hap_cli-0.9.14 → hap_cli-0.9.15}/sources/v3-api-schema/delete_worksheet.yaml +0 -0
  196. {hap_cli-0.9.14 → hap_cli-0.9.15}/sources/v3-api-schema/get_app_info.yaml +0 -0
  197. {hap_cli-0.9.14 → hap_cli-0.9.15}/sources/v3-api-schema/get_app_knowledge_list.yaml +0 -0
  198. {hap_cli-0.9.14 → hap_cli-0.9.15}/sources/v3-api-schema/get_app_worksheets_list.yaml +0 -0
  199. {hap_cli-0.9.14 → hap_cli-0.9.15}/sources/v3-api-schema/get_optionset_list.yaml +0 -0
  200. {hap_cli-0.9.14 → hap_cli-0.9.15}/sources/v3-api-schema/get_record_details.yaml +0 -0
  201. {hap_cli-0.9.14 → hap_cli-0.9.15}/sources/v3-api-schema/get_record_discussions.yaml +0 -0
  202. {hap_cli-0.9.14 → hap_cli-0.9.15}/sources/v3-api-schema/get_record_list.yaml +0 -0
  203. {hap_cli-0.9.14 → hap_cli-0.9.15}/sources/v3-api-schema/get_record_logs.yaml +0 -0
  204. {hap_cli-0.9.14 → hap_cli-0.9.15}/sources/v3-api-schema/get_record_pivot_data.yaml +0 -0
  205. {hap_cli-0.9.14 → hap_cli-0.9.15}/sources/v3-api-schema/get_record_relations.yaml +0 -0
  206. {hap_cli-0.9.14 → hap_cli-0.9.15}/sources/v3-api-schema/get_record_share_link.yaml +0 -0
  207. {hap_cli-0.9.14 → hap_cli-0.9.15}/sources/v3-api-schema/get_regions.yaml +0 -0
  208. {hap_cli-0.9.14 → hap_cli-0.9.15}/sources/v3-api-schema/get_role_details.yaml +0 -0
  209. {hap_cli-0.9.14 → hap_cli-0.9.15}/sources/v3-api-schema/get_role_list.yaml +0 -0
  210. {hap_cli-0.9.14 → hap_cli-0.9.15}/sources/v3-api-schema/knowledge_search.yaml +0 -0
  211. {hap_cli-0.9.14 → hap_cli-0.9.15}/sources/v3-api-schema/leave_all_roles.yaml +0 -0
  212. {hap_cli-0.9.14 → hap_cli-0.9.15}/sources/v3-api-schema/remove_member_from_role.yaml +0 -0
  213. {hap_cli-0.9.14 → hap_cli-0.9.15}/sources/v3-api-schema/update_optionset.yaml +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: hap-cli
3
- Version: 0.9.14
3
+ Version: 0.9.15
4
4
  Summary: CLI harness for Mingdao HAP - Enterprise no-code platform
5
5
  Author: hap-cli
6
6
  License: Apache-2.0
@@ -3,7 +3,7 @@
3
3
  import sys as _sys
4
4
  import types as _types
5
5
 
6
- __version__ = "0.9.14"
6
+ __version__ = "0.9.15"
7
7
 
8
8
  # The command tree used to live in hap_cli/hap_cli.py. A module named
9
9
  # after the package it sits in shadows that package: run python with the
@@ -565,10 +565,10 @@ def calendar_add_discussion(ctx, calendar_id, message, reply_id, files,
565
565
  """Post a comment on a calendar event.
566
566
 
567
567
  Everyone invited to the event can see the comment. Attached files are
568
- downloadable by every participant. Write the comment as you would say
569
- it — --at-all and --at add the mention themselves, so the people
570
- named are notified. The mention is appended at the end of the
571
- comment.
568
+ downloadable by every participant. To mention someone mid-sentence,
569
+ write user:<accountId> where the mention belongs. --at and --at-all
570
+ add mentions at the end of the comment instead. Either way the
571
+ people named are notified.
572
572
  """
573
573
  try:
574
574
  session = ctx.get_session()
@@ -601,9 +601,10 @@ def record_add_discussion(ctx, worksheet_id, row_id, message, app_id, view_id,
601
601
  at_account_ids):
602
602
  """Add a discussion/comment to a record.
603
603
 
604
- Write the comment as you would say it — --at-all and --at add the
605
- mention themselves, so the people named are notified. The mention is
606
- appended at the end of the comment.
604
+ To mention someone mid-sentence, write user:<accountId> where the
605
+ mention belongs, e.g. -m "Thanks user:<accountId> for checking".
606
+ --at and --at-all add mentions at the end of the comment instead.
607
+ Either way the people named are notified.
607
608
  """
608
609
  try:
609
610
  session = ctx.get_session()
@@ -1288,7 +1288,8 @@ def apply_mentions(
1288
1288
  at_all: bool = False,
1289
1289
  account_ids: Optional[list[str]] = None,
1290
1290
  ) -> str:
1291
- """Put the mention markers at the end of the author's own text.
1291
+ """Write the mention markers into a comment: inline ones in place,
1292
+ ``--at`` / ``--at-all`` ones at the end of the author's own text.
1292
1293
 
1293
1294
  The product drops a mention wherever the writer typed the ``@``, and
1294
1295
  inserts it as ``@<name>`` followed by one space
@@ -1297,14 +1298,53 @@ def apply_mentions(
1297
1298
  should see it — ends with the mention, so that is where the CLI puts
1298
1299
  it, separated by a single space. Leading it instead reads as
1299
1300
  "@everyone Alvin, about that…", which is not how the box behaves.
1301
+
1302
+ A mention can also sit mid-sentence: ``user:<accountId>`` written in
1303
+ the text (the same spelling ``hap post`` uses) becomes the
1304
+ ``[aid]<accountId>[/aid]`` marker right where it was typed, followed
1305
+ by one space as the composer leaves it. Markers already in stored
1306
+ form pass through untouched. Captured from the web record pane
1307
+ 2026-11-27: ``"我 [aid]<id>[/aid] 来看一下"`` — the marker in the
1308
+ middle of the text is how the product itself sends it, and it
1309
+ notifies. People named both inline and via ``account_ids``, and an
1310
+ everyone-mention already in the text, are not appended again.
1300
1311
  """
1301
- markers = build_mention_markers(at_all=at_all, account_ids=account_ids)
1312
+ text = inline_mentions(message or "")
1313
+ present = set(_AID_RE.findall(text))
1314
+ extra_ids = [a for a in (account_ids or []) if a and a not in present]
1315
+ markers = build_mention_markers(
1316
+ at_all=at_all and _AT_ALL_MARKER not in text,
1317
+ account_ids=extra_ids,
1318
+ )
1302
1319
  if not markers:
1303
- return message
1304
- body = (message or "").rstrip()
1320
+ return text
1321
+ body = text.rstrip()
1305
1322
  return f"{body} {markers}" if body else markers
1306
1323
 
1307
1324
 
1325
+ # An inline mention written into a comment: ``user:<accountId>``. Account
1326
+ # ids are UUIDs; requiring that shape keeps ordinary prose such as
1327
+ # "user:admin" from being turned into a mention.
1328
+ _INLINE_MENTION_RE = re.compile(
1329
+ r"(?<![0-9A-Za-z_])user:"
1330
+ r"([0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}"
1331
+ r"-[0-9A-Fa-f]{12})(?![0-9A-Za-z-])"
1332
+ )
1333
+
1334
+
1335
+ def inline_mentions(message: str) -> str:
1336
+ """Rewrite ``user:<accountId>`` in a comment to the ``[aid]`` marker,
1337
+ in place, with one space after it unless whitespace already follows."""
1338
+ text = message or ""
1339
+
1340
+ def _sub(m: "re.Match[str]") -> str:
1341
+ follow = text[m.end():m.end() + 1]
1342
+ sep = "" if not follow or follow.isspace() else " "
1343
+ return f"[aid]{m.group(1)}[/aid]{sep}"
1344
+
1345
+ return _INLINE_MENTION_RE.sub(_sub, text)
1346
+
1347
+
1308
1348
  def _resolve_mentions(
1309
1349
  text: Any,
1310
1350
  users: Any,
@@ -186,9 +186,10 @@ hap worksheet record add-discussion <WS_ID> <ROW_ID> -m "For everyone" --at-all
186
186
  `hap contact search`.
187
187
  - `--at-all` mentions everyone taking part in this record — its members plus
188
188
  anyone who has commented.
189
- - **Write the comment the way you would say it**; the mentions are appended for
190
- you. Typing `@name` into the text yourself is just characters and notifies
191
- nobody.
189
+ - To mention someone **mid-sentence**, write `user:<accountId>` where the
190
+ mention belongs, e.g. `-m "Thanks user:<accountId> for checking"`; it stays in
191
+ place and notifies them. `--at` / `--at-all` append their mentions at the end.
192
+ Typing `@name` into the text yourself is just characters and notifies nobody.
192
193
 
193
194
  Read it back with `hap worksheet record discussions <WS_ID> <ROW_ID>`. The two
194
195
  read back differently: **a named person appears in the returned `mentions`**
@@ -164,8 +164,9 @@ hap worksheet record add-discussion <WS_ID> <ROW_ID> -m "都看一下" --at-all
164
164
 
165
165
  - `--at` 按账号 ID 点名,可重复;账号 ID 用 `hap contact search` 查。
166
166
  - `--at-all` 提及这条记录的全体参与者(记录成员,加上所有参与过讨论的人)。
167
- - **正文照平时说话写就行**,提及会自动补在末尾;在正文里手写 `@某某` 只是几个普通
168
- 汉字,不会真的通知到人。
167
+ - 想在正文**中间** @ 人,就在那个位置写 `user:<账号ID>`,例如
168
+ `-m "我 user:<账号ID> 来看一下"`,提及会留在原处并通知到人。`--at` / `--at-all`
169
+ 则把提及补在末尾。在正文里手写 `@某某` 只是几个普通汉字,不会真的通知到人。
169
170
 
170
171
  回读用 `hap worksheet record discussions <WS_ID> <ROW_ID>`。注意两者回读不一样:
171
172
  **点名的人会出现在返回的 `mentions` 里**(带账号 ID 和姓名),而 `--at-all` 不会
@@ -3172,8 +3172,8 @@
3172
3172
  "zh-Hans": "以 JSON 格式输出"
3173
3173
  },
3174
3174
  "calendar add-discussion": {
3175
- "en": "Post a comment on a calendar event.\n\nEveryone invited to the event can see the comment. Attached files are\ndownloadable by every participant. Write the comment as you would say\nit — --at-all and --at add the mention themselves, so the people\nnamed are notified. The mention is appended at the end of the\ncomment.",
3176
- "zh-Hans": "在日程下发表评论。\n\n受邀参加该日程的人都能看到这条评论,附件所有参与者都可下载。正文照你平时说话的写法写就行 —— --at-all 和 --at 会自行补上提及,被点到的人会收到通知。提及会附在正文末尾。"
3175
+ "en": "Post a comment on a calendar event.\n\nEveryone invited to the event can see the comment. Attached files are\ndownloadable by every participant. To mention someone mid-sentence,\nwrite user:<accountId> where the mention belongs. --at and --at-all\nadd mentions at the end of the comment instead. Either way the\npeople named are notified.",
3176
+ "zh-Hans": "在日程下发表评论。\n\n受邀参加该日程的人都能看到这条评论,附件所有参与者都可下载。想在正文中间提及某人,就在那个位置写 user:<账号ID>。--at 和 --at-all 则把提及补在正文末尾。两种写法被点到的人都会收到通知。"
3177
3177
  },
3178
3178
  "calendar add-discussion --at": {
3179
3179
  "en": "Notify one person by their account ID (repeatable). Find IDs with 'hap contact search'.",
@@ -6404,8 +6404,8 @@
6404
6404
  "zh-Hans": "以 JSON 格式输出"
6405
6405
  },
6406
6406
  "worksheet record add-discussion": {
6407
- "en": "Add a discussion/comment to a record.\n\nWrite the comment as you would say it — --at-all and --at add the\nmention themselves, so the people named are notified. The mention is\nappended at the end of the comment.",
6408
- "zh-Hans": "在记录下发表讨论。\n\n正文照你平时说话的写法写就行 —— --at-all 和 --at 会自行补上提及,被点到的人会收到通知。提及会附在正文末尾。"
6407
+ "en": "Add a discussion/comment to a record.\n\nTo mention someone mid-sentence, write user:<accountId> where the\nmention belongs, e.g. -m \"Thanks user:<accountId> for checking\".\n--at and --at-all add mentions at the end of the comment instead.\nEither way the people named are notified.",
6408
+ "zh-Hans": "在记录下发表讨论。\n\n想在正文中间提及某人,就在那个位置写 user:<账号ID>,例如 -m \"我 user:<账号ID> 来看一下\"。--at 和 --at-all 则把提及补在正文末尾。两种写法被点到的人都会收到通知。"
6409
6409
  },
6410
6410
  "worksheet record add-discussion --app-id": {
6411
6411
  "en": "Application ID (auto-detected from the worksheet if omitted)",
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: hap-cli
3
- Version: 0.9.14
3
+ Version: 0.9.15
4
4
  Summary: CLI harness for Mingdao HAP - Enterprise no-code platform
5
5
  Author: hap-cli
6
6
  License: Apache-2.0
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes