@xiashe/sdk 0.1.35-superconnector.2 → 0.1.36
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/README.md +1 -1
- package/index.mjs +24 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -18,7 +18,7 @@ Version `0.1.35-superconnector.1` adds user-owned non-OAuth credential connectio
|
|
|
18
18
|
|
|
19
19
|
Runtime exports include `installRuntimePackage`, `runRuntimeScript`, `createRuntimeAgentSession`, `createRuntimeAgentHost`, `serveRuntimeScriptHost`, `serveRuntimeMcp`, `retryRuntimeResults` and `retryRuntimeHostResults`. Script execution requires Docker and a pre-pulled official Node image pinned by SHA-256. Runtime container helper files are included in the package.
|
|
20
20
|
|
|
21
|
-
This is a local test prerelease. Real non-OAuth staging acceptance and native interaction validation remain release gates for this delivery. See the repository's `docs/superconnector
|
|
21
|
+
This is a local test prerelease. Real non-OAuth staging acceptance and native interaction validation remain release gates for this delivery. See the repository's `docs/platform/superconnector/development.md` for setup and acceptance procedures.
|
|
22
22
|
|
|
23
23
|
`createRuntimeRelease({ ..., signature })` optionally imports a public BYOA v1 P-256 package proof. The backend verifies every delivered file and preserves existing creator ownership and runtime review. Private signing material is rejected before transmission. Sign the exact filtered package; source-package proofs cannot survive changed files.
|
|
24
24
|
|
package/index.mjs
CHANGED
|
@@ -13,7 +13,7 @@ export { createRuntimeAgentHost } from './runtimeAgentHost.mjs';
|
|
|
13
13
|
export { createRuntimeAgentSession } from './runtimeAgent.mjs';
|
|
14
14
|
export { serveRuntimeMcp } from './runtimeMcp.mjs';
|
|
15
15
|
|
|
16
|
-
export const VERSION = '0.1.
|
|
16
|
+
export const VERSION = '0.1.36';
|
|
17
17
|
export { probeRuntimeGateway, runtimeSetupTemplate } from './runtimeSetup.mjs';
|
|
18
18
|
|
|
19
19
|
export const DEFAULTS = {
|
|
@@ -452,6 +452,29 @@ export class XiasheClient {
|
|
|
452
452
|
return this.query(api.users.getById, this.authArgs({ userId: this.profile.session.userId }));
|
|
453
453
|
}
|
|
454
454
|
|
|
455
|
+
assertNumbersEnvironment() {
|
|
456
|
+
const pairs = new Map([
|
|
457
|
+
['https://actions.xiashe.chat', 'https://api.xiashe.chat'],
|
|
458
|
+
['https://actions.projectphenix.site', 'https://api.projectphenix.site']
|
|
459
|
+
]);
|
|
460
|
+
const actions = normalizeBaseUrl(this.profile.actionsUrl);
|
|
461
|
+
if (this.profile.market !== 'cn' || !pairs.has(actions) || pairs.get(actions) !== normalizeBaseUrl(this.profile.convexUrl)) {
|
|
462
|
+
throw new XiasheError('Skill numbers require matching official XiaShe backend and actions URLs.', { code: 'NUMBER_ENVIRONMENT_INVALID' });
|
|
463
|
+
}
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
async resolveSkillNumber(number) {
|
|
467
|
+
this.assertNumbersEnvironment();
|
|
468
|
+
return this.query(api.skillNumbers.resolve, { number: String(number) });
|
|
469
|
+
}
|
|
470
|
+
async acquireSkillNumber(number) {
|
|
471
|
+
this.assertNumbersEnvironment();
|
|
472
|
+
return this.mutation(api.skillNumbers.acquire, this.authArgs({ number: String(number) }));
|
|
473
|
+
}
|
|
474
|
+
async setSkillNumberPublic(registryEntryId, enabled) {
|
|
475
|
+
this.assertNumbersEnvironment();
|
|
476
|
+
return this.mutation(api.skillNumbers.setPublic, this.authArgs({ registryEntryId, enabled }));
|
|
477
|
+
}
|
|
455
478
|
async listConnections() {
|
|
456
479
|
return this.query(api.connections.listForUser, this.authArgs());
|
|
457
480
|
}
|