@salsita-ai/contracts 0.49.0-develop.fc391028c9 → 0.50.0-develop.da56a0c6c3

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.
Files changed (2) hide show
  1. package/CHANGELOG.md +67 -0
  2. package/package.json +2 -2
package/CHANGELOG.md CHANGED
@@ -2,6 +2,73 @@
2
2
 
3
3
  All notable changes to the @salsita-ai/contracts package will be documented in this file.
4
4
 
5
+ ## [0.49.0]
6
+
7
+ feat: add the `assistant` export path with the assistant's `getBrowserDetails` and `getViewport` tool definitions and user-message metadata schema (CON-2852)
8
+
9
+ chore: bump `openai` to 7.23.0
10
+
11
+ feat: the `assistant` export path gains what a deployment registers for the experimental assistant (CON-2854)
12
+
13
+ `DeploymentAssistant` and `AssistantAiSettings` (types and zod schemas) describe the registration: the GraphQL SDL, the SDK-generated prompt, the optional instructions and the AI settings. `ASSISTANT_AI_PROVIDERS`, `ASSISTANT_MODEL_TIERS` and `ASSISTANT_REASONING_LEVELS` list the allowed values.
14
+
15
+ change!: remove the experimental `viewportTool` (`getViewport`) from the `assistant` export path
16
+
17
+ It was a proof of the JSON tool-result path and has no replacement; `browserDetailsTool` stays.
18
+
19
+ Migration:
20
+
21
+ - Remove imports and uses of `viewportTool`. There is no replacement.
22
+
23
+ chore: bump `@tanstack/ai` to 0.64.0
24
+
25
+ feat: the `assistant` export path gains the `query` and `apply` tools of the experimental assistant (CON-2870)
26
+
27
+ `queryTool` and `applyTool` are the tool definitions the server registers and the SDK implements in the browser. Both take `{ operations: [{ query, variables?, operationName? }] }`, a list of single-operation GraphQL documents run in order. `AssistantGraphQLToolInput` (type and zod schema) parses that input.
28
+
29
+ feat: add `CustomerType` (`standard`, `sdk_builder`), its `CustomerTypeSchema`, and a `type` on `Customer`
30
+
31
+ feat: add the `DeploymentBuild` domain for SDK-builder builds
32
+
33
+ `DeploymentBuild`, `DeploymentBuildId`, `DeploymentBuildSourceKey`, `DeploymentBuildMode` (`init`, `upload`) and `DeploymentBuildStatus` (`queued` through `live`, `failed`, `cancelled`) describe a build and the statuses a runner reports.
34
+
35
+ feat: add the `ApiTokenId` domain id for API tokens
36
+
37
+ feat: add `SdkBuilderSetupState` to the domain module: the setup states of an SDK builder's workspace (`pending`, `ready`, `failed`)
38
+
39
+ feat: add the optional `sub` claim to `SessionTokenPayload`, and optional `userId` and `userIdSource` fields to the auth handler response (CON-2897)
40
+
41
+ `sub` is the user a configurator session belongs to, namespaced by the server by its source: `clerk-<id>`, `custom-<id>`, `anonymous-<browser uuid>` or `studio-<id>`. An auth handler returns its user id unprefixed in `userId`; `userIdSource` (`clerk` or `custom`, defaults to `custom`) picks the namespace. Webhooks that return neither keep working. The new `AuthUserIdSource` schema is exported from the `webhook` path.
42
+
43
+ change!: publish the package publicly as `@salsita-ai/contracts` under a proprietary licence
44
+
45
+ Published code is minified and ships without source maps; `CHANGELOG.md` ships with the package. `@salsita-ai/platform-contracts` receives no further releases. Projects on the application-spec pipeline do not depend on this package directly: `@salsita-ai/sdk` mirrors every entry point as `@salsita-ai/sdk/contracts/<path>`.
46
+
47
+ Migration:
48
+
49
+ - In a customer project, import `@salsita-ai/sdk/contracts/<path>` instead of `@salsita-ai/platform-contracts/<path>` and drop the direct dependency; the entry points (`api`, `clerk`, `domain`, `chat`, `assistant`, `webhook`) are unchanged.
50
+
51
+ feat: add `DEFAULT_PROJECT_ALIAS` (CON-2948)
52
+
53
+ `DEFAULT_PROJECT_ALIAS` (`default`) is what an application spec writes as `project` to mean the default project of the signed-in customer. The server refuses it as a project slug.
54
+
55
+ feat: `Customer` gains `aiAssistantEnabled`, the feature flag that lets a customer use the experimental assistant (CON-2960)
56
+
57
+ feat: add the feedback domain: `FeedbackId`, `FeedbackType`, `FeedbackSource` and the message and contact length limits (CON-2964)
58
+
59
+ feat: `DeploymentBuild` records when the runner first reported each running status
60
+
61
+ `preparingAt`, `buildingAt` and `deployingAt` are set the first time a build reaches that status, and stay empty for a status the runner skipped.
62
+
63
+ change!: move the server-side behaviour of the domain entities out of contracts into the private `server-domain` package
64
+
65
+ The `domain` module keeps the types, zod schemas, branded types with their constructors, and the state values clients compare against; `DeploymentBuild.isFinished` and the `SdkBuilderSetupState` values stay. No longer exported are the behaviour objects `Environment`, `Customer`, `Project`, `Deployment`, `ConfigurationSchema`, `Configuration`, `SessionBucket` and `ImageRenderBucket` (their names remain as types), `createDevelopmentKey`, the queueing and status transitions of `DeploymentBuild` (`create`, `canReport`, `applyReport`, `fail`, `isTimedOut`) with `DEPLOYMENT_BUILD_TIMEOUT_MS` and the `DeploymentBuildReport` type, `SdkBuilderSetupState.of`, `DEVELOPMENT_FRONTEND_URL`, and the system environment-variable classification `SYSTEM_ENV_VISIBILITY` with its `DefaultSystemVariables` type.
66
+
67
+ Migration:
68
+
69
+ - Nothing to do in a configurator project: none of the removed exports was part of what the SDK, Studio or a demo uses.
70
+ - Server code imports the domain from `server-domain`, which re-exports the contracts `domain` module with the removed behaviour on top.
71
+
5
72
  ## [0.48.0]
6
73
 
7
74
  change!: remove the process-local `ClerkBackendApiClient.fetchUserCached()` method (CON-2556, CON-2685)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salsita-ai/contracts",
3
- "version": "0.49.0-develop.fc391028c9",
3
+ "version": "0.50.0-develop.da56a0c6c3",
4
4
  "description": "Shared API, authentication, domain, chat, and webhook contracts for Phoenix.",
5
5
  "keywords": [
6
6
  "salsita",
@@ -56,7 +56,7 @@
56
56
  "uuid": "14.0.0",
57
57
  "valid-url": "1.0.9",
58
58
  "zod": "3.25.76",
59
- "@salsita-ai/common": "0.49.0-develop.fc391028c9"
59
+ "@salsita-ai/common": "0.50.0-develop.da56a0c6c3"
60
60
  },
61
61
  "devDependencies": {
62
62
  "@lingui/core": "5.9.5",