@thatopen/services 0.18.0 → 0.19.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 +4 -0
- package/dist/built-in/index.d.ts +1 -1
- package/dist/cli/commands/mcp.d.ts +3 -0
- package/dist/cli/lib/cli-client.d.ts +13 -0
- package/dist/cli/lib/config.d.ts +2 -0
- package/dist/cli/lib/zip.test.d.ts +1 -0
- package/dist/cli.js +20929 -392
- package/dist/cli.js.map +1 -0
- package/dist/core/client.d.ts +10 -6
- package/dist/core/platform-client.d.ts +17 -1
- package/dist/index.cjs.js +3 -2
- package/dist/index.cjs.js.map +1 -0
- package/dist/index.es.js +111 -87
- package/dist/index.es.js.map +1 -0
- package/dist/types/base.d.ts +9 -1
- package/dist/types/notifications.d.ts +4 -2
- package/docs/ai-quickstart.md +58 -6
- package/docs/cli/mcp.md +41 -0
- package/docs/cli/paths.json +4 -0
- package/docs/platform-token.md +1 -1
- package/package.json +4 -2
- package/src/built-in/index.ts +3 -1
- package/src/cli/templates/app/README.md +1 -1
package/README.md
CHANGED
|
@@ -32,6 +32,10 @@ To use beta engine libraries instead of the stable ones, see:
|
|
|
32
32
|
|
|
33
33
|
Once scaffolded, open `AGENTS.md` in the scaffolded project root — it has everything needed to start building.
|
|
34
34
|
|
|
35
|
+
Reading this repository without a scaffolded project (as a person or an AI agent)? The same
|
|
36
|
+
guide lives here: [`resources/AGENTS.md`](./resources/AGENTS.md), alongside
|
|
37
|
+
[`docs/ai-quickstart.md`](./docs/ai-quickstart.md) for the zero-to-running-app path.
|
|
38
|
+
|
|
35
39
|
## Beta engine libraries (Founding Members)
|
|
36
40
|
|
|
37
41
|
Founding Members get early access to the private beta engine libraries (`@thatopen-platform/*-beta`). The CLI configures access automatically — no npm account or manual token needed.
|
package/dist/built-in/index.d.ts
CHANGED
|
@@ -27,7 +27,7 @@ export interface CDENamingSchema {
|
|
|
27
27
|
separator: string;
|
|
28
28
|
segments: CDENamingSegment[];
|
|
29
29
|
}
|
|
30
|
-
export interface CDEFile extends Omit<Item, '
|
|
30
|
+
export interface CDEFile extends Omit<Item, 'createdBy'> {
|
|
31
31
|
createdBy: string;
|
|
32
32
|
metadata: Record<string, CDEMetadataValue>;
|
|
33
33
|
versions?: ItemVersion[];
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { EngineServicesClient } from '../../core/client';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* The one way the CLI builds a client.
|
|
5
|
+
*
|
|
6
|
+
* Every CLI client sends its platform token as `Authorization: Bearer`
|
|
7
|
+
* instead of `?accessToken=`. The CLI holds long-lived API tokens, and the
|
|
8
|
+
* query form reproduces them in proxy logs, error bodies and anything a user
|
|
9
|
+
* pastes while asking for help. Requires a backend that accepts bearer
|
|
10
|
+
* platform tokens (deployed 2026-10); older backends answer 401, in which
|
|
11
|
+
* case upgrading the platform comes first, not flipping this off.
|
|
12
|
+
*/
|
|
13
|
+
export declare function cliClient(accessToken: string, apiUrl: string): EngineServicesClient;
|
package/dist/cli/lib/config.d.ts
CHANGED
|
@@ -15,6 +15,8 @@ export interface ThatOpenLocalConfig {
|
|
|
15
15
|
itemType?: ProjectType;
|
|
16
16
|
/** Path to an icon file (PNG, WebP, or ICO) uploaded on publish. */
|
|
17
17
|
iconPath?: string;
|
|
18
|
+
/** Project the first publish lands the app/component in (see `--project-id`). */
|
|
19
|
+
projectId?: string;
|
|
18
20
|
/** Whether this project uses beta engine libraries (@thatopen-platform/*-beta). */
|
|
19
21
|
beta?: boolean;
|
|
20
22
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|