Skip to content

Commit 877fb77

Browse files
chore: preparation for edit mode for projects in the user UI
1 parent df479b2 commit 877fb77

File tree

103 files changed

+6186
-928
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

103 files changed

+6186
-928
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ package-tools:
5454
tidy:
5555
go mod tidy
5656

57-
GOLANGCI_LINT_VERSION ?= v1.62.2
57+
GOLANGCI_LINT_VERSION ?= v1.64.5
5858
setup-env:
5959
if ! command -v golangci-lint &> /dev/null; then \
6060
echo "Could not find golangci-lint, installing version $(GOLANGCI_LINT_VERSION)."; \

apiclient/types/assitant.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ type Assistant struct {
66
Default bool `json:"default"`
77
Description string `json:"description"`
88
Icons AgentIcons `json:"icons"`
9+
Alias string `json:"alias,omitempty"`
910
IntroductionMessage string `json:"introductionMessage"`
1011
StarterMessages []string `json:"starterMessages"`
1112
EntityID string `json:"entityID"`

apiclient/types/authorization.go

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,22 @@ type ThreadAuthorizationManifest struct {
2222
}
2323

2424
type ThreadAuthorizationList List[ThreadAuthorization]
25+
26+
type ProjectAuthorization struct {
27+
Project *Project `json:"project,omitempty"`
28+
Target string `json:"target,omitempty"`
29+
Accepted bool `json:"accepted,omitempty"`
30+
}
31+
32+
type ProjectAuthorizationList List[ProjectAuthorization]
33+
34+
type TemplateAuthorization struct {
35+
TemplateAuthorizationManifest
36+
}
37+
38+
type TemplateAuthorizationManifest struct {
39+
UserID string `json:"userID,omitempty"`
40+
TemplateID string `json:"templateID,omitempty"`
41+
}
42+
43+
type TemplateAuthorizationList List[TemplateAuthorization]

apiclient/types/credential.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,12 @@ type Credential struct {
88
}
99

1010
type CredentialList List[Credential]
11+
12+
type ProjectCredential struct {
13+
ToolID string `json:"toolID,omitempty"`
14+
ToolName string `json:"toolName,omitempty"`
15+
Icon string `json:"icon,omitempty"`
16+
Exists bool `json:"exists"`
17+
}
18+
19+
type ProjectCredentialList List[ProjectCredential]

apiclient/types/invoke.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ type Progress struct {
2020
// If RunID is not populated, the event will not specify tied to any particular run
2121
RunID string `json:"runID,omitempty"`
2222

23+
// ThreadID may be populated on any event indicating the current thread of the event stream
24+
ThreadID string `json:"threadID,omitempty"`
25+
2326
// ParentRunID is the parent run of the run that is specified in the RunID field
2427
ParentRunID string `json:"parentRunID,omitempty"`
2528

apiclient/types/project.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@ package types
33
type Project struct {
44
Metadata
55
ProjectManifest
6+
AssistantID string `json:"assistantID,omitempty"`
67
}
78

89
type ProjectManifest struct {
9-
Name string `json:"name,omitempty"`
10+
ThreadManifest
1011
}
1112

1213
type ProjectList List[Project]

apiclient/types/template.go

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
package types
2+
3+
type ProjectTemplate struct {
4+
Metadata
5+
ThreadManifest
6+
Tasks []TaskManifest `json:"tasks,omitempty"`
7+
AssistantID string `json:"assistantID,omitempty"`
8+
PublicID string `json:"publicID,omitempty"`
9+
Ready bool `json:"ready,omitempty"`
10+
}
11+
12+
type ProjectTemplateList List[ProjectTemplate]

apiclient/types/thread.go

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,19 @@ type Thread struct {
3434
Abort bool `json:"abort,omitempty"`
3535
SystemTask bool `json:"systemTask,omitempty"`
3636
Ephemeral bool `json:"ephemeral,omitempty"`
37+
Project bool `json:"project,omitempty"`
3738
Env []string `json:"env,omitempty"`
3839
}
3940

4041
type ThreadList List[Thread]
4142

4243
type ThreadManifest struct {
43-
Tools []string `json:"tools,omitempty"`
44-
Description string `json:"description,omitempty"`
44+
Name string `json:"name"`
45+
Tools []string `json:"tools,omitempty"`
46+
Description string `json:"description,omitempty"`
47+
Icons *AgentIcons `json:"icons"`
48+
Prompt string `json:"prompt"`
49+
KnowledgeDescription string `json:"knowledgeDescription"`
50+
IntroductionMessage string `json:"introductionMessage"`
51+
StarterMessages []string `json:"starterMessages"`
4552
}

apiclient/types/zz_generated.deepcopy.go

Lines changed: 186 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)