Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@copass/core

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@copass/core - npm Package Compare versions

Comparing version
0.6.0
to
0.6.3
+50
-3
dist/index.cjs

@@ -849,2 +849,22 @@ "use strict";

}
/**
* Queue a `data_source_pull` job for this source (Tier-3 adapter pull).
*
* Targets `POST /sources/{sourceId}/pull`. The worker resolves the
* `CopassIdAdapter` from `DataSource.provider` and streams
* `adapter.pull()` into ontology ingestion.
*/
async pull(sandboxId, sourceId, request = {}) {
const body = {};
if (request.since !== void 0) {
body.since = request.since;
}
if (request.vault_only === true) {
body.vault_only = true;
}
return this.post(
`${base2(sandboxId)}/${sourceId}/pull`,
body
);
}
async pause(sandboxId, sourceId) {

@@ -863,2 +883,13 @@ return this.post(`${base2(sandboxId)}/${sourceId}/pause`);

/**
* Remove ingested knowledge for this data source (ontology, vectors,
* sandbox storage objects keyed under the source). Does not delete the
* `copass_data_sources` row unless `delete_source` is true.
*/
async purge(sandboxId, sourceId, body = {}) {
return this.post(
`${base2(sandboxId)}/${sourceId}/purge`,
body
);
}
/**
* Push bytes into the sandbox's ingestion pipeline attributed to this

@@ -956,5 +987,10 @@ * data source. This is the primary ingestion path — every event you send

var IntegrationsResource = class extends BaseResource {
/** List or search the app catalog for a sandbox. Apps with
* curated `pull_tool_calls` defaults are marked `supported`; only
* those can be passed to {@link connect}. */
/**
* List or search the app catalog for a sandbox.
*
* Every catalog entry has `supported: true`. Use
* `has_ingestion_defaults` to tell which slugs get curated firehose
* pull defaults after OAuth (vs agent-tools-only until a custom
* `pull_tool_calls` spec is added).
*/
async catalog(sandboxId, options = {}) {

@@ -1173,2 +1209,13 @@ const params = new URLSearchParams();

/**
* Start a persisted agent chat turn that continues after disconnect.
* Returns immediately with `run_id` (HTTP 202). Poll {@link getRun}
* until `status` is terminal; read `output_text` and `provider_session_id`.
*/
async startChatRun(sandboxId, slug, body) {
return this.post(
`${agentsBase(sandboxId)}/${slug}/invoke-async`,
body
);
}
/**
* List recent runs for an agent. Most-recent-first, cursor-paginated

@@ -1175,0 +1222,0 @@ * via `before` (a run_id from a prior page).

@@ -762,2 +762,22 @@ // src/auth/api-key.ts

}
/**
* Queue a `data_source_pull` job for this source (Tier-3 adapter pull).
*
* Targets `POST /sources/{sourceId}/pull`. The worker resolves the
* `CopassIdAdapter` from `DataSource.provider` and streams
* `adapter.pull()` into ontology ingestion.
*/
async pull(sandboxId, sourceId, request = {}) {
const body = {};
if (request.since !== void 0) {
body.since = request.since;
}
if (request.vault_only === true) {
body.vault_only = true;
}
return this.post(
`${base2(sandboxId)}/${sourceId}/pull`,
body
);
}
async pause(sandboxId, sourceId) {

@@ -776,2 +796,13 @@ return this.post(`${base2(sandboxId)}/${sourceId}/pause`);

/**
* Remove ingested knowledge for this data source (ontology, vectors,
* sandbox storage objects keyed under the source). Does not delete the
* `copass_data_sources` row unless `delete_source` is true.
*/
async purge(sandboxId, sourceId, body = {}) {
return this.post(
`${base2(sandboxId)}/${sourceId}/purge`,
body
);
}
/**
* Push bytes into the sandbox's ingestion pipeline attributed to this

@@ -869,5 +900,10 @@ * data source. This is the primary ingestion path — every event you send

var IntegrationsResource = class extends BaseResource {
/** List or search the app catalog for a sandbox. Apps with
* curated `pull_tool_calls` defaults are marked `supported`; only
* those can be passed to {@link connect}. */
/**
* List or search the app catalog for a sandbox.
*
* Every catalog entry has `supported: true`. Use
* `has_ingestion_defaults` to tell which slugs get curated firehose
* pull defaults after OAuth (vs agent-tools-only until a custom
* `pull_tool_calls` spec is added).
*/
async catalog(sandboxId, options = {}) {

@@ -1086,2 +1122,13 @@ const params = new URLSearchParams();

/**
* Start a persisted agent chat turn that continues after disconnect.
* Returns immediately with `run_id` (HTTP 202). Poll {@link getRun}
* until `status` is terminal; read `output_text` and `provider_session_id`.
*/
async startChatRun(sandboxId, slug, body) {
return this.post(
`${agentsBase(sandboxId)}/${slug}/invoke-async`,
body
);
}
/**
* List recent runs for an agent. Most-recent-first, cursor-paginated

@@ -1088,0 +1135,0 @@ * via `before` (a run_id from a prior page).

+2
-2
{
"name": "@copass/core",
"version": "0.6.0",
"version": "0.6.3",
"description": "Core client SDK for the Copass platform",

@@ -64,3 +64,3 @@ "publishConfig": {

},
"gitHead": "88ef6beece2b28cc74baad47fd9a461aee5ac84c"
"gitHead": "89abb7a320314feed66ff82fcb251f41ad2a70cb"
}

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display