@topolo/sdk 0.11.1 → 0.11.2

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/dist/index.cjs CHANGED
@@ -21,6 +21,9 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
21
21
  var index_exports = {};
22
22
  __export(index_exports, {
23
23
  ACTION_CATALOG_DIGEST_ALGORITHM: () => ACTION_CATALOG_DIGEST_ALGORITHM,
24
+ APPLICATIONS: () => APPLICATIONS,
25
+ APPLICATION_REQUIREMENTS: () => APPLICATION_REQUIREMENTS,
26
+ APPLICATION_REQUIREMENTS_VERSION: () => APPLICATION_REQUIREMENTS_VERSION,
24
27
  CrmModule: () => CrmModule,
25
28
  DEFAULT_APP_URLS: () => DEFAULT_APP_URLS,
26
29
  IdentityModule: () => IdentityModule,
@@ -39,7 +42,11 @@ __export(index_exports, {
39
42
  WorkspacesModule: () => WorkspacesModule,
40
43
  actionContractCompleteness: () => actionContractCompleteness,
41
44
  applicationEntryFromCatalog: () => applicationEntryFromCatalog,
45
+ applicationRequirementScopes: () => applicationRequirementScopes,
42
46
  assertTopoloServiceUrlEnvironment: () => assertTopoloServiceUrlEnvironment,
47
+ auditAllApplicationRequirements: () => auditAllApplicationRequirements,
48
+ auditApplicationEntries: () => auditApplicationEntries,
49
+ auditApplicationRequirements: () => auditApplicationRequirements,
43
50
  canonicalTopoloErrorCode: () => canonicalTopoloErrorCode,
44
51
  canonicalTopoloRequestId: () => canonicalTopoloRequestId,
45
52
  canonicalTopoloRequired: () => canonicalTopoloRequired,
@@ -68,6 +75,7 @@ __export(index_exports, {
68
75
  prepareTopoloActionBase64UploadInput: () => prepareTopoloActionBase64UploadInput,
69
76
  prepareTopoloActionUploadInput: () => prepareTopoloActionUploadInput,
70
77
  publicTopoloErrorMessage: () => publicTopoloErrorMessage,
78
+ requirementsForApplication: () => requirementsForApplication,
71
79
  resolveApplicationDirectoryEntry: () => resolveApplicationDirectoryEntry,
72
80
  resolveCatalogServiceUrl: () => resolveCatalogServiceUrl,
73
81
  resolveServiceUrl: () => resolveServiceUrl,
@@ -970,6 +978,18 @@ function prepareTopoloUrlSessionUploadInput(contractValue, byteLength, input, op
970
978
  function topoloUploadResponseValue(response, path) {
971
979
  return path.split(".").reduce((value, segment) => isRecord2(value) ? value[segment] : void 0, response);
972
980
  }
981
+ function redactTopoloUrlSessionResult(response, uploadUrlPath) {
982
+ const redacted = cloneUploadValue(response);
983
+ let target = redacted;
984
+ const segments = uploadUrlPath.split(".");
985
+ for (const segment of segments.slice(0, -1)) {
986
+ target = isRecord2(target) ? target[segment] : void 0;
987
+ }
988
+ const finalSegment = segments.at(-1);
989
+ if (finalSegment && isRecord2(target) && finalSegment in target) target[finalSegment] = "[REDACTED]";
990
+ redactUploadHeaders(redacted);
991
+ return redacted;
992
+ }
973
993
  function decodeTopoloActionBase64(contentBase64) {
974
994
  if (!isCanonicalBase64(contentBase64)) {
975
995
  throw new TopoloSdkError("invalid_upload_content", "Upload content must be canonical base64.");
@@ -988,6 +1008,28 @@ function mapUploadInput(contract, contentBase64, input, options) {
988
1008
  [contract.fileNameField]: fileName
989
1009
  };
990
1010
  }
1011
+ function cloneUploadValue(value) {
1012
+ if (Array.isArray(value)) return value.map(cloneUploadValue);
1013
+ if (!isRecord2(value)) return value;
1014
+ return Object.fromEntries(Object.entries(value).map(([key, item]) => [key, cloneUploadValue(item)]));
1015
+ }
1016
+ function redactUploadHeaders(value) {
1017
+ if (Array.isArray(value)) {
1018
+ value.forEach(redactUploadHeaders);
1019
+ return;
1020
+ }
1021
+ if (!isRecord2(value)) return;
1022
+ for (const [key, item] of Object.entries(value)) {
1023
+ if (key.toLowerCase() === "headers" && isRecord2(item)) {
1024
+ for (const header of Object.keys(item)) {
1025
+ if (["authorization", "cookie", "set-cookie", "proxy-authorization", "x-api-key"].includes(header.toLowerCase())) {
1026
+ item[header] = "[REDACTED]";
1027
+ }
1028
+ }
1029
+ }
1030
+ redactUploadHeaders(item);
1031
+ }
1032
+ }
991
1033
  function validateUploadMetadata(contract, byteLength, options) {
992
1034
  const fileName = options.fileName.trim();
993
1035
  const contentType = options.contentType.trim().toLowerCase();
@@ -1631,7 +1673,7 @@ var TopoloClient = class _TopoloClient {
1631
1673
  throw new TopoloSdkError("invalid_upload_response", `Upload action response is missing ${contract.uploadUrlPath}.`);
1632
1674
  }
1633
1675
  await this.putUrlSessionContent(entry, uploadUrl, contract.uploadMethod, bytes, options);
1634
- if (!contract.complete) return initiation;
1676
+ if (!contract.complete) return redactTopoloUrlSessionResult(initiation, contract.uploadUrlPath);
1635
1677
  const completionValue = topoloUploadResponseValue(initiation, contract.complete.responsePath);
1636
1678
  if (typeof completionValue !== "string" || !completionValue.trim()) {
1637
1679
  throw new TopoloSdkError("invalid_upload_response", `Upload action response is missing ${contract.complete.responsePath}.`);
@@ -2673,6 +2715,2140 @@ function actionContractCompleteness(action) {
2673
2715
  };
2674
2716
  }
2675
2717
 
2718
+ // src/applications-fallback.ts
2719
+ var APPLICATIONS = {
2720
+ "admin": {
2721
+ "id": "admin",
2722
+ "appDir": "TopoloAdmin",
2723
+ "name": "topolo-admin",
2724
+ "packageName": "topolo-admin",
2725
+ "productionUrl": "https://admin.topolo.app",
2726
+ "services": [],
2727
+ "deployTargets": [
2728
+ {
2729
+ "name": "topolo-admin",
2730
+ "kind": "worker",
2731
+ "apiUrl": "https://admin.topolo.app",
2732
+ "domains": [
2733
+ "admin.topolo.app"
2734
+ ],
2735
+ "routes": [
2736
+ "admin.topolo.app"
2737
+ ],
2738
+ "appId": null
2739
+ },
2740
+ {
2741
+ "name": "topolo-admin-api",
2742
+ "kind": "worker",
2743
+ "apiUrl": null,
2744
+ "domains": [],
2745
+ "routes": [],
2746
+ "appId": null
2747
+ }
2748
+ ]
2749
+ },
2750
+ "agent": {
2751
+ "id": "agent",
2752
+ "appDir": "TopoloAgent",
2753
+ "name": "topolo-agent",
2754
+ "packageName": "topolo-agent",
2755
+ "productionUrl": "https://agent.topolo.app",
2756
+ "services": [
2757
+ "agent"
2758
+ ],
2759
+ "deployTargets": [
2760
+ {
2761
+ "name": "topolo-agent",
2762
+ "kind": "worker",
2763
+ "apiUrl": "https://agent.topolo.app",
2764
+ "domains": [
2765
+ "agent.topolo.app"
2766
+ ],
2767
+ "routes": [
2768
+ "agent.topolo.app"
2769
+ ],
2770
+ "appId": "agent"
2771
+ },
2772
+ {
2773
+ "name": "topolo-agent-api",
2774
+ "kind": "worker",
2775
+ "apiUrl": null,
2776
+ "domains": [],
2777
+ "routes": [],
2778
+ "appId": null
2779
+ }
2780
+ ]
2781
+ },
2782
+ "auth": {
2783
+ "id": "auth",
2784
+ "appDir": "TopoloAuth",
2785
+ "name": "topolo-auth",
2786
+ "packageName": "topolo-auth",
2787
+ "productionUrl": "https://auth.topolo.app",
2788
+ "services": [
2789
+ "auth"
2790
+ ],
2791
+ "deployTargets": [
2792
+ {
2793
+ "name": "topolo-auth",
2794
+ "kind": "worker",
2795
+ "apiUrl": "https://auth.topolo.app",
2796
+ "domains": [
2797
+ "auth.topolo.app"
2798
+ ],
2799
+ "routes": [
2800
+ "auth.topolo.app"
2801
+ ],
2802
+ "appId": "auth"
2803
+ }
2804
+ ]
2805
+ },
2806
+ "backup": {
2807
+ "id": "backup",
2808
+ "appDir": "TopoloBackup",
2809
+ "name": "topolo-backup",
2810
+ "packageName": "topolo-backup",
2811
+ "productionUrl": "https://backup.topolo.app",
2812
+ "services": [
2813
+ "backup"
2814
+ ],
2815
+ "deployTargets": [
2816
+ {
2817
+ "name": "topolo-backup",
2818
+ "kind": "worker",
2819
+ "apiUrl": "https://backup.topolo.app",
2820
+ "domains": [
2821
+ "backup.topolo.app"
2822
+ ],
2823
+ "routes": [
2824
+ "backup.topolo.app"
2825
+ ],
2826
+ "appId": "backup"
2827
+ }
2828
+ ]
2829
+ },
2830
+ "blog": {
2831
+ "id": "blog",
2832
+ "appDir": "TopoloBlog",
2833
+ "name": "topolo-blog",
2834
+ "packageName": "topolo-blog",
2835
+ "productionUrl": "https://blog.topolo.app",
2836
+ "services": [
2837
+ "blog"
2838
+ ],
2839
+ "deployTargets": [
2840
+ {
2841
+ "name": "topolo-blog",
2842
+ "kind": "worker",
2843
+ "apiUrl": "https://blog.topolo.app",
2844
+ "domains": [
2845
+ "blog.topolo.app"
2846
+ ],
2847
+ "routes": [
2848
+ "blog.topolo.app"
2849
+ ],
2850
+ "appId": "blog"
2851
+ },
2852
+ {
2853
+ "name": "topolo-blog-api",
2854
+ "kind": "worker",
2855
+ "apiUrl": null,
2856
+ "domains": [],
2857
+ "routes": [],
2858
+ "appId": null
2859
+ }
2860
+ ]
2861
+ },
2862
+ "books": {
2863
+ "id": "books",
2864
+ "appDir": "TopoloBooks",
2865
+ "name": "topolo-books",
2866
+ "packageName": "topolo-books",
2867
+ "productionUrl": "https://books.topolo.app",
2868
+ "services": [
2869
+ "books"
2870
+ ],
2871
+ "deployTargets": [
2872
+ {
2873
+ "name": "topolo-books",
2874
+ "kind": "worker",
2875
+ "apiUrl": "https://books.topolo.app",
2876
+ "domains": [
2877
+ "books.topolo.app"
2878
+ ],
2879
+ "routes": [
2880
+ "books.topolo.app"
2881
+ ],
2882
+ "appId": "books"
2883
+ },
2884
+ {
2885
+ "name": "topolo-books-api",
2886
+ "kind": "worker",
2887
+ "apiUrl": null,
2888
+ "domains": [],
2889
+ "routes": [],
2890
+ "appId": null
2891
+ }
2892
+ ]
2893
+ },
2894
+ "brand": {
2895
+ "id": "brand",
2896
+ "appDir": "TopoloBrand",
2897
+ "name": "topolo-brand",
2898
+ "packageName": "@topolo/topolo-brand",
2899
+ "productionUrl": "https://brand.topolo.app",
2900
+ "services": [
2901
+ "brand"
2902
+ ],
2903
+ "deployTargets": [
2904
+ {
2905
+ "name": "topolo-brand",
2906
+ "kind": "worker",
2907
+ "apiUrl": "https://brand.topolo.app",
2908
+ "domains": [
2909
+ "brand.topolo.app"
2910
+ ],
2911
+ "routes": [
2912
+ "brand.topolo.app"
2913
+ ],
2914
+ "appId": "brand"
2915
+ },
2916
+ {
2917
+ "name": "topolo-brand-api",
2918
+ "kind": "worker",
2919
+ "apiUrl": null,
2920
+ "domains": [],
2921
+ "routes": [],
2922
+ "appId": null
2923
+ }
2924
+ ]
2925
+ },
2926
+ "bugfix": {
2927
+ "id": "bugfix",
2928
+ "appDir": "TopoloBugFix",
2929
+ "name": "topolo-bugfix",
2930
+ "packageName": "topolo-bugfix",
2931
+ "productionUrl": "https://bugfix.topolo.app",
2932
+ "services": [
2933
+ "bugfix"
2934
+ ],
2935
+ "deployTargets": [
2936
+ {
2937
+ "name": "topolo-bugfix",
2938
+ "kind": "worker",
2939
+ "apiUrl": "https://bugfix.topolo.app",
2940
+ "domains": [
2941
+ "bugfix.topolo.app"
2942
+ ],
2943
+ "routes": [
2944
+ "bugfix.topolo.app"
2945
+ ],
2946
+ "appId": "bugfix"
2947
+ }
2948
+ ]
2949
+ },
2950
+ "bytes": {
2951
+ "id": "bytes",
2952
+ "appDir": "TopoloBytes",
2953
+ "name": "topolo-bytes",
2954
+ "packageName": "topolo-bytes",
2955
+ "productionUrl": "https://bytes.topolo.app",
2956
+ "services": [
2957
+ "bytes"
2958
+ ],
2959
+ "deployTargets": [
2960
+ {
2961
+ "name": "topolo-bytes",
2962
+ "kind": "worker",
2963
+ "apiUrl": "https://bytes.topolo.app",
2964
+ "domains": [
2965
+ "bytes.topolo.app"
2966
+ ],
2967
+ "routes": [
2968
+ "bytes.topolo.app"
2969
+ ],
2970
+ "appId": "bytes"
2971
+ },
2972
+ {
2973
+ "name": "topolo-bytes-api",
2974
+ "kind": "worker",
2975
+ "apiUrl": null,
2976
+ "domains": [],
2977
+ "routes": [],
2978
+ "appId": null
2979
+ }
2980
+ ]
2981
+ },
2982
+ "calendar": {
2983
+ "id": "calendar",
2984
+ "appDir": "TopoloCalendar",
2985
+ "name": "topolo-calendar",
2986
+ "packageName": "topolo-calendar",
2987
+ "productionUrl": "https://calendar.topolo.app",
2988
+ "services": [
2989
+ "calendar"
2990
+ ],
2991
+ "deployTargets": [
2992
+ {
2993
+ "name": "topolo-calendar",
2994
+ "kind": "worker",
2995
+ "apiUrl": "https://calendar.topolo.app",
2996
+ "domains": [
2997
+ "calendar.topolo.app"
2998
+ ],
2999
+ "routes": [
3000
+ "calendar.topolo.app"
3001
+ ],
3002
+ "appId": "calendar"
3003
+ },
3004
+ {
3005
+ "name": "topolo-calendar-api",
3006
+ "kind": "worker",
3007
+ "apiUrl": null,
3008
+ "domains": [],
3009
+ "routes": [],
3010
+ "appId": null
3011
+ }
3012
+ ]
3013
+ },
3014
+ "campaigns": {
3015
+ "id": "campaigns",
3016
+ "appDir": "TopoloCampaigns",
3017
+ "name": "topolo-campaigns",
3018
+ "packageName": "topolo-campaigns",
3019
+ "productionUrl": "https://campaigns.topolo.app",
3020
+ "services": [
3021
+ "campaigns"
3022
+ ],
3023
+ "deployTargets": [
3024
+ {
3025
+ "name": "topolo-campaigns",
3026
+ "kind": "worker",
3027
+ "apiUrl": "https://campaigns.topolo.app",
3028
+ "domains": [
3029
+ "campaigns.topolo.app"
3030
+ ],
3031
+ "routes": [
3032
+ "campaigns.topolo.app"
3033
+ ],
3034
+ "appId": "campaigns"
3035
+ },
3036
+ {
3037
+ "name": "topolo-campaigns-api",
3038
+ "kind": "worker",
3039
+ "apiUrl": null,
3040
+ "domains": [],
3041
+ "routes": [],
3042
+ "appId": null
3043
+ }
3044
+ ]
3045
+ },
3046
+ "capacity": {
3047
+ "id": "capacity",
3048
+ "appDir": "TopoloCapacity",
3049
+ "name": "topolo-capacity",
3050
+ "packageName": "topolo-capacity",
3051
+ "productionUrl": "https://capacity.topolo.app",
3052
+ "services": [
3053
+ "capacity"
3054
+ ],
3055
+ "deployTargets": [
3056
+ {
3057
+ "name": "topolo-capacity",
3058
+ "kind": "worker",
3059
+ "apiUrl": "https://capacity.topolo.app",
3060
+ "domains": [
3061
+ "capacity.topolo.app"
3062
+ ],
3063
+ "routes": [
3064
+ "capacity.topolo.app"
3065
+ ],
3066
+ "appId": "capacity"
3067
+ }
3068
+ ]
3069
+ },
3070
+ "chat": {
3071
+ "id": "chat",
3072
+ "appDir": "TopoloChat",
3073
+ "name": "topolo-chat",
3074
+ "packageName": "topolo-chat",
3075
+ "productionUrl": "https://chat.topolo.app",
3076
+ "services": [
3077
+ "chat"
3078
+ ],
3079
+ "deployTargets": [
3080
+ {
3081
+ "name": "topolo-chat",
3082
+ "kind": "worker",
3083
+ "apiUrl": "https://chat.topolo.app",
3084
+ "domains": [
3085
+ "chat.topolo.app"
3086
+ ],
3087
+ "routes": [
3088
+ "chat.topolo.app"
3089
+ ],
3090
+ "appId": "chat"
3091
+ },
3092
+ {
3093
+ "name": "topolo-chat-api",
3094
+ "kind": "worker",
3095
+ "apiUrl": null,
3096
+ "domains": [],
3097
+ "routes": [],
3098
+ "appId": null
3099
+ }
3100
+ ]
3101
+ },
3102
+ "commerce": {
3103
+ "id": "commerce",
3104
+ "appDir": "TopoloCommerce",
3105
+ "name": "topolo-commerce",
3106
+ "packageName": "topolo-commerce",
3107
+ "productionUrl": "https://commerce.topolo.app",
3108
+ "services": [
3109
+ "commerce"
3110
+ ],
3111
+ "deployTargets": [
3112
+ {
3113
+ "name": "topolo-commerce-api",
3114
+ "kind": "worker",
3115
+ "apiUrl": null,
3116
+ "domains": [],
3117
+ "routes": [],
3118
+ "appId": null
3119
+ },
3120
+ {
3121
+ "name": "topolo-commerce-guest-web",
3122
+ "kind": "worker",
3123
+ "apiUrl": "https://guest.topolo.app",
3124
+ "domains": [
3125
+ "guest.topolo.app"
3126
+ ],
3127
+ "routes": [
3128
+ "guest.topolo.app"
3129
+ ],
3130
+ "appId": null
3131
+ },
3132
+ {
3133
+ "name": "topolo-commerce-ops-web",
3134
+ "kind": "worker",
3135
+ "apiUrl": "https://commerce.topolo.app",
3136
+ "domains": [
3137
+ "commerce.topolo.app"
3138
+ ],
3139
+ "routes": [
3140
+ "commerce.topolo.app"
3141
+ ],
3142
+ "appId": "commerce"
3143
+ },
3144
+ {
3145
+ "name": "topolo-commerce-station-web",
3146
+ "kind": "worker",
3147
+ "apiUrl": "https://station-commerce.topolo.app",
3148
+ "domains": [
3149
+ "station-commerce.topolo.app"
3150
+ ],
3151
+ "routes": [
3152
+ "station-commerce.topolo.app"
3153
+ ],
3154
+ "appId": null
3155
+ }
3156
+ ]
3157
+ },
3158
+ "compose": {
3159
+ "id": "compose",
3160
+ "appDir": "TopoloCompose",
3161
+ "name": "topolo-compose",
3162
+ "packageName": "@topolo/compose",
3163
+ "productionUrl": "https://compose.topolo.app",
3164
+ "services": [
3165
+ "compose"
3166
+ ],
3167
+ "deployTargets": [
3168
+ {
3169
+ "name": "topolo-compose",
3170
+ "kind": "worker",
3171
+ "apiUrl": "https://compose.topolo.app",
3172
+ "domains": [
3173
+ "compose.topolo.app"
3174
+ ],
3175
+ "routes": [
3176
+ "compose.topolo.app"
3177
+ ],
3178
+ "appId": "compose"
3179
+ },
3180
+ {
3181
+ "name": "topolo-compose-api",
3182
+ "kind": "worker",
3183
+ "apiUrl": null,
3184
+ "domains": [],
3185
+ "routes": [],
3186
+ "appId": null
3187
+ }
3188
+ ]
3189
+ },
3190
+ "consent": {
3191
+ "id": "consent",
3192
+ "appDir": "TopoloConsent",
3193
+ "name": "topolo-consent",
3194
+ "packageName": "topolo-consent",
3195
+ "productionUrl": "https://consent.topolo.app",
3196
+ "services": [
3197
+ "consent"
3198
+ ],
3199
+ "deployTargets": [
3200
+ {
3201
+ "name": "topolo-consent",
3202
+ "kind": "worker",
3203
+ "apiUrl": "https://consent.topolo.app",
3204
+ "domains": [
3205
+ "consent.topolo.app"
3206
+ ],
3207
+ "routes": [
3208
+ "consent.topolo.app"
3209
+ ],
3210
+ "appId": "consent"
3211
+ },
3212
+ {
3213
+ "name": "topolo-consent-api",
3214
+ "kind": "worker",
3215
+ "apiUrl": null,
3216
+ "domains": [],
3217
+ "routes": [],
3218
+ "appId": null
3219
+ }
3220
+ ]
3221
+ },
3222
+ "crm": {
3223
+ "id": "crm",
3224
+ "appDir": "TopoloCRM",
3225
+ "name": "topolo-crm",
3226
+ "packageName": "topolo-crm",
3227
+ "productionUrl": "https://crm.topolo.app",
3228
+ "services": [
3229
+ "crm"
3230
+ ],
3231
+ "deployTargets": [
3232
+ {
3233
+ "name": "topolo-crm-api",
3234
+ "kind": "worker",
3235
+ "apiUrl": null,
3236
+ "domains": [],
3237
+ "routes": [],
3238
+ "appId": null
3239
+ },
3240
+ {
3241
+ "name": "topolo-crm-app",
3242
+ "kind": "worker",
3243
+ "apiUrl": "https://crm.topolo.app",
3244
+ "domains": [
3245
+ "crm.topolo.app"
3246
+ ],
3247
+ "routes": [
3248
+ "crm.topolo.app"
3249
+ ],
3250
+ "appId": "crm"
3251
+ }
3252
+ ]
3253
+ },
3254
+ "design": {
3255
+ "id": "design",
3256
+ "appDir": "TopoloDesign",
3257
+ "name": "topolo-design",
3258
+ "packageName": "@topolo-io/design",
3259
+ "productionUrl": "https://design.topolo.app",
3260
+ "services": [
3261
+ "design"
3262
+ ],
3263
+ "deployTargets": [
3264
+ {
3265
+ "name": "topolo-design",
3266
+ "kind": "worker",
3267
+ "apiUrl": "https://design.topolo.app",
3268
+ "domains": [
3269
+ "design.topolo.app"
3270
+ ],
3271
+ "routes": [
3272
+ "design.topolo.app"
3273
+ ],
3274
+ "appId": "design"
3275
+ },
3276
+ {
3277
+ "name": "topolo-design-api",
3278
+ "kind": "worker",
3279
+ "apiUrl": null,
3280
+ "domains": [],
3281
+ "routes": [],
3282
+ "appId": null
3283
+ }
3284
+ ]
3285
+ },
3286
+ "developers": {
3287
+ "id": "developers",
3288
+ "appDir": "TopoloDevelopers",
3289
+ "name": "topolo-developers",
3290
+ "packageName": "topolo-developers",
3291
+ "productionUrl": "https://developers.topolo.app",
3292
+ "services": [
3293
+ "developers"
3294
+ ],
3295
+ "deployTargets": [
3296
+ {
3297
+ "name": "topolo-catalog-cron",
3298
+ "kind": "worker",
3299
+ "apiUrl": null,
3300
+ "domains": [],
3301
+ "routes": [],
3302
+ "appId": null
3303
+ },
3304
+ {
3305
+ "name": "topolo-developers",
3306
+ "kind": "worker",
3307
+ "apiUrl": "https://developers.topolo.app",
3308
+ "domains": [
3309
+ "developers.topolo.app"
3310
+ ],
3311
+ "routes": [
3312
+ "developers.topolo.app"
3313
+ ],
3314
+ "appId": "developers"
3315
+ },
3316
+ {
3317
+ "name": "topolo-developers-api",
3318
+ "kind": "worker",
3319
+ "apiUrl": null,
3320
+ "domains": [],
3321
+ "routes": [],
3322
+ "appId": null
3323
+ }
3324
+ ]
3325
+ },
3326
+ "director": {
3327
+ "id": "director",
3328
+ "appDir": "TopoloDirector",
3329
+ "name": "topolo-director",
3330
+ "packageName": "topolo-director",
3331
+ "productionUrl": "https://director.topolo.app",
3332
+ "services": [
3333
+ "director"
3334
+ ],
3335
+ "deployTargets": [
3336
+ {
3337
+ "name": "topolo-director",
3338
+ "kind": "worker",
3339
+ "apiUrl": "https://director.topolo.app",
3340
+ "domains": [
3341
+ "director.topolo.app"
3342
+ ],
3343
+ "routes": [
3344
+ "director.topolo.app"
3345
+ ],
3346
+ "appId": "director"
3347
+ },
3348
+ {
3349
+ "name": "topolo-director-api",
3350
+ "kind": "worker",
3351
+ "apiUrl": null,
3352
+ "domains": [],
3353
+ "routes": [],
3354
+ "appId": null
3355
+ }
3356
+ ]
3357
+ },
3358
+ "docs": {
3359
+ "id": "docs",
3360
+ "appDir": "TopoloDocs",
3361
+ "name": "topolo-docs",
3362
+ "packageName": "topolo-docs",
3363
+ "productionUrl": "https://docs.topolo.app",
3364
+ "services": [],
3365
+ "deployTargets": [
3366
+ {
3367
+ "name": "topolo-docs",
3368
+ "kind": "worker",
3369
+ "apiUrl": "https://docs.topolo.app",
3370
+ "domains": [
3371
+ "docs.topolo.app"
3372
+ ],
3373
+ "routes": [
3374
+ "docs.topolo.app"
3375
+ ],
3376
+ "appId": null
3377
+ },
3378
+ {
3379
+ "name": "topolo-docs-api",
3380
+ "kind": "worker",
3381
+ "apiUrl": null,
3382
+ "domains": [],
3383
+ "routes": [],
3384
+ "appId": null
3385
+ }
3386
+ ]
3387
+ },
3388
+ "feed": {
3389
+ "id": "feed",
3390
+ "appDir": "TopoloFeed",
3391
+ "name": "TopoloFeed",
3392
+ "packageName": "topolo-feed",
3393
+ "productionUrl": "https://feed.topolo.app",
3394
+ "services": [
3395
+ "feed"
3396
+ ],
3397
+ "deployTargets": [
3398
+ {
3399
+ "name": "topolo-feed-analytics-api",
3400
+ "kind": "worker",
3401
+ "apiUrl": "https://feed-analytics-api.topolo.app",
3402
+ "domains": [
3403
+ "feed-analytics-api.topolo.app"
3404
+ ],
3405
+ "routes": [
3406
+ "feed-analytics-api.topolo.app"
3407
+ ],
3408
+ "appId": null
3409
+ },
3410
+ {
3411
+ "name": "topolo-feed-api",
3412
+ "kind": "worker",
3413
+ "apiUrl": "https://feed-api.topolo.app",
3414
+ "domains": [
3415
+ "feed-api.topolo.app"
3416
+ ],
3417
+ "routes": [
3418
+ "feed-api.topolo.app"
3419
+ ],
3420
+ "appId": null
3421
+ },
3422
+ {
3423
+ "name": "topolo-feed-web",
3424
+ "kind": "worker",
3425
+ "apiUrl": "https://feed.topolo.app",
3426
+ "domains": [
3427
+ "feed.topolo.app"
3428
+ ],
3429
+ "routes": [
3430
+ "feed.topolo.app"
3431
+ ],
3432
+ "appId": "feed"
3433
+ }
3434
+ ]
3435
+ },
3436
+ "flow": {
3437
+ "id": "flow",
3438
+ "appDir": "TopoloFlow",
3439
+ "name": "topolo-flow",
3440
+ "packageName": "topolo-flow",
3441
+ "productionUrl": "https://flow.topolo.app",
3442
+ "services": [
3443
+ "flow"
3444
+ ],
3445
+ "deployTargets": [
3446
+ {
3447
+ "name": "topolo-flow",
3448
+ "kind": "worker",
3449
+ "apiUrl": "https://flow.topolo.app",
3450
+ "domains": [
3451
+ "flow.topolo.app"
3452
+ ],
3453
+ "routes": [
3454
+ "flow.topolo.app"
3455
+ ],
3456
+ "appId": "flow"
3457
+ },
3458
+ {
3459
+ "name": "topolo-flow-api",
3460
+ "kind": "worker",
3461
+ "apiUrl": null,
3462
+ "domains": [],
3463
+ "routes": [],
3464
+ "appId": null
3465
+ }
3466
+ ]
3467
+ },
3468
+ "forecast": {
3469
+ "id": "forecast",
3470
+ "appDir": "TopoloForecast",
3471
+ "name": "topolo-forecast",
3472
+ "packageName": "topolo-forecast",
3473
+ "productionUrl": "https://forecast.topolo.app",
3474
+ "services": [
3475
+ "forecast"
3476
+ ],
3477
+ "deployTargets": [
3478
+ {
3479
+ "name": "topolo-forecast",
3480
+ "kind": "worker",
3481
+ "apiUrl": "https://forecast.topolo.app",
3482
+ "domains": [
3483
+ "forecast.topolo.app"
3484
+ ],
3485
+ "routes": [
3486
+ "forecast.topolo.app"
3487
+ ],
3488
+ "appId": "forecast"
3489
+ },
3490
+ {
3491
+ "name": "topolo-forecast-api",
3492
+ "kind": "worker",
3493
+ "apiUrl": null,
3494
+ "domains": [],
3495
+ "routes": [],
3496
+ "appId": null
3497
+ }
3498
+ ]
3499
+ },
3500
+ "forms": {
3501
+ "id": "forms",
3502
+ "appDir": "TopoloForms",
3503
+ "name": "topolo-forms",
3504
+ "packageName": "topolo-forms",
3505
+ "productionUrl": "https://forms.topolo.app",
3506
+ "services": [
3507
+ "forms"
3508
+ ],
3509
+ "deployTargets": [
3510
+ {
3511
+ "name": "topolo-forms",
3512
+ "kind": "worker",
3513
+ "apiUrl": "https://forms.topolo.app",
3514
+ "domains": [
3515
+ "forms.topolo.app"
3516
+ ],
3517
+ "routes": [
3518
+ "forms.topolo.app"
3519
+ ],
3520
+ "appId": "forms"
3521
+ },
3522
+ {
3523
+ "name": "topolo-forms-api",
3524
+ "kind": "worker",
3525
+ "apiUrl": null,
3526
+ "domains": [],
3527
+ "routes": [],
3528
+ "appId": null
3529
+ }
3530
+ ]
3531
+ },
3532
+ "home": {
3533
+ "id": "home",
3534
+ "appDir": "TopoloHome",
3535
+ "name": "topolo-home",
3536
+ "packageName": "topolo-home",
3537
+ "productionUrl": "https://home.topolo.app",
3538
+ "services": [
3539
+ "home"
3540
+ ],
3541
+ "deployTargets": [
3542
+ {
3543
+ "name": "topolo-home",
3544
+ "kind": "worker",
3545
+ "apiUrl": "https://home.topolo.app",
3546
+ "domains": [
3547
+ "home.topolo.app"
3548
+ ],
3549
+ "routes": [
3550
+ "home.topolo.app"
3551
+ ],
3552
+ "appId": "home"
3553
+ },
3554
+ {
3555
+ "name": "topolo-home-api",
3556
+ "kind": "worker",
3557
+ "apiUrl": null,
3558
+ "domains": [],
3559
+ "routes": [],
3560
+ "appId": null
3561
+ }
3562
+ ]
3563
+ },
3564
+ "insights": {
3565
+ "id": "insights",
3566
+ "appDir": "TopoloInsights",
3567
+ "name": "topolo-insights",
3568
+ "packageName": "topolo-insights",
3569
+ "productionUrl": "https://insights.topolo.app",
3570
+ "services": [
3571
+ "insights"
3572
+ ],
3573
+ "deployTargets": [
3574
+ {
3575
+ "name": "topolo-insights",
3576
+ "kind": "worker",
3577
+ "apiUrl": "https://insights.topolo.app",
3578
+ "domains": [
3579
+ "insights.topolo.app"
3580
+ ],
3581
+ "routes": [
3582
+ "insights.topolo.app"
3583
+ ],
3584
+ "appId": "insights"
3585
+ },
3586
+ {
3587
+ "name": "topolo-insights-api",
3588
+ "kind": "worker",
3589
+ "apiUrl": null,
3590
+ "domains": [],
3591
+ "routes": [],
3592
+ "appId": null
3593
+ }
3594
+ ]
3595
+ },
3596
+ "inventory": {
3597
+ "id": "inventory",
3598
+ "appDir": "TopoloInventory",
3599
+ "name": "topolo-inventory",
3600
+ "packageName": "topolo-inventory",
3601
+ "productionUrl": "https://inventory.topolo.app",
3602
+ "services": [
3603
+ "inventory"
3604
+ ],
3605
+ "deployTargets": [
3606
+ {
3607
+ "name": "topolo-inventory",
3608
+ "kind": "worker",
3609
+ "apiUrl": "https://inventory.topolo.app",
3610
+ "domains": [
3611
+ "inventory.topolo.app"
3612
+ ],
3613
+ "routes": [
3614
+ "inventory.topolo.app"
3615
+ ],
3616
+ "appId": "inventory"
3617
+ },
3618
+ {
3619
+ "name": "topolo-inventory-api",
3620
+ "kind": "worker",
3621
+ "apiUrl": null,
3622
+ "domains": [],
3623
+ "routes": [],
3624
+ "appId": null
3625
+ }
3626
+ ]
3627
+ },
3628
+ "learn": {
3629
+ "id": "learn",
3630
+ "appDir": "TopoloLearn",
3631
+ "name": "topololearn",
3632
+ "packageName": "topolo-learn",
3633
+ "productionUrl": "https://learn.topolo.app",
3634
+ "services": [
3635
+ "learn"
3636
+ ],
3637
+ "deployTargets": [
3638
+ {
3639
+ "name": "topolo-learn",
3640
+ "kind": "worker",
3641
+ "apiUrl": "https://learn.topolo.app",
3642
+ "domains": [
3643
+ "learn.topolo.app"
3644
+ ],
3645
+ "routes": [
3646
+ "learn.topolo.app"
3647
+ ],
3648
+ "appId": "learn"
3649
+ },
3650
+ {
3651
+ "name": "topolo-learn-api",
3652
+ "kind": "worker",
3653
+ "apiUrl": null,
3654
+ "domains": [],
3655
+ "routes": [],
3656
+ "appId": null
3657
+ }
3658
+ ]
3659
+ },
3660
+ "localize": {
3661
+ "id": "localize",
3662
+ "appDir": "TopoloLocalize",
3663
+ "name": "topolo-localize",
3664
+ "packageName": "topolo-localize",
3665
+ "productionUrl": "https://localize.topolo.app",
3666
+ "services": [
3667
+ "localize"
3668
+ ],
3669
+ "deployTargets": [
3670
+ {
3671
+ "name": "topolo-localize",
3672
+ "kind": "worker",
3673
+ "apiUrl": "https://localize.topolo.app",
3674
+ "domains": [
3675
+ "localize.topolo.app"
3676
+ ],
3677
+ "routes": [
3678
+ "localize.topolo.app"
3679
+ ],
3680
+ "appId": "localize"
3681
+ }
3682
+ ]
3683
+ },
3684
+ "mail": {
3685
+ "id": "mail",
3686
+ "appDir": "TopoloMail",
3687
+ "name": "topolo-mail",
3688
+ "packageName": "topolo-mail",
3689
+ "productionUrl": "https://mail.topolo.app",
3690
+ "services": [
3691
+ "mail"
3692
+ ],
3693
+ "deployTargets": [
3694
+ {
3695
+ "name": "topolo-mail",
3696
+ "kind": "worker",
3697
+ "apiUrl": "https://mail.topolo.app",
3698
+ "domains": [
3699
+ "mail.topolo.app"
3700
+ ],
3701
+ "routes": [
3702
+ "mail.topolo.app"
3703
+ ],
3704
+ "appId": "mail"
3705
+ },
3706
+ {
3707
+ "name": "topolo-mail-api",
3708
+ "kind": "worker",
3709
+ "apiUrl": null,
3710
+ "domains": [],
3711
+ "routes": [],
3712
+ "appId": null
3713
+ }
3714
+ ]
3715
+ },
3716
+ "mdm": {
3717
+ "id": "mdm",
3718
+ "appDir": "TopoloMDM",
3719
+ "name": "TopoloMDM",
3720
+ "packageName": "topolo-mdm",
3721
+ "productionUrl": "https://mdm.topolo.app",
3722
+ "services": [
3723
+ "mdm"
3724
+ ],
3725
+ "deployTargets": [
3726
+ {
3727
+ "name": "topolo-mdm-api",
3728
+ "kind": "worker",
3729
+ "apiUrl": null,
3730
+ "domains": [],
3731
+ "routes": [],
3732
+ "appId": null
3733
+ },
3734
+ {
3735
+ "name": "topolo-mdm-console",
3736
+ "kind": "worker",
3737
+ "apiUrl": "https://mdm.topolo.app",
3738
+ "domains": [
3739
+ "mdm.topolo.app"
3740
+ ],
3741
+ "routes": [
3742
+ "mdm.topolo.app"
3743
+ ],
3744
+ "appId": "mdm"
3745
+ }
3746
+ ]
3747
+ },
3748
+ "messages": {
3749
+ "id": "messages",
3750
+ "appDir": "TopoloMessages",
3751
+ "name": "topolo-messages",
3752
+ "packageName": "topolo-messages",
3753
+ "productionUrl": "https://messages.topolo.app",
3754
+ "services": [
3755
+ "messages"
3756
+ ],
3757
+ "deployTargets": [
3758
+ {
3759
+ "name": "topolo-messages",
3760
+ "kind": "worker",
3761
+ "apiUrl": "https://messages.topolo.app",
3762
+ "domains": [
3763
+ "messages.topolo.app"
3764
+ ],
3765
+ "routes": [
3766
+ "messages.topolo.app"
3767
+ ],
3768
+ "appId": "messages"
3769
+ },
3770
+ {
3771
+ "name": "topolo-messages-api",
3772
+ "kind": "worker",
3773
+ "apiUrl": null,
3774
+ "domains": [],
3775
+ "routes": [],
3776
+ "appId": null
3777
+ },
3778
+ {
3779
+ "name": "topolo-messages-dispatch",
3780
+ "kind": "worker",
3781
+ "apiUrl": null,
3782
+ "domains": [],
3783
+ "routes": [],
3784
+ "appId": null
3785
+ }
3786
+ ]
3787
+ },
3788
+ "nexus": {
3789
+ "id": "nexus",
3790
+ "appDir": "TopoloNexus",
3791
+ "name": "topolo-nexus",
3792
+ "packageName": "topolo-nexus",
3793
+ "productionUrl": "https://nexus.topolo.app",
3794
+ "services": [
3795
+ "nexus"
3796
+ ],
3797
+ "deployTargets": [
3798
+ {
3799
+ "name": "topolo-nexus-dashboard",
3800
+ "kind": "worker",
3801
+ "apiUrl": "https://nexus.topolo.app",
3802
+ "domains": [
3803
+ "nexus.topolo.app"
3804
+ ],
3805
+ "routes": [
3806
+ "nexus.topolo.app"
3807
+ ],
3808
+ "appId": null
3809
+ },
3810
+ {
3811
+ "name": "topolo-nexus-gateway",
3812
+ "kind": "worker",
3813
+ "apiUrl": "https://nexus.topolo.app",
3814
+ "domains": [
3815
+ "nexus.topolo.app"
3816
+ ],
3817
+ "routes": [],
3818
+ "appId": "nexus"
3819
+ }
3820
+ ]
3821
+ },
3822
+ "notify": {
3823
+ "id": "notify",
3824
+ "appDir": "TopoloNotify",
3825
+ "name": "topolo-notify",
3826
+ "packageName": "@topolo/notify",
3827
+ "productionUrl": "https://notify.topolo.app",
3828
+ "services": [
3829
+ "notify"
3830
+ ],
3831
+ "deployTargets": [
3832
+ {
3833
+ "name": "topolo-notify",
3834
+ "kind": "worker",
3835
+ "apiUrl": "https://notify.topolo.app",
3836
+ "domains": [
3837
+ "notify.topolo.app"
3838
+ ],
3839
+ "routes": [
3840
+ "notify.topolo.app"
3841
+ ],
3842
+ "appId": "notify"
3843
+ }
3844
+ ]
3845
+ },
3846
+ "observability_watch": {
3847
+ "id": "observability_watch",
3848
+ "appDir": "TopoloObservabilityWatch",
3849
+ "name": "topolo-observability-watch",
3850
+ "packageName": "topolo-observability-watch",
3851
+ "productionUrl": "https://observability-watch.topolo.app",
3852
+ "services": [
3853
+ "observability_watch"
3854
+ ],
3855
+ "deployTargets": [
3856
+ {
3857
+ "name": "topolo-observability-watch",
3858
+ "kind": "worker",
3859
+ "apiUrl": "https://observability-watch.topolo.app",
3860
+ "domains": [
3861
+ "observability-watch.topolo.app"
3862
+ ],
3863
+ "routes": [
3864
+ "observability-watch.topolo.app"
3865
+ ],
3866
+ "appId": "observability_watch"
3867
+ }
3868
+ ]
3869
+ },
3870
+ "one": {
3871
+ "id": "one",
3872
+ "appDir": "TopoloOne",
3873
+ "name": "TopoloOne",
3874
+ "packageName": "topolo-oneclick-sso",
3875
+ "productionUrl": "https://one.topolo.app",
3876
+ "services": [
3877
+ "one"
3878
+ ],
3879
+ "deployTargets": [
3880
+ {
3881
+ "name": "topolo-one",
3882
+ "kind": "worker",
3883
+ "apiUrl": "https://one.topolo.app",
3884
+ "domains": [
3885
+ "one.topolo.app"
3886
+ ],
3887
+ "routes": [
3888
+ "one.topolo.app/*"
3889
+ ],
3890
+ "appId": null
3891
+ },
3892
+ {
3893
+ "name": "topolo-one-api",
3894
+ "kind": "worker",
3895
+ "apiUrl": "https://www.topolo.app",
3896
+ "domains": [
3897
+ "www.topolo.app"
3898
+ ],
3899
+ "routes": [
3900
+ "www.topolo.app/*"
3901
+ ],
3902
+ "appId": "one"
3903
+ },
3904
+ {
3905
+ "name": "topolo-one-website",
3906
+ "kind": "worker",
3907
+ "apiUrl": "https://topolo.io",
3908
+ "domains": [
3909
+ "topolo.io"
3910
+ ],
3911
+ "routes": [
3912
+ "one.topolo.io",
3913
+ "topolo.io",
3914
+ "www.topolo.io"
3915
+ ],
3916
+ "appId": null
3917
+ }
3918
+ ]
3919
+ },
3920
+ "p2p": {
3921
+ "id": "p2p",
3922
+ "appDir": "TopoloP2P",
3923
+ "name": "topolo-p2p",
3924
+ "packageName": "topolo-p2p",
3925
+ "productionUrl": "https://p2p.topolo.app",
3926
+ "services": [
3927
+ "p2p"
3928
+ ],
3929
+ "deployTargets": [
3930
+ {
3931
+ "name": "topolo-p2p",
3932
+ "kind": "worker",
3933
+ "apiUrl": "https://p2p.topolo.app",
3934
+ "domains": [
3935
+ "p2p.topolo.app"
3936
+ ],
3937
+ "routes": [
3938
+ "p2p.topolo.app"
3939
+ ],
3940
+ "appId": "p2p"
3941
+ },
3942
+ {
3943
+ "name": "topolo-p2p-api",
3944
+ "kind": "worker",
3945
+ "apiUrl": null,
3946
+ "domains": [],
3947
+ "routes": [],
3948
+ "appId": null
3949
+ }
3950
+ ]
3951
+ },
3952
+ "pay": {
3953
+ "id": "pay",
3954
+ "appDir": "TopoloPay",
3955
+ "name": "topolo-pay",
3956
+ "packageName": "topolo-pay",
3957
+ "productionUrl": "https://pay.topolo.app",
3958
+ "services": [
3959
+ "pay"
3960
+ ],
3961
+ "deployTargets": [
3962
+ {
3963
+ "name": "topolo-pay",
3964
+ "kind": "worker",
3965
+ "apiUrl": "https://pay.topolo.app",
3966
+ "domains": [
3967
+ "pay.topolo.app"
3968
+ ],
3969
+ "routes": [
3970
+ "pay.topolo.app"
3971
+ ],
3972
+ "appId": "pay"
3973
+ },
3974
+ {
3975
+ "name": "topolo-pay-api",
3976
+ "kind": "worker",
3977
+ "apiUrl": null,
3978
+ "domains": [],
3979
+ "routes": [],
3980
+ "appId": null
3981
+ }
3982
+ ]
3983
+ },
3984
+ "people": {
3985
+ "id": "people",
3986
+ "appDir": "TopoloPeople",
3987
+ "name": "topolo-people",
3988
+ "packageName": "topolo-people",
3989
+ "productionUrl": "https://people.topolo.app",
3990
+ "services": [
3991
+ "people"
3992
+ ],
3993
+ "deployTargets": [
3994
+ {
3995
+ "name": "topolo-people",
3996
+ "kind": "worker",
3997
+ "apiUrl": "https://people.topolo.app",
3998
+ "domains": [
3999
+ "people.topolo.app"
4000
+ ],
4001
+ "routes": [
4002
+ "people.topolo.app"
4003
+ ],
4004
+ "appId": "people"
4005
+ },
4006
+ {
4007
+ "name": "topolo-people-api",
4008
+ "kind": "worker",
4009
+ "apiUrl": null,
4010
+ "domains": [],
4011
+ "routes": [],
4012
+ "appId": null
4013
+ }
4014
+ ]
4015
+ },
4016
+ "quro": {
4017
+ "id": "quro",
4018
+ "appDir": "TopoloQuro",
4019
+ "name": "TopoloQuro",
4020
+ "packageName": "topolo-quro",
4021
+ "productionUrl": "https://quro.topolo.app",
4022
+ "services": [
4023
+ "quro.api",
4024
+ "quro.redirect"
4025
+ ],
4026
+ "deployTargets": [
4027
+ {
4028
+ "name": "quro-api",
4029
+ "kind": "worker",
4030
+ "apiUrl": "https://api.ol0.me",
4031
+ "domains": [
4032
+ "api.ol0.me"
4033
+ ],
4034
+ "routes": [
4035
+ "api.ol0.me/*"
4036
+ ],
4037
+ "appId": "quro.api"
4038
+ },
4039
+ {
4040
+ "name": "quro-redirect-system",
4041
+ "kind": "worker",
4042
+ "apiUrl": "https://ol0.me",
4043
+ "domains": [
4044
+ "ol0.me"
4045
+ ],
4046
+ "routes": [
4047
+ "ol0.me/*"
4048
+ ],
4049
+ "appId": "quro.redirect"
4050
+ },
4051
+ {
4052
+ "name": "quro-ui",
4053
+ "kind": "worker",
4054
+ "apiUrl": "https://quro.topolo.app",
4055
+ "domains": [
4056
+ "quro.topolo.app"
4057
+ ],
4058
+ "routes": [
4059
+ "quro.topolo.app"
4060
+ ],
4061
+ "appId": null
4062
+ }
4063
+ ]
4064
+ },
4065
+ "roadmapper": {
4066
+ "id": "roadmapper",
4067
+ "appDir": "TopoloRoadmapper",
4068
+ "name": "topolo-roadmapper",
4069
+ "packageName": "topolo-roadmapper",
4070
+ "productionUrl": "https://roadmapper.topolo.app",
4071
+ "services": [
4072
+ "roadmapper"
4073
+ ],
4074
+ "deployTargets": [
4075
+ {
4076
+ "name": "topolo-roadmapper",
4077
+ "kind": "worker",
4078
+ "apiUrl": "https://roadmapper.topolo.app",
4079
+ "domains": [
4080
+ "roadmapper.topolo.app"
4081
+ ],
4082
+ "routes": [
4083
+ "roadmapper.topolo.app"
4084
+ ],
4085
+ "appId": "roadmapper"
4086
+ },
4087
+ {
4088
+ "name": "topolo-roadmapper-api",
4089
+ "kind": "worker",
4090
+ "apiUrl": null,
4091
+ "domains": [],
4092
+ "routes": [],
4093
+ "appId": null
4094
+ }
4095
+ ]
4096
+ },
4097
+ "sign": {
4098
+ "id": "sign",
4099
+ "appDir": "TopoloSign",
4100
+ "name": "topolo-sign",
4101
+ "packageName": "topolo-sign",
4102
+ "productionUrl": "https://sign.topolo.app",
4103
+ "services": [
4104
+ "sign"
4105
+ ],
4106
+ "deployTargets": [
4107
+ {
4108
+ "name": "topolo-sign",
4109
+ "kind": "worker",
4110
+ "apiUrl": "https://sign.topolo.app",
4111
+ "domains": [
4112
+ "sign.topolo.app"
4113
+ ],
4114
+ "routes": [
4115
+ "sign.topolo.app"
4116
+ ],
4117
+ "appId": "sign"
4118
+ },
4119
+ {
4120
+ "name": "topolo-sign-api",
4121
+ "kind": "worker",
4122
+ "apiUrl": null,
4123
+ "domains": [],
4124
+ "routes": [],
4125
+ "appId": null
4126
+ }
4127
+ ]
4128
+ },
4129
+ "social_studio": {
4130
+ "id": "social_studio",
4131
+ "appDir": "TopoloSocialStudio",
4132
+ "name": "topolo-social-studio",
4133
+ "packageName": "topolo-social-studio",
4134
+ "productionUrl": "https://studio.topolo.app",
4135
+ "services": [
4136
+ "social_studio"
4137
+ ],
4138
+ "deployTargets": [
4139
+ {
4140
+ "name": "topolo-social-studio",
4141
+ "kind": "worker",
4142
+ "apiUrl": "https://studio.topolo.app",
4143
+ "domains": [
4144
+ "studio.topolo.app"
4145
+ ],
4146
+ "routes": [
4147
+ "studio.topolo.app"
4148
+ ],
4149
+ "appId": "social_studio"
4150
+ },
4151
+ {
4152
+ "name": "topolo-social-studio-api",
4153
+ "kind": "worker",
4154
+ "apiUrl": null,
4155
+ "domains": [],
4156
+ "routes": [],
4157
+ "appId": null
4158
+ },
4159
+ {
4160
+ "name": "topolo-social-studio-queue",
4161
+ "kind": "worker",
4162
+ "apiUrl": null,
4163
+ "domains": [],
4164
+ "routes": [],
4165
+ "appId": null
4166
+ }
4167
+ ]
4168
+ },
4169
+ "socialize": {
4170
+ "id": "socialize",
4171
+ "appDir": "TopoloSocialize",
4172
+ "name": "socialize",
4173
+ "packageName": "topolo-socialize",
4174
+ "productionUrl": "https://socialize.topolo.app",
4175
+ "services": [
4176
+ "socialize"
4177
+ ],
4178
+ "deployTargets": [
4179
+ {
4180
+ "name": "topolo-socialize",
4181
+ "kind": "worker",
4182
+ "apiUrl": "https://socialize.topolo.app",
4183
+ "domains": [
4184
+ "socialize.topolo.app"
4185
+ ],
4186
+ "routes": [
4187
+ "socialize.topolo.app"
4188
+ ],
4189
+ "appId": "socialize"
4190
+ },
4191
+ {
4192
+ "name": "topolo-socialize-api",
4193
+ "kind": "worker",
4194
+ "apiUrl": "https://socialize-api.topolo.app",
4195
+ "domains": [
4196
+ "socialize-api.topolo.app"
4197
+ ],
4198
+ "routes": [
4199
+ "socialize-api.topolo.app"
4200
+ ],
4201
+ "appId": null
4202
+ },
4203
+ {
4204
+ "name": "topolo-socialize-scheduler",
4205
+ "kind": "worker",
4206
+ "apiUrl": null,
4207
+ "domains": [],
4208
+ "routes": [],
4209
+ "appId": null
4210
+ }
4211
+ ]
4212
+ },
4213
+ "spaces": {
4214
+ "id": "spaces",
4215
+ "appDir": "TopoloSpaces",
4216
+ "name": "topolo-spaces",
4217
+ "packageName": "@topolo/spaces",
4218
+ "productionUrl": "https://spaces.topolo.app",
4219
+ "services": [
4220
+ "spaces"
4221
+ ],
4222
+ "deployTargets": [
4223
+ {
4224
+ "name": "topolo-spaces",
4225
+ "kind": "worker",
4226
+ "apiUrl": "https://spaces.topolo.app",
4227
+ "domains": [
4228
+ "spaces.topolo.app"
4229
+ ],
4230
+ "routes": [
4231
+ "spaces.topolo.app"
4232
+ ],
4233
+ "appId": "spaces"
4234
+ },
4235
+ {
4236
+ "name": "topolo-spaces-api",
4237
+ "kind": "worker",
4238
+ "apiUrl": null,
4239
+ "domains": [],
4240
+ "routes": [],
4241
+ "appId": null
4242
+ }
4243
+ ]
4244
+ },
4245
+ "status": {
4246
+ "id": "status",
4247
+ "appDir": "TopoloStatus",
4248
+ "name": "topolo-status",
4249
+ "packageName": "topolo-status",
4250
+ "productionUrl": "https://status.topolo.app",
4251
+ "services": [
4252
+ "status"
4253
+ ],
4254
+ "deployTargets": [
4255
+ {
4256
+ "name": "topolo-status",
4257
+ "kind": "worker",
4258
+ "apiUrl": "https://status.topolo.app",
4259
+ "domains": [
4260
+ "status.topolo.app"
4261
+ ],
4262
+ "routes": [
4263
+ "status.topolo.app"
4264
+ ],
4265
+ "appId": "status"
4266
+ }
4267
+ ]
4268
+ },
4269
+ "success": {
4270
+ "id": "success",
4271
+ "appDir": "TopoloSuccess",
4272
+ "name": "topolo-success",
4273
+ "packageName": "topolo-success",
4274
+ "productionUrl": "https://success.topolo.app",
4275
+ "services": [
4276
+ "success"
4277
+ ],
4278
+ "deployTargets": [
4279
+ {
4280
+ "name": "topolo-success",
4281
+ "kind": "worker",
4282
+ "apiUrl": "https://success.topolo.app",
4283
+ "domains": [
4284
+ "success.topolo.app"
4285
+ ],
4286
+ "routes": [
4287
+ "success.topolo.app"
4288
+ ],
4289
+ "appId": "success"
4290
+ },
4291
+ {
4292
+ "name": "topolo-success-api",
4293
+ "kind": "worker",
4294
+ "apiUrl": null,
4295
+ "domains": [],
4296
+ "routes": [],
4297
+ "appId": null
4298
+ }
4299
+ ]
4300
+ },
4301
+ "support": {
4302
+ "id": "support",
4303
+ "appDir": "TopoloSupport",
4304
+ "name": "topolo-support",
4305
+ "packageName": "topolo-support",
4306
+ "productionUrl": "https://support.topolo.app",
4307
+ "services": [
4308
+ "support"
4309
+ ],
4310
+ "deployTargets": [
4311
+ {
4312
+ "name": "topolo-support",
4313
+ "kind": "worker",
4314
+ "apiUrl": "https://support.topolo.app",
4315
+ "domains": [
4316
+ "support.topolo.app"
4317
+ ],
4318
+ "routes": [
4319
+ "support.topolo.app/*"
4320
+ ],
4321
+ "appId": "support"
4322
+ },
4323
+ {
4324
+ "name": "topolo-support-api",
4325
+ "kind": "worker",
4326
+ "apiUrl": null,
4327
+ "domains": [],
4328
+ "routes": [],
4329
+ "appId": null
4330
+ }
4331
+ ]
4332
+ },
4333
+ "survey": {
4334
+ "id": "survey",
4335
+ "appDir": "TopoloSurvey",
4336
+ "name": "topolo-survey",
4337
+ "packageName": "topolo-survey",
4338
+ "productionUrl": "https://survey.topolo.app",
4339
+ "services": [
4340
+ "survey"
4341
+ ],
4342
+ "deployTargets": [
4343
+ {
4344
+ "name": "topolo-survey",
4345
+ "kind": "worker",
4346
+ "apiUrl": "https://survey.topolo.app",
4347
+ "domains": [
4348
+ "survey.topolo.app"
4349
+ ],
4350
+ "routes": [
4351
+ "survey.topolo.app"
4352
+ ],
4353
+ "appId": "survey"
4354
+ },
4355
+ {
4356
+ "name": "topolo-survey-api",
4357
+ "kind": "worker",
4358
+ "apiUrl": null,
4359
+ "domains": [],
4360
+ "routes": [],
4361
+ "appId": null
4362
+ }
4363
+ ]
4364
+ },
4365
+ "voice": {
4366
+ "id": "voice",
4367
+ "appDir": "TopoloVoice",
4368
+ "name": "topolo-voice",
4369
+ "packageName": "topolo-voice",
4370
+ "productionUrl": "https://voice.topolo.app",
4371
+ "services": [
4372
+ "voice"
4373
+ ],
4374
+ "deployTargets": [
4375
+ {
4376
+ "name": "topolo-voice",
4377
+ "kind": "worker",
4378
+ "apiUrl": "https://voice.topolo.app",
4379
+ "domains": [
4380
+ "voice.topolo.app"
4381
+ ],
4382
+ "routes": [
4383
+ "voice.topolo.app"
4384
+ ],
4385
+ "appId": "voice"
4386
+ },
4387
+ {
4388
+ "name": "topolo-voice-api",
4389
+ "kind": "worker",
4390
+ "apiUrl": null,
4391
+ "domains": [],
4392
+ "routes": [],
4393
+ "appId": null
4394
+ }
4395
+ ]
4396
+ },
4397
+ "web": {
4398
+ "id": "web",
4399
+ "appDir": "TopoloWeb",
4400
+ "name": "topoloweb",
4401
+ "packageName": "topolo-web",
4402
+ "productionUrl": "https://web.topolo.app",
4403
+ "services": [
4404
+ "web"
4405
+ ],
4406
+ "deployTargets": [
4407
+ {
4408
+ "name": "topolo-web-api",
4409
+ "kind": "worker",
4410
+ "apiUrl": null,
4411
+ "domains": [],
4412
+ "routes": [],
4413
+ "appId": null
4414
+ },
4415
+ {
4416
+ "name": "topolo-web-runtime",
4417
+ "kind": "worker",
4418
+ "apiUrl": "https://sites.topolo.app",
4419
+ "domains": [
4420
+ "sites.topolo.app"
4421
+ ],
4422
+ "routes": [
4423
+ "*.sites.topolo.app/*",
4424
+ "sites.topolo.app"
4425
+ ],
4426
+ "appId": null
4427
+ },
4428
+ {
4429
+ "name": "topolo-web-studio",
4430
+ "kind": "worker",
4431
+ "apiUrl": "https://web.topolo.app",
4432
+ "domains": [
4433
+ "web.topolo.app"
4434
+ ],
4435
+ "routes": [
4436
+ "web.topolo.app"
4437
+ ],
4438
+ "appId": "web"
4439
+ }
4440
+ ]
4441
+ }
4442
+ };
4443
+
4444
+ // src/application-requirements.ts
4445
+ var STATIC_APPLICATIONS = APPLICATIONS;
4446
+ var APPLICATION_REQUIREMENTS_VERSION = "2026-08-11.1";
4447
+ var APPLICATION_REQUIREMENTS = [
4448
+ {
4449
+ id: "platform-metadata",
4450
+ title: "Register the application in platform metadata",
4451
+ summary: "Every app must have a stable application ID, CloudControl metadata for deployed surfaces, and package metadata where code is shipped.",
4452
+ appliesTo: ["all"],
4453
+ evidence: [
4454
+ "topolo.cloudcontrol.json exists for every deployed app surface",
4455
+ "package.json names the package or app when the repo ships code",
4456
+ "The live platform registry exposes the app through topolo apps and MCP discovery"
4457
+ ],
4458
+ implementation: [
4459
+ "Register the app in the live platform registry (Auth service catalog) before exposing it to agents",
4460
+ "Keep production URLs, Worker names, Pages projects, routes, domains, and bindings current in CloudControl metadata",
4461
+ "Do not leave a new Topolo* app directory without an explicit application ID"
4462
+ ]
4463
+ },
4464
+ {
4465
+ id: "canonical-docs",
4466
+ title: "Update canonical docs with the code change",
4467
+ summary: "TopoloDocs is the source of truth for application behavior, ownership, deployment shape, auth boundaries, and operations.",
4468
+ appliesTo: ["all"],
4469
+ evidence: [
4470
+ "Matching system registry entry exists in TopoloDocs",
4471
+ "Internal handbook coverage exists for the system",
4472
+ "npm run validate passes in TopoloDocs when docs are touched"
4473
+ ],
4474
+ implementation: [
4475
+ "Read the matching TopoloDocs system entry before coding",
4476
+ "Update docs in the same change when behavior, API, auth, data ownership, deployment, or operations change",
4477
+ "Update last_verified dates on touched canonical pages"
4478
+ ]
4479
+ },
4480
+ {
4481
+ id: "shared-auth-boundary",
4482
+ title: "Use the shared Topolo auth boundary",
4483
+ summary: "Applications must derive identity, organization, scopes, and app entitlement from TopoloAuth rather than inventing parallel auth state.",
4484
+ appliesTo: ["browser", "api", "tooling", "agent_surface"],
4485
+ evidence: [
4486
+ "@topolo/auth-client or @topolo-io/worker-runtime is used where applicable",
4487
+ "No public command, tool, or SDK method accepts orgId",
4488
+ "App slug and Auth app registration are documented for protected APIs"
4489
+ ],
4490
+ implementation: [
4491
+ "Use shared auth/runtime packages instead of copying token parsing, gateway, or browser storage flows",
4492
+ "Derive organization from the credential on every request",
4493
+ "Route OAuth, refresh, logout, and SSO paths according to the shared Auth contract"
4494
+ ]
4495
+ },
4496
+ {
4497
+ id: "shared-shell-and-launcher",
4498
+ title: "Use the shared shell, launcher, and account menu",
4499
+ summary: "Browser applications should feel like one platform and should not create isolated navigation or account surfaces.",
4500
+ appliesTo: ["browser"],
4501
+ evidence: [
4502
+ "@topolo-io/app-shell is used for the platform shell where the app has authenticated UI",
4503
+ "@topolo-io/app-launcher keeps the shared launcher/app switcher reachable from authenticated app chrome",
4504
+ "Account menu and sign-out behavior use TopoloAppShell or the ui-kit TopoloAccountMenu primitive",
4505
+ "Repeated app body surfaces use shared TopoloAppLayout primitives instead of local stat cards, empty states, or status badges",
4506
+ "Local preview supports deterministic visual QA fixtures for overview, list, detail, settings, and empty/loading states",
4507
+ "Authenticated app body content stays inside the viewport on mobile and desktop widths"
4508
+ ],
4509
+ implementation: [
4510
+ "Use @topolo-io/app-shell TopoloAppShell for authenticated app layouts",
4511
+ "Use the @topolo-io/ui-kit TopoloAccountMenu primitive when a partial-shell surface still needs account chrome",
4512
+ "Pass app-specific account actions as additive menu items instead of forking dropdowns",
4513
+ "Use shared design tokens and platform UI primitives before creating local equivalents",
4514
+ "Use TopoloAppMetricCard, TopoloAppEmptyState, TopoloAppStatusBadge, TopoloAppGrid, and TopoloAppSection for repeated app body patterns",
4515
+ "Keep visual QA fixtures available through visualQa=1 or __devpreview=1 so screenshot checks do not depend on live API state",
4516
+ "Keep mobile and desktop shell behavior aligned with the platform UI kit",
4517
+ "Constrain the app workspace-view layout wrappers with min-width: 0, width: auto, and viewport-aware max-width so shell padding cannot create page-level horizontal overflow"
4518
+ ]
4519
+ },
4520
+ {
4521
+ id: "app-registration-and-scopes",
4522
+ title: "Register protected APIs as platform apps",
4523
+ summary: "Callable app APIs need a stable app ID, app slug, permissions, role bundles, and API-key scopes before agents or users rely on them.",
4524
+ appliesTo: ["api"],
4525
+ evidence: [
4526
+ "Auth app catalog contains the app ID and slug",
4527
+ "Permissions, role bundles, and API-key scopes exist for the app",
4528
+ "SDK, CLI, and MCP app discovery include the callable production API",
4529
+ "CloudControl production HTTP targets classify agent reachability with sdk_app_id or agent_callable:false"
4530
+ ],
4531
+ implementation: [
4532
+ "Add production Worker api_url metadata and sdk_app_id for every agent-callable API target",
4533
+ "Mark browser, documentation, and runtime-only Worker targets with agent_callable:false",
4534
+ "Expose stable app IDs through live catalog discovery",
4535
+ "Keep typed SDK/CLI/MCP surfaces in sync when an API contract stabilizes"
4536
+ ]
4537
+ },
4538
+ {
4539
+ id: "organization-scoped-data",
4540
+ title: "Keep application data organization-scoped",
4541
+ summary: "Protected data access must be scoped by the authenticated organization at the backend boundary, not by client-provided hints.",
4542
+ appliesTo: ["api"],
4543
+ evidence: [
4544
+ "Backend request handlers derive org membership from credential validation",
4545
+ "Queries and Durable Object keys include the authenticated organization boundary where data is tenant-owned",
4546
+ "MCP and CLI inputs do not include orgId overrides"
4547
+ ],
4548
+ implementation: [
4549
+ "Reject or ignore organization hints supplied by clients",
4550
+ "Bind SQL, KV, R2, queue, and Durable Object access to the authenticated organization",
4551
+ "Document service-local exceptions explicitly in the system security assurance record"
4552
+ ]
4553
+ },
4554
+ {
4555
+ id: "cloudflare-deployment-contract",
4556
+ title: "Keep Cloudflare deployment metadata complete",
4557
+ summary: "Workers, Pages, bindings, routes, env vars, queues, cron triggers, and deployment commands must be discoverable through CloudControl metadata.",
4558
+ appliesTo: ["browser", "api"],
4559
+ evidence: [
4560
+ "topolo.cloudcontrol.json lists production deploy targets and URLs",
4561
+ "Wrangler/Pages configuration matches CloudControl metadata",
4562
+ "Secrets and environment variables are not committed"
4563
+ ],
4564
+ implementation: [
4565
+ "Update CloudControl metadata whenever deployment topology changes",
4566
+ "Prefer Cloudflare-native runtime surfaces for new Topolo app infrastructure",
4567
+ "Keep Worker bindings and Pages domains explicit enough for agents to inspect before deploying"
4568
+ ]
4569
+ },
4570
+ {
4571
+ id: "agent-and-operator-surfaces",
4572
+ title: "Expose agent-safe operations through SDK, CLI, and MCP",
4573
+ summary: "Agent-accessible functionality should be discoverable, scope-gated, and write-confirmed instead of hidden behind ad hoc HTTP calls.",
4574
+ appliesTo: ["api", "tooling", "agent_surface"],
4575
+ evidence: [
4576
+ "Read operations have typed SDK/CLI/MCP surfaces once their contract stabilizes",
4577
+ "Mutating generic calls require --confirm or confirm:true",
4578
+ "MCP tools never accept orgId and advertise only appropriate scope-gated tools"
4579
+ ],
4580
+ implementation: [
4581
+ "Add SDK types first, then CLI commands and MCP tools for durable workflows",
4582
+ "Use generic API passthrough only as a temporary escape hatch",
4583
+ "Keep command output JSON-stable for agents and human-readable with --no-json"
4584
+ ]
4585
+ },
4586
+ {
4587
+ id: "native-dashboard-widget",
4588
+ title: "Expose a native dashboard widget contract",
4589
+ summary: "Launchable first-party applications must populate TopoloOne live workspace through an app-owned /api/widget endpoint using the SDK widget response contract.",
4590
+ appliesTo: ["api"],
4591
+ evidence: [
4592
+ "The app-owned API exposes GET /api/widget",
4593
+ "The endpoint returns TopoloWidgetApiResponse from @topolo/sdk",
4594
+ "Every returned widget includes snapshot.summary with app-owned operational prose",
4595
+ "The endpoint derives organization/user context from the app auth boundary"
4596
+ ],
4597
+ implementation: [
4598
+ "Import createTopoloWidgetResponse from @topolo/sdk in the app backend",
4599
+ "Return native app metrics or action widgets instead of generic launch-card fallbacks",
4600
+ "Populate snapshot.summary in the producing app for every widget instead of synthesizing summaries in TopoloOne",
4601
+ "Add a route-level test that validates the response with validateTopoloWidgetResponse"
4602
+ ]
4603
+ },
4604
+ {
4605
+ id: "observability-and-audit",
4606
+ title: "Emit platform audit and debugging signals",
4607
+ summary: "Requests, agent actions, and operational workflows need traceable IDs, client labels, and useful failure evidence.",
4608
+ appliesTo: ["api", "tooling", "agent_surface"],
4609
+ evidence: [
4610
+ "Requests carry X-Topolo-Client and X-Topolo-Request-Id where the SDK is involved",
4611
+ "Agent-originated calls can include X-Topolo-Agent",
4612
+ "Failure modes are documented with request IDs or deployment/log lookup paths"
4613
+ ],
4614
+ implementation: [
4615
+ "Use TopoloClient for platform API calls rather than raw fetch where practical",
4616
+ "Keep logs free of secrets and tokens",
4617
+ "Document live smoke commands and request-id correlation in canonical docs"
4618
+ ]
4619
+ },
4620
+ {
4621
+ id: "verification-gates",
4622
+ title: "Ship with build, test, docs, and smoke verification",
4623
+ summary: "A Topolo app change is not complete until the relevant code checks and docs checks have been run or explicitly reported as blocked.",
4624
+ appliesTo: ["all"],
4625
+ evidence: [
4626
+ "Relevant package build/typecheck/test commands pass",
4627
+ "TopoloDocs validation passes when docs are touched",
4628
+ "Live or local smoke evidence is captured for user-visible or API behavior"
4629
+ ],
4630
+ implementation: [
4631
+ "Prefer existing package scripts before adding new tooling",
4632
+ "Run app-specific checks and shared docs validation for behavior changes",
4633
+ "Report any skipped verification with the blocker and residual risk"
4634
+ ]
4635
+ }
4636
+ ];
4637
+ function applicationRequirementScopes(application) {
4638
+ const scopes = /* @__PURE__ */ new Set(["all"]);
4639
+ const appId = application.id;
4640
+ const hasBrowserSurface = Boolean(application.productionUrl) || // String() keeps this guard valid after the Pages->Worker migration narrowed
4641
+ // the generated kind union to "worker" (no "pages" literal remains).
4642
+ application.deployTargets.some((target) => String(target.kind) === "pages");
4643
+ const hasApiSurface = application.services.length > 0 || application.deployTargets.some((target) => Boolean(target.appId));
4644
+ if (hasBrowserSurface) scopes.add("browser");
4645
+ if (hasApiSurface) scopes.add("api");
4646
+ if (appId === "cli" || appId === "mcp" || appId === "cloudcontrol") {
4647
+ scopes.add("tooling");
4648
+ }
4649
+ if (appId === "cli" || appId === "mcp" || hasApiSurface) {
4650
+ scopes.add("agent_surface");
4651
+ }
4652
+ return Array.from(scopes);
4653
+ }
4654
+ function fallbackApplication(id) {
4655
+ const entry = STATIC_APPLICATIONS[id];
4656
+ if (!entry) {
4657
+ throw new Error(
4658
+ `Unknown application "${id}" in the static fallback snapshot. Resolve applications from the live registry (resolveApplicationDirectoryEntry) and pass the entry directly.`
4659
+ );
4660
+ }
4661
+ return entry;
4662
+ }
4663
+ function requirementsForApplication(applicationOrId) {
4664
+ const application = typeof applicationOrId === "string" ? fallbackApplication(applicationOrId) : applicationOrId;
4665
+ const scopes = new Set(applicationRequirementScopes(application));
4666
+ return APPLICATION_REQUIREMENTS.filter(
4667
+ (requirement) => requirement.appliesTo.some((scope) => scopes.has(scope))
4668
+ );
4669
+ }
4670
+ function auditApplicationRequirements(applicationOrId) {
4671
+ const application = typeof applicationOrId === "string" ? fallbackApplication(applicationOrId) : applicationOrId;
4672
+ const scopes = applicationRequirementScopes(application);
4673
+ const findings = requirementsForApplication(application).map(
4674
+ (requirement) => evaluateRequirement(application, requirement)
4675
+ );
4676
+ return {
4677
+ version: APPLICATION_REQUIREMENTS_VERSION,
4678
+ application,
4679
+ scopes,
4680
+ score: scoreFindings(findings),
4681
+ findings
4682
+ };
4683
+ }
4684
+ function auditApplicationEntries(applications) {
4685
+ return buildAuditReport(
4686
+ applications.map((application) => auditApplicationRequirements(application))
4687
+ );
4688
+ }
4689
+ function auditAllApplicationRequirements(applicationIds = Object.keys(APPLICATIONS).sort()) {
4690
+ return buildAuditReport(
4691
+ applicationIds.map((applicationId) => auditApplicationRequirements(applicationId))
4692
+ );
4693
+ }
4694
+ function buildAuditReport(applications) {
4695
+ const migrationQueue = applications.flatMap(
4696
+ (audit) => audit.findings.filter((finding2) => finding2.status !== "met").map((finding2) => ({
4697
+ applicationId: audit.application.id,
4698
+ applicationName: audit.application.name,
4699
+ requirementId: finding2.requirementId,
4700
+ title: finding2.title,
4701
+ status: finding2.status,
4702
+ reason: finding2.reason,
4703
+ nextActions: finding2.nextActions
4704
+ }))
4705
+ ).sort((a, b) => {
4706
+ const statusOrder = statusRank(a.status) - statusRank(b.status);
4707
+ if (statusOrder !== 0) return statusOrder;
4708
+ const appOrder = a.applicationId.localeCompare(b.applicationId);
4709
+ if (appOrder !== 0) return appOrder;
4710
+ return a.requirementId.localeCompare(b.requirementId);
4711
+ });
4712
+ return {
4713
+ version: APPLICATION_REQUIREMENTS_VERSION,
4714
+ applications,
4715
+ migrationQueue
4716
+ };
4717
+ }
4718
+ function evaluateRequirement(application, requirement) {
4719
+ const evidence = [];
4720
+ switch (requirement.id) {
4721
+ case "platform-metadata": {
4722
+ if (application.packageName) evidence.push(`package=${application.packageName}`);
4723
+ if (application.productionUrl) evidence.push(`productionUrl=${application.productionUrl}`);
4724
+ if (application.deployTargets.length > 0) {
4725
+ evidence.push(`deployTargets=${application.deployTargets.length}`);
4726
+ }
4727
+ if (application.services.length > 0) {
4728
+ evidence.push(`services=${application.services.join(",")}`);
4729
+ }
4730
+ if (evidence.length === 0) {
4731
+ return finding(requirement, "missing", "No package, production URL, deploy target, or service metadata is available.", evidence);
4732
+ }
4733
+ return finding(requirement, "met", "Catalog metadata exists for this application.", evidence);
4734
+ }
4735
+ case "canonical-docs":
4736
+ return finding(
4737
+ requirement,
4738
+ "needs_review",
4739
+ "Catalog metadata cannot verify matching TopoloDocs system and handbook coverage.",
4740
+ evidence
4741
+ );
4742
+ case "shared-auth-boundary":
4743
+ return finding(
4744
+ requirement,
4745
+ "needs_review",
4746
+ "Catalog metadata cannot verify that implementation uses shared Topolo auth packages and derives org from credentials.",
4747
+ evidence
4748
+ );
4749
+ case "shared-shell-and-launcher":
4750
+ return finding(
4751
+ requirement,
4752
+ "needs_review",
4753
+ "Catalog metadata cannot verify shared shell, launcher, and account menu adoption.",
4754
+ evidence
4755
+ );
4756
+ case "app-registration-and-scopes": {
4757
+ if (application.services.length > 0) {
4758
+ evidence.push(`services=${application.services.join(",")}`);
4759
+ return finding(
4760
+ requirement,
4761
+ "partial",
4762
+ "SDK service discovery exists, but Auth catalog permissions, role bundles, and API-key scopes still need confirmation.",
4763
+ evidence
4764
+ );
4765
+ }
4766
+ return finding(requirement, "missing", "No SDK app API id is registered for this callable API surface.", evidence);
4767
+ }
4768
+ case "organization-scoped-data":
4769
+ return finding(
4770
+ requirement,
4771
+ "needs_review",
4772
+ "Catalog metadata cannot verify backend tenant filters, storage keys, or Durable Object boundaries.",
4773
+ evidence
4774
+ );
4775
+ case "cloudflare-deployment-contract": {
4776
+ if (application.deployTargets.length < 1) {
4777
+ return finding(requirement, "missing", "No CloudControl deploy targets are registered.", evidence);
4778
+ }
4779
+ evidence.push(`deployTargets=${application.deployTargets.length}`);
4780
+ if (application.productionUrl) evidence.push(`productionUrl=${application.productionUrl}`);
4781
+ return finding(requirement, "met", "CloudControl deploy target metadata is present.", evidence);
4782
+ }
4783
+ case "agent-and-operator-surfaces": {
4784
+ const appId = application.id;
4785
+ if (application.services.length > 0) {
4786
+ evidence.push(`services=${application.services.join(",")}`);
4787
+ return finding(requirement, "partial", "SDK service discovery exists; typed SDK/CLI/MCP workflow coverage should be checked as APIs stabilize.", evidence);
4788
+ }
4789
+ if (appId === "cli" || appId === "mcp" || appId === "cloudcontrol") {
4790
+ evidence.push(`tooling=${appId}`);
4791
+ return finding(requirement, "met", "This application is itself an agent/operator surface.", evidence);
4792
+ }
4793
+ return finding(requirement, "missing", "No SDK service or tooling surface is registered.", evidence);
4794
+ }
4795
+ case "native-dashboard-widget":
4796
+ return finding(
4797
+ requirement,
4798
+ "needs_review",
4799
+ "Catalog metadata cannot verify app-owned /api/widget implementation details.",
4800
+ evidence
4801
+ );
4802
+ case "observability-and-audit":
4803
+ return finding(
4804
+ requirement,
4805
+ "needs_review",
4806
+ "Catalog metadata cannot verify runtime request IDs, client labels, or log redaction.",
4807
+ evidence
4808
+ );
4809
+ case "verification-gates":
4810
+ return finding(
4811
+ requirement,
4812
+ "needs_review",
4813
+ "Catalog metadata cannot verify package checks, docs validation, or smoke evidence.",
4814
+ evidence
4815
+ );
4816
+ default:
4817
+ return finding(requirement, "needs_review", "No automated evaluator exists for this requirement yet.", evidence);
4818
+ }
4819
+ }
4820
+ function finding(requirement, status, reason, evidence) {
4821
+ return {
4822
+ requirementId: requirement.id,
4823
+ title: requirement.title,
4824
+ status,
4825
+ reason,
4826
+ evidence,
4827
+ nextActions: status === "met" ? [] : requirement.implementation
4828
+ };
4829
+ }
4830
+ function scoreFindings(findings) {
4831
+ const met = findings.filter((finding2) => finding2.status === "met").length;
4832
+ const partial = findings.filter((finding2) => finding2.status === "partial").length;
4833
+ const missing = findings.filter((finding2) => finding2.status === "missing").length;
4834
+ const needsReview = findings.filter((finding2) => finding2.status === "needs_review").length;
4835
+ const total = findings.length;
4836
+ const weighted = met + partial * 0.5;
4837
+ return {
4838
+ met,
4839
+ partial,
4840
+ missing,
4841
+ needsReview,
4842
+ total,
4843
+ percent: total === 0 ? 100 : Math.round(weighted / total * 100)
4844
+ };
4845
+ }
4846
+ function statusRank(status) {
4847
+ if (status === "missing") return 0;
4848
+ if (status === "partial") return 1;
4849
+ return 2;
4850
+ }
4851
+
2676
4852
  // src/modules/crm.ts
2677
4853
  var CrmModule = class {
2678
4854
  constructor(client) {
@@ -3261,6 +5437,9 @@ function createTopolo(options) {
3261
5437
  // Annotate the CommonJS export names for ESM import in node:
3262
5438
  0 && (module.exports = {
3263
5439
  ACTION_CATALOG_DIGEST_ALGORITHM,
5440
+ APPLICATIONS,
5441
+ APPLICATION_REQUIREMENTS,
5442
+ APPLICATION_REQUIREMENTS_VERSION,
3264
5443
  CrmModule,
3265
5444
  DEFAULT_APP_URLS,
3266
5445
  IdentityModule,
@@ -3279,7 +5458,11 @@ function createTopolo(options) {
3279
5458
  WorkspacesModule,
3280
5459
  actionContractCompleteness,
3281
5460
  applicationEntryFromCatalog,
5461
+ applicationRequirementScopes,
3282
5462
  assertTopoloServiceUrlEnvironment,
5463
+ auditAllApplicationRequirements,
5464
+ auditApplicationEntries,
5465
+ auditApplicationRequirements,
3283
5466
  canonicalTopoloErrorCode,
3284
5467
  canonicalTopoloRequestId,
3285
5468
  canonicalTopoloRequired,
@@ -3308,6 +5491,7 @@ function createTopolo(options) {
3308
5491
  prepareTopoloActionBase64UploadInput,
3309
5492
  prepareTopoloActionUploadInput,
3310
5493
  publicTopoloErrorMessage,
5494
+ requirementsForApplication,
3311
5495
  resolveApplicationDirectoryEntry,
3312
5496
  resolveCatalogServiceUrl,
3313
5497
  resolveServiceUrl,