@topolo/sdk 0.4.10 → 0.5.0
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/README.md +1 -1
- package/dist/index.cjs +134 -135
- package/dist/index.d.cts +116 -118
- package/dist/index.d.ts +116 -118
- package/dist/index.js +134 -135
- package/package.json +1 -1
- package/src/application-requirements.ts +3 -3
- package/src/applications.generated.ts +98 -98
- package/src/client.test.ts +49 -49
- package/src/client.ts +40 -40
- package/src/index.test.ts +3 -3
- package/src/modules/crm.test.ts +4 -4
- package/src/modules/identity.test.ts +4 -4
- package/src/modules/p2p.test.ts +4 -8
- package/src/modules/p2p.ts +0 -3
- package/src/services.test.ts +15 -15
- package/src/services.ts +2 -2
- package/src/widgets.test.ts +14 -14
- package/src/widgets.ts +8 -8
package/package.json
CHANGED
|
@@ -281,12 +281,12 @@ export function applicationRequirementScopes(
|
|
|
281
281
|
// the generated kind union to "worker" (no "pages" literal remains).
|
|
282
282
|
application.deployTargets.some((target) => String(target.kind) === 'pages');
|
|
283
283
|
// An API surface means an agent-callable service — keyed on a resolved
|
|
284
|
-
//
|
|
284
|
+
// appId, NOT a bare apiUrl. After the Pages->Worker migration every
|
|
285
285
|
// frontend shell carries an apiUrl (its own serving domain), so apiUrl is no
|
|
286
|
-
// longer a signal for "exposes a callable API";
|
|
286
|
+
// longer a signal for "exposes a callable API"; appId is.
|
|
287
287
|
const hasApiSurface =
|
|
288
288
|
application.services.length > 0 ||
|
|
289
|
-
application.deployTargets.some((target) => Boolean(target.
|
|
289
|
+
application.deployTargets.some((target) => Boolean(target.appId));
|
|
290
290
|
|
|
291
291
|
if (hasBrowserSurface) scopes.add('browser');
|
|
292
292
|
if (hasApiSurface) scopes.add('api');
|