@qoniai/qoni 0.4.0 → 0.4.1
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/CHANGELOG.md +40 -4
- package/README.md +7 -13
- package/README.zh-CN.md +7 -13
- package/dist/index.cjs +9 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +9 -6
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/skills/qoni-sdk/SKILL.md +6 -6
- package/skills/qoni-sdk/agents/openai.yaml +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1208,7 +1208,7 @@ declare function createWebSearchNamespace(transport: QoniTransport): {
|
|
|
1208
1208
|
};
|
|
1209
1209
|
};
|
|
1210
1210
|
|
|
1211
|
-
declare class
|
|
1211
|
+
declare class Qoni {
|
|
1212
1212
|
private readonly options;
|
|
1213
1213
|
private readonly fetchImpl;
|
|
1214
1214
|
private readonly timeoutMs;
|
|
@@ -1359,4 +1359,4 @@ declare const QoniScopeBundles: {
|
|
|
1359
1359
|
readonly TRACK: readonly ["webagent.track:read", "webagent.track:manage"];
|
|
1360
1360
|
};
|
|
1361
1361
|
|
|
1362
|
-
export { type Action, type ActionKind, ActionKinds, type Artifact, type CaptureOptions, type ClarificationPayload, type CompleteDelegateAgentInput, type CompleteDelegateTokenInput, type ConfirmationPayload, type CoreRunEvent, type DeepResearchAttachOptions, type DeepResearchEvent, type DeepResearchRunOptions, type DelegateAgentInput, type DelegateAgentResponse, type DelegateAgentTokenResponse, type DelegateTokenInput, type DelegateTokenInteractiveInput, type DelegateTokenResponse, type DelegateTokenResult, type DelegateTokenSilentInput, type DelegateTokenSilentResponse, type DelegationMode, type DelegationTokenResponse, type DoAnythingAttachOptions, type DoAnythingEvent, type DoAnythingRunOptions, type DoAnythingSnapshot, type GenAuthAccessTokenInput, type GenAuthAdminToken, type GenAuthAdminTokenOverrideInput, type GenAuthDelegationIntrospectionInput, type GenAuthUserCreateBatchInput, type GenAuthUserCreateInput, type GenAuthUserDeleteBatchInput, type GenAuthUserGetBatchInput, type GenAuthUserGetInput, type GenAuthUserListInput, type GenAuthUserUpdateInput, type Interaction, type InteractionEvidence, InteractionHandle, type InteractionPayloadByType, type InteractionSite, type InteractionStatus, InteractionStatuses, type InteractionType, InteractionTypes, type InteractiveDelegationResponse, type JsonObject, type MonitorEvent, type MonitorEventsOptions, MonitorHandle, type MonitorRunsOptions,
|
|
1362
|
+
export { type Action, type ActionKind, ActionKinds, type Artifact, type CaptureOptions, type ClarificationPayload, type CompleteDelegateAgentInput, type CompleteDelegateTokenInput, type ConfirmationPayload, type CoreRunEvent, type DeepResearchAttachOptions, type DeepResearchEvent, type DeepResearchRunOptions, type DelegateAgentInput, type DelegateAgentResponse, type DelegateAgentTokenResponse, type DelegateTokenInput, type DelegateTokenInteractiveInput, type DelegateTokenResponse, type DelegateTokenResult, type DelegateTokenSilentInput, type DelegateTokenSilentResponse, type DelegationMode, type DelegationTokenResponse, type DoAnythingAttachOptions, type DoAnythingEvent, type DoAnythingRunOptions, type DoAnythingSnapshot, type GenAuthAccessTokenInput, type GenAuthAdminToken, type GenAuthAdminTokenOverrideInput, type GenAuthDelegationIntrospectionInput, type GenAuthUserCreateBatchInput, type GenAuthUserCreateInput, type GenAuthUserDeleteBatchInput, type GenAuthUserGetBatchInput, type GenAuthUserGetInput, type GenAuthUserListInput, type GenAuthUserUpdateInput, type Interaction, type InteractionEvidence, InteractionHandle, type InteractionPayloadByType, type InteractionSite, type InteractionStatus, InteractionStatuses, type InteractionType, InteractionTypes, type InteractiveDelegationResponse, type JsonObject, type MonitorEvent, type MonitorEventsOptions, MonitorHandle, type MonitorRunsOptions, Qoni, QoniAuthError, QoniDelegationRequiredError, QoniError, type QoniErrorCode, type QoniErrorOptions, type QoniEvent, type QoniEventType, QoniEventTypes, type QoniMeta, type QoniOptions, QoniPermissionDeniedError, type QoniProduct, type QoniProductName, QoniProductScopes, QoniRateLimitError, type QoniResponse, type QoniRuntimeConfig, type QoniSSEEvent, QoniScopeBundles, QoniScopes, QoniTimeoutError, QoniTokenExpiredError, QoniUpstreamError, QoniValidationError, type RawRequestInput, type RunDoneData, type RunEvent, type RunEventsOptions, RunHandle, type RunImage, type RunLimits, type RunMessageData, type RunReconnectInfo, type RunResult, type RunScreenshotData, type RunStatus, type RunWaitOptions, type RuntimeTokenInput, type SessionRef, type SiteLoginPayload, type SnapshotAction, type SnapshotImage, type TakeControlPayload, type TokenInput, type TrackAttachOptions, type TrackCreateOptions, type WaitKind, type WaitPayload, type WebSearchAttachOptions, type WebSearchEvent, type WebSearchRunOptions, buildAuthorization, buildSignature, buildStringToSign };
|
package/dist/index.d.ts
CHANGED
|
@@ -1208,7 +1208,7 @@ declare function createWebSearchNamespace(transport: QoniTransport): {
|
|
|
1208
1208
|
};
|
|
1209
1209
|
};
|
|
1210
1210
|
|
|
1211
|
-
declare class
|
|
1211
|
+
declare class Qoni {
|
|
1212
1212
|
private readonly options;
|
|
1213
1213
|
private readonly fetchImpl;
|
|
1214
1214
|
private readonly timeoutMs;
|
|
@@ -1359,4 +1359,4 @@ declare const QoniScopeBundles: {
|
|
|
1359
1359
|
readonly TRACK: readonly ["webagent.track:read", "webagent.track:manage"];
|
|
1360
1360
|
};
|
|
1361
1361
|
|
|
1362
|
-
export { type Action, type ActionKind, ActionKinds, type Artifact, type CaptureOptions, type ClarificationPayload, type CompleteDelegateAgentInput, type CompleteDelegateTokenInput, type ConfirmationPayload, type CoreRunEvent, type DeepResearchAttachOptions, type DeepResearchEvent, type DeepResearchRunOptions, type DelegateAgentInput, type DelegateAgentResponse, type DelegateAgentTokenResponse, type DelegateTokenInput, type DelegateTokenInteractiveInput, type DelegateTokenResponse, type DelegateTokenResult, type DelegateTokenSilentInput, type DelegateTokenSilentResponse, type DelegationMode, type DelegationTokenResponse, type DoAnythingAttachOptions, type DoAnythingEvent, type DoAnythingRunOptions, type DoAnythingSnapshot, type GenAuthAccessTokenInput, type GenAuthAdminToken, type GenAuthAdminTokenOverrideInput, type GenAuthDelegationIntrospectionInput, type GenAuthUserCreateBatchInput, type GenAuthUserCreateInput, type GenAuthUserDeleteBatchInput, type GenAuthUserGetBatchInput, type GenAuthUserGetInput, type GenAuthUserListInput, type GenAuthUserUpdateInput, type Interaction, type InteractionEvidence, InteractionHandle, type InteractionPayloadByType, type InteractionSite, type InteractionStatus, InteractionStatuses, type InteractionType, InteractionTypes, type InteractiveDelegationResponse, type JsonObject, type MonitorEvent, type MonitorEventsOptions, MonitorHandle, type MonitorRunsOptions,
|
|
1362
|
+
export { type Action, type ActionKind, ActionKinds, type Artifact, type CaptureOptions, type ClarificationPayload, type CompleteDelegateAgentInput, type CompleteDelegateTokenInput, type ConfirmationPayload, type CoreRunEvent, type DeepResearchAttachOptions, type DeepResearchEvent, type DeepResearchRunOptions, type DelegateAgentInput, type DelegateAgentResponse, type DelegateAgentTokenResponse, type DelegateTokenInput, type DelegateTokenInteractiveInput, type DelegateTokenResponse, type DelegateTokenResult, type DelegateTokenSilentInput, type DelegateTokenSilentResponse, type DelegationMode, type DelegationTokenResponse, type DoAnythingAttachOptions, type DoAnythingEvent, type DoAnythingRunOptions, type DoAnythingSnapshot, type GenAuthAccessTokenInput, type GenAuthAdminToken, type GenAuthAdminTokenOverrideInput, type GenAuthDelegationIntrospectionInput, type GenAuthUserCreateBatchInput, type GenAuthUserCreateInput, type GenAuthUserDeleteBatchInput, type GenAuthUserGetBatchInput, type GenAuthUserGetInput, type GenAuthUserListInput, type GenAuthUserUpdateInput, type Interaction, type InteractionEvidence, InteractionHandle, type InteractionPayloadByType, type InteractionSite, type InteractionStatus, InteractionStatuses, type InteractionType, InteractionTypes, type InteractiveDelegationResponse, type JsonObject, type MonitorEvent, type MonitorEventsOptions, MonitorHandle, type MonitorRunsOptions, Qoni, QoniAuthError, QoniDelegationRequiredError, QoniError, type QoniErrorCode, type QoniErrorOptions, type QoniEvent, type QoniEventType, QoniEventTypes, type QoniMeta, type QoniOptions, QoniPermissionDeniedError, type QoniProduct, type QoniProductName, QoniProductScopes, QoniRateLimitError, type QoniResponse, type QoniRuntimeConfig, type QoniSSEEvent, QoniScopeBundles, QoniScopes, QoniTimeoutError, QoniTokenExpiredError, QoniUpstreamError, QoniValidationError, type RawRequestInput, type RunDoneData, type RunEvent, type RunEventsOptions, RunHandle, type RunImage, type RunLimits, type RunMessageData, type RunReconnectInfo, type RunResult, type RunScreenshotData, type RunStatus, type RunWaitOptions, type RuntimeTokenInput, type SessionRef, type SiteLoginPayload, type SnapshotAction, type SnapshotImage, type TakeControlPayload, type TokenInput, type TrackAttachOptions, type TrackCreateOptions, type WaitKind, type WaitPayload, type WebSearchAttachOptions, type WebSearchEvent, type WebSearchRunOptions, buildAuthorization, buildSignature, buildStringToSign };
|
package/dist/index.js
CHANGED
|
@@ -1909,8 +1909,8 @@ function renameKeys5(value, mapping) {
|
|
|
1909
1909
|
}
|
|
1910
1910
|
|
|
1911
1911
|
// src/client.ts
|
|
1912
|
-
var DEFAULT_QONI_HOST = "https://
|
|
1913
|
-
var
|
|
1912
|
+
var DEFAULT_QONI_HOST = "https://dashboard.qoni.ai";
|
|
1913
|
+
var Qoni = class {
|
|
1914
1914
|
constructor(options) {
|
|
1915
1915
|
this.options = options;
|
|
1916
1916
|
const accessKey = options.accessKey ?? options.accessKeyId;
|
|
@@ -2268,7 +2268,11 @@ var QoniAgentKit = class {
|
|
|
2268
2268
|
const finalEvent = parseSSEEvent(buffer);
|
|
2269
2269
|
if (finalEvent) yield finalEvent;
|
|
2270
2270
|
} finally {
|
|
2271
|
-
reader.
|
|
2271
|
+
await reader.cancel().catch(() => void 0);
|
|
2272
|
+
try {
|
|
2273
|
+
reader.releaseLock();
|
|
2274
|
+
} catch {
|
|
2275
|
+
}
|
|
2272
2276
|
}
|
|
2273
2277
|
}
|
|
2274
2278
|
async fetchWithTimeout(input, init, signal, opts) {
|
|
@@ -2302,8 +2306,8 @@ var QoniAgentKit = class {
|
|
|
2302
2306
|
async baseUrlFor(service) {
|
|
2303
2307
|
const explicit = this.explicitBaseUrlFor(service);
|
|
2304
2308
|
if (explicit) return explicit;
|
|
2305
|
-
const runtime = await this.runtimeConfig();
|
|
2306
2309
|
if (service === "qoni") return this.host;
|
|
2310
|
+
const runtime = await this.runtimeConfig();
|
|
2307
2311
|
const hostOrigin = originBaseUrl(this.host);
|
|
2308
2312
|
if (service === "genauth") return runtime.genauthBaseUrl ?? hostOrigin;
|
|
2309
2313
|
if (service === "gumem") return runtime.gumemBaseUrl ?? hostOrigin;
|
|
@@ -2843,8 +2847,7 @@ export {
|
|
|
2843
2847
|
InteractionStatuses,
|
|
2844
2848
|
InteractionTypes,
|
|
2845
2849
|
MonitorHandle,
|
|
2846
|
-
|
|
2847
|
-
QoniAgentKit,
|
|
2850
|
+
Qoni,
|
|
2848
2851
|
QoniAuthError,
|
|
2849
2852
|
QoniDelegationRequiredError,
|
|
2850
2853
|
QoniError,
|