@nyte-ai/schema 0.0.19 → 0.0.21

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.
@@ -42,8 +42,9 @@ import {
42
42
  ToolProgressType2
43
43
  } from "./browser-h86zs54a.js";
44
44
  import {
45
- PlacementType2
46
- } from "./browser-j150etqf.js";
45
+ PlacementType2,
46
+ ToolChangesType2
47
+ } from "./browser-t5xqtqzh.js";
47
48
  import {
48
49
  ActivationType2
49
50
  } from "./browser-bg1esaw0.js";
@@ -54,7 +55,7 @@ import {
54
55
 
55
56
  // src/events.ts
56
57
  import { Type } from "typebox";
57
- var CHANGES = nullable2(Type.Object({ added: Type.Number(), removed: Type.Number(), paths: Type.Array(Type.String()) }));
58
+ var CHANGES = nullable2(ToolChangesType2);
58
59
  var REPLACED = nullable2(Type.Object({ previous: idSchema2(), stopped: nullable2(idSchema2()) }));
59
60
  var CommitBodyType2 = Type.Union([
60
61
  Type.Object({
@@ -36,7 +36,7 @@ import {
36
36
  import {
37
37
  PlacementType2,
38
38
  actOutcomeSchema2
39
- } from "./browser-j150etqf.js";
39
+ } from "./browser-t5xqtqzh.js";
40
40
  import {
41
41
  SessionInfoSchema2,
42
42
  CommandOutcomeSchema2,
@@ -50,7 +50,7 @@ import {
50
50
  HistoryPageType2,
51
51
  SessionViewSchema2,
52
52
  ViewFrameSchema2
53
- } from "./browser-hp9ze9ga.js";
53
+ } from "./browser-rhgxg3wm.js";
54
54
  import {
55
55
  wireSchema2,
56
56
  wireObject2,
@@ -36,7 +36,7 @@ import {
36
36
  import {
37
37
  PartStatusType2,
38
38
  PartViewType2
39
- } from "./browser-j150etqf.js";
39
+ } from "./browser-t5xqtqzh.js";
40
40
  import {
41
41
  ActivationType2
42
42
  } from "./browser-bg1esaw0.js";
@@ -59,6 +59,12 @@ var PartViewType2 = Type.Object({
59
59
  status: PartStatusType2,
60
60
  owner: nullable2(Type.String())
61
61
  });
62
+ var ToolChangesType2 = Type.Object({
63
+ added: Type.Number(),
64
+ removed: Type.Number(),
65
+ paths: Type.Array(Type.String()),
66
+ unattributed: Type.Optional(Type.Literal(true))
67
+ });
62
68
  var TOOL_CALL = {
63
69
  call: idSchema2(),
64
70
  name: Type.String(),
@@ -76,11 +82,7 @@ var ToolPartStateType2 = Type.Union([
76
82
  ...TOOL_CALL,
77
83
  phase: Type.Literal("settled"),
78
84
  outcome: ToolOutcomeType2,
79
- changes: nullable2(Type.Object({
80
- added: Type.Number(),
81
- removed: Type.Number(),
82
- paths: Type.Array(Type.String())
83
- }))
85
+ changes: nullable2(ToolChangesType2)
84
86
  })
85
87
  ]);
86
88
  function actOutcomeSchema2(output) {
@@ -98,4 +100,4 @@ var PartStatusSchema2 = standard2(withJson2(PartStatusType2));
98
100
  var PartViewSchema2 = standard2(withJson2(PartViewType2));
99
101
  var ToolPartStateSchema2 = standard2(withJson2(ToolPartStateType2));
100
102
 
101
- export { SignatureType2, PlacementType2, PartStatusType2, PartViewType2, ToolPartStateType2, actOutcomeSchema2, PlacementSchema2, PartStatusSchema2, PartViewSchema2, ToolPartStateSchema2 };
103
+ export { SignatureType2, PlacementType2, PartStatusType2, PartViewType2, ToolChangesType2, ToolPartStateType2, actOutcomeSchema2, PlacementSchema2, PartStatusSchema2, PartViewSchema2, ToolPartStateSchema2 };
@@ -13,7 +13,7 @@ import {
13
13
  } from "./browser-4et7qtz3.js";
14
14
  import {
15
15
  DurableEventType2
16
- } from "./browser-1nqahr9q.js";
16
+ } from "./browser-ay8k1s1m.js";
17
17
 
18
18
  // src/store.ts
19
19
  import { Type } from "typebox";
@@ -16,7 +16,7 @@ import {
16
16
  } from "./browser-sgst60b0.js";
17
17
  import {
18
18
  SESSION_OPERATIONS2
19
- } from "./browser-jgxe05s4.js";
19
+ } from "./browser-g19fcj47.js";
20
20
  import {
21
21
  WORKSPACE_OPERATIONS2
22
22
  } from "./browser-h5k4hqfq.js";
@@ -521,6 +521,7 @@ export declare const DurableEventType: Type.TUnion<[Type.TObject<{
521
521
  added: Type.TNumber;
522
522
  removed: Type.TNumber;
523
523
  paths: Type.TArray<Type.TString>;
524
+ unattributed: Type.TOptional<Type.TLiteral<true>>;
524
525
  }>, Type.TNull]>;
525
526
  kind: Type.TLiteral<"call">;
526
527
  call: Type.TUnsafe<import("./ids.ts").Id<"call">>;
@@ -1368,6 +1369,7 @@ export declare const SessionEventType: Type.TUnion<[Type.TObject<{
1368
1369
  added: Type.TNumber;
1369
1370
  removed: Type.TNumber;
1370
1371
  paths: Type.TArray<Type.TString>;
1372
+ unattributed: Type.TOptional<Type.TLiteral<true>>;
1371
1373
  }>, Type.TNull]>;
1372
1374
  kind: Type.TLiteral<"call">;
1373
1375
  call: Type.TUnsafe<import("./ids.ts").Id<"call">>;
@@ -7,8 +7,8 @@ import {
7
7
  DurableEventSchema2,
8
8
  SessionEventSchema2,
9
9
  PatchEventSchema2
10
- } from "../chunks/browser-1nqahr9q.js";
11
- import"../chunks/browser-j150etqf.js";
10
+ } from "../chunks/browser-ay8k1s1m.js";
11
+ import"../chunks/browser-t5xqtqzh.js";
12
12
  import"../chunks/browser-h86zs54a.js";
13
13
  import"../chunks/browser-xensz05x.js";
14
14
  import"../chunks/browser-bg1esaw0.js";
package/dist/src/index.js CHANGED
@@ -279,13 +279,14 @@ import {
279
279
  PlacementType2,
280
280
  PartStatusType2,
281
281
  PartViewType2,
282
+ ToolChangesType2,
282
283
  ToolPartStateType2,
283
284
  actOutcomeSchema2,
284
285
  PlacementSchema2,
285
286
  PartStatusSchema2,
286
287
  PartViewSchema2,
287
288
  ToolPartStateSchema2
288
- } from "../chunks/browser-j150etqf.js";
289
+ } from "../chunks/browser-t5xqtqzh.js";
289
290
  import {
290
291
  CommitBodyType2,
291
292
  DurableEventType2,
@@ -295,7 +296,7 @@ import {
295
296
  DurableEventSchema2,
296
297
  SessionEventSchema2,
297
298
  PatchEventSchema2
298
- } from "../chunks/browser-1nqahr9q.js";
299
+ } from "../chunks/browser-ay8k1s1m.js";
299
300
  import {
300
301
  GitStatusType2,
301
302
  GitCommitViewType2,
@@ -394,7 +395,7 @@ import {
394
395
  RefSchema2,
395
396
  RefUpdateSchema2,
396
397
  SetOutcomeSchema2
397
- } from "../chunks/browser-3exd93gm.js";
398
+ } from "../chunks/browser-xk4psyrx.js";
398
399
  import {
399
400
  ViewOptionsType2,
400
401
  UserStatusType2,
@@ -411,18 +412,18 @@ import {
411
412
  SessionViewSchema2,
412
413
  HistoryPageSchema2,
413
414
  ViewFrameSchema2
414
- } from "../chunks/browser-hp9ze9ga.js";
415
+ } from "../chunks/browser-rhgxg3wm.js";
415
416
  import"../chunks/browser-r87w64mz.js";
416
417
  import"../chunks/browser-fd3accdr.js";
417
418
  import"../chunks/browser-pdv675va.js";
418
419
  import"../chunks/browser-0xr6c36r.js";
419
420
  import"../chunks/browser-0g0z3617.js";
420
421
  import"../chunks/browser-sgst60b0.js";
421
- import"../chunks/browser-jgxe05s4.js";
422
+ import"../chunks/browser-g19fcj47.js";
422
423
  import"../chunks/browser-h5k4hqfq.js";
423
424
  import {
424
425
  OPERATIONS2
425
- } from "../chunks/browser-pvfshqyk.js";
426
+ } from "../chunks/browser-y97347bz.js";
426
427
  export {
427
428
  ActivationSchema2 as ActivationSchema,
428
429
  ActivationType2 as ActivationType,
@@ -714,6 +715,7 @@ export {
714
715
  ThinkingType2 as ThinkingType,
715
716
  ToolCallSchema2 as ToolCallSchema,
716
717
  ToolCallType2 as ToolCallType,
718
+ ToolChangesType2 as ToolChangesType,
717
719
  ToolClassSchema2 as ToolClassSchema,
718
720
  ToolClassType2 as ToolClassType,
719
721
  ToolContentSchema2 as ToolContentSchema,
@@ -112,6 +112,12 @@ export declare const PartViewType: Type.TObject<{
112
112
  owner: Type.TUnion<[Type.TString, Type.TNull]>;
113
113
  }>;
114
114
  export type PartView = Decoded<typeof PartViewType>;
115
+ export declare const ToolChangesType: Type.TObject<{
116
+ added: Type.TNumber;
117
+ removed: Type.TNumber;
118
+ paths: Type.TArray<Type.TString>;
119
+ unattributed: Type.TOptional<Type.TLiteral<true>>;
120
+ }>;
115
121
  export declare const ToolPartStateType: Type.TUnion<[Type.TObject<{
116
122
  phase: Type.TLiteral<"calling">;
117
123
  call: Type.TUnsafe<import("./ids.ts").Id<"call">>;
@@ -201,6 +207,7 @@ export declare const ToolPartStateType: Type.TUnion<[Type.TObject<{
201
207
  added: Type.TNumber;
202
208
  removed: Type.TNumber;
203
209
  paths: Type.TArray<Type.TString>;
210
+ unattributed: Type.TOptional<Type.TLiteral<true>>;
204
211
  }>, Type.TNull]>;
205
212
  call: Type.TUnsafe<import("./ids.ts").Id<"call">>;
206
213
  name: Type.TString;
package/dist/src/parts.js CHANGED
@@ -3,13 +3,14 @@ import {
3
3
  PlacementType2,
4
4
  PartStatusType2,
5
5
  PartViewType2,
6
+ ToolChangesType2,
6
7
  ToolPartStateType2,
7
8
  actOutcomeSchema2,
8
9
  PlacementSchema2,
9
10
  PartStatusSchema2,
10
11
  PartViewSchema2,
11
12
  ToolPartStateSchema2
12
- } from "../chunks/browser-j150etqf.js";
13
+ } from "../chunks/browser-t5xqtqzh.js";
13
14
  import"../chunks/browser-h86zs54a.js";
14
15
  import"../chunks/browser-8ancsy4m.js";
15
16
  import"../chunks/browser-40enyw9r.js";
@@ -29,6 +30,7 @@ export {
29
30
  PlacementSchema2 as PlacementSchema,
30
31
  PlacementType2 as PlacementType,
31
32
  SignatureType2 as SignatureType,
33
+ ToolChangesType2 as ToolChangesType,
32
34
  ToolPartStateSchema2 as ToolPartStateSchema,
33
35
  ToolPartStateType2 as ToolPartStateType,
34
36
  actOutcomeSchema2 as actOutcomeSchema
@@ -463,6 +463,7 @@ export declare const RefUpdateType: Type.TObject<{
463
463
  added: Type.TNumber;
464
464
  removed: Type.TNumber;
465
465
  paths: Type.TArray<Type.TString>;
466
+ unattributed: Type.TOptional<Type.TLiteral<true>>;
466
467
  }>, Type.TNull]>;
467
468
  kind: Type.TLiteral<"call">;
468
469
  call: Type.TUnsafe<import("./ids.ts").Id<"call">>;
package/dist/src/store.js CHANGED
@@ -5,9 +5,9 @@ import {
5
5
  RefSchema2,
6
6
  RefUpdateSchema2,
7
7
  SetOutcomeSchema2
8
- } from "../chunks/browser-3exd93gm.js";
9
- import"../chunks/browser-1nqahr9q.js";
10
- import"../chunks/browser-j150etqf.js";
8
+ } from "../chunks/browser-xk4psyrx.js";
9
+ import"../chunks/browser-ay8k1s1m.js";
10
+ import"../chunks/browser-t5xqtqzh.js";
11
11
  import"../chunks/browser-h86zs54a.js";
12
12
  import"../chunks/browser-xensz05x.js";
13
13
  import"../chunks/browser-bg1esaw0.js";
package/dist/src/views.js CHANGED
@@ -14,8 +14,8 @@ import {
14
14
  SessionViewSchema2,
15
15
  HistoryPageSchema2,
16
16
  ViewFrameSchema2
17
- } from "../chunks/browser-hp9ze9ga.js";
18
- import"../chunks/browser-j150etqf.js";
17
+ } from "../chunks/browser-rhgxg3wm.js";
18
+ import"../chunks/browser-t5xqtqzh.js";
19
19
  import"../chunks/browser-h86zs54a.js";
20
20
  import"../chunks/browser-xensz05x.js";
21
21
  import"../chunks/browser-bg1esaw0.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  OPERATIONS2
3
- } from "../../../chunks/browser-pvfshqyk.js";
4
- import"../../../chunks/browser-jgxe05s4.js";
3
+ } from "../../../chunks/browser-y97347bz.js";
4
+ import"../../../chunks/browser-g19fcj47.js";
5
5
  import"../../../chunks/browser-h5k4hqfq.js";
6
6
  import"../../../chunks/browser-fd3accdr.js";
7
7
  import"../../../chunks/browser-pdv675va.js";
@@ -9,7 +9,7 @@ import"../../../chunks/browser-0xr6c36r.js";
9
9
  import"../../../chunks/browser-0g0z3617.js";
10
10
  import"../../../chunks/browser-sgst60b0.js";
11
11
  import"../../../chunks/browser-r87w64mz.js";
12
- import"../../../chunks/browser-hp9ze9ga.js";
12
+ import"../../../chunks/browser-rhgxg3wm.js";
13
13
  import"../../../chunks/browser-b519jtez.js";
14
14
  import"../../../chunks/browser-j629a6wa.js";
15
15
  import"../../../chunks/browser-0byq2fja.js";
@@ -18,7 +18,7 @@ import"../../../chunks/browser-mzfc0v5j.js";
18
18
  import"../../../chunks/browser-s2xe7c21.js";
19
19
  import"../../../chunks/browser-0chm3654.js";
20
20
  import"../../../chunks/browser-6e1madxa.js";
21
- import"../../../chunks/browser-j150etqf.js";
21
+ import"../../../chunks/browser-t5xqtqzh.js";
22
22
  import"../../../chunks/browser-h86zs54a.js";
23
23
  import"../../../chunks/browser-xensz05x.js";
24
24
  import"../../../chunks/browser-bg1esaw0.js";
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  SESSION_OPERATIONS2
3
- } from "../../../chunks/browser-jgxe05s4.js";
3
+ } from "../../../chunks/browser-g19fcj47.js";
4
4
  import"../../../chunks/browser-r87w64mz.js";
5
- import"../../../chunks/browser-hp9ze9ga.js";
5
+ import"../../../chunks/browser-rhgxg3wm.js";
6
6
  import"../../../chunks/browser-0chm3654.js";
7
- import"../../../chunks/browser-j150etqf.js";
7
+ import"../../../chunks/browser-t5xqtqzh.js";
8
8
  import"../../../chunks/browser-h86zs54a.js";
9
9
  import"../../../chunks/browser-xensz05x.js";
10
10
  import"../../../chunks/browser-bg1esaw0.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nyte-ai/schema",
3
- "version": "0.0.19",
3
+ "version": "0.0.21",
4
4
  "private": false,
5
5
  "license": "MIT",
6
6
  "repository": {