@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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"consts.local.js","sourceRoot":"","sources":["../../../../src/tools/profile/listing/consts.local.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAA;AAKjF,oGAAoG;AACpG,EAAE;AACF,+FAA+F;AAC/F,6CAA6C;AAC7C,8FAA8F;AAC9F,+FAA+F;AAC/F,uGAAuG;AACvG,iGAAiG;AACjG,+EAA+E;AAC/E,0FAA0F;AAC1F,mGAAmG;AACnG,iCAAiC;AAEjC,uBAAuB;AACvB,MAAM,IAAI,GAAoB,SAAS,CAAA;AAEvC,8EAA8E;AAC9E,MAAM,SAAS,GAAoB,MAAM,CAAC,MAAM,CAAC,EAAE,GAAG,SAAS,EAAE,aAAa,EAAE,IAAI,EAAE,CAAC,CAAA;AAEvF,kEAAkE;AAClE,MAAM,IAAI,GAAoB,KAAK,CAAA;AAEnC,yEAAyE;AACzE,MAAM,SAAS,GAAoB,MAAM,CAAC,MAAM,CAAC,EAAE,GAAG,KAAK,EAAE,aAAa,EAAE,IAAI,EAAE,CAAC,CAAA;AAEnF,gFAAgF;AAChF,MAAM,OAAO,GAAoB,gBAAgB,CAAA;AAEjD,mDAAmD;AACnD,MAAM,YAAY,GAAoB,MAAM,CAAC,MAAM,CAAC,EAAE,GAAG,gBAAgB,EAAE,aAAa,EAAE,IAAI,EAAE,CAAC,CAAA;AAEjG,yFAAyF;AACzF,MAAM,QAAQ,GAAoB,MAAM,CAAC,MAAM,CAAC,EAAE,GAAG,WAAW,EAAE,cAAc,EAAE,IAAI,EAAE,CAAC,CAAA;AAEz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MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,4GAA4G;UAC1G,gDAAgD;IAClD,4GAA4G;UAC1G,yGAAyG;UACzG,4FAA4F;IAC9F,gHAAgH;UAC9G,mEAAmE;IACrE,4GAA4G;UAC1G,SAAS;CACZ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;AAEd,oGAAoG;AACpG,MAAM,CAAC,MAAM,oBAAoB,GAAG,yEAAyE;MACzG,4GAA4G;MAC5G,oFAAoF,CAAA"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { ToolPresentation } from '../types.js';
|
|
2
|
+
/**
|
|
3
|
+
* Everything a listing presents per tool: the declared output and presenter of the work and the
|
|
4
|
+
* platform domains, `session_status`'s own (a listing reports the client, so it answers one), and
|
|
5
|
+
* the listing's titles, descriptions and annotations from {@link LISTING_TOOLS}.
|
|
6
|
+
*
|
|
7
|
+
* `pickup_intent` is declared by both domain tables with the same `{ prompt }` shape; the platform
|
|
8
|
+
* table's entry is the one kept.
|
|
9
|
+
*/
|
|
10
|
+
export declare const createListingPresentation: () => Readonly<Record<string, ToolPresentation>>;
|
|
11
|
+
export declare const listingPresentation: Readonly<Record<string, ToolPresentation>>;
|
|
12
|
+
//# sourceMappingURL=presentation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"presentation.d.ts","sourceRoot":"","sources":["../../../../src/tools/profile/listing/presentation.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAA;AAGnD;;;;;;;GAOG;AACH,eAAO,MAAM,yBAAyB,QAAO,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,gBAAgB,CAAC,CA0BrF,CAAA;AAED,eAAO,MAAM,mBAAmB,4CAA8B,CAAA"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { platformPresentation } from '../presentation/platform.js';
|
|
2
|
+
import { workPresentation } from '../presentation/work.js';
|
|
3
|
+
import { shapeHelper } from '../presentation/work/shape.js';
|
|
4
|
+
import { LISTING_TOOLS, SESSION_STATUS_OUTPUT } from './consts.local.js';
|
|
5
|
+
/**
|
|
6
|
+
* Everything a listing presents per tool: the declared output and presenter of the work and the
|
|
7
|
+
* platform domains, `session_status`'s own (a listing reports the client, so it answers one), and
|
|
8
|
+
* the listing's titles, descriptions and annotations from {@link LISTING_TOOLS}.
|
|
9
|
+
*
|
|
10
|
+
* `pickup_intent` is declared by both domain tables with the same `{ prompt }` shape; the platform
|
|
11
|
+
* table's entry is the one kept.
|
|
12
|
+
*/
|
|
13
|
+
export const createListingPresentation = () => {
|
|
14
|
+
const { record, isRecord, text, compact } = shapeHelper;
|
|
15
|
+
const sessionStatus = {
|
|
16
|
+
output: SESSION_STATUS_OUTPUT,
|
|
17
|
+
present: structured => {
|
|
18
|
+
const client = record(structured).client;
|
|
19
|
+
if (!isRecord(client) || typeof client.kind !== 'string' || typeof client.inference !== 'boolean') {
|
|
20
|
+
return { client: null };
|
|
21
|
+
}
|
|
22
|
+
return {
|
|
23
|
+
client: compact({
|
|
24
|
+
kind: client.kind,
|
|
25
|
+
version: text(client.version, 64),
|
|
26
|
+
via: typeof client.via === 'string' ? client.via : '',
|
|
27
|
+
inference: client.inference,
|
|
28
|
+
}),
|
|
29
|
+
};
|
|
30
|
+
},
|
|
31
|
+
};
|
|
32
|
+
// The platform table last: its `pickup_intent` replaces the work table's.
|
|
33
|
+
const shaped = { ...workPresentation, ...platformPresentation, session_status: sessionStatus };
|
|
34
|
+
const names = [...new Set([...Object.keys(shaped), ...Object.keys(LISTING_TOOLS)])];
|
|
35
|
+
return Object.freeze(Object.fromEntries(names.map(name => [name, { ...shaped[name], ...LISTING_TOOLS[name] }])));
|
|
36
|
+
};
|
|
37
|
+
export const listingPresentation = createListingPresentation();
|
|
38
|
+
//# sourceMappingURL=presentation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"presentation.js","sourceRoot":"","sources":["../../../../src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A;IAChI,MAAM,KAAK,GAAG,CAAC,GAAG,IAAI,GAAG,CAAC,CAAC,GAAG,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,GAAG,MAAM,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,CAAA;IAEnF,OAAO,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,WAAW,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,IAAI,EAAE,EAAE,GAAG,MAAM,CAAC,IAAI,CAAC,EAAE,GAAG,aAAa,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;AAClH,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,mBAAmB,GAAG,yBAAyB,EAAE,CAAA"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ToolSplit } from '../types.js';
|
|
2
|
+
import type { ListingTextHelper } from './types.js';
|
|
3
|
+
/**
|
|
4
|
+
* A listing's text rewrite over the splits it offers.
|
|
5
|
+
*
|
|
6
|
+
* Tool texts and their `next:` hints name the catalogue's tools — `custom_domain { action: attach,
|
|
7
|
+
* domain }`, `preview_control`. A listing offers `attach_custom_domain` and `start_preview` instead,
|
|
8
|
+
* so a call written with the action becomes the variant (the remaining fields kept), and a bare
|
|
9
|
+
* mention becomes the variant answering — or every variant, where another tool or a notification
|
|
10
|
+
* names it.
|
|
11
|
+
*/
|
|
12
|
+
export declare const makeListingTextHelper: (splits: readonly ToolSplit[]) => ListingTextHelper;
|
|
13
|
+
//# sourceMappingURL=text.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../../../../src/tools/profile/listing/text.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAoB,MAAM,aAAa,CAAA;AAE9D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAA;AAQnD;;;;;;;;GAQG;AACH,eAAO,MAAM,qBAAqB,WAAY,SAAS,SAAS,EAAE,KAAG,iBA6CpE,CAAA"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { LISTING_BILLING_ADDRESS, LISTING_BILLING_PLACE, LISTING_RAW_TEXT, LISTING_TEXT_RULES } from './consts.local.js';
|
|
2
|
+
/** A literal inside a regular expression. */
|
|
3
|
+
const literal = (text) => text.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
|
|
4
|
+
/** A whole-word tool name — `attach_custom_domain` is not a mention of `custom_domain`. */
|
|
5
|
+
const word = (name) => `(?<![A-Za-z0-9_])${literal(name)}(?![A-Za-z0-9_])`;
|
|
6
|
+
/**
|
|
7
|
+
* A listing's text rewrite over the splits it offers.
|
|
8
|
+
*
|
|
9
|
+
* Tool texts and their `next:` hints name the catalogue's tools — `custom_domain { action: attach,
|
|
10
|
+
* domain }`, `preview_control`. A listing offers `attach_custom_domain` and `start_preview` instead,
|
|
11
|
+
* so a call written with the action becomes the variant (the remaining fields kept), and a bare
|
|
12
|
+
* mention becomes the variant answering — or every variant, where another tool or a notification
|
|
13
|
+
* names it.
|
|
14
|
+
*/
|
|
15
|
+
export const makeListingTextHelper = (splits) => {
|
|
16
|
+
const references = splits.map(split => {
|
|
17
|
+
// Longest first, so one action that prefixes another is never matched short.
|
|
18
|
+
const values = [...split.variants].map(variant => variant.value).sort((a, b) => b.length - a.length).map(literal);
|
|
19
|
+
return {
|
|
20
|
+
split,
|
|
21
|
+
call: new RegExp(`${word(split.tool)}\\s*\\{\\s*["']?${literal(split.argument)}["']?\\s*:\\s*["']?(${values.join('|')})["']?`
|
|
22
|
+
+ '(?=\\s*[,}])\\s*(?:,\\s*([^{}]*?))?\\s*\\}', 'g'),
|
|
23
|
+
bare: new RegExp(word(split.tool), 'g'),
|
|
24
|
+
};
|
|
25
|
+
});
|
|
26
|
+
const variantOf = (split, value) => split.variants.find(variant => variant.value === value);
|
|
27
|
+
/** An address with what trails it as punctuation kept apart. */
|
|
28
|
+
const billingFree = (text) => text.replace(/https?:\/\/\S+/g, found => {
|
|
29
|
+
const [, address = found, tail = ''] = /^(.*?)([.,;:)\]]*)$/.exec(found) ?? [];
|
|
30
|
+
return LISTING_BILLING_ADDRESS.test(address) ? `${LISTING_BILLING_PLACE}${tail}` : found;
|
|
31
|
+
});
|
|
32
|
+
const rewrite = (text, tool) => {
|
|
33
|
+
if (tool != null && LISTING_RAW_TEXT.has(tool))
|
|
34
|
+
return text;
|
|
35
|
+
let said = billingFree(LISTING_TEXT_RULES.reduce((current, rule) => current.replace(rule.pattern, rule.replace), text));
|
|
36
|
+
for (const { split, call, bare } of references) {
|
|
37
|
+
said = said.replace(call, (found, value, rest) => {
|
|
38
|
+
const variant = variantOf(split, value);
|
|
39
|
+
if (variant == null)
|
|
40
|
+
return found;
|
|
41
|
+
const more = rest?.trim() ?? '';
|
|
42
|
+
return more !== '' ? `${variant.name} { ${more} }` : variant.name;
|
|
43
|
+
});
|
|
44
|
+
const own = split.variants.find(variant => variant.name === tool);
|
|
45
|
+
said = said.replace(bare, own?.name ?? split.variants.map(variant => variant.name).join(' / '));
|
|
46
|
+
}
|
|
47
|
+
return said;
|
|
48
|
+
};
|
|
49
|
+
return { rewrite };
|
|
50
|
+
};
|
|
51
|
+
//# sourceMappingURL=text.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"text.js","sourceRoot":"","sources":["../../../../src/tools/profile/listing/text.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,uBAAuB,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAA;AAGxH,6CAA6C;AAC7C,MAAM,OAAO,GAAG,CAAC,IAAY,EAAU,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,qBAAqB,EAAE,MAAM,CAAC,CAAA;AAErF,2FAA2F;AAC3F,MAAM,IAAI,GAAG,CAAC,IAAY,EAAU,EAAE,CAAC,oBAAoB,OAAO,CAA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GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,GAAG,EAAE,IAAI,IAAI,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAA;QACjG,CAAC;QAED,OAAO,IAAI,CAAA;IACb,CAAC,CAAA;IAED,OAAO,EAAE,OAAO,EAAE,CAAA;AACpB,CAAC,CAAA"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { ToolPresentation, ToolProfileText } from '../types.js';
|
|
2
|
+
/** One wording rule of a listing: every match of `pattern` (a global expression) said as `replace`. */
|
|
3
|
+
export interface ListingTextRule {
|
|
4
|
+
pattern: RegExp;
|
|
5
|
+
replace: string;
|
|
6
|
+
}
|
|
7
|
+
/** What a listing says of one tool beyond the catalogue: its annotations always, its title and description where they differ. */
|
|
8
|
+
export interface ListingToolPresentation extends Pick<ToolPresentation, 'title' | 'description' | 'annotations'> {
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* How a listing says a text: the billing addresses and the top-up call to action out, a split tool
|
|
12
|
+
* named by the variant that answers (or by all its variants), the task loop it never offers by the
|
|
13
|
+
* status to read instead. A file's own content is never rewritten.
|
|
14
|
+
*/
|
|
15
|
+
export interface ListingTextHelper {
|
|
16
|
+
rewrite: ToolProfileText;
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/tools/profile/listing/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAEpE,uGAAuG;AACvG,MAAM,WAAW,eAAe;IAC9B,OAAO,EAAE,MAAM,CAAA;IACf,OAAO,EAAE,MAAM,CAAA;CAChB;AAED,iIAAiI;AACjI,MAAM,WAAW,uBAAwB,SAAQ,IAAI,CAAC,gBAAgB,EAAE,OAAO,GAAG,aAAa,GAAG,aAAa,CAAC;CAAG;AAEnH;;;;GAIG;AACH,MAAM,WAAW,iBAAiB;IAChC,OAAO,EAAE,eAAe,CAAA;CACzB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/tools/profile/listing/types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { ListingProfileOptions, ToolProfile } from './types.js';
|
|
2
|
+
/**
|
|
3
|
+
* A listing profile — what a store listing or a vendor plugin offers: never the tools in
|
|
4
|
+
* {@link LISTING_HIDDEN} (plus `opts.hidden`), the splits and presentation it is given, the client
|
|
5
|
+
* reported by `session_status`, every text it answers said the listing's way (`opts.text`, else the
|
|
6
|
+
* listing's rewrite over its splits), and — unless it brings its own — the base instructions without
|
|
7
|
+
* the recommendation, naming only the tools it offers and opening with `opts.preface` when given.
|
|
8
|
+
*/
|
|
9
|
+
export declare const makeListingProfile: (opts: ListingProfileOptions) => ToolProfile;
|
|
10
|
+
/** The hosted listing (a cloud target). */
|
|
11
|
+
export declare const listingProfile: ToolProfile;
|
|
12
|
+
/** The listing as the Claude endpoint offers it. */
|
|
13
|
+
export declare const claudeListingProfile: ToolProfile;
|
|
14
|
+
/** The listing as the OpenAI endpoint offers it. */
|
|
15
|
+
export declare const openaiListingProfile: ToolProfile;
|
|
16
|
+
/** The stdio plugins' profile (a local target): the listing, and the workspace the project is written into. */
|
|
17
|
+
export declare const localPluginProfile: ToolProfile;
|
|
18
|
+
//# sourceMappingURL=listing.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"listing.d.ts","sourceRoot":"","sources":["../../../src/tools/profile/listing.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,qBAAqB,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAEpE;;;;;;GAMG;AACH,eAAO,MAAM,kBAAkB,SAAU,qBAAqB,KAAG,WAyBhE,CAAA;AAED,2CAA2C;AAC3C,eAAO,MAAM,cAAc,aAKzB,CAAA;AAEF,oDAAoD;AACpD,eAAO,MAAM,oBAAoB,aAK/B,CAAA;AAEF,oDAAoD;AACpD,eAAO,MAAM,oBAAoB,aAK/B,CAAA;AAEF,+GAA+G;AAC/G,eAAO,MAAM,kBAAkB,aAK7B,CAAA"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { toolHostHelper } from '../host.js';
|
|
2
|
+
import { instructionsHelper } from '../instructions.js';
|
|
3
|
+
import { makeToolProfileModel } from '../profile.js';
|
|
4
|
+
import { LISTING_HIDDEN } from './consts.js';
|
|
5
|
+
import { LISTING_INSTRUCTION_RULES, LISTING_PREFACE, LISTING_SPLITS, LOCAL_PLUGIN_PREFACE } from './listing/consts.local.js';
|
|
6
|
+
import { listingPresentation } from './listing/presentation.js';
|
|
7
|
+
import { makeListingTextHelper } from './listing/text.js';
|
|
8
|
+
/**
|
|
9
|
+
* A listing profile — what a store listing or a vendor plugin offers: never the tools in
|
|
10
|
+
* {@link LISTING_HIDDEN} (plus `opts.hidden`), the splits and presentation it is given, the client
|
|
11
|
+
* reported by `session_status`, every text it answers said the listing's way (`opts.text`, else the
|
|
12
|
+
* listing's rewrite over its splits), and — unless it brings its own — the base instructions without
|
|
13
|
+
* the recommendation, naming only the tools it offers and opening with `opts.preface` when given.
|
|
14
|
+
*/
|
|
15
|
+
export const makeListingProfile = (opts) => {
|
|
16
|
+
const splits = opts.splits ?? [];
|
|
17
|
+
const text = opts.text ?? makeListingTextHelper(splits).rewrite;
|
|
18
|
+
const profile = {
|
|
19
|
+
name: opts.name,
|
|
20
|
+
hidden: Object.freeze([...LISTING_HIDDEN, ...(opts.hidden ?? [])]),
|
|
21
|
+
splits,
|
|
22
|
+
presentation: opts.presentation ?? {},
|
|
23
|
+
instructions: opts.instructions ?? (({ host, offered }) => {
|
|
24
|
+
const { namesOf } = makeToolProfileModel(profile);
|
|
25
|
+
const base = instructionsHelper.compose(host, {
|
|
26
|
+
namesOf: tool => namesOf(tool).filter(name => offered.includes(name)),
|
|
27
|
+
recommend: false,
|
|
28
|
+
});
|
|
29
|
+
// The preface stands in for the base text's opening paragraph — everything after it stays.
|
|
30
|
+
const opened = opts.preface != null ? `${opts.preface(host)}${base.slice(base.indexOf('\n\n'))}` : base;
|
|
31
|
+
return text(LISTING_INSTRUCTION_RULES.reduce((said, rule) => said.replace(rule.pattern, rule.replace), opened));
|
|
32
|
+
}),
|
|
33
|
+
reportClient: opts.reportClient ?? true,
|
|
34
|
+
text,
|
|
35
|
+
};
|
|
36
|
+
return profile;
|
|
37
|
+
};
|
|
38
|
+
/** The hosted listing (a cloud target). */
|
|
39
|
+
export const listingProfile = makeListingProfile({
|
|
40
|
+
name: 'listing',
|
|
41
|
+
splits: LISTING_SPLITS,
|
|
42
|
+
presentation: listingPresentation,
|
|
43
|
+
preface: () => LISTING_PREFACE,
|
|
44
|
+
});
|
|
45
|
+
/** The listing as the Claude endpoint offers it. */
|
|
46
|
+
export const claudeListingProfile = makeListingProfile({
|
|
47
|
+
name: 'listing-claude',
|
|
48
|
+
splits: LISTING_SPLITS,
|
|
49
|
+
presentation: listingPresentation,
|
|
50
|
+
preface: () => LISTING_PREFACE,
|
|
51
|
+
});
|
|
52
|
+
/** The listing as the OpenAI endpoint offers it. */
|
|
53
|
+
export const openaiListingProfile = makeListingProfile({
|
|
54
|
+
name: 'listing-openai',
|
|
55
|
+
splits: LISTING_SPLITS,
|
|
56
|
+
presentation: listingPresentation,
|
|
57
|
+
preface: () => LISTING_PREFACE,
|
|
58
|
+
});
|
|
59
|
+
/** The stdio plugins' profile (a local target): the listing, and the workspace the project is written into. */
|
|
60
|
+
export const localPluginProfile = makeListingProfile({
|
|
61
|
+
name: 'local-plugin',
|
|
62
|
+
splits: LISTING_SPLITS,
|
|
63
|
+
presentation: listingPresentation,
|
|
64
|
+
preface: host => toolHostHelper.localTarget(host) ? `${LISTING_PREFACE}\n\n${LOCAL_PLUGIN_PREFACE}` : LISTING_PREFACE,
|
|
65
|
+
});
|
|
66
|
+
//# sourceMappingURL=listing.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"listing.js","sourceRoot":"","sources":["../../../src/tools/profile/listing.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAA;AAC3C,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAA;AACvD,OAAO,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAA;AACpD,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAC5C,OAAO,EAAE,yBAAyB,EAAE,eAAe,EAAE,cAAc,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAA;AAC5H,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAA;AAC/D,OAAO,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAA;AAGzD;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,IAA2B,EAAe,EAAE;IAC7E,MAAM,MAAM,GAAG,IAAI,CAAC,MAAM,IAAI,EAAE,CAAA;IAChC,MAAM,IAAI,GAAG,IAAI,CAAC,IAAI,IAAI,qBAAqB,CAAC,MAAM,CAAC,CAAC,OAAO,CAAA;IAE/D,MAAM,OAAO,GAAgB;QAC3B,IAAI,EAAE,IAAI,CAAC,IAAI;QACf,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC,GAAG,cAAc,EAAE,GAAG,CAAC,IAAI,CAAC,MAAM,IAAI,EAAE,CAAC,CAAC,CAAC;QAClE,MAAM;QACN,YAAY,EAAE,IAAI,CAAC,YAAY,IAAI,EAAE;QACrC,YAAY,EAAE,IAAI,CAAC,YAAY,IAAI,CAAC,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,EAAE;YACxD,MAAM,EAAE,OAAO,EA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,EAAE,CAAC,eAAe;CAC/B,CAAC,CAAA;AAEF,oDAAoD;AACpD,MAAM,CAAC,MAAM,oBAAoB,GAAG,kBAAkB,CAAC;IACrD,IAAI,EAAE,gBAAgB;IACtB,MAAM,EAAE,cAAc;IACtB,YAAY,EAAE,mBAAmB;IACjC,OAAO,EAAE,GAAG,EAAE,CAAC,eAAe;CAC/B,CAAC,CAAA;AAEF,+GAA+G;AAC/G,MAAM,CAAC,MAAM,kBAAkB,GAAG,kBAAkB,CAAC;IACnD,IAAI,EAAE,cAAc;IACpB,MAAM,EAAE,cAAc;IACtB,YAAY,EAAE,mBAAmB;IACjC,OAAO,EAAE,IAAI,CAAC,EAAE,CAAC,cAAc,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,GAAG,eAAe,OAAO,oBAAoB,EAAE,CAAC,CAAC,CAAC,eAAe;CACtH,CAAC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"account.d.ts","sourceRoot":"","sources":["../../../../../src/tools/profile/presentation/platform/account.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAA;AAEtD,eAAO,MAAM,0BAA0B,QAAO,oBAkD7C,CAAA;AAED,eAAO,MAAM,oBAAoB,sBAA+B,CAAA"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { presentReadHelper as read } from './read.js';
|
|
2
|
+
export const createAccountPresentHelper = () => {
|
|
3
|
+
/** The consents as the person reads them — the key kept, because withdrawing one names it. */
|
|
4
|
+
const choices = (value) => {
|
|
5
|
+
const view = read.record(value);
|
|
6
|
+
return {
|
|
7
|
+
pending: read.flag(view.pending),
|
|
8
|
+
items: read.records(view.items).map(item => read.compact({
|
|
9
|
+
key: read.text(item.key),
|
|
10
|
+
group: read.text(item.group),
|
|
11
|
+
mode: read.text(item.mode),
|
|
12
|
+
granted: read.flag(item.granted),
|
|
13
|
+
status: read.text(item.status),
|
|
14
|
+
decided: read.day(item.decidedAt),
|
|
15
|
+
})),
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
const tokens = read.total(structured => {
|
|
19
|
+
const items = read.records(structured.tokens);
|
|
20
|
+
return {
|
|
21
|
+
total: read.count(structured.total, items.length),
|
|
22
|
+
// The id stays: it is what revoke_access_token names. No secret or hash is ever on this view.
|
|
23
|
+
tokens: items.map(token => read.compact({
|
|
24
|
+
id: read.text(token.id),
|
|
25
|
+
name: read.text(token.name),
|
|
26
|
+
display: read.text(token.display),
|
|
27
|
+
scopes: read.texts(token.scopes),
|
|
28
|
+
oauth: read.flag(token.oauth),
|
|
29
|
+
revoked: read.maybeText(token.revokedAt) != null,
|
|
30
|
+
created: read.day(token.createdAt),
|
|
31
|
+
lastUsed: read.day(token.lastUsedAt),
|
|
32
|
+
expires: read.day(token.expiresAt),
|
|
33
|
+
})),
|
|
34
|
+
};
|
|
35
|
+
});
|
|
36
|
+
const revokedToken = read.total(structured => ({ tokenId: read.text(structured.tokenId) }));
|
|
37
|
+
const privacy = read.total(structured => ({ privacy: choices(structured.privacy) }));
|
|
38
|
+
const withdrawn = read.total(structured => read.compact({
|
|
39
|
+
withdrawn: read.texts(structured.withdrawn),
|
|
40
|
+
privacy: read.recordOrNull(structured.privacy) != null ? choices(structured.privacy) : undefined,
|
|
41
|
+
}));
|
|
42
|
+
const intent = read.total(structured => ({ prompt: read.text(structured.prompt) }));
|
|
43
|
+
return { tokens, revokedToken, privacy, withdrawn, intent };
|
|
44
|
+
};
|
|
45
|
+
export const accountPresentHelper = createAccountPresentHelper();
|
|
46
|
+
//# sourceMappingURL=account.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"account.js","sourceRoot":"","sources":["../../../../../src/tools/profile/presentation/platform/account.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,IAAI,IAAI,EAAE,MAAM,WAAW,CAAA;AAGrD,MAAM,CAAC,MAAM,0BAA0B,GAAG,GA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