@dayzehq/cli 0.0.0-stage → 0.2.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/LICENSE +21 -0
- package/README.md +305 -2
- package/dist/add.d.ts +6 -0
- package/dist/add.js +72 -0
- package/dist/admin.d.ts +110 -0
- package/dist/admin.js +408 -0
- package/dist/agent-bridge.d.ts +50 -0
- package/dist/agent-bridge.js +146 -0
- package/dist/agent-mcp.d.ts +4 -0
- package/dist/agent-mcp.js +36 -0
- package/dist/ai-consent.d.ts +18 -0
- package/dist/ai-consent.js +93 -0
- package/dist/args.d.ts +5 -0
- package/dist/args.js +127 -0
- package/dist/auth.d.ts +20 -0
- package/dist/auth.js +198 -0
- package/dist/channel.d.ts +55 -0
- package/dist/channel.js +250 -0
- package/dist/chat.d.ts +67 -0
- package/dist/chat.js +170 -0
- package/dist/cli-errors.d.ts +13 -0
- package/dist/cli-errors.js +30 -0
- package/dist/coding-context.d.ts +12 -0
- package/dist/coding-context.js +130 -0
- package/dist/coding.d.ts +35 -0
- package/dist/coding.js +283 -0
- package/dist/config.d.ts +36 -0
- package/dist/config.js +149 -0
- package/dist/day.d.ts +22 -0
- package/dist/day.js +54 -0
- package/dist/dayze-cli-runtime +0 -0
- package/dist/dayze-days.d.ts +56 -0
- package/dist/dayze-days.js +276 -0
- package/dist/doctor.d.ts +32 -0
- package/dist/doctor.js +225 -0
- package/dist/focus.d.ts +9 -0
- package/dist/focus.js +163 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +675 -0
- package/dist/inventory.d.ts +73 -0
- package/dist/inventory.js +1272 -0
- package/dist/life.d.ts +48 -0
- package/dist/life.js +146 -0
- package/dist/me.d.ts +94 -0
- package/dist/me.js +789 -0
- package/dist/people.d.ts +232 -0
- package/dist/people.js +2034 -0
- package/dist/projects.d.ts +21 -0
- package/dist/projects.js +132 -0
- package/dist/request-deadline.d.ts +11 -0
- package/dist/request-deadline.js +34 -0
- package/dist/runtime-build.json +1 -0
- package/dist/ui.d.ts +37 -0
- package/dist/ui.js +219 -0
- package/dist/version.d.ts +4 -0
- package/dist/version.js +16 -0
- package/package.json +54 -4
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Industry-standard Life Inventory / Closet for Dayze CLI.
|
|
3
|
+
*
|
|
4
|
+
* Same UX language as `dayze people` (fzf + file-manager hybrid):
|
|
5
|
+
* - Load inventory once, live type-ahead filter
|
|
6
|
+
* - Ctrl+S cycles sort · ↑↓ Enter detail
|
|
7
|
+
* - Detail: a agent · e edit · n note · Esc back
|
|
8
|
+
* - Plain `list` / `show` for scripts
|
|
9
|
+
*/
|
|
10
|
+
import { type DayzeCredentials } from './config.js';
|
|
11
|
+
export type InventoryCommandOptions = {
|
|
12
|
+
json?: boolean;
|
|
13
|
+
};
|
|
14
|
+
export type InventorySort = 'name' | 'updated' | 'price-desc' | 'price-asc' | 'purchased' | 'category';
|
|
15
|
+
export declare const INVENTORY_SORT_CYCLE: InventorySort[];
|
|
16
|
+
export declare function parseInventorySort(raw: string | undefined | null): InventorySort | null;
|
|
17
|
+
export declare function inventorySortLabel(sort: InventorySort): string;
|
|
18
|
+
export type InventoryItem = {
|
|
19
|
+
id: string;
|
|
20
|
+
name: string;
|
|
21
|
+
category?: string | null;
|
|
22
|
+
item_type?: string | null;
|
|
23
|
+
brand?: string | null;
|
|
24
|
+
color?: string | null;
|
|
25
|
+
size?: string | null;
|
|
26
|
+
condition?: string | null;
|
|
27
|
+
status?: string | null;
|
|
28
|
+
image_url?: string | null;
|
|
29
|
+
purchase_price?: number | null;
|
|
30
|
+
current_value?: number | null;
|
|
31
|
+
currency?: string | null;
|
|
32
|
+
purchase_date?: string | null;
|
|
33
|
+
location?: string | null;
|
|
34
|
+
tags?: string[] | null;
|
|
35
|
+
occasions?: string[] | null;
|
|
36
|
+
seasons?: string[] | null;
|
|
37
|
+
resale_url?: string | null;
|
|
38
|
+
notes?: string | null;
|
|
39
|
+
wear_count?: number | null;
|
|
40
|
+
last_worn_at?: string | null;
|
|
41
|
+
metadata?: Record<string, unknown> | null;
|
|
42
|
+
updated_at?: string | null;
|
|
43
|
+
created_at?: string | null;
|
|
44
|
+
};
|
|
45
|
+
export declare function fetchInventoryPage(creds: DayzeCredentials, opts?: {
|
|
46
|
+
q?: string;
|
|
47
|
+
category?: string;
|
|
48
|
+
status?: string;
|
|
49
|
+
limit?: number;
|
|
50
|
+
offset?: number;
|
|
51
|
+
}): Promise<{
|
|
52
|
+
items: InventoryItem[];
|
|
53
|
+
total: number;
|
|
54
|
+
hasMore: boolean;
|
|
55
|
+
}>;
|
|
56
|
+
/** Sum paid + est. resell (current_value) per currency — same as web Inventory metrics. */
|
|
57
|
+
export declare function inventoryValueTotals(items: InventoryItem[]): {
|
|
58
|
+
paid: Map<string, number>;
|
|
59
|
+
resell: Map<string, number>;
|
|
60
|
+
paidCount: number;
|
|
61
|
+
resellCount: number;
|
|
62
|
+
};
|
|
63
|
+
export declare function sortInventory(items: InventoryItem[], sort: InventorySort): InventoryItem[];
|
|
64
|
+
export declare function filterInventory(items: InventoryItem[], query: string): InventoryItem[];
|
|
65
|
+
export declare function printInventoryDetail(it: InventoryItem, footerHint?: boolean): void;
|
|
66
|
+
export declare function runInventoryBrowser(creds: DayzeCredentials, opts?: {
|
|
67
|
+
query?: string;
|
|
68
|
+
sort?: InventorySort;
|
|
69
|
+
status?: string;
|
|
70
|
+
category?: string;
|
|
71
|
+
}): Promise<void>;
|
|
72
|
+
export declare function printInventoryHelp(): void;
|
|
73
|
+
export declare function runInventoryCommand(creds: DayzeCredentials, positional: string[], options?: InventoryCommandOptions): Promise<void>;
|