@polka-codes/core 0.9.49 → 0.9.51

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.
@@ -7,7 +7,6 @@ import type { LanguageModelV2ToolResultOutput } from '@ai-sdk/provider';
7
7
  import type { LanguageModelV2Usage } from '@ai-sdk/provider';
8
8
  import type { TextPart } from 'ai';
9
9
  import { z } from 'zod';
10
- import { ZodArray } from 'zod';
11
10
  import { ZodEnum } from 'zod';
12
11
  import { ZodNullable } from 'zod';
13
12
  import { ZodObject } from 'zod';
@@ -249,7 +248,6 @@ declare const _default_16: {
249
248
  parentId: ZodOptional<ZodNullable<ZodString>>;
250
249
  title: ZodOptional<ZodNullable<ZodString>>;
251
250
  description: ZodOptional<ZodNullable<ZodString>>;
252
- relevantFileList: ZodOptional<ZodNullable<ZodArray<ZodString>>>;
253
251
  status: ZodOptional<ZodNullable<ZodEnum< {
254
252
  open: "open";
255
253
  completed: "completed";
@@ -268,7 +266,6 @@ declare const _default_16: {
268
266
  parentId: ZodOptional<ZodNullable<ZodString>>;
269
267
  title: ZodOptional<ZodNullable<ZodString>>;
270
268
  description: ZodOptional<ZodNullable<ZodString>>;
271
- relevantFileList: ZodOptional<ZodNullable<ZodArray<ZodString>>>;
272
269
  status: ZodOptional<ZodNullable<ZodEnum< {
273
270
  open: "open";
274
271
  completed: "completed";
@@ -564,7 +561,6 @@ declare class MockProvider implements ToolProvider {
564
561
  title: string;
565
562
  status: "open";
566
563
  description: string;
567
- relevantFileList: never[];
568
564
  }[]>;
569
565
  getTodoItem(id: string): Promise<GetTodoItemOutput | undefined>;
570
566
  updateTodoItem(input: UpdateTodoItemInput): Promise<{
@@ -650,7 +646,6 @@ declare const TodoItemSchema: z.ZodObject<{
650
646
  id: z.ZodString;
651
647
  title: z.ZodString;
652
648
  description: z.ZodString;
653
- relevantFileList: z.ZodArray<z.ZodString>;
654
649
  status: z.ZodEnum<{
655
650
  open: "open";
656
651
  completed: "completed";
@@ -773,7 +768,6 @@ export declare const toolInfo_alias_15: {
773
768
  parentId: ZodOptional<ZodNullable<ZodString>>;
774
769
  title: ZodOptional<ZodNullable<ZodString>>;
775
770
  description: ZodOptional<ZodNullable<ZodString>>;
776
- relevantFileList: ZodOptional<ZodNullable<ZodArray<ZodString>>>;
777
771
  status: ZodOptional<ZodNullable<ZodEnum< {
778
772
  open: "open";
779
773
  completed: "completed";
@@ -971,7 +965,6 @@ declare const UpdateTodoItemInputSchema: z.ZodObject<{
971
965
  parentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
972
966
  title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
973
967
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
974
- relevantFileList: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
975
968
  status: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
976
969
  open: "open";
977
970
  completed: "completed";
package/dist/index.js CHANGED
@@ -590,7 +590,6 @@ var TodoItemSchema = z8.object({
590
590
  id: z8.string(),
591
591
  title: z8.string(),
592
592
  description: z8.string(),
593
- relevantFileList: z8.array(z8.string()),
594
593
  status: TodoStatus
595
594
  });
596
595
  var UpdateTodoItemInputSchema = z8.object({
@@ -599,7 +598,6 @@ var UpdateTodoItemInputSchema = z8.object({
599
598
  parentId: z8.string().nullish(),
600
599
  title: z8.string().nullish(),
601
600
  description: z8.string().nullish(),
602
- relevantFileList: z8.array(z8.string()).nullish(),
603
601
  status: TodoStatus.nullish()
604
602
  }).superRefine((data, ctx) => {
605
603
  if (data.operation === "add") {
@@ -662,16 +660,15 @@ var listTodoItems_default = {
662
660
  var MockProvider = class {
663
661
  async listTodoItems(id, _status) {
664
662
  if (id) {
665
- return [{ id: `${id}-1`, title: "mock sub item", status: "open", description: "", relevantFileList: [] }];
663
+ return [{ id: `${id}-1`, title: "mock sub item", status: "open", description: "" }];
666
664
  }
667
- return [{ id: "1", title: "mock item", status: "open", description: "", relevantFileList: [] }];
665
+ return [{ id: "1", title: "mock item", status: "open", description: "" }];
668
666
  }
669
667
  async getTodoItem(id) {
670
668
  return {
671
669
  id,
672
670
  title: "mock item",
673
671
  description: "mock desc",
674
- relevantFileList: [],
675
672
  status: "open",
676
673
  subItems: []
677
674
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@polka-codes/core",
3
- "version": "0.9.49",
3
+ "version": "0.9.51",
4
4
  "license": "AGPL-3.0",
5
5
  "author": "github@polka.codes",
6
6
  "type": "module",