@aion0/forge 0.10.35 → 0.10.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -0
- package/RELEASE_NOTES.md +4 -8
- package/app/api/connectors/import-config-template/route.ts +358 -0
- package/app/api/onboarding/detect-cli/route.ts +46 -0
- package/app/api/onboarding/route.ts +422 -0
- package/components/ConnectorsPanel.tsx +326 -0
- package/components/Dashboard.tsx +29 -1
- package/components/OnboardingWizard.tsx +924 -0
- package/components/SettingsModal.tsx +42 -0
- package/components/WebTerminal.tsx +16 -1
- package/lib/chat/agent-loop.ts +87 -30
- package/lib/chat/llm/openai.ts +5 -1
- package/lib/chat/session-store.ts +22 -2
- package/lib/chat/tool-dispatcher.ts +195 -1
- package/lib/help-docs/17-connectors.md +51 -0
- package/lib/settings.ts +16 -0
- package/package.json +1 -1
- package/templates/connector-config-template.json +131 -0
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_README": "Team template — import via Forge UI: Settings → Connectors → 'Import Template' button. Forge scans the ${key} placeholders, asks you once for each (shared keys like gitlab_pat are asked once and applied everywhere). After import, existing non-empty values are preserved — template never overwrites your real tokens.",
|
|
3
|
+
|
|
4
|
+
"_prompts": {
|
|
5
|
+
"gitlab_token_name": {
|
|
6
|
+
"label": "GitLab token name",
|
|
7
|
+
"hint": "Identifier of your GitLab token (typically your AD/LDAP login, e.g. 'zliu'). Reused by Jenkins as the gitlab_token_name + injected as TOKEN_USER build param.",
|
|
8
|
+
"group": "gitlab",
|
|
9
|
+
"required": true
|
|
10
|
+
},
|
|
11
|
+
"gitlab_pat": {
|
|
12
|
+
"label": "GitLab Personal Access Token",
|
|
13
|
+
"hint": "Scope: read_api + api. Reused as TOKEN_PASSWORD build param for Jenkins-triggered jobs.",
|
|
14
|
+
"url": "https://dops-git106.fortinet-us.com/-/user_settings/personal_access_tokens",
|
|
15
|
+
"url_label": "Open GitLab PAT page",
|
|
16
|
+
"secret": true,
|
|
17
|
+
"required": true
|
|
18
|
+
},
|
|
19
|
+
"jenkins_username": {
|
|
20
|
+
"label": "Jenkins username",
|
|
21
|
+
"hint": "Your Jenkins login (AD/LDAP), e.g. 'zliu'.",
|
|
22
|
+
"group": "jenkins",
|
|
23
|
+
"required": true
|
|
24
|
+
},
|
|
25
|
+
"jenkins_api_token": {
|
|
26
|
+
"label": "Jenkins API Token",
|
|
27
|
+
"hint": "User avatar → Configure → API Token → Add new",
|
|
28
|
+
"url": "http://nac-dev-jenkins.fortinet-us.com:8080/me/configure",
|
|
29
|
+
"url_label": "Open Jenkins user configure page",
|
|
30
|
+
"secret": true,
|
|
31
|
+
"required": true,
|
|
32
|
+
"group": "jenkins"
|
|
33
|
+
},
|
|
34
|
+
"blackduck_api_token": {
|
|
35
|
+
"label": "Black Duck API Token",
|
|
36
|
+
"hint": "User menu → My Access Tokens → Create new. Forge auto-exchanges for ~2h JWT.",
|
|
37
|
+
"url": "https://dops-blackduck.fortinet-us.com/api/current-user/tokens",
|
|
38
|
+
"url_label": "Open Black Duck tokens page",
|
|
39
|
+
"secret": true,
|
|
40
|
+
"required": true
|
|
41
|
+
},
|
|
42
|
+
"nac_admin_password": {
|
|
43
|
+
"label": "NAC admin password (optional)",
|
|
44
|
+
"hint": "Used by SSH + REST login() fallback. Leave blank if you'll pass per-call.",
|
|
45
|
+
"secret": true,
|
|
46
|
+
"required": false
|
|
47
|
+
},
|
|
48
|
+
"fortincm_password": {
|
|
49
|
+
"label": "FortiNCM admin password (optional)",
|
|
50
|
+
"hint": "Only needed if you use NCM",
|
|
51
|
+
"secret": true,
|
|
52
|
+
"required": false
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
|
|
56
|
+
"gitlab": {
|
|
57
|
+
"config": {
|
|
58
|
+
"base_url": "https://dops-git106.fortinet-us.com/",
|
|
59
|
+
"token": "${gitlab_pat}"
|
|
60
|
+
},
|
|
61
|
+
"enabled": true
|
|
62
|
+
},
|
|
63
|
+
|
|
64
|
+
"mantis": {
|
|
65
|
+
"config": {
|
|
66
|
+
"base_url": "https://mantis.fortinet.com/",
|
|
67
|
+
"default_project": "FortiNAC"
|
|
68
|
+
},
|
|
69
|
+
"enabled": true
|
|
70
|
+
},
|
|
71
|
+
|
|
72
|
+
"pmdb": {
|
|
73
|
+
"config": {
|
|
74
|
+
"base_url": "https://pmdb.fortinet.com/"
|
|
75
|
+
},
|
|
76
|
+
"enabled": true
|
|
77
|
+
},
|
|
78
|
+
|
|
79
|
+
"teams": {
|
|
80
|
+
"config": {
|
|
81
|
+
"base_url": "https://teams.microsoft.com/"
|
|
82
|
+
},
|
|
83
|
+
"enabled": true
|
|
84
|
+
},
|
|
85
|
+
|
|
86
|
+
"jenkins": {
|
|
87
|
+
"config": {
|
|
88
|
+
"instances": "[{\"name\":\"default-jenkins\",\"base_url\":\"http://nac-dev-jenkins.fortinet-us.com:8080\",\"username\":\"${jenkins_username}\",\"api_token\":\"${jenkins_api_token}\",\"gitlab_pat\":\"${gitlab_pat}\",\"gitlab_token_name\":\"${gitlab_token_name}\",\"gitlab_token_name_param\":\"${gitlab_token_name}\",\"gitlab_pat_param\":\"\",\"inject_params\":\"[{\\\"name\\\":\\\"TOKEN_USER\\\",\\\"value\\\":\\\"${gitlab_token_name}\\\"},{\\\"name\\\":\\\"TOKEN_PASSWORD\\\",\\\"value\\\":\\\"${gitlab_pat}\\\"}]\"}]"
|
|
89
|
+
},
|
|
90
|
+
"enabled": true
|
|
91
|
+
},
|
|
92
|
+
|
|
93
|
+
"tp": {
|
|
94
|
+
"config": {
|
|
95
|
+
"base_url": "https://nac-tp.fortinet-us.com",
|
|
96
|
+
"api_base_url": "https://nac-tp.fortinet-us.com:8000",
|
|
97
|
+
"username": "${user_name}"
|
|
98
|
+
},
|
|
99
|
+
"enabled": true
|
|
100
|
+
},
|
|
101
|
+
|
|
102
|
+
"nac": {
|
|
103
|
+
"config": {
|
|
104
|
+
"port": "22",
|
|
105
|
+
"username": "admin",
|
|
106
|
+
"password": "${nac_admin_password}"
|
|
107
|
+
},
|
|
108
|
+
"enabled": true
|
|
109
|
+
},
|
|
110
|
+
|
|
111
|
+
"fortincm": {
|
|
112
|
+
"config": {
|
|
113
|
+
"username": "admin",
|
|
114
|
+
"password": "${fortincm_password}"
|
|
115
|
+
},
|
|
116
|
+
"enabled": false
|
|
117
|
+
},
|
|
118
|
+
|
|
119
|
+
"scap": {
|
|
120
|
+
"config": {},
|
|
121
|
+
"enabled": true
|
|
122
|
+
},
|
|
123
|
+
|
|
124
|
+
"blackduck": {
|
|
125
|
+
"config": {
|
|
126
|
+
"base_url": "https://dops-blackduck.fortinet-us.com",
|
|
127
|
+
"api_token": "${blackduck_api_token}"
|
|
128
|
+
},
|
|
129
|
+
"enabled": true
|
|
130
|
+
}
|
|
131
|
+
}
|