@pikku/kysely-sqlite 0.12.10 → 0.12.12

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/CHANGELOG.md CHANGED
@@ -1,5 +1,96 @@
1
1
  # @pikku/kysely-sqlite
2
2
 
3
+ ## 0.12.12
4
+
5
+ ### Patch Changes
6
+
7
+ - 7406bfe: Rename the agent runtime from `AI*` to `Agent*` (#596)
8
+
9
+ `AI` described the model provider, not the thing being named. Every symbol that
10
+ belongs to the agent runtime now says `Agent`; the symbols that genuinely wrap a
11
+ model provider — `AIEmbeddingService`, `AIProviderOptions`, `AIEmbedParams`,
12
+ `AITranscriptionParams`, `AIGenerateImageParams` and their siblings, and the
13
+ `@pikku/ai-vercel` / `@pikku/ai-deepinfra` / `@pikku/ai-voice` packages — keep
14
+ their names.
15
+
16
+ **Wiring**
17
+ - `pikkuAIAgent` → `pikkuAgent`, `pikkuAIScorer` → `pikkuAgentScorer`,
18
+ `pikkuAIJudge` → `pikkuAgentJudge`
19
+ - `CoreAIAgent` → `CoreAgent`, `AIAgentInput` → `AgentInput`, `AIAgentStep` →
20
+ `AgentStep`, `AIMessage` → `AgentMessage`, and the rest of the agent types
21
+ - `AIAgentRunnerService` → `AgentRunnerService`, `AIStorageService` →
22
+ `AgentStorageService`, `AIRunStateService` → `AgentRunStateService`
23
+
24
+ **Entry points**
25
+
26
+ `@pikku/core/agent` → `@pikku/core/agent`, `@pikku/core/agent-scorer` →
27
+ `@pikku/core/agent-scorer`.
28
+
29
+ **Queues**
30
+
31
+ The scorer queues are now `agent-score-fast` and `agent-score-slow`. Drain the
32
+ old `ai-score-fast` / `ai-score-slow` queues before deploying — jobs still
33
+ sitting on them when the new workers start will never be picked up.
34
+
35
+ **Scaffolds**
36
+
37
+ The agent scaffold pikku wrote for your project — `<scaffold>/agent/agent.gen.ts`
38
+ and its schemas file — imports `@pikku/core/ai-agent`, which no longer exists. A
39
+ scaffold is normally written once and then left alone, so `pikku all` would find
40
+ it present and leave the broken import in place. It now deletes an agent scaffold
41
+ importing either removed entry point and regenerates it in the same run. Anything
42
+ you added to that file goes with it, so move local edits out first.
43
+
44
+ **Database**
45
+
46
+ The agent tables are renamed: `ai_threads`, `ai_message`, `ai_tool_call`,
47
+ `ai_working_memory`, `ai_run` and `ai_run_score` become `agent_threads`,
48
+ `agent_message`, `agent_tool_call`, `agent_working_memory`, `agent_run` and
49
+ `agent_run_score`, along with their indexes and the `ai_working_memory_pk`
50
+ constraint. The same rename applies to the MongoDB collections.
51
+
52
+ `ensurePikkuSchema` creates tables it cannot find, so an existing database will
53
+ get empty `agent_*` tables and leave the old data stranded in `ai_*`. Rename
54
+ them before the first boot on the new version:
55
+
56
+ ```sql
57
+ ALTER TABLE ai_threads RENAME TO agent_threads;
58
+ ALTER TABLE ai_message RENAME TO agent_message;
59
+ ALTER TABLE ai_tool_call RENAME TO agent_tool_call;
60
+ ALTER TABLE ai_working_memory RENAME TO agent_working_memory;
61
+ ALTER TABLE ai_run RENAME TO agent_run;
62
+ ALTER TABLE ai_run_score RENAME TO agent_run_score;
63
+ ```
64
+
65
+ - 6794681: Publish the ecosystem surface as per-area sub-barrels under `@pikku/core/ecosystem/*`, and point generated code, the CLI, the inspector and the runtime adapters at them.
66
+
67
+ 348 names that only generated code, the toolchain or a runtime adapter ever imports now have a second home on `@pikku/core/ecosystem/<area>` — one sub-barrel per area, matching how core already publishes its entrypoints, so no single barrel grows without bound and a consumer only pulls in the area it uses.
68
+
69
+ This step is additive: every name is still exported from the entrypoint it was published from before, so nothing downstream breaks. Removing them from the app-facing barrels is a later change, and needs a release carrying `./ecosystem/*` first.
70
+
71
+ - Updated dependencies [7406bfe]
72
+ - Updated dependencies [6794681]
73
+ - Updated dependencies [a7fcd2e]
74
+ - @pikku/core@0.12.84
75
+ - @pikku/kysely@0.13.16
76
+
77
+ ## 0.12.11
78
+
79
+ ### Patch Changes
80
+
81
+ - fd9d834: Stop publishing internals that only their own package or file used. The declarations stay; only the entrypoint re-export is removed, so nothing that imported a name from where it is declared is affected.
82
+ - Updated dependencies [063f43a]
83
+ - Updated dependencies [ce66bf8]
84
+ - Updated dependencies [d0307a8]
85
+ - Updated dependencies [ce66bf8]
86
+ - Updated dependencies [3ad2131]
87
+ - Updated dependencies [b930dca]
88
+ - Updated dependencies [b95e77d]
89
+ - Updated dependencies [fd9d834]
90
+ - Updated dependencies [8978fbd]
91
+ - @pikku/core@0.12.82
92
+ - @pikku/kysely@0.13.15
93
+
3
94
  ## 0.12.10
4
95
 
5
96
  ### Patch Changes
@@ -1,16 +1,14 @@
1
1
  export { createSQLiteKysely } from './create-sqlite-kysely.js';
2
2
  export { SQLiteKyselyWorkflowService } from './sqlite-kysely-workflow-service.js';
3
3
  export { SQLiteKyselyDeploymentService } from './sqlite-kysely-deployment-service.js';
4
- export { SQLiteKyselyAIStorageService } from './sqlite-kysely-ai-storage-service.js';
4
+ export { SQLiteKyselyAgentStorageService } from './sqlite-kysely-agent-storage-service.js';
5
5
  export { SQLiteKyselyAgentRunService } from './sqlite-kysely-agent-run-service.js';
6
6
  export { SQLiteKyselyWorkflowRunService } from './sqlite-kysely-workflow-run-service.js';
7
7
  export { SQLiteKyselyChannelStore } from './sqlite-kysely-channel-store.js';
8
8
  export { SQLiteKyselyEventHubStore } from './sqlite-kysely-eventhub-store.js';
9
9
  export { SQLiteKyselySecretService } from './sqlite-kysely-secret-service.js';
10
- export { SqliteFunctionsUnsupportedError, type SqliteFunction, type SqliteFunctionMap, } from './sqlite-functions.js';
10
+ export { SqliteFunctionsUnsupportedError, type SqliteFunctionMap, } from './sqlite-functions.js';
11
11
  export { LibsqlWebDialect } from './libsql-web-dialect.js';
12
- export type { LibsqlWebDialectConfig } from './libsql-web-dialect.js';
13
12
  export type { KyselyPikkuDB } from '@pikku/kysely';
14
- export type { KyselySecretServiceConfig } from '@pikku/kysely';
15
- export type { WorkflowRunService } from '@pikku/core/workflow';
16
- export type { AgentRunService, AgentRunRow } from '@pikku/core/ai-agent';
13
+ export type { WorkflowRunService } from '@pikku/core/ecosystem/workflow';
14
+ export type { AgentRunService, AgentRunRow, } from '@pikku/core/ecosystem/agent';
package/dist/src/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  export { createSQLiteKysely } from './create-sqlite-kysely.js';
2
2
  export { SQLiteKyselyWorkflowService } from './sqlite-kysely-workflow-service.js';
3
3
  export { SQLiteKyselyDeploymentService } from './sqlite-kysely-deployment-service.js';
4
- export { SQLiteKyselyAIStorageService } from './sqlite-kysely-ai-storage-service.js';
4
+ export { SQLiteKyselyAgentStorageService } from './sqlite-kysely-agent-storage-service.js';
5
5
  export { SQLiteKyselyAgentRunService } from './sqlite-kysely-agent-run-service.js';
6
6
  export { SQLiteKyselyWorkflowRunService } from './sqlite-kysely-workflow-run-service.js';
7
7
  export { SQLiteKyselyChannelStore } from './sqlite-kysely-channel-store.js';
@@ -0,0 +1,3 @@
1
+ import { KyselyAgentStorageService } from '@pikku/kysely';
2
+ export declare class SQLiteKyselyAgentStorageService extends KyselyAgentStorageService {
3
+ }
@@ -0,0 +1,3 @@
1
+ import { KyselyAgentStorageService } from '@pikku/kysely';
2
+ export class SQLiteKyselyAgentStorageService extends KyselyAgentStorageService {
3
+ }
@@ -1 +1 @@
1
- {"root":["../src/create-sqlite-kysely.ts","../src/index.ts","../src/libsql-web-dialect.ts","../src/sqlite-functions.ts","../src/sqlite-kysely-agent-run-service.ts","../src/sqlite-kysely-ai-storage-service.ts","../src/sqlite-kysely-channel-store.ts","../src/sqlite-kysely-deployment-service.ts","../src/sqlite-kysely-eventhub-store.ts","../src/sqlite-kysely-secret-service.ts","../src/sqlite-kysely-workflow-run-service.ts","../src/sqlite-kysely-workflow-service.ts"],"version":"6.0.3"}
1
+ {"root":["../src/create-sqlite-kysely.ts","../src/index.ts","../src/libsql-web-dialect.ts","../src/sqlite-functions.ts","../src/sqlite-kysely-agent-run-service.ts","../src/sqlite-kysely-agent-storage-service.ts","../src/sqlite-kysely-channel-store.ts","../src/sqlite-kysely-deployment-service.ts","../src/sqlite-kysely-eventhub-store.ts","../src/sqlite-kysely-secret-service.ts","../src/sqlite-kysely-workflow-run-service.ts","../src/sqlite-kysely-workflow-service.ts"],"version":"6.0.3"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pikku/kysely-sqlite",
3
- "version": "0.12.10",
3
+ "version": "0.12.12",
4
4
  "description": "SQLite dialect services and libSQL web dialect for Pikku, backed by Kysely",
5
5
  "author": "yasser.fadl@gmail.com",
6
6
  "license": "MIT",
@@ -17,14 +17,14 @@
17
17
  "prepublishOnly": "yarn build"
18
18
  },
19
19
  "dependencies": {
20
- "@pikku/kysely": "^0.13.8",
20
+ "@pikku/kysely": "^0.13.16",
21
21
  "kysely": "^0.29.0"
22
22
  },
23
23
  "peerDependencies": {
24
- "@pikku/core": "^0.12.75"
24
+ "@pikku/core": "^0.12.84"
25
25
  },
26
26
  "devDependencies": {
27
- "@pikku/core": "^0.12.75",
27
+ "@pikku/core": "^0.12.84",
28
28
  "typescript": "^6.0.3"
29
29
  },
30
30
  "exports": {
package/src/index.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  export { createSQLiteKysely } from './create-sqlite-kysely.js'
2
2
  export { SQLiteKyselyWorkflowService } from './sqlite-kysely-workflow-service.js'
3
3
  export { SQLiteKyselyDeploymentService } from './sqlite-kysely-deployment-service.js'
4
- export { SQLiteKyselyAIStorageService } from './sqlite-kysely-ai-storage-service.js'
4
+ export { SQLiteKyselyAgentStorageService } from './sqlite-kysely-agent-storage-service.js'
5
5
  export { SQLiteKyselyAgentRunService } from './sqlite-kysely-agent-run-service.js'
6
6
  export { SQLiteKyselyWorkflowRunService } from './sqlite-kysely-workflow-run-service.js'
7
7
  export { SQLiteKyselyChannelStore } from './sqlite-kysely-channel-store.js'
@@ -9,13 +9,13 @@ export { SQLiteKyselyEventHubStore } from './sqlite-kysely-eventhub-store.js'
9
9
  export { SQLiteKyselySecretService } from './sqlite-kysely-secret-service.js'
10
10
  export {
11
11
  SqliteFunctionsUnsupportedError,
12
- type SqliteFunction,
13
12
  type SqliteFunctionMap,
14
13
  } from './sqlite-functions.js'
15
14
  export { LibsqlWebDialect } from './libsql-web-dialect.js'
16
- export type { LibsqlWebDialectConfig } from './libsql-web-dialect.js'
17
15
 
18
16
  export type { KyselyPikkuDB } from '@pikku/kysely'
19
- export type { KyselySecretServiceConfig } from '@pikku/kysely'
20
- export type { WorkflowRunService } from '@pikku/core/workflow'
21
- export type { AgentRunService, AgentRunRow } from '@pikku/core/ai-agent'
17
+ export type { WorkflowRunService } from '@pikku/core/ecosystem/workflow'
18
+ export type {
19
+ AgentRunService,
20
+ AgentRunRow,
21
+ } from '@pikku/core/ecosystem/agent'
@@ -0,0 +1,3 @@
1
+ import { KyselyAgentStorageService } from '@pikku/kysely'
2
+
3
+ export class SQLiteKyselyAgentStorageService extends KyselyAgentStorageService {}
@@ -1,3 +0,0 @@
1
- import { KyselyAIStorageService } from '@pikku/kysely'
2
-
3
- export class SQLiteKyselyAIStorageService extends KyselyAIStorageService {}