@owlmeans/viable-sdk 0.1.19-rc.0 → 0.1.19
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/agent-meta/manifest.json +2 -2
- package/agent-meta/skills/viable-sdk/SKILL.md +123 -13
- package/build/api/collect/types.d.ts +12 -1
- package/build/api/collect/types.d.ts.map +1 -1
- package/build/api/collect.d.ts.map +1 -1
- package/build/api/collect.js +18 -1
- package/build/api/collect.js.map +1 -1
- package/build/api/consts.local.d.ts +2 -0
- package/build/api/consts.local.d.ts.map +1 -1
- package/build/api/consts.local.js +2 -0
- package/build/api/consts.local.js.map +1 -1
- package/build/api/remote.d.ts.map +1 -1
- package/build/api/remote.js +13 -0
- package/build/api/remote.js.map +1 -1
- package/build/context/index.d.ts.map +1 -1
- package/build/context/index.js +7 -3
- package/build/context/index.js.map +1 -1
- package/build/context/types.d.ts +7 -1
- package/build/context/types.d.ts.map +1 -1
- package/build/session/consts.local.d.ts +2 -0
- package/build/session/consts.local.d.ts.map +1 -1
- package/build/session/consts.local.js +2 -0
- package/build/session/consts.local.js.map +1 -1
- package/build/session/index.d.ts.map +1 -1
- package/build/session/index.js +18 -1
- package/build/session/index.js.map +1 -1
- package/build/session/types.d.ts +7 -0
- package/build/session/types.d.ts.map +1 -1
- package/build/tools/catalogue.d.ts.map +1 -1
- package/build/tools/catalogue.js +13 -2
- package/build/tools/catalogue.js.map +1 -1
- package/build/tools/consts.d.ts +9 -1
- package/build/tools/consts.d.ts.map +1 -1
- package/build/tools/consts.js +16 -0
- package/build/tools/consts.js.map +1 -1
- package/build/tools/consts.local.d.ts +1 -9
- package/build/tools/consts.local.d.ts.map +1 -1
- package/build/tools/consts.local.js +2 -16
- package/build/tools/consts.local.js.map +1 -1
- package/build/tools/index.d.ts +6 -0
- package/build/tools/index.d.ts.map +1 -1
- package/build/tools/index.js +4 -0
- package/build/tools/index.js.map +1 -1
- package/build/tools/instructions/types.d.ts +21 -0
- package/build/tools/instructions/types.d.ts.map +1 -0
- package/build/tools/instructions/types.js +2 -0
- package/build/tools/instructions/types.js.map +1 -0
- package/build/tools/instructions.d.ts +4 -0
- package/build/tools/instructions.d.ts.map +1 -0
- package/build/tools/instructions.js +143 -0
- package/build/tools/instructions.js.map +1 -0
- package/build/tools/mcp.d.ts +2 -6
- package/build/tools/mcp.d.ts.map +1 -1
- package/build/tools/mcp.js +36 -122
- package/build/tools/mcp.js.map +1 -1
- package/build/tools/platform.d.ts.map +1 -1
- package/build/tools/platform.js +13 -4
- package/build/tools/platform.js.map +1 -1
- package/build/tools/profile/consts.d.ts +8 -0
- package/build/tools/profile/consts.d.ts.map +1 -0
- package/build/tools/profile/consts.js +10 -0
- package/build/tools/profile/consts.js.map +1 -0
- package/build/tools/profile/listing/consts.local.d.ts +44 -0
- package/build/tools/profile/listing/consts.local.d.ts.map +1 -0
- package/build/tools/profile/listing/consts.local.js +612 -0
- package/build/tools/profile/listing/consts.local.js.map +1 -0
- package/build/tools/profile/listing/presentation.d.ts +12 -0
- package/build/tools/profile/listing/presentation.d.ts.map +1 -0
- package/build/tools/profile/listing/presentation.js +38 -0
- package/build/tools/profile/listing/presentation.js.map +1 -0
- package/build/tools/profile/listing/text.d.ts +13 -0
- package/build/tools/profile/listing/text.d.ts.map +1 -0
- package/build/tools/profile/listing/text.js +51 -0
- package/build/tools/profile/listing/text.js.map +1 -0
- package/build/tools/profile/listing/types.d.ts +18 -0
- package/build/tools/profile/listing/types.d.ts.map +1 -0
- package/build/tools/profile/listing/types.js +2 -0
- package/build/tools/profile/listing/types.js.map +1 -0
- package/build/tools/profile/listing.d.ts +18 -0
- package/build/tools/profile/listing.d.ts.map +1 -0
- package/build/tools/profile/listing.js +66 -0
- package/build/tools/profile/listing.js.map +1 -0
- package/build/tools/profile/presentation/platform/account.d.ts +4 -0
- package/build/tools/profile/presentation/platform/account.d.ts.map +1 -0
- package/build/tools/profile/presentation/platform/account.js +46 -0
- package/build/tools/profile/presentation/platform/account.js.map +1 -0
- package/build/tools/profile/presentation/platform/consts.d.ts +541 -0
- package/build/tools/profile/presentation/platform/consts.d.ts.map +1 -0
- package/build/tools/profile/presentation/platform/consts.js +335 -0
- package/build/tools/profile/presentation/platform/consts.js.map +1 -0
- package/build/tools/profile/presentation/platform/git.d.ts +4 -0
- package/build/tools/profile/presentation/platform/git.d.ts.map +1 -0
- package/build/tools/profile/presentation/platform/git.js +123 -0
- package/build/tools/profile/presentation/platform/git.js.map +1 -0
- package/build/tools/profile/presentation/platform/iam.d.ts +4 -0
- package/build/tools/profile/presentation/platform/iam.d.ts.map +1 -0
- package/build/tools/profile/presentation/platform/iam.js +202 -0
- package/build/tools/profile/presentation/platform/iam.js.map +1 -0
- package/build/tools/profile/presentation/platform/production.d.ts +4 -0
- package/build/tools/profile/presentation/platform/production.d.ts.map +1 -0
- package/build/tools/profile/presentation/platform/production.js +73 -0
- package/build/tools/profile/presentation/platform/production.js.map +1 -0
- package/build/tools/profile/presentation/platform/read.d.ts +4 -0
- package/build/tools/profile/presentation/platform/read.d.ts.map +1 -0
- package/build/tools/profile/presentation/platform/read.js +68 -0
- package/build/tools/profile/presentation/platform/read.js.map +1 -0
- package/build/tools/profile/presentation/platform/settings.d.ts +4 -0
- package/build/tools/profile/presentation/platform/settings.d.ts.map +1 -0
- package/build/tools/profile/presentation/platform/settings.js +48 -0
- package/build/tools/profile/presentation/platform/settings.js.map +1 -0
- package/build/tools/profile/presentation/platform/types.d.ts +174 -0
- package/build/tools/profile/presentation/platform/types.d.ts.map +1 -0
- package/build/tools/profile/presentation/platform/types.js +2 -0
- package/build/tools/profile/presentation/platform/types.js.map +1 -0
- package/build/tools/profile/presentation/platform/workspace.d.ts +4 -0
- package/build/tools/profile/presentation/platform/workspace.d.ts.map +1 -0
- package/build/tools/profile/presentation/platform/workspace.js +37 -0
- package/build/tools/profile/presentation/platform/workspace.js.map +1 -0
- package/build/tools/profile/presentation/platform.d.ts +11 -0
- package/build/tools/profile/presentation/platform.d.ts.map +1 -0
- package/build/tools/profile/presentation/platform.js +64 -0
- package/build/tools/profile/presentation/platform.js.map +1 -0
- package/build/tools/profile/presentation/work/consts.d.ts +22 -0
- package/build/tools/profile/presentation/work/consts.d.ts.map +1 -0
- package/build/tools/profile/presentation/work/consts.js +22 -0
- package/build/tools/profile/presentation/work/consts.js.map +1 -0
- package/build/tools/profile/presentation/work/presenters.d.ts +4 -0
- package/build/tools/profile/presentation/work/presenters.d.ts.map +1 -0
- package/build/tools/profile/presentation/work/presenters.js +502 -0
- package/build/tools/profile/presentation/work/presenters.js.map +1 -0
- package/build/tools/profile/presentation/work/schemas.d.ts +496 -0
- package/build/tools/profile/presentation/work/schemas.d.ts.map +1 -0
- package/build/tools/profile/presentation/work/schemas.js +358 -0
- package/build/tools/profile/presentation/work/schemas.js.map +1 -0
- package/build/tools/profile/presentation/work/shape.d.ts +4 -0
- package/build/tools/profile/presentation/work/shape.d.ts.map +1 -0
- package/build/tools/profile/presentation/work/shape.js +35 -0
- package/build/tools/profile/presentation/work/shape.js.map +1 -0
- package/build/tools/profile/presentation/work/types.d.ts +109 -0
- package/build/tools/profile/presentation/work/types.d.ts.map +1 -0
- package/build/tools/profile/presentation/work/types.js +2 -0
- package/build/tools/profile/presentation/work/types.js.map +1 -0
- package/build/tools/profile/presentation/work.d.ts +13 -0
- package/build/tools/profile/presentation/work.d.ts.map +1 -0
- package/build/tools/profile/presentation/work.js +66 -0
- package/build/tools/profile/presentation/work.js.map +1 -0
- package/build/tools/profile/types.d.ts +125 -0
- package/build/tools/profile/types.d.ts.map +1 -0
- package/build/tools/profile/types.js +2 -0
- package/build/tools/profile/types.js.map +1 -0
- package/build/tools/profile.d.ts +9 -0
- package/build/tools/profile.d.ts.map +1 -0
- package/build/tools/profile.js +114 -0
- package/build/tools/profile.js.map +1 -0
- package/build/tools/status/types.d.ts +7 -1
- package/build/tools/status/types.d.ts.map +1 -1
- package/build/tools/status.d.ts.map +1 -1
- package/build/tools/status.js +5 -1
- package/build/tools/status.js.map +1 -1
- package/build/tools/types.d.ts +12 -1
- package/build/tools/types.d.ts.map +1 -1
- package/build/types.d.ts +7 -1
- package/build/types.d.ts.map +1 -1
- package/package.json +25 -25
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/context/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAA;AAC3C,OAAO,EAAE,iBAAiB,EAAyC,MAAM,0BAA0B,CAAA;AACnG,OAAO,EAAE,IAAI,EAAE,MAAM,6BAA6B,CAAA;AAClD,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAA;AAChE,OAAO,EAAE,YAAY,EAAE,SAAS,EAAuB,MAAM,sBAAsB,CAAA;AACnF,OAAO,EAAE,qBAAqB,EAA0B,MAAM,oBAAoB,CAAA;AAClF,OAAO,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAA;AACvC,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAA;AACrE,OAAO,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAA;AAC5D,OAAO,EAAE,OAAO,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAA;AACrG,OAAO,EAAE,0BAA0B,EAAE,MAAM,mBAAmB,CAAA;AAC9D,OAAO,EAAE,eAAe,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAA;AAC7E,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAA;AAC7D,OAAO,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAGxF,MAAM,UAAU,GAAG,YAAY,CAAC,KAAK,CAAC,WAAW,EAAE,SAAS,CAAC,CAAC,CAAA;AAG9D;;;GAGG;AACH,MAAM,oBAAoB,GAAG,GAAsB,EAAE,CAAC,qB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AAE,CAAA;IAEhC,OAAO,OAAO,CAAA;AAChB,CAAC,CAAA;AAED,OAAO,EAAE,OAAO,EAAE,CAAA"}
|
package/build/context/types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ConnectLlm } from '@owlmeans/viable-common';
|
|
1
|
+
import type { ConnectClient, ConnectLlm } from '@owlmeans/viable-common';
|
|
2
2
|
export interface SdkContextOptions {
|
|
3
3
|
apiUrl: string;
|
|
4
4
|
/**
|
|
@@ -19,6 +19,12 @@ export interface SdkContextOptions {
|
|
|
19
19
|
* one HTTP request. Absent or `cloud`, calls go out untouched.
|
|
20
20
|
*/
|
|
21
21
|
llm?: ConnectLlm;
|
|
22
|
+
/**
|
|
23
|
+
* The edition this context names in `x-viable-client` on EVERY request — connector routes and
|
|
24
|
+
* planning alike, in every mode. A host built on the SDK names itself (`viable-mcp/<version>`);
|
|
25
|
+
* absent, the context says `sdk`.
|
|
26
|
+
*/
|
|
27
|
+
client?: ConnectClient;
|
|
22
28
|
/** Called when the platform rejects a request that presented this token — a credential holder
|
|
23
29
|
* wires this to forgetting a dead token (and signing in again) or reporting the problem. */
|
|
24
30
|
onRejected?: () => void | Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/context/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAA;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/context/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAA;AAExE,MAAM,WAAW,iBAAiB;IAChC,MAAM,EAAE,MAAM,CAAA;IACd;;;;;OAKG;IACH,KAAK,EAAE,MAAM,GAAG,CAAC,MAAM,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC,CAAA;IAChD,gFAAgF;IAChF,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,2EAA2E;IAC3E,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB;;;;;OAKG;IACH,GAAG,CAAC,EAAE,UAAU,CAAA;IAChB;;;;OAIG;IACH,MAAM,CAAC,EAAE,aAAa,CAAA;IACtB;gGAC4F;IAC5F,UAAU,CAAC,EAAE,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;CACxC"}
|
|
@@ -2,4 +2,6 @@
|
|
|
2
2
|
export declare const FAST_PULL_MS = 1000;
|
|
3
3
|
/** How long the pull loop rests after such a pull before asking again. */
|
|
4
4
|
export declare const EMPTY_PULL_PAUSE_MS = 1500;
|
|
5
|
+
/** What a connector that performs no model tasks answers one with. */
|
|
6
|
+
export declare const MODEL_TASKS_REFUSED = "this connector does not perform model tasks";
|
|
5
7
|
//# sourceMappingURL=consts.local.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"consts.local.d.ts","sourceRoot":"","sources":["../../src/session/consts.local.ts"],"names":[],"mappings":"AAAA,sEAAsE;AACtE,eAAO,MAAM,YAAY,OAAQ,CAAA;AAEjC,0EAA0E;AAC1E,eAAO,MAAM,mBAAmB,OAAQ,CAAA"}
|
|
1
|
+
{"version":3,"file":"consts.local.d.ts","sourceRoot":"","sources":["../../src/session/consts.local.ts"],"names":[],"mappings":"AAAA,sEAAsE;AACtE,eAAO,MAAM,YAAY,OAAQ,CAAA;AAEjC,0EAA0E;AAC1E,eAAO,MAAM,mBAAmB,OAAQ,CAAA;AAExC,sEAAsE;AACtE,eAAO,MAAM,mBAAmB,gDAAgD,CAAA"}
|
|
@@ -2,4 +2,6 @@
|
|
|
2
2
|
export const FAST_PULL_MS = 1_000;
|
|
3
3
|
/** How long the pull loop rests after such a pull before asking again. */
|
|
4
4
|
export const EMPTY_PULL_PAUSE_MS = 1_500;
|
|
5
|
+
/** What a connector that performs no model tasks answers one with. */
|
|
6
|
+
export const MODEL_TASKS_REFUSED = 'this connector does not perform model tasks';
|
|
5
7
|
//# sourceMappingURL=consts.local.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"consts.local.js","sourceRoot":"","sources":["../../src/session/consts.local.ts"],"names":[],"mappings":"AAAA,sEAAsE;AACtE,MAAM,CAAC,MAAM,YAAY,GAAG,KAAK,CAAA;AAEjC,0EAA0E;AAC1E,MAAM,CAAC,MAAM,mBAAmB,GAAG,KAAK,CAAA"}
|
|
1
|
+
{"version":3,"file":"consts.local.js","sourceRoot":"","sources":["../../src/session/consts.local.ts"],"names":[],"mappings":"AAAA,sEAAsE;AACtE,MAAM,CAAC,MAAM,YAAY,GAAG,KAAK,CAAA;AAEjC,0EAA0E;AAC1E,MAAM,CAAC,MAAM,mBAAmB,GAAG,KAAK,CAAA;AAExC,sEAAsE;AACtE,MAAM,CAAC,MAAM,mBAAmB,GAAG,6CAA6C,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/session/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqC,oBAAoB,EAAsJ,MAAM,yBAAyB,CAAA;AAErP,OAAO,KAAK,EAAiB,cAAc,EAAgB,MAAM,aAAa,CAAA;AAK9E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/session/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqC,oBAAoB,EAAsJ,MAAM,yBAAyB,CAAA;AAErP,OAAO,KAAK,EAAiB,cAAc,EAAgB,MAAM,aAAa,CAAA;AAK9E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAA;AAqDhD,eAAO,MAAM,WAAW,SAAgB,cAAc,KAAG,OAAO,CAAC,cAAc,CAwO9E,CAAA;AAED,OAAO,EAAE,oBAAoB,EAAE,CAAA;AAC/B,cAAc,YAAY,CAAA;AAC1B,cAAc,YAAY,CAAA;AAC1B,cAAc,gBAAgB,CAAA;AAE9B,YAAY,EAAE,cAAc,EAAE,MAAM,YAAY,CAAA"}
|
package/build/session/index.js
CHANGED
|
@@ -4,7 +4,8 @@ import { makeProjectEnvHelper } from '../project/env.js';
|
|
|
4
4
|
import { makeMarkerHelper } from '../project/marker.js';
|
|
5
5
|
import { QuestionQueue } from './questions.js';
|
|
6
6
|
import { TaskQueue } from './tasks.js';
|
|
7
|
-
import {
|
|
7
|
+
import { SdkUnsupported } from '../errors.js';
|
|
8
|
+
import { EMPTY_PULL_PAUSE_MS, FAST_PULL_MS, MODEL_TASKS_REFUSED } from './consts.local.js';
|
|
8
9
|
/**
|
|
9
10
|
* One attached connector, running.
|
|
10
11
|
*
|
|
@@ -95,6 +96,22 @@ export const openSession = async (opts) => {
|
|
|
95
96
|
return;
|
|
96
97
|
}
|
|
97
98
|
if (op.kind === ConnectOpKind.ModelTask) {
|
|
99
|
+
if (opts.modelTasks === false) {
|
|
100
|
+
// This connector never performs a model call (a plugin edition): answered once — a
|
|
101
|
+
// redelivery is answered from the cache above — and never queued for the parent, so it is
|
|
102
|
+
// not a task anybody runs. `Unavailable` stops the run instead of a retry ladder against a
|
|
103
|
+
// connector that never will.
|
|
104
|
+
log(`model task ${op.id} refused: ${MODEL_TASKS_REFUSED}`);
|
|
105
|
+
stats.opsFailed += 1;
|
|
106
|
+
const refused = new SdkUnsupported('model-task');
|
|
107
|
+
await submit({
|
|
108
|
+
opId: op.id,
|
|
109
|
+
sessionId: session.id,
|
|
110
|
+
ok: false,
|
|
111
|
+
error: { type: refused.type, message: MODEL_TASKS_REFUSED, kind: ConnectOpErrorKind.Unavailable },
|
|
112
|
+
});
|
|
113
|
+
return;
|
|
114
|
+
}
|
|
98
115
|
// Not executed here at all — it is the parent agent's to run, in its own clean subagent.
|
|
99
116
|
// What this loop owes it is delivery and nothing else.
|
|
100
117
|
if (tasks.push(op.payload, op.id)) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/session/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,aAAa,EAAE,oBAAoB,EAAsJ,MAAM,yBAAyB,CAAA;AACrP,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAA;AAE3C,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAA;AACxD,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAA;AAC9C,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAA;AAEtC,OAAO,EAAE,mBAAmB,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/session/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,aAAa,EAAE,oBAAoB,EAAsJ,MAAM,yBAAyB,CAAA;AACrP,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAA;AAE3C,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAA;AACxD,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAA;AAC9C,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAA;AAEtC,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAC7C,OAAO,EAAE,mBAAmB,EAAE,YAAY,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAA;AAE1F;;;;;;;;;;;;;;;GAeG;AACH;;;;;;;;;;GAUG;AACH,MAAM,YAAY,GAAG,KAAK,EAAE,IAAoB,EAAE,SAAiB,EAAiB,EAAE;IACpF,MAAM,GAAG,GAAG,IAAI,CAAC,IAAI,CAAC,UAAU,CAAA;IAChC,IAAI,GAAG,IAAI,IAAI;QAAE,OAAM;IAE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AAC,oBAAoB,EAAE;QAE5D,gBAAgB,EAAE,GAAG,EAAE,CAAC,SAAS,CAAC,IAAI,EAAE;QAExC,KAAK,EAAE,KAAK,IAAI,EAAE;YAChB,MAAM,GAAG,IAAI,CAAA;YACb,IAAI,CAAC;gBACH,MAAM,IAAI,CAAC,GAAG,CAAC,YAAY,CAAC,OAAO,CAAC,EAAE,CAAC,CAAA;YACzC,CAAC;YAAC,OAAO,CAAC,EAAE,CAAC;gBACX,GAAG,CAAC,iBAAkB,CAAW,CAAC,OAAO,EAAE,CAAC,CAAA;YAC9C,CAAC;QACH,CAAC;KACF,CAAA;AACH,CAAC,CAAA;AAED,OAAO,EAAE,oBAAoB,EAAE,CAAA;AAC/B,cAAc,YAAY,CAAA;AAC1B,cAAc,YAAY,CAAA;AAC1B,cAAc,gBAAgB,CAAA"}
|
package/build/session/types.d.ts
CHANGED
|
@@ -6,6 +6,13 @@ export interface SessionOptions {
|
|
|
6
6
|
executor?: LocalExecutor;
|
|
7
7
|
/** Which deployment this is, recorded in the project's marker so a later connector finds it. */
|
|
8
8
|
apiUrl?: string;
|
|
9
|
+
/**
|
|
10
|
+
* Whether this connector performs the platform's model calls at all. `false` (a plugin edition):
|
|
11
|
+
* a model-task operation is never queued for the parent — it is answered once, `Unavailable`
|
|
12
|
+
* (the run stops rather than retrying against a connector that never will), and logged. `true` when
|
|
13
|
+
* absent — every model task is delivered, as always.
|
|
14
|
+
*/
|
|
15
|
+
modelTasks?: boolean;
|
|
9
16
|
log?: (line: string) => void;
|
|
10
17
|
}
|
|
11
18
|
export interface Waiting<T> {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/session/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAE/E,MAAM,WAAW,cAAc;IAC7B,GAAG,EAAE,YAAY,CAAA;IACjB,IAAI,EAAE,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O,KAAK,IAAI,CAAA;IACjC,KAAK,EAAE,UAAU,CAAC,OAAO,UAAU,CAAC,CAAA;CACrC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"catalogue.d.ts","sourceRoot":"","sources":["../../src/tools/catalogue.ts"],"names":[],"mappings":"AAcA,OAAO,EAAsD,YAAY,EAAE,MAAM,aAAa,CAAA;AAa9F,OAAO,KAAK,EAAY,cAAc,EAAE,QAAQ,EAAc,MAAM,YAAY,CAAA;AAChF,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;
|
|
1
|
+
{"version":3,"file":"catalogue.d.ts","sourceRoot":"","sources":["../../src/tools/catalogue.ts"],"names":[],"mappings":"AAcA,OAAO,EAAsD,YAAY,EAAE,MAAM,aAAa,CAAA;AAa9F,OAAO,KAAK,EAAY,cAAc,EAAE,QAAQ,EAAc,MAAM,YAAY,CAAA;AAChF,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AAM3D,OAAO,EAAE,YAAY,EAAE,CAAA;AAycvB;;;;;;;;GAQG;AACH,eAAO,MAAM,SAAS,EAAE,cAAc,EAu+FrC,CAAA;AAED,eAAO,MAAM,qBAAqB,QAAO,eASxC,CAAA;AAED,eAAO,MAAM,eAAe,iBAA0B,CAAA;AAEtD,kFAAkF;AAClF,eAAO,MAAM,YAAY,SAAU,QAAQ,KAAG,cAAc,EAAwC,CAAA"}
|
package/build/tools/catalogue.js
CHANGED
|
@@ -25,6 +25,7 @@ import { statusTextHelper } from './status.js';
|
|
|
25
25
|
import { storyHelper } from './stories.js';
|
|
26
26
|
import { toolHostHelper } from './host.js';
|
|
27
27
|
import { makeHandoverHelper } from './handover.js';
|
|
28
|
+
import { makeToolProfileModel } from './profile.js';
|
|
28
29
|
import { APP_GRANT_ACTIONS, APP_GROUP_ACTIONS, APP_ORGANIZATION_ACTIONS, APP_USER_ACTIONS, BARE_428, CONFIG_SCOPES, CONVERSION_COST, DESTRUCTIVE, DOMAIN_ACTIONS, DRAFT_CAP, FEED_DETAILS, FILE_READ_CAP, GIT_SYNC_DIRECTIONS, IDEMPOTENT_WRITE, INFERENCE_LEVELS, INFERENCE_MODES, PREVIEW_ACTIONS, PROCEED_UPDATE_FIELDS, PRODUCTION_ACTIONS, READ_ONLY, SOURCES_KIND, STOP_SCOPES, WRITE } from './consts.local.js';
|
|
29
30
|
export { ToolHostKind };
|
|
30
31
|
const ok = (text, structured) => ({ text, structured });
|
|
@@ -521,7 +522,15 @@ export const catalogue = [
|
|
|
521
522
|
+ ` ${session.pendingTasks()} waiting`, `questions: ${stats.questionsDelivered} asked, ${stats.questionsAnswered} answered,`
|
|
522
523
|
+ ` ${session.pendingQuestions()} waiting`);
|
|
523
524
|
}
|
|
524
|
-
|
|
525
|
+
if (deps.host.profile?.reportClient !== true)
|
|
526
|
+
return ok(lines.join('\n'));
|
|
527
|
+
// How the platform sees this connection — a platform older than the report answers null.
|
|
528
|
+
const client = await deps.api.client().catch((e) => {
|
|
529
|
+
deps.log(`session_status: the platform did not report this connection: ${refusalHelper.refusalMessage(e)}`);
|
|
530
|
+
return null;
|
|
531
|
+
});
|
|
532
|
+
lines.push(statusTextHelper.renderClient(client));
|
|
533
|
+
return ok(lines.join('\n'), { client });
|
|
525
534
|
},
|
|
526
535
|
},
|
|
527
536
|
{
|
|
@@ -3008,7 +3017,9 @@ export const catalogue = [
|
|
|
3008
3017
|
},
|
|
3009
3018
|
];
|
|
3010
3019
|
export const createCatalogueHelper = () => {
|
|
3011
|
-
|
|
3020
|
+
// Availability first, then the host's profile (none: the same list, as it always was).
|
|
3021
|
+
const visibleTools = (host) => makeToolProfileModel(host.profile)
|
|
3022
|
+
.apply([...catalogue, ...(host.extensions ?? [])].filter(tool => tool.availability(host)));
|
|
3012
3023
|
const toolByName = (name) => catalogue.find(tool => tool.name === name);
|
|
3013
3024
|
return { visibleTools, toolByName };
|
|
3014
3025
|
};
|