@topolo/sdk 0.11.5 → 0.11.7

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