@aexol/spectral 0.9.250 → 0.9.251
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/dist/agent/index.d.ts +2 -1
- package/dist/agent/index.d.ts.map +1 -1
- package/dist/agent/index.js +10 -3
- package/dist/generated/zeus/const.d.ts.map +1 -1
- package/dist/generated/zeus/const.js +3 -0
- package/dist/generated/zeus/index.d.ts +12 -0
- package/dist/generated/zeus/index.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/agent/index.d.ts
CHANGED
|
@@ -20,7 +20,8 @@
|
|
|
20
20
|
* - Clean context isolation (fresh messages array)
|
|
21
21
|
* - Combined system prompt (shared/base prompt + subagent-specific instructions)
|
|
22
22
|
* - Tool filtering (only the tools specified in agent config)
|
|
23
|
-
* - Model selection (
|
|
23
|
+
* - Model selection (agent-configured model preferred, session model as
|
|
24
|
+
* fallback)
|
|
24
25
|
* - Signal propagation (abort passthrough)
|
|
25
26
|
* - Access to observational memory via the `recall` and
|
|
26
27
|
* `write_project_observation` tools, which run against a parent-session
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/agent/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/agent/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AAEH,OAAO,KAAK,EAEX,UAAU,EAEV,SAAS,EAET,MAAM,4BAA4B,CAAC;AAoBpC,OAAO,EACN,KAAK,YAAY,EACjB,KAAK,gBAAgB,EAKrB,MAAM,8BAA8B,CAAC;AAItC,OAAO,EACN,KAAK,WAAW,EAIhB,MAAM,aAAa,CAAC;AAErB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,EAGN,KAAK,cAAc,EACnB,MAAM,uCAAuC,CAAC;AAS/C,OAAO,KAAK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,EAAE;IACN,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;IAC1B,iBAAiB,CAAC,EAAE,CAAC,KAAK,EAAE,WAAW,KAAK,IAAI,CAAC;IACjD,MAAM,CAAC,EAAE,MAAM,CAAC;CAChB,GACC,IAAI,CAmaN"}
|
package/dist/agent/index.js
CHANGED
|
@@ -20,7 +20,8 @@
|
|
|
20
20
|
* - Clean context isolation (fresh messages array)
|
|
21
21
|
* - Combined system prompt (shared/base prompt + subagent-specific instructions)
|
|
22
22
|
* - Tool filtering (only the tools specified in agent config)
|
|
23
|
-
* - Model selection (
|
|
23
|
+
* - Model selection (agent-configured model preferred, session model as
|
|
24
|
+
* fallback)
|
|
24
25
|
* - Signal propagation (abort passthrough)
|
|
25
26
|
* - Access to observational memory via the `recall` and
|
|
26
27
|
* `write_project_observation` tools, which run against a parent-session
|
|
@@ -511,9 +512,15 @@ async function runSingleAgent(defaultCwd, agents, agentName, task, cwd, step, si
|
|
|
511
512
|
effectivePrompt = mutationResult.prompt;
|
|
512
513
|
}
|
|
513
514
|
}
|
|
514
|
-
// Resolve model —
|
|
515
|
+
// Resolve model — agent-configured model preferred, session model as
|
|
516
|
+
// fallback. A model set on the cloud agent (remote_agent_update, /agents
|
|
517
|
+
// page) wins when it resolves against the registry AND has configured
|
|
518
|
+
// auth; otherwise the parent session model is used.
|
|
515
519
|
const sessionModel = ctx.model && ctx.modelRegistry.hasConfiguredAuth(ctx.model) ? ctx.model : undefined;
|
|
516
|
-
const
|
|
520
|
+
const agentModel = resolveModelString(agent.model, ctx.modelRegistry);
|
|
521
|
+
const model = agentModel && ctx.modelRegistry.hasConfiguredAuth(agentModel)
|
|
522
|
+
? agentModel
|
|
523
|
+
: sessionModel;
|
|
517
524
|
if (!model) {
|
|
518
525
|
return {
|
|
519
526
|
agent: agentName,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"const.d.ts","sourceRoot":"","sources":["../../../src/generated/zeus/const.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,MAAM,EAAC,GAAG,
|
|
1
|
+
{"version":3,"file":"const.d.ts","sourceRoot":"","sources":["../../../src/generated/zeus/const.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,MAAM,EAAC,GAAG,CA24B5C,CAAA;AAED,eAAO,MAAM,WAAW,EAAE,MAAM,CAAC,MAAM,EAAC,GAAG,CAy0C1C,CAAA;AAED,eAAO,MAAM,GAAG;;;;CAIf,CAAA"}
|
|
@@ -360,6 +360,7 @@ export const AllTypesProps = {
|
|
|
360
360
|
},
|
|
361
361
|
createCheckoutSession: {},
|
|
362
362
|
createCreditPackCheckoutSession: {},
|
|
363
|
+
createCardVerificationSession: {},
|
|
363
364
|
createBillingPortalSession: {},
|
|
364
365
|
cancelSubscription: {},
|
|
365
366
|
resumeSubscription: {},
|
|
@@ -1189,6 +1190,7 @@ export const ReturnTypes = {
|
|
|
1189
1190
|
testUserModelEndpoint: "String",
|
|
1190
1191
|
createCheckoutSession: "CheckoutSession",
|
|
1191
1192
|
createCreditPackCheckoutSession: "CheckoutSession",
|
|
1193
|
+
createCardVerificationSession: "CheckoutSession",
|
|
1192
1194
|
createBillingPortalSession: "BillingPortalSession",
|
|
1193
1195
|
cancelSubscription: "BillingSubscription",
|
|
1194
1196
|
resumeSubscription: "BillingSubscription",
|
|
@@ -1372,6 +1374,7 @@ export const ReturnTypes = {
|
|
|
1372
1374
|
currentPeriodStart: "DateTime",
|
|
1373
1375
|
currentPeriodEnd: "DateTime",
|
|
1374
1376
|
cancelAtPeriodEnd: "Boolean",
|
|
1377
|
+
cardVerifiedAt: "DateTime",
|
|
1375
1378
|
usage: "PlanUsage"
|
|
1376
1379
|
},
|
|
1377
1380
|
PlanUsage: {
|
|
@@ -1712,6 +1712,9 @@ export type ValueTypes = {
|
|
|
1712
1712
|
teamId: ValueTypes["ID"] | Variable<any, string>;
|
|
1713
1713
|
packId: string | Variable<any, string>;
|
|
1714
1714
|
}, ValueTypes["CheckoutSession"]];
|
|
1715
|
+
createCardVerificationSession?: [{
|
|
1716
|
+
teamId: ValueTypes["ID"] | Variable<any, string>;
|
|
1717
|
+
}, ValueTypes["CheckoutSession"]];
|
|
1715
1718
|
createBillingPortalSession?: [{
|
|
1716
1719
|
teamId: ValueTypes["ID"] | Variable<any, string>;
|
|
1717
1720
|
}, ValueTypes["BillingPortalSession"]];
|
|
@@ -2186,6 +2189,7 @@ export type ValueTypes = {
|
|
|
2186
2189
|
currentPeriodStart?: boolean | `@${string}`;
|
|
2187
2190
|
currentPeriodEnd?: boolean | `@${string}`;
|
|
2188
2191
|
cancelAtPeriodEnd?: boolean | `@${string}`;
|
|
2192
|
+
cardVerifiedAt?: boolean | `@${string}`;
|
|
2189
2193
|
usage?: ValueTypes["PlanUsage"];
|
|
2190
2194
|
__typename?: boolean | `@${string}`;
|
|
2191
2195
|
['...on BillingSubscription']?: Omit<ValueTypes["BillingSubscription"], "...on BillingSubscription">;
|
|
@@ -4379,6 +4383,9 @@ export type ResolverInputTypes = {
|
|
|
4379
4383
|
teamId: ResolverInputTypes["ID"];
|
|
4380
4384
|
packId: string;
|
|
4381
4385
|
}, ResolverInputTypes["CheckoutSession"]];
|
|
4386
|
+
createCardVerificationSession?: [{
|
|
4387
|
+
teamId: ResolverInputTypes["ID"];
|
|
4388
|
+
}, ResolverInputTypes["CheckoutSession"]];
|
|
4382
4389
|
createBillingPortalSession?: [{
|
|
4383
4390
|
teamId: ResolverInputTypes["ID"];
|
|
4384
4391
|
}, ResolverInputTypes["BillingPortalSession"]];
|
|
@@ -4846,6 +4853,7 @@ export type ResolverInputTypes = {
|
|
|
4846
4853
|
currentPeriodStart?: boolean | `@${string}`;
|
|
4847
4854
|
currentPeriodEnd?: boolean | `@${string}`;
|
|
4848
4855
|
cancelAtPeriodEnd?: boolean | `@${string}`;
|
|
4856
|
+
cardVerifiedAt?: boolean | `@${string}`;
|
|
4849
4857
|
usage?: ResolverInputTypes["PlanUsage"];
|
|
4850
4858
|
__typename?: boolean | `@${string}`;
|
|
4851
4859
|
}>;
|
|
@@ -6528,6 +6536,7 @@ export type ModelTypes = {
|
|
|
6528
6536
|
testUserModelEndpoint: string;
|
|
6529
6537
|
createCheckoutSession: ModelTypes["CheckoutSession"];
|
|
6530
6538
|
createCreditPackCheckoutSession: ModelTypes["CheckoutSession"];
|
|
6539
|
+
createCardVerificationSession: ModelTypes["CheckoutSession"];
|
|
6531
6540
|
createBillingPortalSession: ModelTypes["BillingPortalSession"];
|
|
6532
6541
|
cancelSubscription: ModelTypes["BillingSubscription"];
|
|
6533
6542
|
resumeSubscription: ModelTypes["BillingSubscription"];
|
|
@@ -6784,6 +6793,7 @@ export type ModelTypes = {
|
|
|
6784
6793
|
currentPeriodStart?: ModelTypes["DateTime"] | undefined | null;
|
|
6785
6794
|
currentPeriodEnd?: ModelTypes["DateTime"] | undefined | null;
|
|
6786
6795
|
cancelAtPeriodEnd: boolean;
|
|
6796
|
+
cardVerifiedAt?: ModelTypes["DateTime"] | undefined | null;
|
|
6787
6797
|
usage: ModelTypes["PlanUsage"];
|
|
6788
6798
|
};
|
|
6789
6799
|
["PlanUsage"]: {
|
|
@@ -8527,6 +8537,7 @@ export type GraphQLTypes = {
|
|
|
8527
8537
|
testUserModelEndpoint: string;
|
|
8528
8538
|
createCheckoutSession: GraphQLTypes["CheckoutSession"];
|
|
8529
8539
|
createCreditPackCheckoutSession: GraphQLTypes["CheckoutSession"];
|
|
8540
|
+
createCardVerificationSession: GraphQLTypes["CheckoutSession"];
|
|
8530
8541
|
createBillingPortalSession: GraphQLTypes["BillingPortalSession"];
|
|
8531
8542
|
cancelSubscription: GraphQLTypes["BillingSubscription"];
|
|
8532
8543
|
resumeSubscription: GraphQLTypes["BillingSubscription"];
|
|
@@ -8803,6 +8814,7 @@ export type GraphQLTypes = {
|
|
|
8803
8814
|
currentPeriodStart?: GraphQLTypes["DateTime"] | undefined | null;
|
|
8804
8815
|
currentPeriodEnd?: GraphQLTypes["DateTime"] | undefined | null;
|
|
8805
8816
|
cancelAtPeriodEnd: boolean;
|
|
8817
|
+
cardVerifiedAt?: GraphQLTypes["DateTime"] | undefined | null;
|
|
8806
8818
|
usage: GraphQLTypes["PlanUsage"];
|
|
8807
8819
|
['...on BillingSubscription']: Omit<GraphQLTypes["BillingSubscription"], "...on BillingSubscription">;
|
|
8808
8820
|
};
|