@topolo/sdk 0.11.6 → 0.11.8

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