-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.go
More file actions
67 lines (50 loc) · 2.27 KB
/
main.go
File metadata and controls
67 lines (50 loc) · 2.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
// @title Compozy API
// @version 1.0
// @description Compozy is a Next-level Agentic Orchestration Platform, tasks, and tools. Authentication is configurable via the SERVER_AUTH_ENABLED environment variable. When enabled, all endpoints require Bearer token authentication. When disabled (typical for development), endpoints are accessible without authentication.
// @termsOfService https://github.com/compozy/compozy
// @contact.name Compozy Support
// @contact.url https://github.com/compozy/compozy
// @contact.email support@compozy.com
// @license.name BSL-1.1
// @license.url https://github.com/compozy/compozy/blob/main/LICENSE
// @BasePath /api/v0
//
// @securityDefinitions.apikey BearerAuth
// @in header
// @name Authorization
// @description Bearer token authentication (Optional - controlled by SERVER_AUTH_ENABLED environment variable. When enabled, all API endpoints require valid authentication. In development/testing, authentication may be disabled.)
// @tag.name workflows
// @tag.description Workflow management operations
// @tag.name tasks
// @tag.description Task management operations
// @tag.name agents
// @tag.description Agent management operations
// @tag.name tools
// @tag.description Tool management operations
// @tag.name schedules
// @tag.description Schedule management operations
// @tag.name memory
// @tag.description Memory management operations
// @tag.name knowledge
// @tag.description Knowledge base management operations
// @tag.name auth
// @tag.description Authentication and API key management operations
// @tag.name users
// @tag.description User management operations (admin only)
// @tag.name Operations
// @tag.description Operational endpoints for monitoring and health
package main
import (
"os"
"github.com/compozy/compozy/cli"
_ "github.com/compozy/compozy/engine/auth/router" // Import for swagger docs
_ "github.com/compozy/compozy/engine/infra/server/router/knowledge" // Import for swagger docs
_ "github.com/compozy/compozy/engine/memory/router" // Import for swagger docs
_ "github.com/compozy/compozy/engine/workflow/schedule/router" // Import for swagger docs
)
func main() {
cmd := cli.RootCmd()
if err := cmd.Execute(); err != nil {
os.Exit(1)
}
}