@jcendal/opencode-digital-pet 0.4.0 → 0.6.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/CHANGELOG.md +14 -0
- package/README.md +2 -2
- package/dist/adapters/opencode/create-server-hooks.d.ts +5 -5
- package/dist/adapters/opencode/usage-event-mapper.d.ts +1 -1
- package/dist/adapters/sqlite/sqlite-digital-pet-archive-reader.d.ts +1 -1
- package/dist/adapters/sqlite/sqlite-digital-pet-write-store.d.ts +2 -2
- package/dist/adapters/sqlite/sqlite-sidebar-snapshot-reader.d.ts +1 -1
- package/dist/dev/attach-dev-tools.js +1327 -7
- package/dist/digital-pet-animation/constants/evolution-battle.d.ts +2 -2
- package/dist/digital-pet-animation/sequences/evolution-battle-artwork.d.ts +5 -8
- package/dist/digital-pet-animation/sessions/evolution-battle-session.d.ts +1 -1
- package/dist/digital-pet-animation/sessions/evolution-presentation.d.ts +14 -0
- package/dist/digital-pet-animation/sessions/presentation-state.d.ts +1 -1
- package/dist/digital-pet-core/adapters/sqlite/sqlite-digital-pet-types.d.ts +2 -2
- package/dist/digital-pet-core/application/use-cases/resolve-evolution-battle.d.ts +1 -1
- package/dist/digital-pet-core/application/use-cases/spawn-partner.d.ts +1 -1
- package/dist/digital-pet-core/data/combat-stats.d.ts +3 -0
- package/dist/digital-pet-core/data/stages.d.ts +2 -2
- package/dist/digital-pet-core/domain/combat.d.ts +28 -0
- package/dist/digital-pet-core/domain/digimon-node.d.ts +2 -0
- package/dist/digital-pet-core/domain/evolution-battle.d.ts +2 -0
- package/dist/digital-pet-core/domain/feeding.d.ts +14 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1690 -370
- package/dist/tui/digital-pet-command-layer.d.ts +1 -1
- package/dist/tui/digital-pet-dex-dialog.d.ts +2 -1
- package/dist/tui/digital-pet-history-dialog.d.ts +2 -1
- package/dist/tui/sidebar-card.d.ts +2 -2
- package/dist/tui.d.ts +5 -5
- package/dist/tui.js +9822 -8482
- package/package.json +7 -2
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,20 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [0.6.0] - 2026-10-09
|
|
11
|
+
|
|
12
|
+
### Changed
|
|
13
|
+
|
|
14
|
+
- Feat/gameplay combat evolution feeding
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## [0.5.0] - 2026-10-07
|
|
18
|
+
|
|
19
|
+
### Changed
|
|
20
|
+
|
|
21
|
+
- feat(web): version and tag site releases like the other products
|
|
22
|
+
|
|
23
|
+
|
|
10
24
|
## [0.4.0] - 2026-10-07
|
|
11
25
|
|
|
12
26
|
### Changed
|
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<div align="center">
|
|
2
2
|
<img
|
|
3
|
-
src="https://raw.githubusercontent.com/jcendal/digital-pet/main/
|
|
3
|
+
src="https://raw.githubusercontent.com/jcendal/digital-pet/main/assets/branding/logo.png"
|
|
4
4
|
alt="OpenCode Digital Pet logo"
|
|
5
5
|
width="160"
|
|
6
6
|
style="image-rendering: pixelated"
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
|
|
30
30
|
<div align="center">
|
|
31
31
|
<img
|
|
32
|
-
src="https://raw.githubusercontent.com/jcendal/digital-pet/main/
|
|
32
|
+
src="https://raw.githubusercontent.com/jcendal/digital-pet/main/assets/screenshots/digital-pet-overview.png"
|
|
33
33
|
alt="Illustrative OpenCode Digital Pet overview"
|
|
34
34
|
width="100%"
|
|
35
35
|
>
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { DigitalPetLanguage } from "../../digital-pet-core/config/types.js";
|
|
3
|
-
import type { DigimonCatalog } from "../../digital-pet-core/data/catalog.js";
|
|
1
|
+
import type { DigitalPetControl } from "../../digital-pet-core/application/ports/digital-pet-control.js";
|
|
4
2
|
import type { PartnerLifecycle } from "../../digital-pet-core/application/ports/partner-lifecycle.js";
|
|
5
3
|
import type { UsageLedger } from "../../digital-pet-core/application/ports/usage-ledger.js";
|
|
6
|
-
import type {
|
|
4
|
+
import type { DigitalPetLanguage } from "../../digital-pet-core/config/types.js";
|
|
5
|
+
import type { DigimonCatalog } from "../../digital-pet-core/data/catalog.js";
|
|
7
6
|
import { type EvolutionSelector, type StageThresholds } from "../../digital-pet-core/domain/evolution.js";
|
|
8
|
-
import type {
|
|
7
|
+
import type { Hooks } from "@opencode-ai/plugin";
|
|
9
8
|
import { type DigitalPetToastNotifier } from "./digital-pet-toast.js";
|
|
9
|
+
import type { SessionMessagesFetcher } from "./session-messages.js";
|
|
10
10
|
export type ServerResource = {
|
|
11
11
|
close(): Promise<void>;
|
|
12
12
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Event, Message } from "@opencode-ai/sdk";
|
|
2
1
|
import type { CompletedUsage } from "../../digital-pet-core/application/use-cases/record-usage.js";
|
|
2
|
+
import type { Event, Message } from "@opencode-ai/sdk";
|
|
3
3
|
export declare const toCompletedUsageFromMessage: (message: Message) => CompletedUsage | null;
|
|
4
4
|
export declare const toCompletedUsageFromEvent: (event: Event) => CompletedUsage | null;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SQLiteError } from "bun:sqlite";
|
|
2
|
+
import { type HostPathOptions } from "../../digital-pet-core/adapters/sqlite/app-data-path.js";
|
|
2
3
|
import type { DigitalPetArchiveResult } from "../../digital-pet-core/application/models/digital-pet-archive.js";
|
|
3
4
|
import type { DigitalPetArchiveReader } from "../../digital-pet-core/application/ports/digital-pet-archive.js";
|
|
4
|
-
import { type HostPathOptions } from "../../digital-pet-core/adapters/sqlite/app-data-path.js";
|
|
5
5
|
import { type SqliteExecutor } from "./bun-sqlite-driver.js";
|
|
6
6
|
export type CreateSqliteDigitalPetArchiveReaderOptions = HostPathOptions & {
|
|
7
7
|
readonly databasePath?: string;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
+
import { type HostPathOptions, resolveHostDatabasePath } from "../../digital-pet-core/adapters/sqlite/app-data-path.js";
|
|
1
2
|
import type { SqliteDigitalPetWriteStore } from "../../digital-pet-core/adapters/sqlite/sqlite-digital-pet-types.js";
|
|
2
|
-
import { resolveHostDatabasePath, type HostPathOptions } from "../../digital-pet-core/adapters/sqlite/app-data-path.js";
|
|
3
3
|
import type { SidebarSnapshotReader } from "../../digital-pet-core/application/ports/sidebar-snapshot.js";
|
|
4
4
|
export type CreateSqliteDigitalPetRepositoryOptions = HostPathOptions & {
|
|
5
5
|
readonly databasePath?: string;
|
|
6
6
|
};
|
|
7
|
-
export { resolveHostDatabasePath };
|
|
8
7
|
export type { HostPathOptions } from "../../digital-pet-core/adapters/sqlite/app-data-path.js";
|
|
9
8
|
export type { PersistedPartnerEvent, SqliteDigitalPetWriteStore, } from "../../digital-pet-core/adapters/sqlite/sqlite-digital-pet-types.js";
|
|
9
|
+
export { resolveHostDatabasePath };
|
|
10
10
|
export type OpencodeSqliteDigitalPetRepository = SqliteDigitalPetWriteStore & SidebarSnapshotReader;
|
|
11
11
|
export declare const createSqliteDigitalPetRepository: (options?: CreateSqliteDigitalPetRepositoryOptions) => Promise<OpencodeSqliteDigitalPetRepository>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { SidebarSnapshot, SidebarSnapshotReader } from "../../digital-pet-core/application/ports/sidebar-snapshot.js";
|
|
2
1
|
import { type HostPathOptions } from "../../digital-pet-core/adapters/sqlite/app-data-path.js";
|
|
2
|
+
import type { SidebarSnapshot, SidebarSnapshotReader } from "../../digital-pet-core/application/ports/sidebar-snapshot.js";
|
|
3
3
|
import type { SqliteExecutor } from "../../digital-pet-core/ports/sqlite-executor.js";
|
|
4
4
|
export type CreateSqliteSidebarSnapshotReaderOptions = HostPathOptions & {
|
|
5
5
|
readonly databasePath?: string;
|