Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(projectSecrets): add CRUDL for project secrets #40

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

xjacka
Copy link
Contributor

@xjacka xjacka commented Oct 31, 2024

DO NOT MERGE

@xjacka xjacka marked this pull request as ready for review January 17, 2025 10:42
@xjacka xjacka requested a review from a team as a code owner January 17, 2025 10:42
@xjacka xjacka requested a review from pilartomas January 17, 2025 10:42
Copy link
Contributor

@pilartomas pilartomas left a comment

Choose a reason for hiding this comment

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

Great approach with the tool inputs 👍

import { createPaginatedResponse, getListCursor } from '@/utils/pagination.js';
import { getUpdatedValue } from '@/utils/update.js';

export function toDto(toolSecret: Loaded<ToolSecret, 'tool'>): ToolSecretDto {
Copy link
Contributor

Choose a reason for hiding this comment

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

toToolSecretDto

Comment on lines +32 to +34
value: {
type: 'string'
},
Copy link
Contributor

Choose a reason for hiding this comment

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

Are we sure about this? Should user (and the rest of the project) be able to read the value?

value: {
type: 'string'
},
tool: toolSchema
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think tool should be included in the tool secret response. If special endpoint for UI is needed, I'd rather go that way.

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.

2 participants