@palettelab/cli 0.3.19 → 0.3.21

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": "@palettelab/cli",
3
- "version": "0.3.19",
3
+ "version": "0.3.21",
4
4
  "description": "Developer CLI for building Palette platform plugins — no platform source access required.",
5
5
  "bin": {
6
6
  "pltt": "bin/pltt.js"
@@ -4,7 +4,7 @@
4
4
  "private": true,
5
5
  "description": "A Palette platform plugin",
6
6
  "dependencies": {
7
- "@palettelab/sdk": "^0.1.0"
7
+ "@palettelab/sdk": "^0.1.7"
8
8
  },
9
9
  "devDependencies": {
10
10
  "typescript": "^5.0.0",
@@ -3,7 +3,7 @@
3
3
  "version": "1.0.0",
4
4
  "private": true,
5
5
  "dependencies": {
6
- "@palettelab/sdk": "^0.1.0",
6
+ "@palettelab/sdk": "^0.1.7",
7
7
  "react": "^19.0.0"
8
8
  }
9
9
  }
@@ -22,5 +22,5 @@
22
22
  },
23
23
  "frontend": { "entry": "./frontend/src/index.tsx", "sandbox": true },
24
24
  "backend": { "entry": "./backend/api/main.py" },
25
- "permissions": ["tasks:read", "data_rooms:read"]
25
+ "permissions": ["data_rooms:read"]
26
26
  }
@@ -1,37 +1,5 @@
1
- """Alembic environment for the plugin database template."""
1
+ """Alembic environment for Palette plugin migrations."""
2
2
 
3
- from __future__ import annotations
3
+ from palette_sdk.db.alembic_env import run_migrations
4
4
 
5
- from alembic import context
6
- from sqlalchemy import engine_from_config, pool
7
-
8
- from models import Note # noqa: F401 - registers model metadata
9
- from palette_sdk.db import PluginBase
10
-
11
- config = context.config
12
- target_metadata = PluginBase.metadata
13
-
14
-
15
- def run_migrations_offline() -> None:
16
- url = config.get_main_option("sqlalchemy.url")
17
- context.configure(url=url, target_metadata=target_metadata, literal_binds=True)
18
- with context.begin_transaction():
19
- context.run_migrations()
20
-
21
-
22
- def run_migrations_online() -> None:
23
- connectable = engine_from_config(
24
- config.get_section(config.config_ini_section, {}),
25
- prefix="sqlalchemy.",
26
- poolclass=pool.NullPool,
27
- )
28
- with connectable.connect() as connection:
29
- context.configure(connection=connection, target_metadata=target_metadata)
30
- with context.begin_transaction():
31
- context.run_migrations()
32
-
33
-
34
- if context.is_offline_mode():
35
- run_migrations_offline()
36
- else:
37
- run_migrations_online()
5
+ run_migrations()
@@ -2,5 +2,5 @@
2
2
  "name": "my-db-plugin",
3
3
  "version": "1.0.0",
4
4
  "private": true,
5
- "dependencies": { "@palettelab/sdk": "^0.1.0", "react": "^19.0.0" }
5
+ "dependencies": { "@palettelab/sdk": "^0.1.7", "react": "^19.0.0" }
6
6
  }
@@ -2,5 +2,5 @@
2
2
  "name": "my-external-svc",
3
3
  "version": "1.0.0",
4
4
  "private": true,
5
- "dependencies": { "@palettelab/sdk": "^0.1.0", "react": "^19.0.0" }
5
+ "dependencies": { "@palettelab/sdk": "^0.1.7", "react": "^19.0.0" }
6
6
  }
@@ -3,7 +3,7 @@
3
3
  "version": "1.0.0",
4
4
  "private": true,
5
5
  "dependencies": {
6
- "@palettelab/sdk": "^0.1.0",
6
+ "@palettelab/sdk": "^0.1.7",
7
7
  "react": "^19.0.0"
8
8
  }
9
9
  }