@aion0/forge 0.10.44 → 0.10.46
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/RELEASE_NOTES.md +43 -5
- package/app/api/auth/gitlab-2fa/route.ts +98 -0
- package/app/api/auth/idp-credentials/route.ts +41 -0
- package/app/api/auth/idp-login/route.ts +22 -0
- package/app/api/enterprise-keys/route.ts +11 -1
- package/app/api/scratch/[...path]/route.ts +78 -0
- package/bin/forge-server.mjs +30 -3
- package/components/Dashboard.tsx +43 -50
- package/components/EnterpriseBadge.tsx +390 -1
- package/install.sh +6 -0
- package/lib/auth/gitlab-2fa.ts +443 -0
- package/lib/auth/idp-login.ts +221 -0
- package/lib/auth/terminal-keystroke.ts +245 -0
- package/lib/chat/link-patterns.ts +11 -0
- package/lib/chat/session-store.ts +5 -2
- package/lib/chat/tool-dispatcher.ts +90 -18
- package/lib/connectors/migration.ts +55 -0
- package/lib/connectors/registry.ts +20 -2
- package/lib/connectors/sync.ts +21 -1
- package/lib/crypto.ts +1 -1
- package/lib/enterprise.ts +5 -1
- package/lib/init.ts +9 -1
- package/lib/scratch-cleanup.ts +64 -0
- package/lib/settings.ts +20 -0
- package/next-env.d.ts +1 -1
- package/package.json +1 -1
package/lib/settings.ts
CHANGED
|
@@ -192,6 +192,14 @@ export interface Settings {
|
|
|
192
192
|
smtpUser: string;
|
|
193
193
|
smtpPassword: string;
|
|
194
194
|
smtpFrom: string;
|
|
195
|
+
/**
|
|
196
|
+
* Enterprise unified-login (EnterpriseBadge) — opt-in credential cache
|
|
197
|
+
* so the user doesn't retype every session. OTP is never saved.
|
|
198
|
+
* idpSavedUsername — plaintext (not really secret; already visible as email)
|
|
199
|
+
* idpSavedPassword — encrypted via SECRET_FIELDS (AES-256-GCM)
|
|
200
|
+
*/
|
|
201
|
+
idpSavedUsername: string;
|
|
202
|
+
idpSavedPassword: string;
|
|
195
203
|
/**
|
|
196
204
|
* Pipeline tmp dir GC — controls retention of `<project>/worktrees/pipeline-<id>/`
|
|
197
205
|
* directories that nodes write scratch files to via `{{run.tmp_dir}}`.
|
|
@@ -209,6 +217,16 @@ export interface Settings {
|
|
|
209
217
|
* → silent. Settings → "Re-run Onboarding" sets it back to false.
|
|
210
218
|
*/
|
|
211
219
|
onboardingCompleted: boolean;
|
|
220
|
+
/**
|
|
221
|
+
* Last successful GitLab SSH 2FA verification (`ssh git@<host> 2fa_verify`).
|
|
222
|
+
* Stamped by /api/auth/gitlab-2fa on POST. UI uses verifiedAt + a
|
|
223
|
+
* client-side 1h validity window (GitLab's default) to show "47m left"
|
|
224
|
+
* on the Enterprise dropdown.
|
|
225
|
+
*/
|
|
226
|
+
gitlab2fa?: {
|
|
227
|
+
verifiedAt: string; // ISO timestamp
|
|
228
|
+
host: string; // hostname we verified against (e.g. dops-git106.fortinet-us.com)
|
|
229
|
+
};
|
|
212
230
|
}
|
|
213
231
|
|
|
214
232
|
const defaults: Settings = {
|
|
@@ -257,6 +275,8 @@ const defaults: Settings = {
|
|
|
257
275
|
smtpUser: '',
|
|
258
276
|
smtpPassword: '',
|
|
259
277
|
smtpFrom: '',
|
|
278
|
+
idpSavedUsername: '',
|
|
279
|
+
idpSavedPassword: '',
|
|
260
280
|
pipelineTmpCleanDoneImmediate: true,
|
|
261
281
|
pipelineTmpKeepFailedDays: 3,
|
|
262
282
|
pipelineTmpKeepCancelledDays: 3,
|
package/next-env.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="next" />
|
|
2
2
|
/// <reference types="next/image-types/global" />
|
|
3
|
-
import "./.next/
|
|
3
|
+
import "./.next/types/routes.d.ts";
|
|
4
4
|
|
|
5
5
|
// NOTE: This file should not be edited
|
|
6
6
|
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.
|
package/package.json
CHANGED