Skip to content

fix(function): align types between types package and runner-sdk - #6964

Merged
TBonnin merged 2 commits into
masterfrom
tbonnin/nan-6037/function-align-types
Aug 3, 2026
Merged

fix(function): align types between types package and runner-sdk#6964
TBonnin merged 2 commits into
masterfrom
tbonnin/nan-6037/function-align-types

Conversation

@TBonnin

@TBonnin TBonnin commented Jul 30, 2026

Copy link
Copy Markdown
Collaborator

This commit consolidates and align the types between runner-sdk and the types packages

Review in cubic

@TBonnin
TBonnin requested review from a team and kaposke July 30, 2026 15:26
@linear-code

linear-code Bot commented Jul 30, 2026

Copy link
Copy Markdown

NAN-6037

@TBonnin
TBonnin force-pushed the tbonnin/nan-6037/function-align-types branch from 750f6f1 to c4076d1 Compare July 30, 2026 15:31
requires: { connection: true, outbound: true, invoke: false },
capabilities: { usesRecords: false, usesOutbound: true, usesCheckpoints: false, usesMetadata: false, usesInvoke: false },
limits: { concurrency: { perConnection: 'max' } },
input_schema_ref: '#/definitions/FunctionInput_github_fetchIssues',

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was thinking storing the full reference into the json schema instead of just the name to make it more explicit. wdyt @kaposke ?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's a great idea actually.

@TBonnin
TBonnin force-pushed the tbonnin/nan-6037/function-align-types branch from c4076d1 to b5bc733 Compare July 31, 2026 08:35
requires: { connection: true, outbound: true, invoke: false },
capabilities: { usesRecords: false, usesOutbound: true, usesCheckpoints: false, usesMetadata: false, usesInvoke: false },
limits: { concurrency: { perConnection: 'max' } },
input_schema_ref: '#/definitions/FunctionInput_github_fetchIssues',

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's a great idea actually.

limits,
input_schema_ref: toSchemaRef(inputName),
output_schema_ref: toSchemaRef(outputName),
model_schema_refs: models ? Object.keys(models).map((name) => `#/definitions/${name}`) : [],

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit

Suggested change
model_schema_refs: models ? Object.keys(models).map((name) => `#/definitions/${name}`) : [],
model_schema_refs: models ? Object.keys(models).map(toSchemaRef) : [],

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 11 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Re-trigger cubic

Base automatically changed from tbonnin/nan-6037/function-db-models to master August 3, 2026 08:00
@TBonnin
TBonnin force-pushed the tbonnin/nan-6037/function-align-types branch from b0b8847 to 2963ab6 Compare August 3, 2026 09:32
@TBonnin
TBonnin requested a review from a team August 3, 2026 09:33
@TBonnin
TBonnin added this pull request to the merge queue Aug 3, 2026
Merged via the queue into master with commit e55e76e Aug 3, 2026
37 checks passed
@TBonnin
TBonnin deleted the tbonnin/nan-6037/function-align-types branch August 3, 2026 10:07
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.

3 participants