Skip to content

Conversation

Copy link

Copilot AI commented Nov 23, 2025

SCQL 1.0.0b1 changed the Broker API response format for query results. The Tensor type previously used separate fields (string_data, int_data, float_data, etc.) but now returns all data in a nested ss field.

Changes

Response parsing

  • Updated Tensor type definition to include new ss: {ss: string[]} field
  • Modified getRow() to check new format first, fall back to legacy fields for backwards compatibility
  • Made status optional and added annotation field per new schema
// New format check (SCQL >= 1.0.0b1)
const ssData = row.ss?.ss;
if (ssData && ssData.length) {
  return ssData;
}

// Legacy format fallback (SCQL < 1.0.0b1)
['int32_data', 'int64_data', 'float_data', 'double_data', 'bool_data', 'string_data'].forEach((k) => {
  if (row[k] && row[k].length) res = row[k];
});

Documentation

  • Updated all API references from 0.5.0b2/0.9.0b1 to 1.0.0b1
  • Added version compatibility notices in README, SCQL-INTRO.md, and welcome.md
  • Updated Python broker manager comments with new response format examples

Response format maintains backwards compatibility with pre-1.0.0b1 SCQL deployments.

Original prompt

This section details on the original issue you should resolve

<issue_title>[Feature Request] 适配 scql 1.0.0b1 版本</issue_title>
<issue_description>secretnote 和最新的 scql 版本存在兼容问题,需要改进 secretnote 让其适配最新的 scql 1.0.0b1 版本 ,并在 readme 等文档里里标注好对应的适配版本,避免用户遇到版本兼容问题。</issue_description>

Comments on the Issue (you are @copilot in this section)


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

@changeset-bot
Copy link

changeset-bot bot commented Nov 23, 2025

⚠️ No Changeset found

Latest commit: e7a1078

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copilot AI and others added 2 commits November 23, 2025 14:18
Co-authored-by: tongke6 <124763920+tongke6@users.noreply.github.com>
Co-authored-by: tongke6 <124763920+tongke6@users.noreply.github.com>
Copilot AI changed the title [WIP] Improve secretnote compatibility with scql 1.0.0b1 Adapt SecretNote to SCQL 1.0.0b1 API changes Nov 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature Request] 适配 scql 1.0.0b1 版本

2 participants