@parall/sdk 1.30.0 → 1.32.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.
@@ -1,5 +1,6 @@
1
1
  export declare const API_BASE = "/api/v1";
2
2
  export declare const WIKI_BASE = "/wiki/v1";
3
+ export declare const CLIP_BASE = "/clip/v1";
3
4
  export declare const PLATFORM_MODELS: readonly [{
4
5
  readonly id: "anthropic/claude-opus-4.7";
5
6
  readonly name: "Claude Opus 4.7";
@@ -289,6 +290,7 @@ export declare const ENDPOINTS: {
289
290
  readonly ORG_MEMBER: (orgId: string, userId: string) => string;
290
291
  readonly ORG_MEMBER_CHATS: (orgId: string, memberId: string) => string;
291
292
  readonly ORG_MEMBER_TASKS: (orgId: string, memberId: string) => string;
293
+ readonly REF_SEARCH: (orgId: string) => string;
292
294
  readonly DM: (orgId: string) => string;
293
295
  readonly SEED_ONBOARDING_DM: (orgId: string) => string;
294
296
  readonly DISMISS_ONBOARDING: (orgId: string) => string;
@@ -359,10 +361,13 @@ export declare const ENDPOINTS: {
359
361
  readonly MACHINE_KEY: (orgId: string, machineId: string, keyId: string) => string;
360
362
  readonly MACHINE_RUNTIME_AUTH_SESSIONS: (orgId: string, machineId: string) => string;
361
363
  readonly MACHINE_RUNTIME_AUTH_SESSION_COMPLETE: (orgId: string, machineId: string, sessionId: string) => string;
364
+ readonly MACHINE_REQUEST_UPDATE: (orgId: string, machineId: string) => string;
362
365
  readonly MACHINE_BROWSE: (orgId: string, machineId: string) => string;
363
366
  readonly MACHINES_ME: "/api/v1/machines/me";
364
367
  readonly MACHINES_ME_AGENTS: "/api/v1/machines/me/agents";
365
368
  readonly MACHINES_ME_HEALTH: "/api/v1/machines/me/health";
369
+ readonly MACHINES_ME_CLIP_INSTALLS: "/api/v1/machines/me/clip-installs";
370
+ readonly MACHINES_ME_CLIP_INSTALL_DONE: (clipId: string) => string;
366
371
  readonly MACHINES_ME_AGENT_LAUNCH_CREDENTIAL: (agentId: string) => string;
367
372
  readonly MACHINES_ME_AGENT_WORKSPACE_STATE: (agentId: string) => string;
368
373
  readonly MACHINES_ME_WS_TICKET: "/api/v1/machines/me/ws/ticket";
@@ -373,6 +378,7 @@ export declare const ENDPOINTS: {
373
378
  readonly TASK_RESTORE: (orgId: string, taskId: string) => string;
374
379
  readonly TASK_WATCH: (orgId: string, taskId: string) => string;
375
380
  readonly TASK_WATCHERS: (orgId: string, taskId: string) => string;
381
+ readonly TASK_SUBSCRIBER: (orgId: string, taskId: string, userId: string) => string;
376
382
  readonly TASK_SUBTASKS: (orgId: string, taskId: string) => string;
377
383
  readonly TASK_RELATIONS: (orgId: string, taskId: string) => string;
378
384
  readonly TASK_RELATION: (orgId: string, taskId: string, relId: string) => string;
@@ -396,6 +402,11 @@ export declare const ENDPOINTS: {
396
402
  readonly INVITATION_ACCEPT: (id: string) => string;
397
403
  readonly INVITATION_DECLINE: (id: string) => string;
398
404
  readonly INVITATION_BY_TOKEN: (token: string) => string;
405
+ readonly ORG_INVITE_LINK: (orgId: string) => string;
406
+ readonly ORG_INVITE_LINK_REGENERATE: (orgId: string) => string;
407
+ readonly ORG_INVITE_LINK_JOIN_REQUESTS: (orgId: string) => string;
408
+ readonly ORG_INVITE_LINK_JOIN_REQUEST_DECIDE: (orgId: string, jrId: string) => string;
409
+ readonly INVITE_LINK_JOIN: "/api/v1/invite-link/join";
399
410
  readonly WIKIS: (orgId: string) => string;
400
411
  readonly WIKI: (orgId: string, wikiId: string) => string;
401
412
  readonly WIKI_TREE: (orgId: string, wikiId: string) => string;
@@ -437,11 +448,14 @@ export declare const ENDPOINTS: {
437
448
  readonly INBOX_ACK: (orgId: string) => string;
438
449
  readonly DISPATCH: (orgId: string) => string;
439
450
  readonly DISPATCH_PENDING_COUNT: (orgId: string) => string;
451
+ readonly DISPATCH_RECEIVED: (orgId: string) => string;
440
452
  readonly DISPATCH_ACK: (orgId: string) => string;
441
453
  readonly DISPATCH_ACK_BY_ID: (orgId: string, id: string) => string;
454
+ readonly DISPATCH_BY_MESSAGES: (orgId: string) => string;
442
455
  readonly UNREAD: "/api/v1/me/unread";
443
456
  readonly ORG_UNREAD: (orgId: string) => string;
444
457
  readonly CHAT_READ: (orgId: string, chatId: string) => string;
458
+ readonly THREAD_UNREAD: (orgId: string, chatId: string, threadRootId: string) => string;
445
459
  readonly REFS_RESOLVE: (orgId: string) => string;
446
460
  readonly REFS_BACKLINKS: (orgId: string) => string;
447
461
  readonly REFS_CHECK: (orgId: string) => string;
@@ -457,6 +471,14 @@ export declare const ENDPOINTS: {
457
471
  readonly BILLING_AUTO_RELOAD: (orgId: string) => string;
458
472
  readonly BILLING_SETUP_INTENT: (orgId: string) => string;
459
473
  readonly COMPUTE_PRICING: () => string;
474
+ readonly CLIPS: (orgId: string) => string;
475
+ readonly CLIP: (orgId: string, clipId: string) => string;
476
+ readonly CLIP_AGENTS: (orgId: string, clipId: string) => string;
477
+ readonly AGENT_CLIPS: (orgId: string, agentId: string) => string;
478
+ readonly AGENT_CLIP: (orgId: string, agentId: string, clipId: string) => string;
479
+ readonly CLIP_INVOKE: (orgId: string) => string;
480
+ readonly CLIP_ONLINE: (orgId: string) => string;
481
+ readonly CLIP_REGISTRY: () => string;
460
482
  };
461
483
  export declare const WS_EVENTS: {
462
484
  readonly PING: "ping";
@@ -493,6 +515,8 @@ export declare const WS_EVENTS: {
493
515
  readonly INVITATION_ACCEPTED: "invitation.accepted";
494
516
  readonly INVITATION_DECLINED: "invitation.declined";
495
517
  readonly INVITATION_REVOKED: "invitation.revoked";
518
+ readonly ORG_JOIN_REQUEST_NEW: "org.join_request.new";
519
+ readonly ORG_INVITE_LINK_JOINED: "org.invite_link.joined";
496
520
  readonly AGENT_CONFIG_UPDATE: "agent_config.update";
497
521
  readonly PRESENCE_UPDATE: "presence.update";
498
522
  readonly WIKI_CHANGESET_CREATED: "wiki.changeset.created";
@@ -506,6 +530,7 @@ export declare const WS_EVENTS: {
506
530
  readonly INBOX_BULK_UPDATE: "inbox.bulk_update";
507
531
  readonly READ_POSITION_UPDATED: "read_position.updated";
508
532
  readonly DISPATCH_NEW: "dispatch.new";
533
+ readonly DISPATCH_RECEIVED: "dispatch.received";
509
534
  readonly SCHEDULE_CREATED: "schedule.created";
510
535
  readonly SCHEDULE_UPDATED: "schedule.updated";
511
536
  readonly SCHEDULE_DELETED: "schedule.deleted";
@@ -521,7 +546,13 @@ export declare const WS_EVENTS: {
521
546
  readonly MACHINE_STOP: "machine.stop";
522
547
  readonly MACHINE_WORKSPACE_SETUP_REQUESTED: "machine.workspace.setup.requested";
523
548
  readonly MACHINE_FILESYSTEM_BROWSE: "machine.filesystem.browse";
549
+ readonly MACHINE_UPDATE: "machine.update";
550
+ readonly MACHINE_CONFIG_UPDATED: "machine.config.updated";
551
+ readonly MACHINE_CLIP_INSTALL: "machine.clip.install";
524
552
  readonly AGENT_NEW_SESSION: "agent.new_session";
553
+ readonly CLIP_INSTALLED: "clip.installed";
554
+ readonly CLIP_REMOVED: "clip.removed";
555
+ readonly CLIP_UPDATED: "clip.updated";
525
556
  };
526
557
  export declare const COMMENT_TARGET: {
527
558
  readonly task: (taskId: string) => string;
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,QAAQ,YAAY,CAAC;AAGlC,eAAO,MAAM,SAAS,aAAa,CAAC;AAOpC,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgClB,CAAC;AAIX,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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,MAAM,MAAM,MAAM;0CAGjB,MAAM;wCACR,MAAM;iCACb,MAAM,MAAM,MAAM;gCACnB,MAAM;+BAGP,MAAM;6CACQ,MAAM;wCACX,MAAM;mCACX,MAAM;yCACA,MAAM,MAAM,MAAM;2CAChB,MAAM;;iCAIhB,MAAM;gCACP,MAAM,UAAU,MAAM;oCAClB,MAAM,UAAU,MAAM,gBAAgB,MAAM;mCAI7C,MAAM;qCACJ,MAAM;iCACV,MAAM;;;;;;oCAcH,MAAM;8BAGZ,MAAM;2CACO,MAAM;uCACV,MAAM;0CACH,MAAM;2CACL,MAAM;;4BAQrB,MAAM;2BACP,MAAM,UAAU,MAAM;kCACf,MAAM,UAAU,MAAM;kCAEtB,MAAM,WAAW,MAAM;iCAExB,MAAM,WAAW,MAAM,UAAU,MAAM;kCAEtC,MAAM;kCACN,MAAM;;CAInB,CAAC;AAGX,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4EZ,CAAC;AA6DX,eAAO,MAAM,cAAc;4BACV,MAAM;+BACH,MAAM,UAAU,MAAM;gCACrB,MAAM,QAAQ,MAAM;mCAGjB,MAAM,QAAQ,MAAM,OAAO,MAAM,mBAAmB,MAAM,EAAE;qCAKxE,MAAM,QACR,MAAM,OACP,MAAM,aACA,MAAM,WACR,MAAM;CAKT,CAAC"}
package/dist/constants.js CHANGED
@@ -2,58 +2,233 @@
2
2
  export const API_BASE = '/api/v1';
3
3
  // Wiki-service base path (served by wiki-service, routed via LB path rules)
4
4
  export const WIKI_BASE = '/wiki/v1';
5
+ // Clip-service base path (served by clip-service, routed via LB path rules)
6
+ export const CLIP_BASE = '/clip/v1';
5
7
  // LLM model catalog — mirrors server/pkg/llmproxy/models.go DefaultModels.
6
8
  // SSOT is the Go side; keep this list in sync when models change. `provider`
7
9
  // is used by clients to filter runtime-specific pickers. `runtime_names` is
8
10
  // included for catalog completeness and agent runtime delivery; product UI
9
11
  // should continue to display canonical model IDs/names.
10
12
  export const PLATFORM_MODELS = [
11
- { id: 'anthropic/claude-opus-4.7', name: 'Claude Opus 4.7', provider: 'anthropic', effortLevels: ['low', 'medium', 'high', 'xhigh', 'max'], runtime_names: { 'claude-code': 'claude-opus-4-7' } },
12
- { id: 'anthropic/claude-opus-4.6', name: 'Claude Opus 4.6', provider: 'anthropic', effortLevels: ['low', 'medium', 'high', 'max'], runtime_names: { 'claude-code': 'claude-opus-4-6' } },
13
- { id: 'anthropic/claude-sonnet-4.6', name: 'Claude Sonnet 4.6', provider: 'anthropic', effortLevels: ['low', 'medium', 'high', 'max'], runtime_names: { 'claude-code': 'claude-sonnet-4-6' } },
14
- { id: 'anthropic/claude-sonnet-4.5', name: 'Claude Sonnet 4.5', provider: 'anthropic', effortLevels: [], runtime_names: { 'claude-code': 'claude-sonnet-4-5' } },
15
- { id: 'anthropic/claude-haiku-4.5', name: 'Claude Haiku 4.5', provider: 'anthropic', effortLevels: [], runtime_names: { 'claude-code': 'claude-haiku-4-5' } },
16
- { id: 'openai/gpt-5.5', name: 'GPT-5.5', provider: 'openai', effortLevels: ['minimal', 'low', 'medium', 'high', 'xhigh'], runtime_names: { codex: 'gpt-5.5' } },
13
+ {
14
+ id: 'anthropic/claude-opus-4.7',
15
+ name: 'Claude Opus 4.7',
16
+ provider: 'anthropic',
17
+ effortLevels: ['low', 'medium', 'high', 'xhigh', 'max'],
18
+ runtime_names: { 'claude-code': 'claude-opus-4-7' },
19
+ },
20
+ {
21
+ id: 'anthropic/claude-opus-4.6',
22
+ name: 'Claude Opus 4.6',
23
+ provider: 'anthropic',
24
+ effortLevels: ['low', 'medium', 'high', 'max'],
25
+ runtime_names: { 'claude-code': 'claude-opus-4-6' },
26
+ },
27
+ {
28
+ id: 'anthropic/claude-sonnet-4.6',
29
+ name: 'Claude Sonnet 4.6',
30
+ provider: 'anthropic',
31
+ effortLevels: ['low', 'medium', 'high', 'max'],
32
+ runtime_names: { 'claude-code': 'claude-sonnet-4-6' },
33
+ },
34
+ {
35
+ id: 'anthropic/claude-sonnet-4.5',
36
+ name: 'Claude Sonnet 4.5',
37
+ provider: 'anthropic',
38
+ effortLevels: [],
39
+ runtime_names: { 'claude-code': 'claude-sonnet-4-5' },
40
+ },
41
+ {
42
+ id: 'anthropic/claude-haiku-4.5',
43
+ name: 'Claude Haiku 4.5',
44
+ provider: 'anthropic',
45
+ effortLevels: [],
46
+ runtime_names: { 'claude-code': 'claude-haiku-4-5' },
47
+ },
48
+ {
49
+ id: 'openai/gpt-5.5',
50
+ name: 'GPT-5.5',
51
+ provider: 'openai',
52
+ effortLevels: ['minimal', 'low', 'medium', 'high', 'xhigh'],
53
+ runtime_names: { codex: 'gpt-5.5' },
54
+ },
17
55
  // GPT-5.5 Pro has no documented API-key effort control surface yet.
18
- { id: 'openai/gpt-5.5-pro', name: 'GPT-5.5 Pro', provider: 'openai', effortLevels: [], runtime_names: { codex: 'gpt-5.5-pro' } },
19
- { id: 'openai/gpt-5.4', name: 'GPT-5.4', provider: 'openai', effortLevels: ['minimal', 'low', 'medium', 'high', 'xhigh'], runtime_names: { codex: 'gpt-5.4' } },
20
- { id: 'openai/gpt-5.4-pro', name: 'GPT-5.4 Pro', provider: 'openai', effortLevels: ['medium', 'high', 'xhigh'], runtime_names: { codex: 'gpt-5.4-pro' } },
21
- { id: 'google/gemini-3.1-pro-preview', name: 'Gemini 3.1 Pro Preview', provider: 'google', effortLevels: [] },
22
- { id: 'google/gemini-3.1-pro-preview-customtools', name: 'Gemini 3.1 Pro Preview Custom Tools', provider: 'google', effortLevels: [] },
23
- { id: 'google/gemini-3-pro-preview', name: 'Gemini 3 Pro Preview', provider: 'google', effortLevels: [] },
24
- { id: 'google/gemini-3-flash-preview', name: 'Gemini 3 Flash Preview', provider: 'google', effortLevels: [] },
56
+ {
57
+ id: 'openai/gpt-5.5-pro',
58
+ name: 'GPT-5.5 Pro',
59
+ provider: 'openai',
60
+ effortLevels: [],
61
+ runtime_names: { codex: 'gpt-5.5-pro' },
62
+ },
63
+ {
64
+ id: 'openai/gpt-5.4',
65
+ name: 'GPT-5.4',
66
+ provider: 'openai',
67
+ effortLevels: ['minimal', 'low', 'medium', 'high', 'xhigh'],
68
+ runtime_names: { codex: 'gpt-5.4' },
69
+ },
70
+ {
71
+ id: 'openai/gpt-5.4-pro',
72
+ name: 'GPT-5.4 Pro',
73
+ provider: 'openai',
74
+ effortLevels: ['medium', 'high', 'xhigh'],
75
+ runtime_names: { codex: 'gpt-5.4-pro' },
76
+ },
77
+ {
78
+ id: 'google/gemini-3.1-pro-preview',
79
+ name: 'Gemini 3.1 Pro Preview',
80
+ provider: 'google',
81
+ effortLevels: [],
82
+ },
83
+ {
84
+ id: 'google/gemini-3.1-pro-preview-customtools',
85
+ name: 'Gemini 3.1 Pro Preview Custom Tools',
86
+ provider: 'google',
87
+ effortLevels: [],
88
+ },
89
+ {
90
+ id: 'google/gemini-3-pro-preview',
91
+ name: 'Gemini 3 Pro Preview',
92
+ provider: 'google',
93
+ effortLevels: [],
94
+ },
95
+ {
96
+ id: 'google/gemini-3-flash-preview',
97
+ name: 'Gemini 3 Flash Preview',
98
+ provider: 'google',
99
+ effortLevels: [],
100
+ },
25
101
  { id: 'google/gemini-2.5-flash', name: 'Gemini 2.5 Flash', provider: 'google', effortLevels: [] },
26
- { id: 'google/gemini-3.1-flash-lite', name: 'Gemini 3.1 Flash-Lite', provider: 'google', effortLevels: [] },
27
- { id: 'google/gemini-2.5-flash-lite', name: 'Gemini 2.5 Flash-Lite', provider: 'google', effortLevels: [] },
102
+ {
103
+ id: 'google/gemini-3.1-flash-lite',
104
+ name: 'Gemini 3.1 Flash-Lite',
105
+ provider: 'google',
106
+ effortLevels: [],
107
+ },
108
+ {
109
+ id: 'google/gemini-2.5-flash-lite',
110
+ name: 'Gemini 2.5 Flash-Lite',
111
+ provider: 'google',
112
+ effortLevels: [],
113
+ },
28
114
  { id: 'moonshotai/kimi-k2.6', name: 'Kimi K2.6', provider: 'moonshotai', effortLevels: [] },
29
115
  { id: 'moonshotai/kimi-k2.5', name: 'Kimi K2.5', provider: 'moonshotai', effortLevels: [] },
30
116
  { id: 'z-ai/glm-5.1', name: 'GLM 5.1', provider: 'z-ai', effortLevels: [] },
31
117
  { id: 'z-ai/glm-5', name: 'GLM 5', provider: 'z-ai', effortLevels: [] },
32
- { id: 'deepseek/deepseek-v4-pro', name: 'DeepSeek V4 Pro', provider: 'deepseek', effortLevels: [] },
33
- { id: 'deepseek/deepseek-v4-flash', name: 'DeepSeek V4 Flash', provider: 'deepseek', effortLevels: [] },
34
- { id: 'qwen/qwen3.6-max-preview', name: 'Qwen3.6 Max Preview', provider: 'qwen', effortLevels: [] },
118
+ {
119
+ id: 'deepseek/deepseek-v4-pro',
120
+ name: 'DeepSeek V4 Pro',
121
+ provider: 'deepseek',
122
+ effortLevels: [],
123
+ },
124
+ {
125
+ id: 'deepseek/deepseek-v4-flash',
126
+ name: 'DeepSeek V4 Flash',
127
+ provider: 'deepseek',
128
+ effortLevels: [],
129
+ },
130
+ {
131
+ id: 'qwen/qwen3.6-max-preview',
132
+ name: 'Qwen3.6 Max Preview',
133
+ provider: 'qwen',
134
+ effortLevels: [],
135
+ },
35
136
  { id: 'qwen/qwen3.6-plus', name: 'Qwen3.6 Plus', provider: 'qwen', effortLevels: [] },
36
- { id: 'qwen/qwen3.6-plus-2026-04-02', name: 'Qwen3.6 Plus 2026-04-02', provider: 'qwen', effortLevels: [] },
137
+ {
138
+ id: 'qwen/qwen3.6-plus-2026-04-02',
139
+ name: 'Qwen3.6 Plus 2026-04-02',
140
+ provider: 'qwen',
141
+ effortLevels: [],
142
+ },
37
143
  { id: 'qwen/qwen3.5-plus', name: 'Qwen3.5 Plus', provider: 'qwen', effortLevels: [] },
38
- { id: 'qwen/qwen3.5-plus-2026-02-15', name: 'Qwen3.5 Plus 2026-02-15', provider: 'qwen', effortLevels: [] },
144
+ {
145
+ id: 'qwen/qwen3.5-plus-2026-02-15',
146
+ name: 'Qwen3.5 Plus 2026-02-15',
147
+ provider: 'qwen',
148
+ effortLevels: [],
149
+ },
39
150
  { id: 'qwen/qwen3.6-flash', name: 'Qwen3.6 Flash', provider: 'qwen', effortLevels: [] },
40
- { id: 'qwen/qwen3.6-flash-2026-04-16', name: 'Qwen3.6 Flash 2026-04-16', provider: 'qwen', effortLevels: [] },
151
+ {
152
+ id: 'qwen/qwen3.6-flash-2026-04-16',
153
+ name: 'Qwen3.6 Flash 2026-04-16',
154
+ provider: 'qwen',
155
+ effortLevels: [],
156
+ },
41
157
  { id: 'qwen/qwen3-coder-plus', name: 'Qwen3 Coder Plus', provider: 'qwen', effortLevels: [] },
42
158
  ];
43
159
  // Hidden from new-agent pickers, but available to editors so persisted Beta
44
160
  // agent defaults remain representable.
45
161
  export const PLATFORM_LEGACY_MODELS = [
46
- { id: 'openai/gpt-5.4-mini', name: 'GPT-5.4 Mini', provider: 'openai', effortLevels: ['minimal', 'low', 'medium', 'high', 'xhigh'], runtime_names: { codex: 'gpt-5.4-mini' } },
47
- { id: 'openai/gpt-5-mini', name: 'GPT-5 Mini', provider: 'openai', effortLevels: ['minimal', 'low', 'medium', 'high', 'xhigh'], runtime_names: { codex: 'gpt-5-mini' } },
48
- { id: 'openai/gpt-5.4-nano', name: 'GPT-5.4 Nano', provider: 'openai', effortLevels: ['minimal', 'low', 'medium', 'high', 'xhigh'], runtime_names: { codex: 'gpt-5.4-nano' } },
49
- { id: 'openai/gpt-5-nano', name: 'GPT-5 Nano', provider: 'openai', effortLevels: ['minimal', 'low', 'medium', 'high', 'xhigh'], runtime_names: { codex: 'gpt-5-nano' } },
50
- { id: 'openai/gpt-5.3-codex', name: 'GPT-5.3 Codex', provider: 'openai', effortLevels: ['low', 'medium', 'high', 'xhigh'], runtime_names: { codex: 'gpt-5.3-codex' } },
51
- { id: 'openai/gpt-5.2-codex', name: 'GPT-5.2 Codex', provider: 'openai', effortLevels: ['low', 'medium', 'high', 'xhigh'], runtime_names: { codex: 'gpt-5.2-codex' } },
52
- { id: 'openai/gpt-5-codex', name: 'GPT-5 Codex', provider: 'openai', effortLevels: ['minimal', 'low', 'medium', 'high', 'xhigh'], runtime_names: { codex: 'gpt-5-codex' } },
53
- { id: 'openai/o4-mini', name: 'o4 Mini', provider: 'openai', effortLevels: ['low', 'medium', 'high'], runtime_names: { codex: 'o4-mini' } },
54
- { id: 'openai/gpt-4.1', name: 'GPT-4.1', provider: 'openai', effortLevels: [], runtime_names: { codex: 'gpt-4.1' } },
162
+ {
163
+ id: 'openai/gpt-5.4-mini',
164
+ name: 'GPT-5.4 Mini',
165
+ provider: 'openai',
166
+ effortLevels: ['minimal', 'low', 'medium', 'high', 'xhigh'],
167
+ runtime_names: { codex: 'gpt-5.4-mini' },
168
+ },
169
+ {
170
+ id: 'openai/gpt-5-mini',
171
+ name: 'GPT-5 Mini',
172
+ provider: 'openai',
173
+ effortLevels: ['minimal', 'low', 'medium', 'high', 'xhigh'],
174
+ runtime_names: { codex: 'gpt-5-mini' },
175
+ },
176
+ {
177
+ id: 'openai/gpt-5.4-nano',
178
+ name: 'GPT-5.4 Nano',
179
+ provider: 'openai',
180
+ effortLevels: ['minimal', 'low', 'medium', 'high', 'xhigh'],
181
+ runtime_names: { codex: 'gpt-5.4-nano' },
182
+ },
183
+ {
184
+ id: 'openai/gpt-5-nano',
185
+ name: 'GPT-5 Nano',
186
+ provider: 'openai',
187
+ effortLevels: ['minimal', 'low', 'medium', 'high', 'xhigh'],
188
+ runtime_names: { codex: 'gpt-5-nano' },
189
+ },
190
+ {
191
+ id: 'openai/gpt-5.3-codex',
192
+ name: 'GPT-5.3 Codex',
193
+ provider: 'openai',
194
+ effortLevels: ['low', 'medium', 'high', 'xhigh'],
195
+ runtime_names: { codex: 'gpt-5.3-codex' },
196
+ },
197
+ {
198
+ id: 'openai/gpt-5.2-codex',
199
+ name: 'GPT-5.2 Codex',
200
+ provider: 'openai',
201
+ effortLevels: ['low', 'medium', 'high', 'xhigh'],
202
+ runtime_names: { codex: 'gpt-5.2-codex' },
203
+ },
204
+ {
205
+ id: 'openai/gpt-5-codex',
206
+ name: 'GPT-5 Codex',
207
+ provider: 'openai',
208
+ effortLevels: ['minimal', 'low', 'medium', 'high', 'xhigh'],
209
+ runtime_names: { codex: 'gpt-5-codex' },
210
+ },
211
+ {
212
+ id: 'openai/o4-mini',
213
+ name: 'o4 Mini',
214
+ provider: 'openai',
215
+ effortLevels: ['low', 'medium', 'high'],
216
+ runtime_names: { codex: 'o4-mini' },
217
+ },
218
+ {
219
+ id: 'openai/gpt-4.1',
220
+ name: 'GPT-4.1',
221
+ provider: 'openai',
222
+ effortLevels: [],
223
+ runtime_names: { codex: 'gpt-4.1' },
224
+ },
55
225
  { id: 'google/gemini-2.5-pro', name: 'Gemini 2.5 Pro', provider: 'google', effortLevels: [] },
56
- { id: 'qwen/qwen3.5-plus-02-15', name: 'Qwen3.5 Plus 02-15 Legacy', provider: 'qwen', effortLevels: [] },
226
+ {
227
+ id: 'qwen/qwen3.5-plus-02-15',
228
+ name: 'Qwen3.5 Plus 02-15 Legacy',
229
+ provider: 'qwen',
230
+ effortLevels: [],
231
+ },
57
232
  ];
58
233
  // Mirrors server/pkg/llmproxy/models.go DefaultModelIDForRuntime. Go remains
59
234
  // the SSOT; keep this client-side fallback in sync until the catalog is codegen
@@ -104,6 +279,7 @@ export const ENDPOINTS = {
104
279
  ORG_MEMBER: (orgId, userId) => `${API_BASE}/orgs/${orgId}/members/${userId}`,
105
280
  ORG_MEMBER_CHATS: (orgId, memberId) => `${API_BASE}/orgs/${orgId}/members/${memberId}/chats`,
106
281
  ORG_MEMBER_TASKS: (orgId, memberId) => `${API_BASE}/orgs/${orgId}/members/${memberId}/tasks`,
282
+ REF_SEARCH: (orgId) => `${API_BASE}/orgs/${orgId}/refs/search`,
107
283
  // Direct messages (org-scoped, atomic find-or-create + send)
108
284
  DM: (orgId) => `${API_BASE}/orgs/${orgId}/dm`,
109
285
  // Onboarding
@@ -186,6 +362,7 @@ export const ENDPOINTS = {
186
362
  MACHINE_KEY: (orgId, machineId, keyId) => `${API_BASE}/orgs/${orgId}/machines/${machineId}/keys/${keyId}`,
187
363
  MACHINE_RUNTIME_AUTH_SESSIONS: (orgId, machineId) => `${API_BASE}/orgs/${orgId}/machines/${machineId}/runtime-auth-sessions`,
188
364
  MACHINE_RUNTIME_AUTH_SESSION_COMPLETE: (orgId, machineId, sessionId) => `${API_BASE}/orgs/${orgId}/machines/${machineId}/runtime-auth-sessions/${sessionId}/complete`,
365
+ MACHINE_REQUEST_UPDATE: (orgId, machineId) => `${API_BASE}/orgs/${orgId}/machines/${machineId}/request-update`,
189
366
  MACHINE_BROWSE: (orgId, machineId) => `${API_BASE}/orgs/${orgId}/machines/${machineId}/browse`,
190
367
  // Machine self-control-plane (mck_-scoped). The bearer token implicitly
191
368
  // identifies the Machine, so there is no `:mid` URL parameter — these are
@@ -193,6 +370,8 @@ export const ENDPOINTS = {
193
370
  MACHINES_ME: `${API_BASE}/machines/me`,
194
371
  MACHINES_ME_AGENTS: `${API_BASE}/machines/me/agents`,
195
372
  MACHINES_ME_HEALTH: `${API_BASE}/machines/me/health`,
373
+ MACHINES_ME_CLIP_INSTALLS: `${API_BASE}/machines/me/clip-installs`,
374
+ MACHINES_ME_CLIP_INSTALL_DONE: (clipId) => `${API_BASE}/machines/me/clip-installs/${clipId}/installed`,
196
375
  MACHINES_ME_AGENT_LAUNCH_CREDENTIAL: (agentId) => `${API_BASE}/machines/me/agents/${agentId}/launch-credential`,
197
376
  MACHINES_ME_AGENT_WORKSPACE_STATE: (agentId) => `${API_BASE}/machines/me/agents/${agentId}/workspace-state`,
198
377
  MACHINES_ME_WS_TICKET: `${API_BASE}/machines/me/ws/ticket`,
@@ -204,6 +383,7 @@ export const ENDPOINTS = {
204
383
  TASK_RESTORE: (orgId, taskId) => `${API_BASE}/orgs/${orgId}/tasks/${taskId}/restore`,
205
384
  TASK_WATCH: (orgId, taskId) => `${API_BASE}/orgs/${orgId}/tasks/${taskId}/watch`,
206
385
  TASK_WATCHERS: (orgId, taskId) => `${API_BASE}/orgs/${orgId}/tasks/${taskId}/watchers`,
386
+ TASK_SUBSCRIBER: (orgId, taskId, userId) => `${API_BASE}/orgs/${orgId}/tasks/${taskId}/subscribers/${userId}`,
207
387
  TASK_SUBTASKS: (orgId, taskId) => `${API_BASE}/orgs/${orgId}/tasks/${taskId}/subtasks`,
208
388
  TASK_RELATIONS: (orgId, taskId) => `${API_BASE}/orgs/${orgId}/tasks/${taskId}/relations`,
209
389
  TASK_RELATION: (orgId, taskId, relId) => `${API_BASE}/orgs/${orgId}/tasks/${taskId}/relations/${relId}`,
@@ -231,6 +411,12 @@ export const ENDPOINTS = {
231
411
  INVITATION_ACCEPT: (id) => `${API_BASE}/invitations/${id}/accept`,
232
412
  INVITATION_DECLINE: (id) => `${API_BASE}/invitations/${id}/decline`,
233
413
  INVITATION_BY_TOKEN: (token) => `${API_BASE}/invitations/by-token/${token}`,
414
+ // Org-level shareable invite link
415
+ ORG_INVITE_LINK: (orgId) => `${API_BASE}/orgs/${orgId}/invite-link`,
416
+ ORG_INVITE_LINK_REGENERATE: (orgId) => `${API_BASE}/orgs/${orgId}/invite-link/regenerate`,
417
+ ORG_INVITE_LINK_JOIN_REQUESTS: (orgId) => `${API_BASE}/orgs/${orgId}/invite-link/join-requests`,
418
+ ORG_INVITE_LINK_JOIN_REQUEST_DECIDE: (orgId, jrId) => `${API_BASE}/orgs/${orgId}/invite-link/join-requests/${jrId}/decide`,
419
+ INVITE_LINK_JOIN: `${API_BASE}/invite-link/join`,
234
420
  // Wikis (org-scoped, served by wiki-service)
235
421
  WIKIS: (orgId) => `${WIKI_BASE}/orgs/${orgId}/wikis`,
236
422
  WIKI: (orgId, wikiId) => `${WIKI_BASE}/orgs/${orgId}/wikis/${wikiId}`,
@@ -281,12 +467,15 @@ export const ENDPOINTS = {
281
467
  // Dispatch (agent event delivery)
282
468
  DISPATCH: (orgId) => `${API_BASE}/orgs/${orgId}/dispatch`,
283
469
  DISPATCH_PENDING_COUNT: (orgId) => `${API_BASE}/orgs/${orgId}/dispatch/pending-count`,
470
+ DISPATCH_RECEIVED: (orgId) => `${API_BASE}/orgs/${orgId}/dispatch/received`,
284
471
  DISPATCH_ACK: (orgId) => `${API_BASE}/orgs/${orgId}/dispatch/ack`,
285
472
  DISPATCH_ACK_BY_ID: (orgId, id) => `${API_BASE}/orgs/${orgId}/dispatch/${id}/ack`,
473
+ DISPATCH_BY_MESSAGES: (orgId) => `${API_BASE}/orgs/${orgId}/dispatch/by-messages`,
286
474
  // Unread
287
475
  UNREAD: `${API_BASE}/me/unread`,
288
476
  ORG_UNREAD: (orgId) => `${API_BASE}/orgs/${orgId}/unread`,
289
477
  CHAT_READ: (orgId, chatId) => `${API_BASE}/orgs/${orgId}/chats/${chatId}/read`,
478
+ THREAD_UNREAD: (orgId, chatId, threadRootId) => `${API_BASE}/orgs/${orgId}/chats/${chatId}/threads/${threadRootId}/unread`,
290
479
  // References (org-scoped)
291
480
  REFS_RESOLVE: (orgId) => `${API_BASE}/orgs/${orgId}/refs/resolve`,
292
481
  REFS_BACKLINKS: (orgId) => `${API_BASE}/orgs/${orgId}/refs/backlinks`,
@@ -311,6 +500,16 @@ export const ENDPOINTS = {
311
500
  // ADMIN_GRANTS intentionally NOT exported here — it sits under the
312
501
  // unauthenticated `/internal/admin/*` surface and must not bleed into the
313
502
  // public SDK. Admin dashboard hits the URL directly from its own client.
503
+ // Clips (org-scoped, served by clip-service)
504
+ CLIPS: (orgId) => `${CLIP_BASE}/orgs/${orgId}/clips`,
505
+ CLIP: (orgId, clipId) => `${CLIP_BASE}/orgs/${orgId}/clips/${clipId}`,
506
+ CLIP_AGENTS: (orgId, clipId) => `${CLIP_BASE}/orgs/${orgId}/clips/${clipId}/agents`,
507
+ AGENT_CLIPS: (orgId, agentId) => `${CLIP_BASE}/orgs/${orgId}/agents/${agentId}/clips`,
508
+ AGENT_CLIP: (orgId, agentId, clipId) => `${CLIP_BASE}/orgs/${orgId}/agents/${agentId}/clips/${clipId}`,
509
+ CLIP_INVOKE: (orgId) => `${CLIP_BASE}/orgs/${orgId}/invoke`,
510
+ CLIP_ONLINE: (orgId) => `${CLIP_BASE}/orgs/${orgId}/online`,
511
+ // Clip registry (global, served by clip-service → Pinix Hub proxy)
512
+ CLIP_REGISTRY: () => `${CLIP_BASE}/registry/clips`,
314
513
  };
315
514
  // WebSocket event types
316
515
  export const WS_EVENTS = {
@@ -350,6 +549,8 @@ export const WS_EVENTS = {
350
549
  INVITATION_ACCEPTED: 'invitation.accepted',
351
550
  INVITATION_DECLINED: 'invitation.declined',
352
551
  INVITATION_REVOKED: 'invitation.revoked',
552
+ ORG_JOIN_REQUEST_NEW: 'org.join_request.new',
553
+ ORG_INVITE_LINK_JOINED: 'org.invite_link.joined',
353
554
  AGENT_CONFIG_UPDATE: 'agent_config.update',
354
555
  PRESENCE_UPDATE: 'presence.update',
355
556
  WIKI_CHANGESET_CREATED: 'wiki.changeset.created',
@@ -363,6 +564,7 @@ export const WS_EVENTS = {
363
564
  INBOX_BULK_UPDATE: 'inbox.bulk_update',
364
565
  READ_POSITION_UPDATED: 'read_position.updated',
365
566
  DISPATCH_NEW: 'dispatch.new',
567
+ DISPATCH_RECEIVED: 'dispatch.received',
366
568
  SCHEDULE_CREATED: 'schedule.created',
367
569
  SCHEDULE_UPDATED: 'schedule.updated',
368
570
  SCHEDULE_DELETED: 'schedule.deleted',
@@ -378,7 +580,13 @@ export const WS_EVENTS = {
378
580
  MACHINE_STOP: 'machine.stop',
379
581
  MACHINE_WORKSPACE_SETUP_REQUESTED: 'machine.workspace.setup.requested',
380
582
  MACHINE_FILESYSTEM_BROWSE: 'machine.filesystem.browse',
583
+ MACHINE_UPDATE: 'machine.update',
584
+ MACHINE_CONFIG_UPDATED: 'machine.config.updated',
585
+ MACHINE_CLIP_INSTALL: 'machine.clip.install',
381
586
  AGENT_NEW_SESSION: 'agent.new_session',
587
+ CLIP_INSTALLED: 'clip.installed',
588
+ CLIP_REMOVED: 'clip.removed',
589
+ CLIP_UPDATED: 'clip.updated',
382
590
  };
383
591
  // Canonical target URI builders for unified comments.
384
592
  //
@@ -413,7 +621,7 @@ function encodeHeadingSegment(seg) {
413
621
  // produce byte-identical target_uri across Go and TS SDKs for any legal
414
622
  // filename (including ones with ', (, ), !, *, space, #, ?, %, etc.).
415
623
  function encodePathSegment(seg) {
416
- return encodeURIComponent(seg)
624
+ return (encodeURIComponent(seg)
417
625
  // Un-escape what Go's encodePath passes through
418
626
  .replace(/%24/g, '$')
419
627
  .replace(/%26/g, '&')
@@ -428,14 +636,10 @@ function encodePathSegment(seg) {
428
636
  .replace(/'/g, '%27')
429
637
  .replace(/\(/g, '%28')
430
638
  .replace(/\)/g, '%29')
431
- .replace(/\*/g, '%2A');
639
+ .replace(/\*/g, '%2A'));
432
640
  }
433
641
  function encodeWikiPath(path) {
434
- return path
435
- .replace(/^\//, '')
436
- .split('/')
437
- .map(encodePathSegment)
438
- .join('/');
642
+ return path.replace(/^\//, '').split('/').map(encodePathSegment).join('/');
439
643
  }
440
644
  export const COMMENT_TARGET = {
441
645
  task: (taskId) => `prll://${taskId}`,
package/dist/index.d.ts CHANGED
@@ -3,5 +3,5 @@ export * from './constants.js';
3
3
  export { ParallClient, ApiError } from './client.js';
4
4
  export type { ParallClientOptions } from './client.js';
5
5
  export { ParallWs } from './ws.js';
6
- export type { ParallWsOptions, WsConnectionState, WsEventType, WsEventHandler, WsClientEventMap } from './ws.js';
6
+ export type { ParallWsOptions, WsConnectionState, WsEventType, WsEventHandler, WsClientEventMap, } from './ws.js';
7
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACrD,YAAY,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AACvD,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACnC,YAAY,EAAE,eAAe,EAAE,iBAAiB,EAAE,WAAW,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACrD,YAAY,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AACvD,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACnC,YAAY,EACV,eAAe,EACf,iBAAiB,EACjB,WAAW,EACX,cAAc,EACd,gBAAgB,GACjB,MAAM,SAAS,CAAC"}