@introspection-sdk/introspection-node 0.5.4 → 0.5.5
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/.turbo/turbo-build.log +1 -1
- package/dist/index.d.ts +2 -6
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -4
- package/dist/index.js.map +1 -1
- package/dist/resources/runtimes.d.ts +4 -74
- package/dist/resources/runtimes.d.ts.map +1 -1
- package/dist/resources/runtimes.js +5 -171
- package/dist/resources/runtimes.js.map +1 -1
- package/dist/runner.d.ts +1 -4
- package/dist/runner.d.ts.map +1 -1
- package/dist/runner.js +1 -4
- package/dist/runner.js.map +1 -1
- package/package.json +5 -5
- package/src/index.ts +9 -7
- package/src/resources/runtimes.ts +14 -216
- package/src/runner.ts +6 -4
- package/dist/runner-resources/conversations.d.ts +0 -73
- package/dist/runner-resources/conversations.d.ts.map +0 -1
- package/dist/runner-resources/conversations.js +0 -161
- package/dist/runner-resources/conversations.js.map +0 -1
- package/dist/runner-resources/files.d.ts +0 -45
- package/dist/runner-resources/files.d.ts.map +0 -1
- package/dist/runner-resources/files.js +0 -125
- package/dist/runner-resources/files.js.map +0 -1
- package/dist/runner-resources/shares.d.ts +0 -27
- package/dist/runner-resources/shares.d.ts.map +0 -1
- package/dist/runner-resources/shares.js +0 -50
- package/dist/runner-resources/shares.js.map +0 -1
- package/dist/runner-resources/tasks.d.ts +0 -45
- package/dist/runner-resources/tasks.d.ts.map +0 -1
- package/dist/runner-resources/tasks.js +0 -127
- package/dist/runner-resources/tasks.js.map +0 -1
- package/src/runner-resources/conversations.ts +0 -202
- package/src/runner-resources/files.ts +0 -162
- package/src/runner-resources/shares.ts +0 -62
- package/src/runner-resources/tasks.ts +0 -158
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
|
|
2
|
-
> @introspection-sdk/introspection-node@0.5.
|
|
2
|
+
> @introspection-sdk/introspection-node@0.5.5 build /home/runner/work/introspection-js-sdk/introspection-js-sdk/packages/introspection-node
|
|
3
3
|
> tsc
|
|
4
4
|
|
package/dist/index.d.ts
CHANGED
|
@@ -10,12 +10,8 @@
|
|
|
10
10
|
*/
|
|
11
11
|
export { IntrospectionClient } from "./client.js";
|
|
12
12
|
export type { AdvancedOptions, IntrospectionClientOptions, FeedbackOptions, UserTraits, } from "./types.js";
|
|
13
|
-
export {
|
|
14
|
-
export type { StartParams } from "
|
|
15
|
-
export { FilesApi, FileVersionsApi } from "./runner-resources/files.js";
|
|
16
|
-
export type { FileUploadBody } from "./runner-resources/files.js";
|
|
17
|
-
export { ConversationsApi, ConversationItemsApi, } from "./runner-resources/conversations.js";
|
|
18
|
-
export { SharesApi } from "./runner-resources/shares.js";
|
|
13
|
+
export { ConversationItemsApi, ConversationsApi, FileVersionsApi, FilesApi, RunHandle, SharesApi, TaskRunsApi, TasksApi, } from "@introspection-sdk/http";
|
|
14
|
+
export type { FileUploadBody, StartParams } from "@introspection-sdk/http";
|
|
19
15
|
export { HttpClient } from "./http.js";
|
|
20
16
|
export type { ResolvedApiConfig } from "./http.js";
|
|
21
17
|
export { parseSse } from "./streaming.js";
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAGH,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAGlD,YAAY,EACV,eAAe,EACf,0BAA0B,EAC1B,eAAe,EACf,UAAU,GACX,MAAM,YAAY,CAAC;AAIpB,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAGH,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAGlD,YAAY,EACV,eAAe,EACf,0BAA0B,EAC1B,eAAe,EACf,UAAU,GACX,MAAM,YAAY,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.js
CHANGED
|
@@ -12,10 +12,7 @@
|
|
|
12
12
|
export { IntrospectionClient } from "./client.js";
|
|
13
13
|
// Runner-bound REST namespaces (runner.tasks, runner.files,
|
|
14
14
|
// runner.conversations) + HTTP/SSE.
|
|
15
|
-
export {
|
|
16
|
-
export { FilesApi, FileVersionsApi } from "./runner-resources/files.js";
|
|
17
|
-
export { ConversationsApi, ConversationItemsApi, } from "./runner-resources/conversations.js";
|
|
18
|
-
export { SharesApi } from "./runner-resources/shares.js";
|
|
15
|
+
export { ConversationItemsApi, ConversationsApi, FileVersionsApi, FilesApi, RunHandle, SharesApi, TaskRunsApi, TasksApi, } from "@introspection-sdk/http";
|
|
19
16
|
export { HttpClient } from "./http.js";
|
|
20
17
|
export { parseSse } from "./streaming.js";
|
|
21
18
|
// Runner + CP resources.
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,eAAe;AACf,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAUlD,4DAA4D;AAC5D,oCAAoC;AACpC,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,eAAe;AACf,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAUlD,4DAA4D;AAC5D,oCAAoC;AACpC,OAAO,EACL,oBAAoB,EACpB,gBAAgB,EAChB,eAAe,EACf,QAAQ,EACR,SAAS,EACT,SAAS,EACT,WAAW,EACX,QAAQ,GACT,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAEvC,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAE1C,yBAAyB;AACzB,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAErC,OAAO,EACL,WAAW,EACX,aAAa,EACb,cAAc,EACd,MAAM,GACP,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EACL,cAAc,EACd,gBAAgB,EAChB,iBAAiB,GAClB,MAAM,4BAA4B,CAAC;AAEpC,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAgEnE,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,EACL,qBAAqB,EACrB,mBAAmB,EACnB,sBAAsB,EACtB,kBAAkB,EAClB,aAAa,EACb,aAAa,EACb,eAAe,EACf,cAAc,EACd,uBAAuB,EACvB,WAAW,EACX,YAAY,EACZ,oBAAoB,GACrB,MAAM,0BAA0B,CAAC;AAiBlC,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAExD,kEAAkE;AAClE,OAAO,EACL,+BAA+B,EAC/B,gCAAgC,EAChC,8BAA8B,EAC9B,qCAAqC,GACtC,MAAM,wBAAwB,CAAC;AAShC,2DAA2D;AAC3D,OAAO,EACL,oCAAoC,EACpC,uCAAuC,EACvC,uCAAuC,EACvC,mCAAmC,GACpC,MAAM,wBAAwB,CAAC"}
|
|
@@ -1,82 +1,12 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { RuntimeHandle, RuntimesClient, isUuid, type RuntimeHandleFactory as SharedRuntimeHandleFactory } from "@introspection-sdk/http";
|
|
2
2
|
import type { HttpClient } from "../http.js";
|
|
3
3
|
import type { IntrospectionClient } from "../client.js";
|
|
4
|
-
import { Paginator } from "../pagination.js";
|
|
5
4
|
import { Runner } from "../runner.js";
|
|
6
|
-
export
|
|
7
|
-
export
|
|
8
|
-
identity?: {
|
|
9
|
-
user_id?: string;
|
|
10
|
-
anonymous_id?: string;
|
|
11
|
-
conversation_id?: string;
|
|
12
|
-
};
|
|
13
|
-
ttl_seconds?: number;
|
|
14
|
-
recipe_id?: Uuid;
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* Programmatic CRUD for `/v1/runtimes` on the CP. Mounted on the
|
|
18
|
-
* IntrospectionClient as a callable hybrid (see `RuntimeHandleFactory`).
|
|
19
|
-
*/
|
|
20
|
-
export declare class RuntimesApi {
|
|
21
|
-
private readonly http;
|
|
5
|
+
export { RuntimeHandle, isUuid };
|
|
6
|
+
export declare class RuntimesApi extends RuntimesClient<Runner> {
|
|
22
7
|
private readonly client;
|
|
23
8
|
constructor(http: HttpClient, client: IntrospectionClient);
|
|
24
|
-
/**
|
|
25
|
-
* List runtimes matching `params`. `await` the result for the first
|
|
26
|
-
* page, or `for await` it to stream every runtime across pages (fetched
|
|
27
|
-
* lazily — `limit` sets the page size, `next` the starting cursor; stop
|
|
28
|
-
* early to stop fetching).
|
|
29
|
-
*/
|
|
30
|
-
list(params: RuntimeListParams): Paginator<Runtime>;
|
|
31
|
-
get(id: Uuid, params: {
|
|
32
|
-
project_id?: Uuid;
|
|
33
|
-
}): Promise<Runtime>;
|
|
34
|
-
create(input: RuntimeCreate): Promise<Runtime>;
|
|
35
|
-
update(id: Uuid, input: RuntimeUpdate): Promise<Runtime>;
|
|
36
|
-
delete(id: Uuid): Promise<void>;
|
|
37
|
-
/** Resolve a name to a runtime by querying `/v1/runtimes?name=…`. */
|
|
38
|
-
resolveByName(name: string, projectId?: Uuid): Promise<Runtime>;
|
|
39
|
-
/** POST `/v1/runtimes/{id}/run` and wrap the result in a `Runner`. */
|
|
40
|
-
runById(id: Uuid, opts?: RunRequest): Promise<Runner>;
|
|
41
|
-
activateById(id: Uuid, params?: {
|
|
42
|
-
project_id?: Uuid;
|
|
43
|
-
}): Promise<Runtime>;
|
|
44
|
-
}
|
|
45
|
-
/**
|
|
46
|
-
* Handle returned by `client.runtimes(idOrName)`. Resolves the underlying
|
|
47
|
-
* runtime id lazily — if you pass a UUID, no extra lookup happens; if you
|
|
48
|
-
* pass a name, the first call that needs the id will hit
|
|
49
|
-
* `/v1/runtimes?name=…`.
|
|
50
|
-
*/
|
|
51
|
-
export declare class RuntimeHandle {
|
|
52
|
-
private readonly api;
|
|
53
|
-
private readonly client;
|
|
54
|
-
private readonly idOrName;
|
|
55
|
-
private resolvedId;
|
|
56
|
-
private readonly pinnedRecipeId;
|
|
57
|
-
constructor(api: RuntimesApi, client: IntrospectionClient, idOrName: string, pinnedRecipeId?: Uuid | null);
|
|
58
|
-
private resolveId;
|
|
59
|
-
/**
|
|
60
|
-
* Pin to a specific recipe — canary a previous version. Subsequent
|
|
61
|
-
* `.run()` calls on the returned handle open a runner against the
|
|
62
|
-
* runtime row in this name whose `recipe_id` matches `recipe.id`
|
|
63
|
-
* (resolved server-side by CP).
|
|
64
|
-
*
|
|
65
|
-
* Returns a new child {@link RuntimeHandle}; the original handle is
|
|
66
|
-
* unaffected. Accepts a {@link Recipe} object (uses `.id`) or a
|
|
67
|
-
* recipe id string.
|
|
68
|
-
*/
|
|
69
|
-
pin(recipe: Recipe | string): RuntimeHandle;
|
|
70
|
-
run(opts?: RunRequest): Promise<Runner>;
|
|
71
|
-
activate(params?: {
|
|
72
|
-
projectId?: Uuid;
|
|
73
|
-
}): Promise<Runtime>;
|
|
74
9
|
}
|
|
75
|
-
|
|
76
|
-
* Callable hybrid: `client.runtimes` exposes the CRUD methods of
|
|
77
|
-
* `RuntimesApi` AND can be invoked as a function returning a
|
|
78
|
-
* `RuntimeHandle`. Realised by `attachRuntimes` below.
|
|
79
|
-
*/
|
|
80
|
-
export type RuntimeHandleFactory = (idOrName: string) => RuntimeHandle;
|
|
10
|
+
export type RuntimeHandleFactory = SharedRuntimeHandleFactory<Runner>;
|
|
81
11
|
export declare function attachRuntimes(client: IntrospectionClient, http: HttpClient): RuntimesApi & RuntimeHandleFactory;
|
|
82
12
|
//# sourceMappingURL=runtimes.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtimes.d.ts","sourceRoot":"","sources":["../../src/resources/runtimes.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"runtimes.d.ts","sourceRoot":"","sources":["../../src/resources/runtimes.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EACb,cAAc,EAEd,MAAM,EACN,KAAK,oBAAoB,IAAI,0BAA0B,EACxD,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAC7C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAEtC,OAAO,EAAE,aAAa,EAAE,MAAM,EAAE,CAAC;AAEjC,qBAAa,WAAY,SAAQ,cAAc,CAAC,MAAM,CAAC;IAGnD,OAAO,CAAC,QAAQ,CAAC,MAAM;gBADvB,IAAI,EAAE,UAAU,EACC,MAAM,EAAE,mBAAmB;CAI/C;AAED,MAAM,MAAM,oBAAoB,GAAG,0BAA0B,CAAC,MAAM,CAAC,CAAC;AAEtE,wBAAgB,cAAc,CAC5B,MAAM,EAAE,mBAAmB,EAC3B,IAAI,EAAE,UAAU,GACf,WAAW,GAAG,oBAAoB,CAGpC"}
|
|
@@ -1,181 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { cursorPaginate } from "../pagination.js";
|
|
1
|
+
import { RuntimeHandle, RuntimesClient, attachRuntimes as attachSharedRuntimes, isUuid, } from "@introspection-sdk/http";
|
|
3
2
|
import { Runner } from "../runner.js";
|
|
4
|
-
|
|
5
|
-
export
|
|
6
|
-
return UUID_RE.test(value);
|
|
7
|
-
}
|
|
8
|
-
function toRunBody(opts) {
|
|
9
|
-
if (!opts)
|
|
10
|
-
return undefined;
|
|
11
|
-
const out = {};
|
|
12
|
-
if (opts.identity)
|
|
13
|
-
out.identity = opts.identity;
|
|
14
|
-
if (opts.ttl_seconds !== undefined)
|
|
15
|
-
out.ttl_seconds = opts.ttl_seconds;
|
|
16
|
-
if (opts.recipe_id !== undefined)
|
|
17
|
-
out.recipe_id = opts.recipe_id;
|
|
18
|
-
return out;
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* Programmatic CRUD for `/v1/runtimes` on the CP. Mounted on the
|
|
22
|
-
* IntrospectionClient as a callable hybrid (see `RuntimeHandleFactory`).
|
|
23
|
-
*/
|
|
24
|
-
export class RuntimesApi {
|
|
25
|
-
http;
|
|
3
|
+
export { RuntimeHandle, isUuid };
|
|
4
|
+
export class RuntimesApi extends RuntimesClient {
|
|
26
5
|
client;
|
|
27
6
|
constructor(http, client) {
|
|
28
|
-
this.
|
|
29
|
-
this.client = client;
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* List runtimes matching `params`. `await` the result for the first
|
|
33
|
-
* page, or `for await` it to stream every runtime across pages (fetched
|
|
34
|
-
* lazily — `limit` sets the page size, `next` the starting cursor; stop
|
|
35
|
-
* early to stop fetching).
|
|
36
|
-
*/
|
|
37
|
-
list(params) {
|
|
38
|
-
return cursorPaginate((next) => this.http.request({
|
|
39
|
-
method: "GET",
|
|
40
|
-
path: "/v1/runtimes",
|
|
41
|
-
query: { ...params, next },
|
|
42
|
-
}), params.next);
|
|
43
|
-
}
|
|
44
|
-
get(id, params) {
|
|
45
|
-
return this.http.request({
|
|
46
|
-
method: "GET",
|
|
47
|
-
path: `/v1/runtimes/${encodeURIComponent(id)}`,
|
|
48
|
-
query: params,
|
|
49
|
-
});
|
|
50
|
-
}
|
|
51
|
-
create(input) {
|
|
52
|
-
return this.http.request({
|
|
53
|
-
method: "POST",
|
|
54
|
-
path: "/v1/runtimes",
|
|
55
|
-
body: input,
|
|
56
|
-
});
|
|
57
|
-
}
|
|
58
|
-
update(id, input) {
|
|
59
|
-
return this.http.request({
|
|
60
|
-
method: "PATCH",
|
|
61
|
-
path: `/v1/runtimes/${encodeURIComponent(id)}`,
|
|
62
|
-
body: input,
|
|
63
|
-
});
|
|
64
|
-
}
|
|
65
|
-
delete(id) {
|
|
66
|
-
return this.http.request({
|
|
67
|
-
method: "DELETE",
|
|
68
|
-
path: `/v1/runtimes/${encodeURIComponent(id)}`,
|
|
69
|
-
expect: "empty",
|
|
70
|
-
});
|
|
71
|
-
}
|
|
72
|
-
/** Resolve a name to a runtime by querying `/v1/runtimes?name=…`. */
|
|
73
|
-
async resolveByName(name, projectId) {
|
|
74
|
-
for await (const r of this.list({
|
|
75
|
-
project_id: projectId,
|
|
76
|
-
name,
|
|
77
|
-
limit: 2,
|
|
78
|
-
})) {
|
|
79
|
-
if (r.name === name)
|
|
80
|
-
return r;
|
|
81
|
-
}
|
|
82
|
-
throw new NotFoundError({
|
|
83
|
-
message: `Runtime '${name}' not found${projectId ? ` in project ${projectId}` : ""}`,
|
|
84
|
-
status: 404,
|
|
85
|
-
code: "not_found",
|
|
86
|
-
});
|
|
87
|
-
}
|
|
88
|
-
/** POST `/v1/runtimes/{id}/run` and wrap the result in a `Runner`. */
|
|
89
|
-
async runById(id, opts) {
|
|
90
|
-
const spec = await this.http.request({
|
|
91
|
-
method: "POST",
|
|
92
|
-
path: `/v1/runtimes/${encodeURIComponent(id)}/run`,
|
|
93
|
-
body: toRunBody(opts) ?? {},
|
|
94
|
-
});
|
|
95
|
-
const source = {
|
|
96
|
-
kind: "runtime",
|
|
97
|
-
id,
|
|
98
|
-
options: opts,
|
|
99
|
-
};
|
|
100
|
-
return new Runner(this.client, source, spec);
|
|
101
|
-
}
|
|
102
|
-
async activateById(id, params) {
|
|
103
|
-
return this.http.request({
|
|
104
|
-
method: "POST",
|
|
105
|
-
path: `/v1/runtimes/${encodeURIComponent(id)}/activate`,
|
|
106
|
-
query: params,
|
|
107
|
-
body: {},
|
|
108
|
-
});
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
/**
|
|
112
|
-
* Handle returned by `client.runtimes(idOrName)`. Resolves the underlying
|
|
113
|
-
* runtime id lazily — if you pass a UUID, no extra lookup happens; if you
|
|
114
|
-
* pass a name, the first call that needs the id will hit
|
|
115
|
-
* `/v1/runtimes?name=…`.
|
|
116
|
-
*/
|
|
117
|
-
export class RuntimeHandle {
|
|
118
|
-
api;
|
|
119
|
-
client;
|
|
120
|
-
idOrName;
|
|
121
|
-
resolvedId;
|
|
122
|
-
pinnedRecipeId;
|
|
123
|
-
constructor(api, client, idOrName, pinnedRecipeId = null) {
|
|
124
|
-
this.api = api;
|
|
7
|
+
super(http, (source, spec) => new Runner(this.client, source, spec));
|
|
125
8
|
this.client = client;
|
|
126
|
-
this.idOrName = idOrName;
|
|
127
|
-
this.resolvedId = isUuid(idOrName) ? idOrName : null;
|
|
128
|
-
this.pinnedRecipeId = pinnedRecipeId;
|
|
129
|
-
}
|
|
130
|
-
async resolveId() {
|
|
131
|
-
if (this.resolvedId)
|
|
132
|
-
return this.resolvedId;
|
|
133
|
-
// The project is scoped by the API key server-side — no client-level
|
|
134
|
-
// project to thread through the name lookup.
|
|
135
|
-
const runtime = await this.api.resolveByName(this.idOrName);
|
|
136
|
-
this.resolvedId = runtime.id;
|
|
137
|
-
return runtime.id;
|
|
138
|
-
}
|
|
139
|
-
/**
|
|
140
|
-
* Pin to a specific recipe — canary a previous version. Subsequent
|
|
141
|
-
* `.run()` calls on the returned handle open a runner against the
|
|
142
|
-
* runtime row in this name whose `recipe_id` matches `recipe.id`
|
|
143
|
-
* (resolved server-side by CP).
|
|
144
|
-
*
|
|
145
|
-
* Returns a new child {@link RuntimeHandle}; the original handle is
|
|
146
|
-
* unaffected. Accepts a {@link Recipe} object (uses `.id`) or a
|
|
147
|
-
* recipe id string.
|
|
148
|
-
*/
|
|
149
|
-
pin(recipe) {
|
|
150
|
-
const recipeId = typeof recipe === "string" ? recipe : recipe.id;
|
|
151
|
-
return new RuntimeHandle(this.api, this.client, this.idOrName, recipeId);
|
|
152
|
-
}
|
|
153
|
-
async run(opts) {
|
|
154
|
-
const id = await this.resolveId();
|
|
155
|
-
const merged = this.pinnedRecipeId !== null
|
|
156
|
-
? { ...(opts ?? {}), recipe_id: this.pinnedRecipeId }
|
|
157
|
-
: opts;
|
|
158
|
-
return this.api.runById(id, merged);
|
|
159
|
-
}
|
|
160
|
-
async activate(params) {
|
|
161
|
-
const id = await this.resolveId();
|
|
162
|
-
return this.api.activateById(id, { project_id: params?.projectId });
|
|
163
9
|
}
|
|
164
10
|
}
|
|
165
11
|
export function attachRuntimes(client, http) {
|
|
166
12
|
const api = new RuntimesApi(http, client);
|
|
167
|
-
|
|
168
|
-
// Mount the API methods on the factory function. Using bound copies so
|
|
169
|
-
// the methods can be invoked off the proxy without losing `this`.
|
|
170
|
-
const hybrid = factory;
|
|
171
|
-
hybrid.list = api.list.bind(api);
|
|
172
|
-
hybrid.get = api.get.bind(api);
|
|
173
|
-
hybrid.create = api.create.bind(api);
|
|
174
|
-
hybrid.update = api.update.bind(api);
|
|
175
|
-
hybrid.delete = api.delete.bind(api);
|
|
176
|
-
hybrid.resolveByName = api.resolveByName.bind(api);
|
|
177
|
-
hybrid.runById = api.runById.bind(api);
|
|
178
|
-
hybrid.activateById = api.activateById.bind(api);
|
|
179
|
-
return hybrid;
|
|
13
|
+
return attachSharedRuntimes(api);
|
|
180
14
|
}
|
|
181
15
|
//# sourceMappingURL=runtimes.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtimes.js","sourceRoot":"","sources":["../../src/resources/runtimes.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"runtimes.js","sourceRoot":"","sources":["../../src/resources/runtimes.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EACb,cAAc,EACd,cAAc,IAAI,oBAAoB,EACtC,MAAM,GAEP,MAAM,yBAAyB,CAAC;AAGjC,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAEtC,OAAO,EAAE,aAAa,EAAE,MAAM,EAAE,CAAC;AAEjC,MAAM,OAAO,WAAY,SAAQ,cAAsB;IAGlC;IAFnB,YACE,IAAgB,EACC,MAA2B;QAE5C,KAAK,CAAC,IAAI,EAAE,CAAC,MAAM,EAAE,IAAI,EAAE,EAAE,CAAC,IAAI,MAAM,CAAC,IAAI,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,CAAC,CAAC,CAAC;QAFpD,WAAM,GAAN,MAAM,CAAqB;IAG9C,CAAC;CACF;AAID,MAAM,UAAU,cAAc,CAC5B,MAA2B,EAC3B,IAAgB;IAEhB,MAAM,GAAG,GAAG,IAAI,WAAW,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;IAC1C,OAAO,oBAAoB,CAAC,GAAG,CAAuC,CAAC;AACzE,CAAC"}
|
package/dist/runner.d.ts
CHANGED
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
import { type RunnerContext, type RunnerDeployment, type RunnerSpec, type RunRequest, type Uuid } from "@introspection-sdk/types";
|
|
2
|
-
import { TasksApi } from "
|
|
3
|
-
import { FilesApi } from "./runner-resources/files.js";
|
|
4
|
-
import { ConversationsApi } from "./runner-resources/conversations.js";
|
|
5
|
-
import { SharesApi } from "./runner-resources/shares.js";
|
|
2
|
+
import { ConversationsApi, FilesApi, SharesApi, TasksApi } from "@introspection-sdk/http";
|
|
6
3
|
import type { IntrospectionClient } from "./client.js";
|
|
7
4
|
/**
|
|
8
5
|
* Where this Runner came from, so `refresh()` can call CP again with the
|
package/dist/runner.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runner.d.ts","sourceRoot":"","sources":["../src/runner.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,aAAa,EAClB,KAAK,gBAAgB,EACrB,KAAK,UAAU,EACf,KAAK,UAAU,EACf,KAAK,IAAI,EACV,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"runner.d.ts","sourceRoot":"","sources":["../src/runner.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,aAAa,EAClB,KAAK,gBAAgB,EACrB,KAAK,UAAU,EACf,KAAK,UAAU,EACf,KAAK,IAAI,EACV,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,gBAAgB,EAChB,QAAQ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IAAI,CAAC;IAgB9B;;;;;;OAMG;IACG,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAM5B,OAAO,CAAC,SAAS;IAUjB;;;;;OAKG;IACH,OAAO,CAAC,WAAW;IAiBnB,OAAO,CAAC,UAAU;YAUJ,gBAAgB;CAgB/B"}
|
package/dist/runner.js
CHANGED
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import { RunnerExpiredError, } from "@introspection-sdk/types";
|
|
2
|
+
import { ConversationsApi, FilesApi, SharesApi, TasksApi, } from "@introspection-sdk/http";
|
|
2
3
|
import { HttpClient } from "./http.js";
|
|
3
|
-
import { TasksApi } from "./runner-resources/tasks.js";
|
|
4
|
-
import { FilesApi } from "./runner-resources/files.js";
|
|
5
|
-
import { ConversationsApi } from "./runner-resources/conversations.js";
|
|
6
|
-
import { SharesApi } from "./runner-resources/shares.js";
|
|
7
4
|
/**
|
|
8
5
|
* Live handle to a Data Plane sandbox. Holds the bearer JWT, the DP
|
|
9
6
|
* endpoint URL, and the runtime/experiment context, and exposes the
|
package/dist/runner.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runner.js","sourceRoot":"","sources":["../src/runner.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,GAMnB,MAAM,0BAA0B,CAAC;AAClC,OAAO,
|
|
1
|
+
{"version":3,"file":"runner.js","sourceRoot":"","sources":["../src/runner.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,GAMnB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,gBAAgB,EAChB,QAAQ,EACR,SAAS,EACT,QAAQ,GACT,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAYvC;;;;;;;;;;GAUG;AACH,MAAM,OAAO,MAAM;IAYE;IACA;IAZX,IAAI,CAAa;IACjB,IAAI,CAAa;IACjB,MAAM,GAAG,KAAK,CAAC;IAEvB,uBAAuB;IACd,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Q;QAAE,GAAG,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC;IAChD,IAAI,IAAI,CAAC,MAAM;QAAE,GAAG,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC;IAC1C,IAAI,IAAI,CAAC,WAAW,KAAK,SAAS;QAAE,GAAG,CAAC,WAAW,GAAG,IAAI,CAAC,WAAW,CAAC;IACvE,OAAO,GAAG,CAAC;AACb,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@introspection-sdk/introspection-node",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.5",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"description": "Introspection observability SDK for Node.js",
|
|
6
6
|
"engines": {
|
|
@@ -139,10 +139,10 @@
|
|
|
139
139
|
"@opentelemetry/api": "^1.9.1",
|
|
140
140
|
"https-proxy-agent": "^7.0.6",
|
|
141
141
|
"proxy-from-env": "^2.1.0",
|
|
142
|
-
"@introspection-sdk/
|
|
143
|
-
"@introspection-sdk/
|
|
144
|
-
"@introspection-sdk/introspection-pi": "0.5.
|
|
145
|
-
"@introspection-sdk/introspection-proxy": "0.5.
|
|
142
|
+
"@introspection-sdk/types": "0.5.5",
|
|
143
|
+
"@introspection-sdk/http": "0.5.5",
|
|
144
|
+
"@introspection-sdk/introspection-pi": "0.5.5",
|
|
145
|
+
"@introspection-sdk/introspection-proxy": "0.5.5"
|
|
146
146
|
},
|
|
147
147
|
"scripts": {
|
|
148
148
|
"lint": "eslint . --max-warnings 0",
|
package/src/index.ts
CHANGED
|
@@ -22,15 +22,17 @@ export type {
|
|
|
22
22
|
|
|
23
23
|
// Runner-bound REST namespaces (runner.tasks, runner.files,
|
|
24
24
|
// runner.conversations) + HTTP/SSE.
|
|
25
|
-
export { TasksApi, TaskRunsApi, RunHandle } from "./runner-resources/tasks.js";
|
|
26
|
-
export type { StartParams } from "./runner-resources/tasks.js";
|
|
27
|
-
export { FilesApi, FileVersionsApi } from "./runner-resources/files.js";
|
|
28
|
-
export type { FileUploadBody } from "./runner-resources/files.js";
|
|
29
25
|
export {
|
|
30
|
-
ConversationsApi,
|
|
31
26
|
ConversationItemsApi,
|
|
32
|
-
|
|
33
|
-
|
|
27
|
+
ConversationsApi,
|
|
28
|
+
FileVersionsApi,
|
|
29
|
+
FilesApi,
|
|
30
|
+
RunHandle,
|
|
31
|
+
SharesApi,
|
|
32
|
+
TaskRunsApi,
|
|
33
|
+
TasksApi,
|
|
34
|
+
} from "@introspection-sdk/http";
|
|
35
|
+
export type { FileUploadBody, StartParams } from "@introspection-sdk/http";
|
|
34
36
|
export { HttpClient } from "./http.js";
|
|
35
37
|
export type { ResolvedApiConfig } from "./http.js";
|
|
36
38
|
export { parseSse } from "./streaming.js";
|