@opencode-ai/client 0.0.0-dev-18222 → 0.0.0-dev-18226
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.
|
@@ -494,6 +494,37 @@ export declare const make: (options?: {
|
|
|
494
494
|
readonly metadata?: {
|
|
495
495
|
readonly [x: string]: unknown;
|
|
496
496
|
} | undefined;
|
|
497
|
+
} | {
|
|
498
|
+
readonly id: string & import("effect/Brand").Brand<"Event.ID">;
|
|
499
|
+
readonly data: {
|
|
500
|
+
readonly id: string & import("effect/Brand").Brand<"Project.ID">;
|
|
501
|
+
readonly canonical: string & import("effect/Brand").Brand<"AbsolutePath">;
|
|
502
|
+
readonly time: {
|
|
503
|
+
readonly created: number;
|
|
504
|
+
readonly updated: number;
|
|
505
|
+
readonly initialized?: number | undefined;
|
|
506
|
+
};
|
|
507
|
+
readonly sandboxes: readonly string[];
|
|
508
|
+
readonly name?: string | undefined;
|
|
509
|
+
readonly vcs?: "git" | "hg" | undefined;
|
|
510
|
+
readonly icon?: {
|
|
511
|
+
readonly url?: string | undefined;
|
|
512
|
+
readonly color?: string | undefined;
|
|
513
|
+
readonly override?: string | undefined;
|
|
514
|
+
} | undefined;
|
|
515
|
+
readonly commands?: {
|
|
516
|
+
readonly start?: string | undefined;
|
|
517
|
+
} | undefined;
|
|
518
|
+
};
|
|
519
|
+
readonly type: "project.updated";
|
|
520
|
+
readonly created: number;
|
|
521
|
+
readonly location?: {
|
|
522
|
+
readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
|
|
523
|
+
readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
|
|
524
|
+
} | undefined;
|
|
525
|
+
readonly metadata?: {
|
|
526
|
+
readonly [x: string]: unknown;
|
|
527
|
+
} | undefined;
|
|
497
528
|
} | {
|
|
498
529
|
readonly id: string & import("effect/Brand").Brand<"Event.ID">;
|
|
499
530
|
readonly data: {
|
|
@@ -2071,6 +2071,25 @@ export type Project = {
|
|
|
2071
2071
|
time: ProjectTime;
|
|
2072
2072
|
sandboxes: Array<string>;
|
|
2073
2073
|
};
|
|
2074
|
+
export type ProjectUpdated = {
|
|
2075
|
+
id: string;
|
|
2076
|
+
created: number;
|
|
2077
|
+
metadata?: {
|
|
2078
|
+
[x: string]: any;
|
|
2079
|
+
};
|
|
2080
|
+
type: "project.updated";
|
|
2081
|
+
location?: LocationRef;
|
|
2082
|
+
data: {
|
|
2083
|
+
id: string;
|
|
2084
|
+
canonical: string;
|
|
2085
|
+
vcs?: ProjectVcs;
|
|
2086
|
+
name?: string;
|
|
2087
|
+
icon?: ProjectIcon;
|
|
2088
|
+
commands?: ProjectCommands;
|
|
2089
|
+
time: ProjectTime;
|
|
2090
|
+
sandboxes: Array<string>;
|
|
2091
|
+
};
|
|
2092
|
+
};
|
|
2074
2093
|
export type FormAnswer = {
|
|
2075
2094
|
[x: string]: FormValue;
|
|
2076
2095
|
};
|
|
@@ -2942,7 +2961,7 @@ export type IntegrationInfo = {
|
|
|
2942
2961
|
methods: Array<IntegrationMethod>;
|
|
2943
2962
|
connections: Array<ConnectionInfo>;
|
|
2944
2963
|
};
|
|
2945
|
-
export type V2Event = ModelsDevRefreshed | IntegrationUpdated | IntegrationConnectionUpdated | CatalogUpdated | AgentUpdated | SessionCreated | SessionAgentSelected | SessionModelSelected | SessionMoved | SessionRenamed | SessionViewed | SessionUsageUpdated | SessionDeleted | SessionForked | SessionInboxDelivered | SessionInboxEnqueued | SessionInboxCancelled | SessionInboxDeliveryChanged | SessionExecutionStarted | SessionExecutionSucceeded | SessionExecutionFailed | SessionExecutionInterrupted | SessionInstructionsUpdated | SessionSynthetic | SessionSkillActivated | SessionShellStarted | SessionShellEnded | SessionStepStarted | SessionStepEnded | SessionStepFailed | SessionTextStarted | SessionTextDelta | SessionTextEnded | SessionReasoningStarted | SessionReasoningDelta | SessionReasoningEnded | SessionToolInputStarted | SessionToolInputDelta | SessionToolInputEnded | SessionToolCalled | SessionToolProgress | SessionToolSuccess | SessionToolFailed | SessionRetryScheduled | SessionCompactionStarted | SessionCompactionDelta | SessionCompactionEnded | SessionCompactionFailed | SessionRevertStaged | SessionRevertCleared | SessionRevertCommitted | FilesystemChanged | ReferenceUpdated | PermissionAsked | PermissionReplied | PluginAdded | PluginUpdated | WorktreeUpdated | WorktreeResolved | CommandUpdated | ConfigUpdated | SkillUpdated | PtyCreated | PtyUpdated | PtyExited | PtyDeleted | PersistentPtyAdded | PersistentPtyRemoved | ShellCreated | ShellExited | ShellDeleted | FormCreated | FormReplied | FormCancelled | WebsearchUpdated | SessionStatusUpdated | SessionIdle | TuiPromptAppend | TuiCommandExecute | TuiToastShow | TuiSessionSelect | InstallationUpdated | InstallationUpdateAvailable | VcsBranchUpdated | McpStatusChanged | McpResourcesChanged | V2EventServerConnected;
|
|
2964
|
+
export type V2Event = ModelsDevRefreshed | IntegrationUpdated | IntegrationConnectionUpdated | CatalogUpdated | AgentUpdated | SessionCreated | SessionAgentSelected | SessionModelSelected | SessionMoved | SessionRenamed | SessionViewed | SessionUsageUpdated | SessionDeleted | SessionForked | SessionInboxDelivered | SessionInboxEnqueued | SessionInboxCancelled | SessionInboxDeliveryChanged | SessionExecutionStarted | SessionExecutionSucceeded | SessionExecutionFailed | SessionExecutionInterrupted | SessionInstructionsUpdated | SessionSynthetic | SessionSkillActivated | SessionShellStarted | SessionShellEnded | SessionStepStarted | SessionStepEnded | SessionStepFailed | SessionTextStarted | SessionTextDelta | SessionTextEnded | SessionReasoningStarted | SessionReasoningDelta | SessionReasoningEnded | SessionToolInputStarted | SessionToolInputDelta | SessionToolInputEnded | SessionToolCalled | SessionToolProgress | SessionToolSuccess | SessionToolFailed | SessionRetryScheduled | SessionCompactionStarted | SessionCompactionDelta | SessionCompactionEnded | SessionCompactionFailed | SessionRevertStaged | SessionRevertCleared | SessionRevertCommitted | FilesystemChanged | ReferenceUpdated | PermissionAsked | PermissionReplied | PluginAdded | PluginUpdated | ProjectUpdated | WorktreeUpdated | WorktreeResolved | CommandUpdated | ConfigUpdated | SkillUpdated | PtyCreated | PtyUpdated | PtyExited | PtyDeleted | PersistentPtyAdded | PersistentPtyRemoved | ShellCreated | ShellExited | ShellDeleted | FormCreated | FormReplied | FormCancelled | WebsearchUpdated | SessionStatusUpdated | SessionIdle | TuiPromptAppend | TuiCommandExecute | TuiToastShow | TuiSessionSelect | InstallationUpdated | InstallationUpdateAvailable | VcsBranchUpdated | McpStatusChanged | McpResourcesChanged | V2EventServerConnected;
|
|
2946
2965
|
export type UnauthorizedError = {
|
|
2947
2966
|
readonly _tag: "UnauthorizedError";
|
|
2948
2967
|
readonly message: string;
|
package/dist/solid/data.js
CHANGED
|
@@ -378,6 +378,9 @@ export function createData(config) {
|
|
|
378
378
|
void result.location.vcs.sync().catch((error) => console.error("Failed to preload VCS info", error));
|
|
379
379
|
void result.project.sync().catch((error) => console.error("Failed to preload projects", error));
|
|
380
380
|
return;
|
|
381
|
+
case "project.updated":
|
|
382
|
+
setStore("project", "info", event.data.id, reconcile(event.data));
|
|
383
|
+
return;
|
|
381
384
|
case "session.created":
|
|
382
385
|
sessionOutbox.delete(event.data.sessionID);
|
|
383
386
|
result.session.invalidate(event.data.sessionID);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package.json",
|
|
3
3
|
"name": "@opencode-ai/client",
|
|
4
|
-
"version": "0.0.0-dev-
|
|
4
|
+
"version": "0.0.0-dev-18226",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -57,8 +57,8 @@
|
|
|
57
57
|
"typecheck": "tsgo --noEmit"
|
|
58
58
|
},
|
|
59
59
|
"dependencies": {
|
|
60
|
-
"@opencode-ai/schema": "0.0.0-dev-
|
|
61
|
-
"@opencode-ai/protocol": "0.0.0-dev-
|
|
60
|
+
"@opencode-ai/schema": "0.0.0-dev-18226",
|
|
61
|
+
"@opencode-ai/protocol": "0.0.0-dev-18226"
|
|
62
62
|
},
|
|
63
63
|
"peerDependencies": {
|
|
64
64
|
"effect": "4.0.0-rc.111",
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
},
|
|
75
75
|
"devDependencies": {
|
|
76
76
|
"@effect/platform-node": "4.0.0-rc.111",
|
|
77
|
-
"@opencode-ai/httpapi-codegen": "0.0.0-dev-
|
|
77
|
+
"@opencode-ai/httpapi-codegen": "0.0.0-dev-18226",
|
|
78
78
|
"@tsconfig/bun": "1.0.9",
|
|
79
79
|
"@types/bun": "1.3.13",
|
|
80
80
|
"@typescript/native-preview": "7.0.0-dev.20251207.1",
|