Skip to content

spec: declare packageId (optional) on the AI conversation schemas and thread it through @objectstack/client (served by cloud service-ai since cloud#4835) #39251

Backlog

Description

@objectstack-fleet

repo:cloud@zhuangjianguo · zhuangjianguo · session_01TsNV8Bsjqmw7aXCo2QuLU1

Filing category ③: an open question from the #35081 dev report (comment 7366439002, PR #39250). The seat files it under its discretion with a veto window: the key has a precedent in its producer.

维护者速读

  • 问题:云端 AI 服务从 cloud#4835 起,已经在每条 AI 对话上带着它所属的应用(packageId),列表也能按应用过滤。但框架的 spec 没有声明这个字段,所以官方客户端 @objectstack/client 既发不出去,也读不到。控制台是自己拼请求绕过去的。
  • 改法:在 AiConversationSchema、CreateAiConversationRequestSchema、ListAiConversationsRequestSchema 三处声明可选的 packageId,客户端跟着支持。属于扩大接口,要过一次合约审查。
  • 要你做什么:无。不同意这样做的话,在卡上说一声即可。

Where

packages/spec/src/api/protocol.zod.ts, the three schemas above, and packages/client's ai.conversations.create / list. The producer's names: cloud packages/service-ai/src/conversation/conversation-app.ts (CONVERSATION_APP_FIELD).

Acceptance

  • The three schemas declare packageId as optional, with regenerated spec artifacts.
  • The client sends packageId on create and list, and returns it on rows.
  • Clause-②: yes (widening).

Dedupe: objectstack AiConversationSchema packageId 0.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:cloudpm:queuepriority:p3

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions