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