@inferencesh/sdk 0.8.1 → 0.8.3
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.
- package/dist/live/session.d.ts +1 -1
- package/dist/types.d.ts +21 -4
- package/dist/types.js +1 -1
- package/package.json +1 -1
package/dist/live/session.d.ts
CHANGED
|
@@ -37,7 +37,7 @@ export interface LiveHandlers {
|
|
|
37
37
|
onClear?: (field: string) => void;
|
|
38
38
|
/**
|
|
39
39
|
* The app refused a frame, or has something to report, and goes on:
|
|
40
|
-
* `{"$error": {field, message}}`. Apps on SDKs before 0.
|
|
40
|
+
* `{"$error": {field, message}}`. Apps on older SDKs (inferencesh before 0.10.1, @inferencesh/app before 0.1.16) send it
|
|
41
41
|
* as `{"error": ...}`, which counts too unless the output has an `error`
|
|
42
42
|
* field. Without this handler it stays in the patch.
|
|
43
43
|
*/
|
package/dist/types.d.ts
CHANGED
|
@@ -216,6 +216,12 @@ export interface AgentDTO extends BaseModelDTO, PermissionModelDTO, ProjectModel
|
|
|
216
216
|
images: AgentImages;
|
|
217
217
|
version_id: string;
|
|
218
218
|
version?: AgentVersionDTO;
|
|
219
|
+
/**
|
|
220
|
+
* Harness is what drives the agent: "inference" for our own loop, or an
|
|
221
|
+
* agentprotocol registry id (claude, codex, ...) for an external harness,
|
|
222
|
+
* whose instructions, tools and versions are its own.
|
|
223
|
+
*/
|
|
224
|
+
harness: string;
|
|
219
225
|
/**
|
|
220
226
|
* ProfileID is set when a harness profile on a remote thinks for this
|
|
221
227
|
* agent instead of our loop.
|
|
@@ -845,7 +851,7 @@ export declare const ScopeSecretsRead: Scope;
|
|
|
845
851
|
export declare const ScopeSecretsWrite: Scope;
|
|
846
852
|
/**
|
|
847
853
|
* Action-level scopes for credentials (connected accounts, vaults,
|
|
848
|
-
*
|
|
854
|
+
* auth schemes, MCP servers).
|
|
849
855
|
*/
|
|
850
856
|
export declare const ScopeCredentialsRead: Scope;
|
|
851
857
|
/**
|
|
@@ -1690,6 +1696,10 @@ export interface ChatDTO extends BaseModelDTO, PermissionModelDTO {
|
|
|
1690
1696
|
* thinks for this chat; `claude --resume <id>` opens it on that machine.
|
|
1691
1697
|
*/
|
|
1692
1698
|
harness_session_id?: string;
|
|
1699
|
+
/**
|
|
1700
|
+
* WorkDir is the folder a harness works in for this chat.
|
|
1701
|
+
*/
|
|
1702
|
+
work_dir?: string;
|
|
1693
1703
|
/**
|
|
1694
1704
|
* ForkedFromMessageID is the message this chat was branched at.
|
|
1695
1705
|
*/
|
|
@@ -1752,10 +1762,10 @@ export interface CredentialConfigDTO {
|
|
|
1752
1762
|
has_managed: boolean;
|
|
1753
1763
|
grant?: CredentialGrant;
|
|
1754
1764
|
/**
|
|
1755
|
-
*
|
|
1756
|
-
* itself (models.
|
|
1765
|
+
* AuthSchemeID is set when the provider is one the team defined
|
|
1766
|
+
* itself (models.AuthScheme), so the UI can offer edit and remove.
|
|
1757
1767
|
*/
|
|
1758
|
-
|
|
1768
|
+
auth_scheme_id?: string;
|
|
1759
1769
|
credential?: CredentialDTO;
|
|
1760
1770
|
}
|
|
1761
1771
|
/**
|
|
@@ -4902,6 +4912,13 @@ export interface DeltaEvent {
|
|
|
4902
4912
|
* Empty when the task has no execution edge (a plain app run).
|
|
4903
4913
|
*/
|
|
4904
4914
|
resource_id?: string;
|
|
4915
|
+
/**
|
|
4916
|
+
* End, when set, carries no delta: it is the id of the task or agent run
|
|
4917
|
+
* whose deltas on this key are complete. It follows the last of them on
|
|
4918
|
+
* the same key, so an in-process follower reads to it instead of guessing
|
|
4919
|
+
* when the stream is over. The stream layer never sends it to clients.
|
|
4920
|
+
*/
|
|
4921
|
+
end?: string;
|
|
4905
4922
|
}
|
|
4906
4923
|
/**
|
|
4907
4924
|
* LLMDeltaEvent is a typed alias for backward compatibility.
|
package/dist/types.js
CHANGED
|
@@ -199,7 +199,7 @@ export const ScopeSecretsRead = "secrets:read";
|
|
|
199
199
|
export const ScopeSecretsWrite = "secrets:write";
|
|
200
200
|
/**
|
|
201
201
|
* Action-level scopes for credentials (connected accounts, vaults,
|
|
202
|
-
*
|
|
202
|
+
* auth schemes, MCP servers).
|
|
203
203
|
*/
|
|
204
204
|
export const ScopeCredentialsRead = "credentials:read";
|
|
205
205
|
/**
|