@qilin-agent/sidebar-opens 3.1.5 → 3.1.6

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.
@@ -1,38 +1,44 @@
1
1
  /* Generated by @qilin-agent/typert-generator from FaceModel — do not edit. */
2
2
  import { z } from 'zod'
3
3
 
4
+ import { createTypertRemoteInfo } from '@qilin-agent/typert-protocol/remote-info'
5
+
4
6
  let _qilin_agent_sidebar_opens_sidebarOpens_watch_parameter_0$schema$value
5
- const _qilin_agent_sidebar_opens_sidebarOpens_watch_parameter_0$schema = () => (_qilin_agent_sidebar_opens_sidebarOpens_watch_parameter_0$schema$value ??= z.intersection(z.string(), z.unknown()))
7
+ const _qilin_agent_sidebar_opens_sidebarOpens_watch_parameter_0$schema = () => (_qilin_agent_sidebar_opens_sidebarOpens_watch_parameter_0$schema$value ??= z.string())
6
8
  let _qilin_agent_sidebar_opens_sidebarOpens_watch_result$schema$value
7
9
  const _qilin_agent_sidebar_opens_sidebarOpens_watch_result$schema = () => (_qilin_agent_sidebar_opens_sidebarOpens_watch_result$schema$value ??= z.object({
8
- 'id': z.string().readonly(),
9
- 'kind': z.union([z.literal("file"), z.literal("url")]).readonly(),
10
- 'target': z.string().readonly(),
11
- 'title': z.string().readonly(),
10
+ 'id': z.string().readonly().describe('Host-minted identity, so a client can dedupe a replay it already applied.'),
11
+ 'kind': z.union([z.literal("file"), z.literal("url")]).readonly().describe('What the target is.'),
12
+ 'target': z.string().readonly().describe('The absolute Host path of the file, or the normalized http(s) URL of the page. A file path is verified to be a regular file before the request is made; a URL is verified to be http(s).'),
13
+ 'title': z.string().readonly().describe('The tab title to use: the file\'s basename, or the page\'s host.'),
12
14
  }))
15
+ let _qilin_agent_sidebar_opens_sidebarOpens_watch_parameter_0_strict$schema$value
16
+ const _qilin_agent_sidebar_opens_sidebarOpens_watch_parameter_0_strict$schema = () => (_qilin_agent_sidebar_opens_sidebarOpens_watch_parameter_0_strict$schema$value ??= z.string())
13
17
 
14
- export const TYPERT = {
18
+ const $remote = createTypertRemoteInfo({
15
19
  package: '@qilin-agent/sidebar-opens',
16
- face: 'host',
17
- schemas: [
18
- ],
19
- invocations: [
20
- {
21
- id: '@qilin-agent/sidebar-opens#sidebarOpens/watch',
20
+ methods: {
21
+ 'sidebarOpens/watch': {
22
22
  service: 'sidebarOpens',
23
- namespace: 'sidebarOpens',
24
- method: 'watch',
23
+ description: 'Watch one Session\'s opens: what queued while nothing was attached, then every request as it arrives.',
25
24
  mode: 'stream',
26
25
  invocation: { kind: 'direct' },
27
26
  parameters: [
28
27
  {
29
28
  name: 'sessionId',
30
- wire: 'sessionId',
29
+ description: 'the Session whose Sidebar is watching.',
31
30
  source: 'json',
32
31
  codec: {
33
32
  mode: 'strict',
34
33
  typeSymbol: '@qilin-agent/session/types#SessionId',
35
34
  create: _qilin_agent_sidebar_opens_sidebarOpens_watch_parameter_0$schema,
35
+ jsonSchema: {"type":"string"},
36
+ },
37
+ strictCodec: {
38
+ mode: 'strict',
39
+ typeSymbol: '@qilin-agent/session/types#SessionId',
40
+ create: _qilin_agent_sidebar_opens_sidebarOpens_watch_parameter_0_strict$schema,
41
+ jsonSchema: {"type":"string"},
36
42
  },
37
43
  },
38
44
  ],
@@ -41,10 +47,20 @@ export const TYPERT = {
41
47
  mode: 'strict',
42
48
  typeSymbol: '@qilin-agent/sidebar-opens/types#SidebarOpenRequest',
43
49
  create: _qilin_agent_sidebar_opens_sidebarOpens_watch_result$schema,
50
+ description: 'the queued requests followed by the live ones.',
51
+ jsonSchema: {"type":"object","properties":{"id":{"type":"string","description":"Host-minted identity, so a client can dedupe a replay it already applied."},"kind":{"type":"string","enum":["file","url"],"description":"What the target is."},"target":{"type":"string","description":"The absolute Host path of the file, or the normalized http(s) URL of the page. A file path is verified to be a regular file before the request is made; a URL is verified to be http(s)."},"title":{"type":"string","description":"The tab title to use: the file's basename, or the page's host."}},"required":["id","kind","target","title"],"additionalProperties":true},
44
52
  },
45
53
  sourceLocation: {"file":"packages/host/sidebar-opens/src/index.ts","line":143,"column":10},
46
54
  },
55
+ },
56
+ }, z)
57
+
58
+ export const TYPERT = {
59
+ package: '@qilin-agent/sidebar-opens',
60
+ face: 'host',
61
+ schemas: [
47
62
  ],
63
+ get invocations() { return $remote.descriptors },
48
64
  model: {
49
65
  "services": [
50
66
  {
@@ -2,7 +2,8 @@
2
2
  import type {
3
3
  RemoteResult,
4
4
  RemoteStreamHandle,
5
- TypertRemoteContribution,
5
+ TypertRemoteInfo,
6
+ TypertRemoteMethod,
6
7
  } from '@qilin-agent/typert-protocol'
7
8
  import type { SessionId } from '@qilin-agent/session/types'
8
9
  import type { SidebarOpenRequest } from '@qilin-agent/sidebar-opens/types'
@@ -19,6 +20,8 @@ declare module '@qilin-agent/typert-protocol' {
19
20
  }
20
21
  }
21
22
 
22
- export declare const TYPERT_REMOTE: TypertRemoteContribution
23
+ export declare const TYPERT_REMOTE: TypertRemoteInfo<{
24
+ readonly 'sidebarOpens/watch': TypertRemoteMethod<{ readonly 'sessionId': SessionId }, SidebarOpenRequest, 'stream'>
25
+ }>
23
26
  export default TYPERT_REMOTE
24
27
  //# sourceMappingURL=typert.remote-client.d.ts.map
@@ -1,35 +1,44 @@
1
1
  /* Generated by @qilin-agent/typert-generator from the Host FaceModel — do not edit. */
2
2
  import { z } from 'zod'
3
3
 
4
+ import { createTypertRemoteInfo } from '@qilin-agent/typert-protocol/remote-info'
5
+
4
6
  let _qilin_agent_sidebar_opens_sidebarOpens_watch_parameter_0$schema$value
5
- const _qilin_agent_sidebar_opens_sidebarOpens_watch_parameter_0$schema = () => (_qilin_agent_sidebar_opens_sidebarOpens_watch_parameter_0$schema$value ??= z.intersection(z.string(), z.unknown()))
7
+ const _qilin_agent_sidebar_opens_sidebarOpens_watch_parameter_0$schema = () => (_qilin_agent_sidebar_opens_sidebarOpens_watch_parameter_0$schema$value ??= z.string())
6
8
  let _qilin_agent_sidebar_opens_sidebarOpens_watch_result$schema$value
7
9
  const _qilin_agent_sidebar_opens_sidebarOpens_watch_result$schema = () => (_qilin_agent_sidebar_opens_sidebarOpens_watch_result$schema$value ??= z.object({
8
- 'id': z.string().readonly(),
9
- 'kind': z.union([z.literal("file"), z.literal("url")]).readonly(),
10
- 'target': z.string().readonly(),
11
- 'title': z.string().readonly(),
10
+ 'id': z.string().readonly().describe('Host-minted identity, so a client can dedupe a replay it already applied.'),
11
+ 'kind': z.union([z.literal("file"), z.literal("url")]).readonly().describe('What the target is.'),
12
+ 'target': z.string().readonly().describe('The absolute Host path of the file, or the normalized http(s) URL of the page. A file path is verified to be a regular file before the request is made; a URL is verified to be http(s).'),
13
+ 'title': z.string().readonly().describe('The tab title to use: the file\'s basename, or the page\'s host.'),
12
14
  }))
15
+ let _qilin_agent_sidebar_opens_sidebarOpens_watch_parameter_0_strict$schema$value
16
+ const _qilin_agent_sidebar_opens_sidebarOpens_watch_parameter_0_strict$schema = () => (_qilin_agent_sidebar_opens_sidebarOpens_watch_parameter_0_strict$schema$value ??= z.string())
13
17
 
14
- export const TYPERT_REMOTE = {
18
+ export const TYPERT_REMOTE = createTypertRemoteInfo({
15
19
  package: '@qilin-agent/sidebar-opens',
16
- descriptors: [
17
- {
18
- id: '@qilin-agent/sidebar-opens#sidebarOpens/watch',
20
+ methods: {
21
+ 'sidebarOpens/watch': {
19
22
  service: 'sidebarOpens',
20
- namespace: 'sidebarOpens',
21
- method: 'watch',
23
+ description: 'Watch one Session\'s opens: what queued while nothing was attached, then every request as it arrives.',
22
24
  mode: 'stream',
23
25
  invocation: { kind: 'direct' },
24
26
  parameters: [
25
27
  {
26
28
  name: 'sessionId',
27
- wire: 'sessionId',
29
+ description: 'the Session whose Sidebar is watching.',
28
30
  source: 'json',
29
31
  codec: {
30
32
  mode: 'strict',
31
33
  typeSymbol: '@qilin-agent/session/types#SessionId',
32
34
  create: _qilin_agent_sidebar_opens_sidebarOpens_watch_parameter_0$schema,
35
+ jsonSchema: {"type":"string"},
36
+ },
37
+ strictCodec: {
38
+ mode: 'strict',
39
+ typeSymbol: '@qilin-agent/session/types#SessionId',
40
+ create: _qilin_agent_sidebar_opens_sidebarOpens_watch_parameter_0_strict$schema,
41
+ jsonSchema: {"type":"string"},
33
42
  },
34
43
  },
35
44
  ],
@@ -38,10 +47,12 @@ export const TYPERT_REMOTE = {
38
47
  mode: 'strict',
39
48
  typeSymbol: '@qilin-agent/sidebar-opens/types#SidebarOpenRequest',
40
49
  create: _qilin_agent_sidebar_opens_sidebarOpens_watch_result$schema,
50
+ description: 'the queued requests followed by the live ones.',
51
+ jsonSchema: {"type":"object","properties":{"id":{"type":"string","description":"Host-minted identity, so a client can dedupe a replay it already applied."},"kind":{"type":"string","enum":["file","url"],"description":"What the target is."},"target":{"type":"string","description":"The absolute Host path of the file, or the normalized http(s) URL of the page. A file path is verified to be a regular file before the request is made; a URL is verified to be http(s)."},"title":{"type":"string","description":"The tab title to use: the file's basename, or the page's host."}},"required":["id","kind","target","title"],"additionalProperties":true},
41
52
  },
42
53
  sourceLocation: {"file":"packages/host/sidebar-opens/src/index.ts","line":143,"column":10},
43
54
  },
44
- ],
45
- }
55
+ },
56
+ }, z)
46
57
 
47
58
  export default TYPERT_REMOTE
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@qilin-agent/sidebar-opens",
3
3
  "description": "Model-facing requests to open a file or an http(s) page in the Session's Sidebar",
4
- "version": "3.1.5",
4
+ "version": "3.1.6",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -48,27 +48,27 @@
48
48
  ],
49
49
  "dependencies": {
50
50
  "zod": "^4.4.3",
51
- "@qilin-agent/schemastery": "~3.18.3"
51
+ "@qilin-agent/schemastery": "~3.18.5"
52
52
  },
53
53
  "peerDependencies": {
54
- "@qilin-agent/agent": "3.1.5",
55
- "@qilin-agent/kylin": "~4.0.3",
56
- "@qilin-agent/session": "3.1.5",
57
- "@qilin-agent/fs": "3.1.5",
58
- "@qilin-agent/tools": "3.1.5",
59
- "@qilin-agent/typert-protocol": "3.1.5"
54
+ "@qilin-agent/kylin": "~4.0.5",
55
+ "@qilin-agent/agent": "3.1.6",
56
+ "@qilin-agent/session": "3.1.6",
57
+ "@qilin-agent/tools": "3.1.6",
58
+ "@qilin-agent/fs": "3.1.6",
59
+ "@qilin-agent/typert-protocol": "3.1.6"
60
60
  },
61
61
  "devDependencies": {
62
- "@qilin-agent/kylin": "~4.0.3",
63
- "@qilin-agent/agent": "3.1.5",
64
- "@qilin-agent/agent-loop-testkit": "3.1.5",
65
- "@qilin-agent/fs": "3.1.5",
66
- "@qilin-agent/fs-local": "3.1.5",
67
- "@qilin-agent/llm": "3.1.5",
68
- "@qilin-agent/scope": "3.1.5",
69
- "@qilin-agent/system-prompt": "3.1.5",
70
- "@qilin-agent/session": "3.1.5",
71
- "@qilin-agent/tools": "3.1.5",
72
- "@qilin-agent/typert-protocol": "3.1.5"
62
+ "@qilin-agent/agent": "3.1.6",
63
+ "@qilin-agent/agent-loop-testkit": "3.1.6",
64
+ "@qilin-agent/fs-local": "3.1.6",
65
+ "@qilin-agent/kylin": "~4.0.5",
66
+ "@qilin-agent/fs": "3.1.6",
67
+ "@qilin-agent/llm": "3.1.6",
68
+ "@qilin-agent/scope": "3.1.6",
69
+ "@qilin-agent/system-prompt": "3.1.6",
70
+ "@qilin-agent/tools": "3.1.6",
71
+ "@qilin-agent/session": "3.1.6",
72
+ "@qilin-agent/typert-protocol": "3.1.6"
73
73
  }
74
74
  }