@jcendal/opencode-digital-pet 0.2.0-dev.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 +45 -0
- package/LICENSE +201 -0
- package/README.md +843 -0
- package/dist/adapters/opencode/create-server-hooks.d.ts +38 -0
- package/dist/adapters/opencode/digital-pet-toast.d.ts +33 -0
- package/dist/adapters/opencode/session-messages.d.ts +14 -0
- package/dist/adapters/opencode/usage-event-mapper.d.ts +4 -0
- package/dist/adapters/sqlite/bun-sqlite-driver.d.ts +6 -0
- package/dist/adapters/sqlite/sqlite-digital-pet-archive-reader.d.ts +11 -0
- package/dist/adapters/sqlite/sqlite-digital-pet-write-store.d.ts +11 -0
- package/dist/adapters/sqlite/sqlite-sidebar-snapshot-reader.d.ts +8 -0
- package/dist/cli/install.d.ts +8 -0
- package/dist/cli.d.ts +2 -0
- package/dist/cli.js +92 -0
- package/dist/commands/digital-pet-command-result.d.ts +17 -0
- package/dist/commands/digital-pet-freeze.d.ts +7 -0
- package/dist/commands/digital-pet-set.d.ts +10 -0
- package/dist/commands/digital-pet-spawn.d.ts +8 -0
- package/dist/commands/digital-pet-unfreeze.d.ts +7 -0
- package/dist/config/global-digital-pet-settings.d.ts +14 -0
- package/dist/dev/attach-dev-tools.js +6465 -0
- package/dist/digital-pet-animation/constants/evolution-battle.d.ts +5 -0
- package/dist/digital-pet-animation/constants/monster-artwork.d.ts +4 -0
- package/dist/digital-pet-animation/constants/presentation-timing.d.ts +19 -0
- package/dist/digital-pet-animation/idle/monster-action-policy.d.ts +7 -0
- package/dist/digital-pet-animation/idle/monster-animation.d.ts +73 -0
- package/dist/digital-pet-animation/idle/monster-artwork-mirror.d.ts +22 -0
- package/dist/digital-pet-animation/idle/monster-walking-policy.d.ts +42 -0
- package/dist/digital-pet-animation/render/positioned-artwork.d.ts +3 -0
- package/dist/digital-pet-animation/sequences/defeat-artwork.d.ts +7 -0
- package/dist/digital-pet-animation/sequences/evolution-artwork.d.ts +8 -0
- package/dist/digital-pet-animation/sequences/evolution-battle-artwork.d.ts +33 -0
- package/dist/digital-pet-animation/sessions/evolution-battle-session.d.ts +14 -0
- package/dist/digital-pet-animation/sessions/evolution-reveal-session.d.ts +9 -0
- package/dist/digital-pet-animation/utils/assert-never.d.ts +1 -0
- package/dist/digital-pet-animation/utils/random.d.ts +2 -0
- package/dist/digital-pet-animation/utils/sleep.d.ts +1 -0
- package/dist/digital-pet-core/adapters/sqlite/app-data-path.d.ts +5 -0
- package/dist/digital-pet-core/adapters/sqlite/sqlite-digital-pet-schema.d.ts +48 -0
- package/dist/digital-pet-core/adapters/sqlite/sqlite-digital-pet-types.d.ts +43 -0
- package/dist/digital-pet-core/adapters/sqlite/sqlite-digital-pet-write-store.d.ts +8 -0
- package/dist/digital-pet-core/adapters/sqlite/sqlite-migrations.d.ts +4 -0
- package/dist/digital-pet-core/application/models/digital-pet-archive.d.ts +21 -0
- package/dist/digital-pet-core/application/models/digital-pet-control.d.ts +17 -0
- package/dist/digital-pet-core/application/models/sidebar-card-inputs.d.ts +13 -0
- package/dist/digital-pet-core/application/models/spawn-partner.d.ts +9 -0
- package/dist/digital-pet-core/application/models/usage.d.ts +42 -0
- package/dist/digital-pet-core/application/ports/digital-pet-archive.d.ts +4 -0
- package/dist/digital-pet-core/application/ports/digital-pet-control.d.ts +6 -0
- package/dist/digital-pet-core/application/ports/partner-lifecycle.d.ts +5 -0
- package/dist/digital-pet-core/application/ports/sidebar-snapshot.d.ts +13 -0
- package/dist/digital-pet-core/application/ports/usage-ledger.d.ts +5 -0
- package/dist/digital-pet-core/application/use-cases/freeze-digital-pet.d.ts +3 -0
- package/dist/digital-pet-core/application/use-cases/get-sidebar-card-inputs.d.ts +4 -0
- package/dist/digital-pet-core/application/use-cases/reconcile-usage.d.ts +14 -0
- package/dist/digital-pet-core/application/use-cases/record-usage.d.ts +14 -0
- package/dist/digital-pet-core/application/use-cases/resolve-evolution-battle.d.ts +8 -0
- package/dist/digital-pet-core/application/use-cases/set-digital-pet-cheat-node.d.ts +3 -0
- package/dist/digital-pet-core/application/use-cases/spawn-partner.d.ts +3 -0
- package/dist/digital-pet-core/application/use-cases/unfreeze-digital-pet.d.ts +3 -0
- package/dist/digital-pet-core/config/defaults.d.ts +68 -0
- package/dist/digital-pet-core/config/normalize.d.ts +2 -0
- package/dist/digital-pet-core/config/types.d.ts +13 -0
- package/dist/digital-pet-core/data/catalog.d.ts +14 -0
- package/dist/digital-pet-core/data/digimon-data.d.ts +12 -0
- package/dist/digital-pet-core/data/monster-frame-catalog.d.ts +16 -0
- package/dist/digital-pet-core/data/monster-frame-data.d.ts +2 -0
- package/dist/digital-pet-core/data/stages.d.ts +16 -0
- package/dist/digital-pet-core/domain/digimon-node.d.ts +14 -0
- package/dist/digital-pet-core/domain/evolution-battle.d.ts +4 -0
- package/dist/digital-pet-core/domain/evolution.d.ts +23 -0
- package/dist/digital-pet-core/domain/partner.d.ts +18 -0
- package/dist/digital-pet-core/domain/stage.d.ts +3 -0
- package/dist/digital-pet-core/ports/sqlite-executor.d.ts +7 -0
- package/dist/digital-pet-core/view-models/dex-view-model.d.ts +19 -0
- package/dist/digital-pet-core/view-models/history-view-model.d.ts +20 -0
- package/dist/digital-pet-core/view-models/sidebar-view-model.d.ts +20 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.js +7461 -0
- package/dist/tui/digital-pet-command-layer.d.ts +20 -0
- package/dist/tui/digital-pet-dex-dialog.d.ts +11 -0
- package/dist/tui/digital-pet-history-dialog.d.ts +11 -0
- package/dist/tui/open-in-browser.d.ts +2 -0
- package/dist/tui/sidebar-card.d.ts +10 -0
- package/dist/tui/sidebar-poll-loop.d.ts +13 -0
- package/dist/tui.d.ts +56 -0
- package/dist/tui.js +9720 -0
- package/package.json +106 -0
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
export declare const DIGITAL_PET_STAGE_LABELS: Readonly<{
|
|
2
|
+
readonly en: Readonly<{
|
|
3
|
+
readonly egg: "DigiEgg";
|
|
4
|
+
readonly babyI: "In Training I";
|
|
5
|
+
readonly babyII: "In Training II";
|
|
6
|
+
readonly child: "Rookie";
|
|
7
|
+
readonly adult: "Champion";
|
|
8
|
+
readonly perfect: "Ultimate";
|
|
9
|
+
readonly ultimate: "Mega";
|
|
10
|
+
readonly superUltimate: "Ultra";
|
|
11
|
+
}>;
|
|
12
|
+
readonly jp: Readonly<{
|
|
13
|
+
readonly egg: "Digitama";
|
|
14
|
+
readonly babyI: "Baby I";
|
|
15
|
+
readonly babyII: "Baby II";
|
|
16
|
+
readonly child: "Child";
|
|
17
|
+
readonly adult: "Adult";
|
|
18
|
+
readonly perfect: "Perfect";
|
|
19
|
+
readonly ultimate: "Ultimate";
|
|
20
|
+
readonly superUltimate: "SuperUltimate";
|
|
21
|
+
}>;
|
|
22
|
+
}>;
|
|
23
|
+
export declare const DEFAULT_STAGE_THRESHOLDS: Readonly<{
|
|
24
|
+
readonly egg: 5000000;
|
|
25
|
+
readonly babyI: 10000000;
|
|
26
|
+
readonly babyII: 20000000;
|
|
27
|
+
readonly child: 40000000;
|
|
28
|
+
readonly adult: 75000000;
|
|
29
|
+
readonly perfect: 125000000;
|
|
30
|
+
readonly ultimate: 200000000;
|
|
31
|
+
readonly superUltimate: 300000000;
|
|
32
|
+
}>;
|
|
33
|
+
export declare const DEFAULT_DIGITAL_PET_SETTINGS: Readonly<{
|
|
34
|
+
readonly language: "jp";
|
|
35
|
+
readonly notifications: true;
|
|
36
|
+
readonly stageLabels: Readonly<{
|
|
37
|
+
readonly en: Readonly<{
|
|
38
|
+
readonly egg: "DigiEgg";
|
|
39
|
+
readonly babyI: "In Training I";
|
|
40
|
+
readonly babyII: "In Training II";
|
|
41
|
+
readonly child: "Rookie";
|
|
42
|
+
readonly adult: "Champion";
|
|
43
|
+
readonly perfect: "Ultimate";
|
|
44
|
+
readonly ultimate: "Mega";
|
|
45
|
+
readonly superUltimate: "Ultra";
|
|
46
|
+
}>;
|
|
47
|
+
readonly jp: Readonly<{
|
|
48
|
+
readonly egg: "Digitama";
|
|
49
|
+
readonly babyI: "Baby I";
|
|
50
|
+
readonly babyII: "Baby II";
|
|
51
|
+
readonly child: "Child";
|
|
52
|
+
readonly adult: "Adult";
|
|
53
|
+
readonly perfect: "Perfect";
|
|
54
|
+
readonly ultimate: "Ultimate";
|
|
55
|
+
readonly superUltimate: "SuperUltimate";
|
|
56
|
+
}>;
|
|
57
|
+
}>;
|
|
58
|
+
readonly stageThresholds: Readonly<{
|
|
59
|
+
readonly egg: 5000000;
|
|
60
|
+
readonly babyI: 10000000;
|
|
61
|
+
readonly babyII: 20000000;
|
|
62
|
+
readonly child: 40000000;
|
|
63
|
+
readonly adult: 75000000;
|
|
64
|
+
readonly perfect: 125000000;
|
|
65
|
+
readonly ultimate: 200000000;
|
|
66
|
+
readonly superUltimate: 300000000;
|
|
67
|
+
}>;
|
|
68
|
+
}>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare const DIGITAL_PET_LANGUAGES: readonly ["en", "jp"];
|
|
2
|
+
export type DigitalPetLanguage = (typeof DIGITAL_PET_LANGUAGES)[number];
|
|
3
|
+
export declare const STAGE_THRESHOLD_KEYS: readonly ["egg", "babyI", "babyII", "child", "adult", "perfect", "ultimate", "superUltimate"];
|
|
4
|
+
export type StageThresholdKey = (typeof STAGE_THRESHOLD_KEYS)[number];
|
|
5
|
+
export type StageThresholdSettings = Readonly<Record<StageThresholdKey, number>>;
|
|
6
|
+
export type StageLabels = Readonly<Record<StageThresholdKey, string>>;
|
|
7
|
+
export type DigitalPetStageLabels = Readonly<Record<DigitalPetLanguage, StageLabels>>;
|
|
8
|
+
export type ResolvedDigitalPetSettings = Readonly<{
|
|
9
|
+
readonly language: DigitalPetLanguage;
|
|
10
|
+
readonly notifications: boolean;
|
|
11
|
+
readonly stageLabels: DigitalPetStageLabels;
|
|
12
|
+
readonly stageThresholds: StageThresholdSettings;
|
|
13
|
+
}>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { DigimonCatalog } from "../domain/digimon-node.js";
|
|
2
|
+
export type { DigimonCatalog, DigimonNode } from "../domain/digimon-node.js";
|
|
3
|
+
export type RawDigimonNode = {
|
|
4
|
+
readonly id: string;
|
|
5
|
+
readonly name_en: string;
|
|
6
|
+
readonly name_jp: string;
|
|
7
|
+
readonly next_evolutions: readonly string[];
|
|
8
|
+
readonly sprite: string;
|
|
9
|
+
readonly stage: number;
|
|
10
|
+
readonly url: string;
|
|
11
|
+
};
|
|
12
|
+
export declare const parseDigimonCatalog: (input: readonly RawDigimonNode[]) => DigimonCatalog;
|
|
13
|
+
export declare const DIGIMON_CATALOG: DigimonCatalog;
|
|
14
|
+
export declare const loadDigimonCatalog: () => Promise<DigimonCatalog>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export type DigimonStage = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7;
|
|
2
|
+
export type DigimonId = `${DigimonStage}-${number}`;
|
|
3
|
+
export type DigimonRecord = {
|
|
4
|
+
readonly name_en: string;
|
|
5
|
+
readonly name_jp: string;
|
|
6
|
+
readonly next_evolutions: readonly DigimonId[];
|
|
7
|
+
readonly stage: DigimonStage;
|
|
8
|
+
readonly sprite: string;
|
|
9
|
+
readonly id: DigimonId;
|
|
10
|
+
readonly url: string;
|
|
11
|
+
};
|
|
12
|
+
export declare const DIGIMON_DATA: readonly DigimonRecord[];
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare const MONSTER_FRAME_NAMES: readonly ["angry", "attack", "eat_1", "eat_2", "happy", "injured_1", "injured_2", "refuse", "sleep_1", "sleep_2", "walk_1", "walk_2"];
|
|
2
|
+
export type MonsterFrameName = (typeof MONSTER_FRAME_NAMES)[number];
|
|
3
|
+
export declare const STANDARD_ANIMATION_SEQUENCE: readonly ["angry", "attack", "eat_1", "eat_2", "happy", "injured_1", "injured_2", "sleep_1", "sleep_2", "walk_1", "walk_2"];
|
|
4
|
+
type SpriteFrames = Iterable<readonly [MonsterFrameName, MonsterFrame]>;
|
|
5
|
+
type CatalogFrames = Iterable<readonly [string, SpriteFrames]>;
|
|
6
|
+
export declare class MonsterFrame {
|
|
7
|
+
readonly content: string;
|
|
8
|
+
constructor(content: string);
|
|
9
|
+
}
|
|
10
|
+
export declare class MonsterFrameCatalog {
|
|
11
|
+
#private;
|
|
12
|
+
constructor(frames: CatalogFrames);
|
|
13
|
+
get(sprite: string, frameName: MonsterFrameName): MonsterFrame | undefined;
|
|
14
|
+
}
|
|
15
|
+
export declare const MONSTER_FRAME_CATALOG: MonsterFrameCatalog;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { StageLabels, StageThresholdKey } from "../config/types.js";
|
|
2
|
+
import { isDigimonStage, type DigimonStage } from "../domain/stage.js";
|
|
3
|
+
export { isDigimonStage, type DigimonStage };
|
|
4
|
+
export declare const STAGE_VALUES: readonly [0, 1, 2, 3, 4, 5, 6, 7];
|
|
5
|
+
export declare const STAGE_THRESHOLD_KEYS: {
|
|
6
|
+
readonly 0: "egg";
|
|
7
|
+
readonly 1: "babyI";
|
|
8
|
+
readonly 2: "babyII";
|
|
9
|
+
readonly 3: "child";
|
|
10
|
+
readonly 4: "adult";
|
|
11
|
+
readonly 5: "perfect";
|
|
12
|
+
readonly 6: "ultimate";
|
|
13
|
+
readonly 7: "superUltimate";
|
|
14
|
+
};
|
|
15
|
+
export declare const getStageKey: (stage: DigimonStage) => StageThresholdKey;
|
|
16
|
+
export declare const getStageLabel: (stage: DigimonStage, labels: StageLabels) => string;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { DigimonStage } from "./stage.js";
|
|
2
|
+
export type DigimonNode = {
|
|
3
|
+
readonly id: string;
|
|
4
|
+
readonly nameEn: string;
|
|
5
|
+
readonly nameJp: string;
|
|
6
|
+
readonly nextEvolutions: readonly string[];
|
|
7
|
+
readonly sprite: string;
|
|
8
|
+
readonly stage: DigimonStage;
|
|
9
|
+
readonly url: string;
|
|
10
|
+
};
|
|
11
|
+
export type DigimonCatalog = {
|
|
12
|
+
readonly nodes: readonly DigimonNode[];
|
|
13
|
+
readonly byId: ReadonlyMap<string, DigimonNode>;
|
|
14
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { DigimonNode } from "./digimon-node.js";
|
|
2
|
+
import type { EvolutionSelector } from "./evolution.js";
|
|
3
|
+
export declare const pickEvolutionTarget: (current: DigimonNode, selector: EvolutionSelector) => string;
|
|
4
|
+
export declare const pickRandomSameStageOpponent: (current: DigimonNode, catalogNodes: readonly DigimonNode[], selector: EvolutionSelector) => string;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { DigimonNode } from "./digimon-node.js";
|
|
2
|
+
import { type DigimonStage } from "./stage.js";
|
|
3
|
+
export type StageThresholds = Readonly<Record<DigimonStage, number>>;
|
|
4
|
+
export declare const STAGE_GAUGE_THRESHOLDS: Readonly<{
|
|
5
|
+
readonly 0: 5000000;
|
|
6
|
+
readonly 1: 10000000;
|
|
7
|
+
readonly 2: 20000000;
|
|
8
|
+
readonly 3: 40000000;
|
|
9
|
+
readonly 4: 75000000;
|
|
10
|
+
readonly 5: 125000000;
|
|
11
|
+
readonly 6: 200000000;
|
|
12
|
+
readonly 7: 300000000;
|
|
13
|
+
}>;
|
|
14
|
+
export type PartnerEvolutionState = {
|
|
15
|
+
readonly current: DigimonNode;
|
|
16
|
+
readonly gauge: number;
|
|
17
|
+
readonly isTerminal: boolean;
|
|
18
|
+
readonly pendingEvolutionTargetId: string | null;
|
|
19
|
+
readonly battleOpponentNodeId: string | null;
|
|
20
|
+
};
|
|
21
|
+
export type EvolutionSelector = () => number;
|
|
22
|
+
export declare const applyTokenProgress: (state: PartnerEvolutionState, tokenDelta: number, selector: EvolutionSelector, digimonById: ReadonlyMap<string, DigimonNode>, catalogNodes: readonly DigimonNode[], thresholds: unknown) => PartnerEvolutionState;
|
|
23
|
+
export declare const resolveEvolutionBattle: (state: PartnerEvolutionState, won: boolean, digimonById: ReadonlyMap<string, DigimonNode>) => PartnerEvolutionState;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export type Partner = {
|
|
2
|
+
readonly partnerId: string;
|
|
3
|
+
readonly generation: number;
|
|
4
|
+
readonly currentNodeId: string;
|
|
5
|
+
readonly gauge: number;
|
|
6
|
+
readonly isTerminal: boolean;
|
|
7
|
+
readonly pendingEvolutionTargetId: string | null;
|
|
8
|
+
readonly battleOpponentNodeId: string | null;
|
|
9
|
+
readonly createdAt: string;
|
|
10
|
+
readonly retiredAt: string | null;
|
|
11
|
+
};
|
|
12
|
+
export type PartnerProgression = {
|
|
13
|
+
readonly currentNodeId: string;
|
|
14
|
+
readonly gauge: number;
|
|
15
|
+
readonly isTerminal: boolean;
|
|
16
|
+
readonly pendingEvolutionTargetId: string | null;
|
|
17
|
+
readonly battleOpponentNodeId: string | null;
|
|
18
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export type QueryValue = string | number | boolean | null;
|
|
2
|
+
export type SqliteExecutor = {
|
|
3
|
+
run: (sql: string, params?: readonly QueryValue[]) => void;
|
|
4
|
+
get: <TRow extends Record<string, QueryValue>>(sql: string, params?: readonly QueryValue[]) => TRow | null;
|
|
5
|
+
all: <TRow extends Record<string, QueryValue>>(sql: string, params?: readonly QueryValue[]) => readonly TRow[];
|
|
6
|
+
transaction: <TReturn>(operation: () => TReturn) => TReturn;
|
|
7
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { DigitalPetArchiveResult } from "../application/models/digital-pet-archive.js";
|
|
2
|
+
import type { ResolvedDigitalPetSettings } from "../config/types.js";
|
|
3
|
+
import type { DigimonCatalog } from "../data/catalog.js";
|
|
4
|
+
export type DexRow = {
|
|
5
|
+
readonly id: string;
|
|
6
|
+
readonly stage: string;
|
|
7
|
+
readonly discovered: boolean;
|
|
8
|
+
readonly name: string;
|
|
9
|
+
};
|
|
10
|
+
export type DexViewModel = {
|
|
11
|
+
readonly kind: "available";
|
|
12
|
+
readonly rows: readonly DexRow[];
|
|
13
|
+
} | {
|
|
14
|
+
readonly kind: "empty";
|
|
15
|
+
} | {
|
|
16
|
+
readonly kind: "unavailable";
|
|
17
|
+
readonly message: string;
|
|
18
|
+
};
|
|
19
|
+
export declare const buildDexViewModel: (archive: DigitalPetArchiveResult, catalog: DigimonCatalog, settings: ResolvedDigitalPetSettings) => DexViewModel;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { DigitalPetArchiveResult } from "../application/models/digital-pet-archive.js";
|
|
2
|
+
import type { ResolvedDigitalPetSettings } from "../config/types.js";
|
|
3
|
+
import type { DigimonCatalog } from "../data/catalog.js";
|
|
4
|
+
export type HistoryGeneration = {
|
|
5
|
+
readonly partnerId: string;
|
|
6
|
+
readonly generation: number;
|
|
7
|
+
readonly createdAt: string;
|
|
8
|
+
readonly retiredAt: string | null;
|
|
9
|
+
readonly path: readonly string[];
|
|
10
|
+
};
|
|
11
|
+
export type HistoryViewModel = {
|
|
12
|
+
readonly kind: "available";
|
|
13
|
+
readonly generations: readonly HistoryGeneration[];
|
|
14
|
+
} | {
|
|
15
|
+
readonly kind: "empty";
|
|
16
|
+
} | {
|
|
17
|
+
readonly kind: "unavailable";
|
|
18
|
+
readonly message: string;
|
|
19
|
+
};
|
|
20
|
+
export declare const buildHistoryViewModel: (archive: DigitalPetArchiveResult, catalog: DigimonCatalog, settings: ResolvedDigitalPetSettings) => HistoryViewModel;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { SidebarCardInputs } from "../application/models/sidebar-card-inputs.js";
|
|
2
|
+
import type { ResolvedDigitalPetSettings } from "../config/types.js";
|
|
3
|
+
export type SidebarCardModel = {
|
|
4
|
+
readonly kind: "no_partner";
|
|
5
|
+
readonly messageLine: string;
|
|
6
|
+
} | {
|
|
7
|
+
readonly kind: "partner";
|
|
8
|
+
readonly name: string;
|
|
9
|
+
readonly sprite: string;
|
|
10
|
+
readonly stage: string;
|
|
11
|
+
readonly stageNumber: number;
|
|
12
|
+
readonly url: string;
|
|
13
|
+
readonly gauge: number;
|
|
14
|
+
readonly threshold: number;
|
|
15
|
+
readonly isTerminal: boolean;
|
|
16
|
+
readonly frozen: boolean;
|
|
17
|
+
readonly isSetOverride: boolean;
|
|
18
|
+
readonly evolutionBattlePending: boolean;
|
|
19
|
+
};
|
|
20
|
+
export declare const buildSidebarCardModel: (inputs: SidebarCardInputs, settings?: ResolvedDigitalPetSettings) => SidebarCardModel;
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Plugin } from "@opencode-ai/plugin";
|
|
2
|
+
export { createCommandConfig } from "./adapters/opencode/create-server-hooks.js";
|
|
3
|
+
export { DIGIMON_DATA } from "./digital-pet-core/data/digimon-data.js";
|
|
4
|
+
export type { DigimonId, DigimonRecord, DigimonStage } from "./digital-pet-core/data/digimon-data.js";
|
|
5
|
+
export declare const plugin: Plugin;
|
|
6
|
+
declare const entryPlugin: {
|
|
7
|
+
readonly id: "opencode-digital-pet";
|
|
8
|
+
readonly server: Plugin;
|
|
9
|
+
};
|
|
10
|
+
export default entryPlugin;
|