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