@topolo/sdk 0.11.1 → 0.11.3

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