@frontera-sdk/cli 1.53.7 → 1.53.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@frontera-sdk/cli",
3
- "version": "1.53.7",
3
+ "version": "1.53.8",
4
4
  "description": "The frontera CLI — scaffold, pull, save and deploy Frontera apps and automations.",
5
5
  "keywords": [
6
6
  "frontera",
@@ -40,8 +40,8 @@
40
40
  "dependencies": {
41
41
  "@anthropic-ai/claude-agent-sdk": "^0.3.251",
42
42
  "@faker-js/faker": "10.6.0",
43
- "@frontera-sdk/core": "1.53.7",
44
- "@frontera-sdk/functions": "1.53.7",
43
+ "@frontera-sdk/core": "1.53.8",
44
+ "@frontera-sdk/functions": "1.53.8",
45
45
  "ai": "^6.0.116",
46
46
  "axe-core": "4.12.1",
47
47
  "gray-matter": "^4.0.3",
@@ -49,7 +49,7 @@
49
49
  "yaml": "^2.9.0"
50
50
  },
51
51
  "devDependencies": {
52
- "@frontera-sdk/forge-contracts": "1.53.7",
52
+ "@frontera-sdk/forge-contracts": "1.53.8",
53
53
  "@types/bun": "^1.3.14",
54
54
  "typescript": "^5.9.3"
55
55
  }
@@ -377,9 +377,8 @@ const create: Command = {
377
377
  const api = new PlatformApi(ctx.apiUrl, ctx.token, ctx.workspaceId)
378
378
  const workspaceId = await resolveWorkspaceId(api)
379
379
 
380
- // Checked here rather than left to the unique constraint: the service
381
- // answers a duplicate with a bare CONFLICT, whose generic hint ("resolve
382
- // what conflicted") sends a caller looking for a race that did not happen.
380
+ // Checked here as well as by the service, so the refusal can say how to
381
+ // upload into the base that already exists.
383
382
  const existing = (await api.knowledgeBases(workspaceId)) as KnowledgeRow[]
384
383
  if (existing.some((k) => (k.name ?? '').toLowerCase() === name.toLowerCase())) {
385
384
  throw new CliError(`a knowledge base named "${name}" already exists`, {