@bitcobblers/wod-wiki-engine 0.60.2258 → 0.62.2260
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/dist/agent.cjs +1929 -587
- package/dist/agent.cjs.map +1 -1
- package/dist/agent.d.cts +135 -10
- package/dist/agent.d.ts +135 -10
- package/dist/agent.mjs +433 -97
- package/dist/agent.mjs.map +1 -1
- package/dist/{chunk-4F6VCY2U.mjs → chunk-QVYGLAEZ.mjs} +2045 -269
- package/dist/chunk-QVYGLAEZ.mjs.map +1 -0
- package/dist/index.cjs +2083 -268
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +136 -22
- package/dist/index.d.ts +136 -22
- package/dist/index.mjs +7 -3
- package/dist/index.mjs.map +1 -1
- package/dist/ir-fqQyyX01.d.cts +685 -0
- package/dist/ir-fqQyyX01.d.ts +685 -0
- package/package.json +5 -5
- package/dist/chunk-4F6VCY2U.mjs.map +0 -1
- package/dist/ir-B46Q9icI.d.cts +0 -402
- package/dist/ir-B46Q9icI.d.ts +0 -402
package/dist/agent.d.cts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { IStorage, StoreName } from '@bitcobblers/wod-wiki-storage';
|
|
3
|
-
import { F as FeedTree, P as PortableFileEntry, a as FeedSubscriptionEntry, R as ResolvedUpstreamProvenance, S as StatementNode } from './ir-
|
|
3
|
+
import { F as FeedTree, P as PortableFileEntry, a as FeedSubscriptionEntry, b as FeedOfflinePolicy, D as DeleteNotebookResult, R as ResolvedUpstreamProvenance, S as StatementNode } from './ir-fqQyyX01.cjs';
|
|
4
4
|
import * as _bitcobblers_wod_wiki_core from '@bitcobblers/wod-wiki-core';
|
|
5
|
-
import { Note, Session, EventRecord } from '@bitcobblers/wod-wiki-core';
|
|
5
|
+
import { Note, ScheduleItem, Session, EventRecord } from '@bitcobblers/wod-wiki-core';
|
|
6
6
|
import * as _bitcobblers_wod_wiki_wql from '@bitcobblers/wod-wiki-wql';
|
|
7
7
|
import { QueryService } from '@bitcobblers/wod-wiki-wql';
|
|
8
8
|
import * as _bitcobblers_wod_wiki_lang from '@bitcobblers/wod-wiki-lang';
|
|
@@ -103,6 +103,7 @@ interface UpsertNoteInStorageResult {
|
|
|
103
103
|
effortSlugs: string[];
|
|
104
104
|
equipmentSlugs: string[];
|
|
105
105
|
tagLabels: string[];
|
|
106
|
+
scheduleItemId?: string;
|
|
106
107
|
}
|
|
107
108
|
declare function upsertNoteInStorage(storage: IStorage, input: UpsertNoteInStorageInput): Promise<UpsertNoteInStorageResult>;
|
|
108
109
|
declare function deleteNoteFromStorage(storage: IStorage, noteId: string): Promise<boolean>;
|
|
@@ -211,6 +212,8 @@ declare const wodFeedManageTool: AgentToolSpec<z.ZodObject<{
|
|
|
211
212
|
importedAt?: number;
|
|
212
213
|
chunkCount: number;
|
|
213
214
|
subscribed?: boolean;
|
|
215
|
+
offlinePolicy?: "index-only" | "offline-full";
|
|
216
|
+
autoSync?: boolean;
|
|
214
217
|
}[];
|
|
215
218
|
subscriptions: Record<string, FeedSubscriptionEntry>;
|
|
216
219
|
notebooks?: undefined;
|
|
@@ -232,6 +235,20 @@ declare const wodFeedManageTool: AgentToolSpec<z.ZodObject<{
|
|
|
232
235
|
totalPublicSessions?: undefined;
|
|
233
236
|
manifestVersion?: undefined;
|
|
234
237
|
manifestSha256?: undefined;
|
|
238
|
+
} | {
|
|
239
|
+
sourceId: string;
|
|
240
|
+
subscribed: true;
|
|
241
|
+
notebookIds: string[] | null;
|
|
242
|
+
offlinePolicy: FeedOfflinePolicy;
|
|
243
|
+
action: "subscribe";
|
|
244
|
+
installedCount?: undefined;
|
|
245
|
+
feeds?: undefined;
|
|
246
|
+
subscriptions?: undefined;
|
|
247
|
+
notebooks?: undefined;
|
|
248
|
+
totalNotes?: undefined;
|
|
249
|
+
totalPublicSessions?: undefined;
|
|
250
|
+
manifestVersion?: undefined;
|
|
251
|
+
manifestSha256?: undefined;
|
|
235
252
|
} | {
|
|
236
253
|
sourceId: string;
|
|
237
254
|
unsubscribed: boolean;
|
|
@@ -328,6 +345,27 @@ declare const wodJournalDayTool: AgentToolSpec<z.ZodObject<{
|
|
|
328
345
|
date: string;
|
|
329
346
|
url: string;
|
|
330
347
|
pageId: string;
|
|
348
|
+
plannedCount: number;
|
|
349
|
+
planned: {
|
|
350
|
+
pairedSessionIds: string[];
|
|
351
|
+
notes?: string | undefined;
|
|
352
|
+
slot?: string | undefined;
|
|
353
|
+
scheduleItemId: string;
|
|
354
|
+
noteId: string;
|
|
355
|
+
noteTitle: string;
|
|
356
|
+
status: _bitcobblers_wod_wiki_core.ScheduleStatus;
|
|
357
|
+
}[];
|
|
358
|
+
adhocSessionCount: number;
|
|
359
|
+
adhocSessions: {
|
|
360
|
+
noteSourceRevision?: number | undefined;
|
|
361
|
+
id: string;
|
|
362
|
+
noteId: string;
|
|
363
|
+
noteTitle: string;
|
|
364
|
+
status: "completed" | "in-progress" | undefined;
|
|
365
|
+
completed: boolean;
|
|
366
|
+
duration: number;
|
|
367
|
+
startTime: number;
|
|
368
|
+
}[];
|
|
331
369
|
noteCount: number;
|
|
332
370
|
notes: {
|
|
333
371
|
id: string;
|
|
@@ -340,6 +378,9 @@ declare const wodJournalDayTool: AgentToolSpec<z.ZodObject<{
|
|
|
340
378
|
}[];
|
|
341
379
|
sessionCount: number;
|
|
342
380
|
sessions: {
|
|
381
|
+
noteSourceRevision?: number | undefined;
|
|
382
|
+
sessionDate?: string | undefined;
|
|
383
|
+
scheduleItemId?: string | undefined;
|
|
343
384
|
id: string;
|
|
344
385
|
noteId: string;
|
|
345
386
|
blockId: string;
|
|
@@ -356,8 +397,6 @@ declare const wodJournalAddTool: AgentToolSpec<z.ZodObject<{
|
|
|
356
397
|
sport: z.ZodOptional<z.ZodString>;
|
|
357
398
|
notebookId: z.ZodOptional<z.ZodString>;
|
|
358
399
|
}, z.core.$strict>, {
|
|
359
|
-
date: string;
|
|
360
|
-
noteId: string;
|
|
361
400
|
journalUrl: string;
|
|
362
401
|
note: {
|
|
363
402
|
id: string;
|
|
@@ -367,6 +406,9 @@ declare const wodJournalAddTool: AgentToolSpec<z.ZodObject<{
|
|
|
367
406
|
effortSlugs: string[];
|
|
368
407
|
url: string;
|
|
369
408
|
};
|
|
409
|
+
scheduleItemId?: string | undefined;
|
|
410
|
+
date: string;
|
|
411
|
+
noteId: string;
|
|
370
412
|
}>;
|
|
371
413
|
|
|
372
414
|
declare const wodNotebookListTool: AgentToolSpec<z.ZodObject<{
|
|
@@ -456,17 +498,20 @@ declare const wodNotebookSaveTool: AgentToolSpec<z.ZodObject<{
|
|
|
456
498
|
declare const wodNotebookDeleteTool: AgentToolSpec<z.ZodObject<{
|
|
457
499
|
notebookId: z.ZodString;
|
|
458
500
|
confirmId: z.ZodOptional<z.ZodString>;
|
|
459
|
-
}, z.core.$strict>,
|
|
460
|
-
deleted: boolean;
|
|
461
|
-
notebookId: `notebook/${string}`;
|
|
462
|
-
slug: string;
|
|
463
|
-
}>;
|
|
501
|
+
}, z.core.$strict>, DeleteNotebookResult>;
|
|
464
502
|
|
|
465
503
|
declare const wodNoteListTool: AgentToolSpec<z.ZodObject<{
|
|
466
504
|
notebookId: z.ZodOptional<z.ZodString>;
|
|
467
505
|
search: z.ZodOptional<z.ZodString>;
|
|
468
506
|
tag: z.ZodOptional<z.ZodString>;
|
|
507
|
+
origin: z.ZodOptional<z.ZodEnum<{
|
|
508
|
+
feed: "feed";
|
|
509
|
+
user: "user";
|
|
510
|
+
seed: "seed";
|
|
511
|
+
all: "all";
|
|
512
|
+
}>>;
|
|
469
513
|
includeSeed: z.ZodOptional<z.ZodBoolean>;
|
|
514
|
+
orphanedOnly: z.ZodOptional<z.ZodBoolean>;
|
|
470
515
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
471
516
|
}, z.core.$strict>, {
|
|
472
517
|
totalCount: number;
|
|
@@ -502,6 +547,9 @@ declare const wodNoteGetTool: AgentToolSpec<z.ZodObject<{
|
|
|
502
547
|
id: `notebook/${string}`;
|
|
503
548
|
slug: string;
|
|
504
549
|
}[];
|
|
550
|
+
scheduleCount: number;
|
|
551
|
+
scheduleItems: never[] | _bitcobblers_wod_wiki_core.ScheduleItem[];
|
|
552
|
+
revisionCount: number;
|
|
505
553
|
blocks: {
|
|
506
554
|
content: string;
|
|
507
555
|
sport?: string | undefined;
|
|
@@ -570,6 +618,74 @@ declare const wodNoteDeleteTool: AgentToolSpec<z.ZodObject<{
|
|
|
570
618
|
reason?: undefined;
|
|
571
619
|
}>;
|
|
572
620
|
|
|
621
|
+
declare const wodScheduleListTool: AgentToolSpec<z.ZodObject<{
|
|
622
|
+
from: z.ZodOptional<z.ZodString>;
|
|
623
|
+
to: z.ZodOptional<z.ZodString>;
|
|
624
|
+
noteId: z.ZodOptional<z.ZodString>;
|
|
625
|
+
}, z.core.$strict>, {
|
|
626
|
+
totalCount: number;
|
|
627
|
+
items: {
|
|
628
|
+
noteTitle: string;
|
|
629
|
+
id: string;
|
|
630
|
+
date: string;
|
|
631
|
+
noteId: string;
|
|
632
|
+
pageId?: string;
|
|
633
|
+
sourceNotebookId?: string;
|
|
634
|
+
fallbackTitle?: string;
|
|
635
|
+
blockId?: string;
|
|
636
|
+
position: number;
|
|
637
|
+
slot?: string;
|
|
638
|
+
status: _bitcobblers_wod_wiki_core.ScheduleStatus;
|
|
639
|
+
notes?: string;
|
|
640
|
+
movedFromDate?: string;
|
|
641
|
+
createdAt: number;
|
|
642
|
+
updatedAt: number;
|
|
643
|
+
userId?: string;
|
|
644
|
+
}[];
|
|
645
|
+
}>;
|
|
646
|
+
declare const wodScheduleAddTool: AgentToolSpec<z.ZodObject<{
|
|
647
|
+
noteId: z.ZodString;
|
|
648
|
+
date: z.ZodOptional<z.ZodString>;
|
|
649
|
+
slot: z.ZodOptional<z.ZodString>;
|
|
650
|
+
position: z.ZodOptional<z.ZodNumber>;
|
|
651
|
+
notes: z.ZodOptional<z.ZodString>;
|
|
652
|
+
}, z.core.$strict>, {
|
|
653
|
+
item: ScheduleItem;
|
|
654
|
+
}>;
|
|
655
|
+
declare const wodScheduleBatchTool: AgentToolSpec<z.ZodObject<{
|
|
656
|
+
items: z.ZodArray<z.ZodObject<{
|
|
657
|
+
noteId: z.ZodString;
|
|
658
|
+
date: z.ZodString;
|
|
659
|
+
slot: z.ZodOptional<z.ZodString>;
|
|
660
|
+
position: z.ZodOptional<z.ZodNumber>;
|
|
661
|
+
notes: z.ZodOptional<z.ZodString>;
|
|
662
|
+
}, z.core.$strict>>;
|
|
663
|
+
}, z.core.$strict>, {
|
|
664
|
+
scheduledCount: number;
|
|
665
|
+
items: ScheduleItem[];
|
|
666
|
+
}>;
|
|
667
|
+
declare const wodScheduleUpdateTool: AgentToolSpec<z.ZodObject<{
|
|
668
|
+
scheduleItemId: z.ZodString;
|
|
669
|
+
date: z.ZodOptional<z.ZodString>;
|
|
670
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
671
|
+
completed: "completed";
|
|
672
|
+
planned: "planned";
|
|
673
|
+
skipped: "skipped";
|
|
674
|
+
moved: "moved";
|
|
675
|
+
}>>;
|
|
676
|
+
slot: z.ZodOptional<z.ZodString>;
|
|
677
|
+
position: z.ZodOptional<z.ZodNumber>;
|
|
678
|
+
notes: z.ZodOptional<z.ZodString>;
|
|
679
|
+
}, z.core.$strict>, {
|
|
680
|
+
item: ScheduleItem;
|
|
681
|
+
}>;
|
|
682
|
+
declare const wodScheduleRemoveTool: AgentToolSpec<z.ZodObject<{
|
|
683
|
+
scheduleItemId: z.ZodString;
|
|
684
|
+
}, z.core.$strict>, {
|
|
685
|
+
removed: boolean;
|
|
686
|
+
scheduleItemId: string;
|
|
687
|
+
}>;
|
|
688
|
+
|
|
573
689
|
declare const wodParseScriptTool: AgentToolSpec<z.ZodObject<{
|
|
574
690
|
source: z.ZodString;
|
|
575
691
|
sport: z.ZodOptional<z.ZodString>;
|
|
@@ -614,6 +730,7 @@ declare const wodSessionRunHeadlessTool: AgentToolSpec<z.ZodObject<{
|
|
|
614
730
|
title: z.ZodOptional<z.ZodString>;
|
|
615
731
|
sport: z.ZodOptional<z.ZodString>;
|
|
616
732
|
journalDate: z.ZodOptional<z.ZodString>;
|
|
733
|
+
scheduleItemId: z.ZodOptional<z.ZodString>;
|
|
617
734
|
collectibles: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
|
|
618
735
|
stepAdvanceMs: z.ZodOptional<z.ZodNumber>;
|
|
619
736
|
maxSteps: z.ZodOptional<z.ZodNumber>;
|
|
@@ -630,6 +747,7 @@ declare const wodSessionRunHeadlessTool: AgentToolSpec<z.ZodObject<{
|
|
|
630
747
|
blockId: string;
|
|
631
748
|
blockVersion: number;
|
|
632
749
|
clonedFromReadOnly: boolean;
|
|
750
|
+
pinnedExternalWorkout: boolean;
|
|
633
751
|
}>;
|
|
634
752
|
declare const wodSessionListTool: AgentToolSpec<z.ZodObject<{
|
|
635
753
|
noteId: z.ZodOptional<z.ZodString>;
|
|
@@ -673,6 +791,13 @@ declare const wodSessionDeleteTool: AgentToolSpec<z.ZodObject<{
|
|
|
673
791
|
sessionId: string;
|
|
674
792
|
reason?: undefined;
|
|
675
793
|
}>;
|
|
794
|
+
declare const wodSessionAttributeTool: AgentToolSpec<z.ZodObject<{
|
|
795
|
+
sessionId: z.ZodString;
|
|
796
|
+
sessionDate: z.ZodOptional<z.ZodString>;
|
|
797
|
+
scheduleItemId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
798
|
+
}, z.core.$strict>, {
|
|
799
|
+
session: Session;
|
|
800
|
+
}>;
|
|
676
801
|
|
|
677
802
|
declare const wodValidateWqlTool: AgentToolSpec<z.ZodObject<{
|
|
678
803
|
query: z.ZodString;
|
|
@@ -931,4 +1056,4 @@ declare function exportAgentCapabilitiesManifest(options?: {
|
|
|
931
1056
|
deploymentTarget?: 'static' | 'server';
|
|
932
1057
|
}): AgentCapabilitiesManifest;
|
|
933
1058
|
|
|
934
|
-
export { AGENT_PROMPTS, AGENT_RESOURCE_TEMPLATES, AGENT_STATIC_RESOURCES, type AgentCapabilitiesManifest, type AgentConfirmationRequest, AgentConfirmationRequiredError, type AgentDomainContext, type AgentDomainName, type AgentRiskTier, type AgentToolAnnotations, type AgentToolManifestEntry, type AgentToolSpec, type AgentUiToolManifestEntry, type AnyAgentToolSpec, DOMAIN_AGENT_TOOLS, DOMAIN_AGENT_TOOLS_BY_NAME, type UpsertNoteInStorageInput, type UpsertNoteInStorageResult, WHITEBOARD_SCRIPT_REFERENCE_MARKDOWN, buildWqlReferenceObject, civilDateKey, createQueryServiceForStorage, defineAgentTool, deleteNoteFromStorage, deleteSessionFromStorage, exportAgentCapabilitiesManifest, normalizeMarkdownOrBareScript, noteDeepLink, readAgentResource, renderAgentPrompt, requireDestructiveConfirmation, upsertNoteInStorage, wodCatalogLookupTool, wodCatalogUpsertTool, wodExportBundleTool, wodFeedManageTool, wodJournalAddTool, wodJournalDayTool, wodNoteCloneTool, wodNoteDeleteTool, wodNoteGetTool, wodNoteListTool, wodNoteUpsertTool, wodNotebookDeleteTool, wodNotebookListTool, wodNotebookSaveTool, wodParseScriptTool, wodQueryWqlTool, wodResetStorageTool, wodSessionDeleteTool, wodSessionGetTool, wodSessionListTool, wodSessionRunHeadlessTool, wodValidateWqlTool, zodSchemaToJsonSchema };
|
|
1059
|
+
export { AGENT_PROMPTS, AGENT_RESOURCE_TEMPLATES, AGENT_STATIC_RESOURCES, type AgentCapabilitiesManifest, type AgentConfirmationRequest, AgentConfirmationRequiredError, type AgentDomainContext, type AgentDomainName, type AgentRiskTier, type AgentToolAnnotations, type AgentToolManifestEntry, type AgentToolSpec, type AgentUiToolManifestEntry, type AnyAgentToolSpec, DOMAIN_AGENT_TOOLS, DOMAIN_AGENT_TOOLS_BY_NAME, type UpsertNoteInStorageInput, type UpsertNoteInStorageResult, WHITEBOARD_SCRIPT_REFERENCE_MARKDOWN, buildWqlReferenceObject, civilDateKey, createQueryServiceForStorage, defineAgentTool, deleteNoteFromStorage, deleteSessionFromStorage, exportAgentCapabilitiesManifest, normalizeMarkdownOrBareScript, noteDeepLink, readAgentResource, renderAgentPrompt, requireDestructiveConfirmation, upsertNoteInStorage, wodCatalogLookupTool, wodCatalogUpsertTool, wodExportBundleTool, wodFeedManageTool, wodJournalAddTool, wodJournalDayTool, wodNoteCloneTool, wodNoteDeleteTool, wodNoteGetTool, wodNoteListTool, wodNoteUpsertTool, wodNotebookDeleteTool, wodNotebookListTool, wodNotebookSaveTool, wodParseScriptTool, wodQueryWqlTool, wodResetStorageTool, wodScheduleAddTool, wodScheduleBatchTool, wodScheduleListTool, wodScheduleRemoveTool, wodScheduleUpdateTool, wodSessionAttributeTool, wodSessionDeleteTool, wodSessionGetTool, wodSessionListTool, wodSessionRunHeadlessTool, wodValidateWqlTool, zodSchemaToJsonSchema };
|
package/dist/agent.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { IStorage, StoreName } from '@bitcobblers/wod-wiki-storage';
|
|
3
|
-
import { F as FeedTree, P as PortableFileEntry, a as FeedSubscriptionEntry, R as ResolvedUpstreamProvenance, S as StatementNode } from './ir-
|
|
3
|
+
import { F as FeedTree, P as PortableFileEntry, a as FeedSubscriptionEntry, b as FeedOfflinePolicy, D as DeleteNotebookResult, R as ResolvedUpstreamProvenance, S as StatementNode } from './ir-fqQyyX01.js';
|
|
4
4
|
import * as _bitcobblers_wod_wiki_core from '@bitcobblers/wod-wiki-core';
|
|
5
|
-
import { Note, Session, EventRecord } from '@bitcobblers/wod-wiki-core';
|
|
5
|
+
import { Note, ScheduleItem, Session, EventRecord } from '@bitcobblers/wod-wiki-core';
|
|
6
6
|
import * as _bitcobblers_wod_wiki_wql from '@bitcobblers/wod-wiki-wql';
|
|
7
7
|
import { QueryService } from '@bitcobblers/wod-wiki-wql';
|
|
8
8
|
import * as _bitcobblers_wod_wiki_lang from '@bitcobblers/wod-wiki-lang';
|
|
@@ -103,6 +103,7 @@ interface UpsertNoteInStorageResult {
|
|
|
103
103
|
effortSlugs: string[];
|
|
104
104
|
equipmentSlugs: string[];
|
|
105
105
|
tagLabels: string[];
|
|
106
|
+
scheduleItemId?: string;
|
|
106
107
|
}
|
|
107
108
|
declare function upsertNoteInStorage(storage: IStorage, input: UpsertNoteInStorageInput): Promise<UpsertNoteInStorageResult>;
|
|
108
109
|
declare function deleteNoteFromStorage(storage: IStorage, noteId: string): Promise<boolean>;
|
|
@@ -211,6 +212,8 @@ declare const wodFeedManageTool: AgentToolSpec<z.ZodObject<{
|
|
|
211
212
|
importedAt?: number;
|
|
212
213
|
chunkCount: number;
|
|
213
214
|
subscribed?: boolean;
|
|
215
|
+
offlinePolicy?: "index-only" | "offline-full";
|
|
216
|
+
autoSync?: boolean;
|
|
214
217
|
}[];
|
|
215
218
|
subscriptions: Record<string, FeedSubscriptionEntry>;
|
|
216
219
|
notebooks?: undefined;
|
|
@@ -232,6 +235,20 @@ declare const wodFeedManageTool: AgentToolSpec<z.ZodObject<{
|
|
|
232
235
|
totalPublicSessions?: undefined;
|
|
233
236
|
manifestVersion?: undefined;
|
|
234
237
|
manifestSha256?: undefined;
|
|
238
|
+
} | {
|
|
239
|
+
sourceId: string;
|
|
240
|
+
subscribed: true;
|
|
241
|
+
notebookIds: string[] | null;
|
|
242
|
+
offlinePolicy: FeedOfflinePolicy;
|
|
243
|
+
action: "subscribe";
|
|
244
|
+
installedCount?: undefined;
|
|
245
|
+
feeds?: undefined;
|
|
246
|
+
subscriptions?: undefined;
|
|
247
|
+
notebooks?: undefined;
|
|
248
|
+
totalNotes?: undefined;
|
|
249
|
+
totalPublicSessions?: undefined;
|
|
250
|
+
manifestVersion?: undefined;
|
|
251
|
+
manifestSha256?: undefined;
|
|
235
252
|
} | {
|
|
236
253
|
sourceId: string;
|
|
237
254
|
unsubscribed: boolean;
|
|
@@ -328,6 +345,27 @@ declare const wodJournalDayTool: AgentToolSpec<z.ZodObject<{
|
|
|
328
345
|
date: string;
|
|
329
346
|
url: string;
|
|
330
347
|
pageId: string;
|
|
348
|
+
plannedCount: number;
|
|
349
|
+
planned: {
|
|
350
|
+
pairedSessionIds: string[];
|
|
351
|
+
notes?: string | undefined;
|
|
352
|
+
slot?: string | undefined;
|
|
353
|
+
scheduleItemId: string;
|
|
354
|
+
noteId: string;
|
|
355
|
+
noteTitle: string;
|
|
356
|
+
status: _bitcobblers_wod_wiki_core.ScheduleStatus;
|
|
357
|
+
}[];
|
|
358
|
+
adhocSessionCount: number;
|
|
359
|
+
adhocSessions: {
|
|
360
|
+
noteSourceRevision?: number | undefined;
|
|
361
|
+
id: string;
|
|
362
|
+
noteId: string;
|
|
363
|
+
noteTitle: string;
|
|
364
|
+
status: "completed" | "in-progress" | undefined;
|
|
365
|
+
completed: boolean;
|
|
366
|
+
duration: number;
|
|
367
|
+
startTime: number;
|
|
368
|
+
}[];
|
|
331
369
|
noteCount: number;
|
|
332
370
|
notes: {
|
|
333
371
|
id: string;
|
|
@@ -340,6 +378,9 @@ declare const wodJournalDayTool: AgentToolSpec<z.ZodObject<{
|
|
|
340
378
|
}[];
|
|
341
379
|
sessionCount: number;
|
|
342
380
|
sessions: {
|
|
381
|
+
noteSourceRevision?: number | undefined;
|
|
382
|
+
sessionDate?: string | undefined;
|
|
383
|
+
scheduleItemId?: string | undefined;
|
|
343
384
|
id: string;
|
|
344
385
|
noteId: string;
|
|
345
386
|
blockId: string;
|
|
@@ -356,8 +397,6 @@ declare const wodJournalAddTool: AgentToolSpec<z.ZodObject<{
|
|
|
356
397
|
sport: z.ZodOptional<z.ZodString>;
|
|
357
398
|
notebookId: z.ZodOptional<z.ZodString>;
|
|
358
399
|
}, z.core.$strict>, {
|
|
359
|
-
date: string;
|
|
360
|
-
noteId: string;
|
|
361
400
|
journalUrl: string;
|
|
362
401
|
note: {
|
|
363
402
|
id: string;
|
|
@@ -367,6 +406,9 @@ declare const wodJournalAddTool: AgentToolSpec<z.ZodObject<{
|
|
|
367
406
|
effortSlugs: string[];
|
|
368
407
|
url: string;
|
|
369
408
|
};
|
|
409
|
+
scheduleItemId?: string | undefined;
|
|
410
|
+
date: string;
|
|
411
|
+
noteId: string;
|
|
370
412
|
}>;
|
|
371
413
|
|
|
372
414
|
declare const wodNotebookListTool: AgentToolSpec<z.ZodObject<{
|
|
@@ -456,17 +498,20 @@ declare const wodNotebookSaveTool: AgentToolSpec<z.ZodObject<{
|
|
|
456
498
|
declare const wodNotebookDeleteTool: AgentToolSpec<z.ZodObject<{
|
|
457
499
|
notebookId: z.ZodString;
|
|
458
500
|
confirmId: z.ZodOptional<z.ZodString>;
|
|
459
|
-
}, z.core.$strict>,
|
|
460
|
-
deleted: boolean;
|
|
461
|
-
notebookId: `notebook/${string}`;
|
|
462
|
-
slug: string;
|
|
463
|
-
}>;
|
|
501
|
+
}, z.core.$strict>, DeleteNotebookResult>;
|
|
464
502
|
|
|
465
503
|
declare const wodNoteListTool: AgentToolSpec<z.ZodObject<{
|
|
466
504
|
notebookId: z.ZodOptional<z.ZodString>;
|
|
467
505
|
search: z.ZodOptional<z.ZodString>;
|
|
468
506
|
tag: z.ZodOptional<z.ZodString>;
|
|
507
|
+
origin: z.ZodOptional<z.ZodEnum<{
|
|
508
|
+
feed: "feed";
|
|
509
|
+
user: "user";
|
|
510
|
+
seed: "seed";
|
|
511
|
+
all: "all";
|
|
512
|
+
}>>;
|
|
469
513
|
includeSeed: z.ZodOptional<z.ZodBoolean>;
|
|
514
|
+
orphanedOnly: z.ZodOptional<z.ZodBoolean>;
|
|
470
515
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
471
516
|
}, z.core.$strict>, {
|
|
472
517
|
totalCount: number;
|
|
@@ -502,6 +547,9 @@ declare const wodNoteGetTool: AgentToolSpec<z.ZodObject<{
|
|
|
502
547
|
id: `notebook/${string}`;
|
|
503
548
|
slug: string;
|
|
504
549
|
}[];
|
|
550
|
+
scheduleCount: number;
|
|
551
|
+
scheduleItems: never[] | _bitcobblers_wod_wiki_core.ScheduleItem[];
|
|
552
|
+
revisionCount: number;
|
|
505
553
|
blocks: {
|
|
506
554
|
content: string;
|
|
507
555
|
sport?: string | undefined;
|
|
@@ -570,6 +618,74 @@ declare const wodNoteDeleteTool: AgentToolSpec<z.ZodObject<{
|
|
|
570
618
|
reason?: undefined;
|
|
571
619
|
}>;
|
|
572
620
|
|
|
621
|
+
declare const wodScheduleListTool: AgentToolSpec<z.ZodObject<{
|
|
622
|
+
from: z.ZodOptional<z.ZodString>;
|
|
623
|
+
to: z.ZodOptional<z.ZodString>;
|
|
624
|
+
noteId: z.ZodOptional<z.ZodString>;
|
|
625
|
+
}, z.core.$strict>, {
|
|
626
|
+
totalCount: number;
|
|
627
|
+
items: {
|
|
628
|
+
noteTitle: string;
|
|
629
|
+
id: string;
|
|
630
|
+
date: string;
|
|
631
|
+
noteId: string;
|
|
632
|
+
pageId?: string;
|
|
633
|
+
sourceNotebookId?: string;
|
|
634
|
+
fallbackTitle?: string;
|
|
635
|
+
blockId?: string;
|
|
636
|
+
position: number;
|
|
637
|
+
slot?: string;
|
|
638
|
+
status: _bitcobblers_wod_wiki_core.ScheduleStatus;
|
|
639
|
+
notes?: string;
|
|
640
|
+
movedFromDate?: string;
|
|
641
|
+
createdAt: number;
|
|
642
|
+
updatedAt: number;
|
|
643
|
+
userId?: string;
|
|
644
|
+
}[];
|
|
645
|
+
}>;
|
|
646
|
+
declare const wodScheduleAddTool: AgentToolSpec<z.ZodObject<{
|
|
647
|
+
noteId: z.ZodString;
|
|
648
|
+
date: z.ZodOptional<z.ZodString>;
|
|
649
|
+
slot: z.ZodOptional<z.ZodString>;
|
|
650
|
+
position: z.ZodOptional<z.ZodNumber>;
|
|
651
|
+
notes: z.ZodOptional<z.ZodString>;
|
|
652
|
+
}, z.core.$strict>, {
|
|
653
|
+
item: ScheduleItem;
|
|
654
|
+
}>;
|
|
655
|
+
declare const wodScheduleBatchTool: AgentToolSpec<z.ZodObject<{
|
|
656
|
+
items: z.ZodArray<z.ZodObject<{
|
|
657
|
+
noteId: z.ZodString;
|
|
658
|
+
date: z.ZodString;
|
|
659
|
+
slot: z.ZodOptional<z.ZodString>;
|
|
660
|
+
position: z.ZodOptional<z.ZodNumber>;
|
|
661
|
+
notes: z.ZodOptional<z.ZodString>;
|
|
662
|
+
}, z.core.$strict>>;
|
|
663
|
+
}, z.core.$strict>, {
|
|
664
|
+
scheduledCount: number;
|
|
665
|
+
items: ScheduleItem[];
|
|
666
|
+
}>;
|
|
667
|
+
declare const wodScheduleUpdateTool: AgentToolSpec<z.ZodObject<{
|
|
668
|
+
scheduleItemId: z.ZodString;
|
|
669
|
+
date: z.ZodOptional<z.ZodString>;
|
|
670
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
671
|
+
completed: "completed";
|
|
672
|
+
planned: "planned";
|
|
673
|
+
skipped: "skipped";
|
|
674
|
+
moved: "moved";
|
|
675
|
+
}>>;
|
|
676
|
+
slot: z.ZodOptional<z.ZodString>;
|
|
677
|
+
position: z.ZodOptional<z.ZodNumber>;
|
|
678
|
+
notes: z.ZodOptional<z.ZodString>;
|
|
679
|
+
}, z.core.$strict>, {
|
|
680
|
+
item: ScheduleItem;
|
|
681
|
+
}>;
|
|
682
|
+
declare const wodScheduleRemoveTool: AgentToolSpec<z.ZodObject<{
|
|
683
|
+
scheduleItemId: z.ZodString;
|
|
684
|
+
}, z.core.$strict>, {
|
|
685
|
+
removed: boolean;
|
|
686
|
+
scheduleItemId: string;
|
|
687
|
+
}>;
|
|
688
|
+
|
|
573
689
|
declare const wodParseScriptTool: AgentToolSpec<z.ZodObject<{
|
|
574
690
|
source: z.ZodString;
|
|
575
691
|
sport: z.ZodOptional<z.ZodString>;
|
|
@@ -614,6 +730,7 @@ declare const wodSessionRunHeadlessTool: AgentToolSpec<z.ZodObject<{
|
|
|
614
730
|
title: z.ZodOptional<z.ZodString>;
|
|
615
731
|
sport: z.ZodOptional<z.ZodString>;
|
|
616
732
|
journalDate: z.ZodOptional<z.ZodString>;
|
|
733
|
+
scheduleItemId: z.ZodOptional<z.ZodString>;
|
|
617
734
|
collectibles: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
|
|
618
735
|
stepAdvanceMs: z.ZodOptional<z.ZodNumber>;
|
|
619
736
|
maxSteps: z.ZodOptional<z.ZodNumber>;
|
|
@@ -630,6 +747,7 @@ declare const wodSessionRunHeadlessTool: AgentToolSpec<z.ZodObject<{
|
|
|
630
747
|
blockId: string;
|
|
631
748
|
blockVersion: number;
|
|
632
749
|
clonedFromReadOnly: boolean;
|
|
750
|
+
pinnedExternalWorkout: boolean;
|
|
633
751
|
}>;
|
|
634
752
|
declare const wodSessionListTool: AgentToolSpec<z.ZodObject<{
|
|
635
753
|
noteId: z.ZodOptional<z.ZodString>;
|
|
@@ -673,6 +791,13 @@ declare const wodSessionDeleteTool: AgentToolSpec<z.ZodObject<{
|
|
|
673
791
|
sessionId: string;
|
|
674
792
|
reason?: undefined;
|
|
675
793
|
}>;
|
|
794
|
+
declare const wodSessionAttributeTool: AgentToolSpec<z.ZodObject<{
|
|
795
|
+
sessionId: z.ZodString;
|
|
796
|
+
sessionDate: z.ZodOptional<z.ZodString>;
|
|
797
|
+
scheduleItemId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
798
|
+
}, z.core.$strict>, {
|
|
799
|
+
session: Session;
|
|
800
|
+
}>;
|
|
676
801
|
|
|
677
802
|
declare const wodValidateWqlTool: AgentToolSpec<z.ZodObject<{
|
|
678
803
|
query: z.ZodString;
|
|
@@ -931,4 +1056,4 @@ declare function exportAgentCapabilitiesManifest(options?: {
|
|
|
931
1056
|
deploymentTarget?: 'static' | 'server';
|
|
932
1057
|
}): AgentCapabilitiesManifest;
|
|
933
1058
|
|
|
934
|
-
export { AGENT_PROMPTS, AGENT_RESOURCE_TEMPLATES, AGENT_STATIC_RESOURCES, type AgentCapabilitiesManifest, type AgentConfirmationRequest, AgentConfirmationRequiredError, type AgentDomainContext, type AgentDomainName, type AgentRiskTier, type AgentToolAnnotations, type AgentToolManifestEntry, type AgentToolSpec, type AgentUiToolManifestEntry, type AnyAgentToolSpec, DOMAIN_AGENT_TOOLS, DOMAIN_AGENT_TOOLS_BY_NAME, type UpsertNoteInStorageInput, type UpsertNoteInStorageResult, WHITEBOARD_SCRIPT_REFERENCE_MARKDOWN, buildWqlReferenceObject, civilDateKey, createQueryServiceForStorage, defineAgentTool, deleteNoteFromStorage, deleteSessionFromStorage, exportAgentCapabilitiesManifest, normalizeMarkdownOrBareScript, noteDeepLink, readAgentResource, renderAgentPrompt, requireDestructiveConfirmation, upsertNoteInStorage, wodCatalogLookupTool, wodCatalogUpsertTool, wodExportBundleTool, wodFeedManageTool, wodJournalAddTool, wodJournalDayTool, wodNoteCloneTool, wodNoteDeleteTool, wodNoteGetTool, wodNoteListTool, wodNoteUpsertTool, wodNotebookDeleteTool, wodNotebookListTool, wodNotebookSaveTool, wodParseScriptTool, wodQueryWqlTool, wodResetStorageTool, wodSessionDeleteTool, wodSessionGetTool, wodSessionListTool, wodSessionRunHeadlessTool, wodValidateWqlTool, zodSchemaToJsonSchema };
|
|
1059
|
+
export { AGENT_PROMPTS, AGENT_RESOURCE_TEMPLATES, AGENT_STATIC_RESOURCES, type AgentCapabilitiesManifest, type AgentConfirmationRequest, AgentConfirmationRequiredError, type AgentDomainContext, type AgentDomainName, type AgentRiskTier, type AgentToolAnnotations, type AgentToolManifestEntry, type AgentToolSpec, type AgentUiToolManifestEntry, type AnyAgentToolSpec, DOMAIN_AGENT_TOOLS, DOMAIN_AGENT_TOOLS_BY_NAME, type UpsertNoteInStorageInput, type UpsertNoteInStorageResult, WHITEBOARD_SCRIPT_REFERENCE_MARKDOWN, buildWqlReferenceObject, civilDateKey, createQueryServiceForStorage, defineAgentTool, deleteNoteFromStorage, deleteSessionFromStorage, exportAgentCapabilitiesManifest, normalizeMarkdownOrBareScript, noteDeepLink, readAgentResource, renderAgentPrompt, requireDestructiveConfirmation, upsertNoteInStorage, wodCatalogLookupTool, wodCatalogUpsertTool, wodExportBundleTool, wodFeedManageTool, wodJournalAddTool, wodJournalDayTool, wodNoteCloneTool, wodNoteDeleteTool, wodNoteGetTool, wodNoteListTool, wodNoteUpsertTool, wodNotebookDeleteTool, wodNotebookListTool, wodNotebookSaveTool, wodParseScriptTool, wodQueryWqlTool, wodResetStorageTool, wodScheduleAddTool, wodScheduleBatchTool, wodScheduleListTool, wodScheduleRemoveTool, wodScheduleUpdateTool, wodSessionAttributeTool, wodSessionDeleteTool, wodSessionGetTool, wodSessionListTool, wodSessionRunHeadlessTool, wodValidateWqlTool, zodSchemaToJsonSchema };
|