forgeos 0.1.0-alpha.57 → 0.1.0-alpha.58
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/AGENTS.md +1 -1
- package/CHANGELOG.md +14 -0
- package/docs/changelog.md +10 -0
- package/package.json +1 -1
- package/src/forge/_generated/releaseManifest.json +1 -1
- package/src/forge/_generated/releaseManifest.ts +3 -3
- package/src/forge/compiler/integration/templates/workos.ts +6 -6
- package/src/forge/version.ts +1 -1
package/AGENTS.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// @forge-generated generator=0.1.0-alpha.
|
|
1
|
+
// @forge-generated generator=0.1.0-alpha.58 input=195942726f1885a6c7556503abb9f76ac8ee4cfa1bc0725c319a77c97d08c195 content=721818a6f9a664aa898092d4aa5cd68cbbd8ad6e150c7d3ad3ef785a2e3fcf53
|
|
2
2
|
# AGENTS.md
|
|
3
3
|
|
|
4
4
|
<!-- forge-generated:start -->
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# forgeos
|
|
2
2
|
|
|
3
|
+
## 0.1.0-alpha.58
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Fix TypeScript output for generated WorkOS AuthKit route helpers.
|
|
8
|
+
|
|
9
|
+
- The generated callback helper now reads provider-specific organization,
|
|
10
|
+
membership, role, roles, and permissions fields through a narrowed raw
|
|
11
|
+
result record instead of accessing fields that are not declared on the
|
|
12
|
+
WorkOS SDK `AuthenticationResponse` type.
|
|
13
|
+
- This keeps WorkOS/AuthKit app typechecks passing while preserving callback
|
|
14
|
+
claim enrichment for organization selection, role mapping, permissions, and
|
|
15
|
+
Forge-normalized session claims.
|
|
16
|
+
|
|
3
17
|
## 0.1.0-alpha.57
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
package/docs/changelog.md
CHANGED
|
@@ -6,6 +6,16 @@ The canonical source file in the repository is `CHANGELOG.md`.
|
|
|
6
6
|
|
|
7
7
|
## Unreleased
|
|
8
8
|
|
|
9
|
+
## 0.1.0-alpha.58
|
|
10
|
+
|
|
11
|
+
- Fixed generated WorkOS AuthKit route helper TypeScript output by reading
|
|
12
|
+
provider-specific organization, membership, role, roles, and permissions
|
|
13
|
+
fields through a narrowed raw result record instead of undeclared SDK response
|
|
14
|
+
properties.
|
|
15
|
+
- WorkOS/AuthKit apps can keep callback claim enrichment for organization
|
|
16
|
+
selection and Forge-normalized session claims without failing `tsc --noEmit`
|
|
17
|
+
on generated files.
|
|
18
|
+
|
|
9
19
|
## 0.1.0-alpha.57
|
|
10
20
|
|
|
11
21
|
- Fixed the WorkOS/AuthKit login path used by local and tunneled development:
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"defaultProvider":"local","diagnostics":[],"env":{"deployEnv":"FORGE_DEPLOY_ENV","deployId":"FORGE_DEPLOY_ID","publicReleaseId":"NEXT_PUBLIC_FORGE_RELEASE_ID","releaseId":"FORGE_RELEASE_ID"},"gitSha":"unknown","optionalProviders":["local","sentry-compatible","sentry","glitchtip","bugsink","otel","custom"],"packageName":"forgeos","packageVersion":"0.1.0-alpha.
|
|
1
|
+
{"defaultProvider":"local","diagnostics":[],"env":{"deployEnv":"FORGE_DEPLOY_ENV","deployId":"FORGE_DEPLOY_ID","publicReleaseId":"NEXT_PUBLIC_FORGE_RELEASE_ID","releaseId":"FORGE_RELEASE_ID"},"gitSha":"unknown","optionalProviders":["local","sentry-compatible","sentry","glitchtip","bugsink","otel","custom"],"packageName":"forgeos","packageVersion":"0.1.0-alpha.58","releaseId":"forgeos@0.1.0-alpha.58+unknown","schemaVersion":"0.1.0"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// @forge-generated generator=0.1.0-alpha.
|
|
1
|
+
// @forge-generated generator=0.1.0-alpha.58 input=195942726f1885a6c7556503abb9f76ac8ee4cfa1bc0725c319a77c97d08c195 content=8104f3f07c4474c0d9d56bf89444a70d0a709d06a30739a7153bdb9d054f3ed2
|
|
2
2
|
export const releaseManifest = {
|
|
3
3
|
"defaultProvider": "local",
|
|
4
4
|
"diagnostics": [],
|
|
@@ -19,7 +19,7 @@ export const releaseManifest = {
|
|
|
19
19
|
"custom"
|
|
20
20
|
],
|
|
21
21
|
"packageName": "forgeos",
|
|
22
|
-
"packageVersion": "0.1.0-alpha.
|
|
23
|
-
"releaseId": "forgeos@0.1.0-alpha.
|
|
22
|
+
"packageVersion": "0.1.0-alpha.58",
|
|
23
|
+
"releaseId": "forgeos@0.1.0-alpha.58+unknown",
|
|
24
24
|
"schemaVersion": "0.1.0"
|
|
25
25
|
} as const;
|
|
@@ -897,11 +897,11 @@ export function renderWorkosAuthRoutes(_input: IntegrationTemplateInput): string
|
|
|
897
897
|
" clientId: input.config.clientId,",
|
|
898
898
|
" });",
|
|
899
899
|
" const user = workOSUserRecord(result.user);",
|
|
900
|
-
" const rawResult = result as Record<string, unknown>;",
|
|
900
|
+
" const rawResult = result as unknown as Record<string, unknown>;",
|
|
901
901
|
" const resultOrganization = (rawResult.organization ?? {}) as Record<string, unknown>;",
|
|
902
902
|
" const resultMembership = (rawResult.organizationMembership ?? {}) as Record<string, unknown>;",
|
|
903
|
-
" const resultOrganizationId = typeof
|
|
904
|
-
" const resultOrganizationMembershipId = typeof
|
|
903
|
+
" const resultOrganizationId = typeof rawResult.organizationId === \"string\" ? rawResult.organizationId : typeof resultOrganization.id === \"string\" ? resultOrganization.id : undefined;",
|
|
904
|
+
" const resultOrganizationMembershipId = typeof rawResult.organizationMembershipId === \"string\" ? rawResult.organizationMembershipId : typeof resultMembership.id === \"string\" ? resultMembership.id : undefined;",
|
|
905
905
|
" const resolved = await input.resolveOrganization?.({",
|
|
906
906
|
" user,",
|
|
907
907
|
" accessToken: result.accessToken,",
|
|
@@ -909,11 +909,11 @@ export function renderWorkosAuthRoutes(_input: IntegrationTemplateInput): string
|
|
|
909
909
|
" organizationMembershipId: resultOrganizationMembershipId,",
|
|
910
910
|
" result: rawResult,",
|
|
911
911
|
" });",
|
|
912
|
-
" const resultRoles = Array.isArray(
|
|
913
|
-
" const resultPermissions = Array.isArray(
|
|
912
|
+
" const resultRoles = Array.isArray(rawResult.roles) ? rawResult.roles.filter((role): role is string => typeof role === \"string\") : [];",
|
|
913
|
+
" const resultPermissions = Array.isArray(rawResult.permissions) ? rawResult.permissions.filter((permission): permission is string => typeof permission === \"string\") : [];",
|
|
914
914
|
" const organizationId = resolved?.organizationId ?? resultOrganizationId;",
|
|
915
915
|
" const organizationMembershipId = resolved?.organizationMembershipId ?? resultOrganizationMembershipId;",
|
|
916
|
-
" const role = resolved?.role ?? (typeof
|
|
916
|
+
" const role = resolved?.role ?? (typeof rawResult.role === \"string\" ? rawResult.role : resultRoles[0]);",
|
|
917
917
|
" const roles = resolved?.roles ?? resultRoles;",
|
|
918
918
|
" const permissions = resolved?.permissions ?? resultPermissions;",
|
|
919
919
|
" return {",
|
package/src/forge/version.ts
CHANGED