@elevasis/sdk 1.33.1 → 1.34.1
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/cli.cjs +680 -197
- package/dist/index.d.ts +162 -12
- package/dist/index.js +111 -17
- package/dist/node/index.d.ts +27 -9
- package/dist/node/index.js +29 -3
- package/dist/test-utils/index.d.ts +137 -5
- package/dist/test-utils/index.js +87 -15
- package/dist/worker/index.js +79 -4
- package/package.json +8 -6
- package/reference/_navigation.md +2 -1
- package/reference/_reference-manifest.json +14 -0
- package/reference/claude-config/Overview.md +2 -3
- package/reference/claude-config/skills/om/SKILL.md +108 -50
- package/reference/claude-config/skills/om/operations/build.md +237 -0
- package/reference/claude-config/skills/project/SKILL.md +16 -14
- package/reference/claude-config/sync-notes/2026-06-05-appearance-app-mode-decouple.md +29 -0
- package/reference/claude-config/sync-notes/2026-06-05-ontology-endpoint-rename-and-knowledge-browser-ui.md +86 -0
- package/reference/claude-config/sync-notes/2026-06-06-om-build-systems-scaffold.md +47 -0
- package/reference/claude-config/sync-notes/2026-06-06-om-item-copy-references.md +50 -0
- package/reference/claude-config/sync-notes/2026-06-08-knowledge-base-page-not-found-fix.md +76 -0
- package/reference/claude-config/sync-notes/2026-06-09-agent-sessions-public-agent-chat-route.md +75 -0
- package/reference/claude-config/sync-notes/2026-06-09-sdk-cli-load-org-model-resolution.md +42 -0
- package/reference/sdk/cli-management.mdx +130 -24
- package/reference/sdk/cli.mdx +2 -1
- package/reference/ui/exports.mdx +1 -0
package/dist/node/index.js
CHANGED
|
@@ -32,6 +32,9 @@ function parseScalar(value) {
|
|
|
32
32
|
const quoted = trimmed.match(/^['"]([\s\S]*)['"]$/);
|
|
33
33
|
return quoted ? quoted[1] : trimmed;
|
|
34
34
|
}
|
|
35
|
+
function normalizeLineEndings(value) {
|
|
36
|
+
return value.replace(/\r\n/g, "\n");
|
|
37
|
+
}
|
|
35
38
|
function parseFrontmatter(raw, filePath) {
|
|
36
39
|
const match = raw.match(/^---\r?\n([\s\S]*?)\r?\n---\r?\n?([\s\S]*)$/);
|
|
37
40
|
if (!match) throw new Error(`[knowledge-node-codegen] Missing frontmatter in ${filePath}`);
|
|
@@ -55,7 +58,7 @@ function parseFrontmatter(raw, filePath) {
|
|
|
55
58
|
}
|
|
56
59
|
frontmatter[key] = values;
|
|
57
60
|
}
|
|
58
|
-
return { frontmatter, body: match[2].trim() };
|
|
61
|
+
return { frontmatter, body: normalizeLineEndings(match[2]).trim() };
|
|
59
62
|
}
|
|
60
63
|
function assertString(frontmatter, key, filePath) {
|
|
61
64
|
const value = frontmatter[key];
|
|
@@ -538,6 +541,24 @@ function withPlatformResourceDescriptors(workflows, getWorkflowResourceDescripto
|
|
|
538
541
|
(workflow) => withPlatformResourceDescriptor(workflow, getWorkflowResourceDescriptor, getResourceOntologyBinding)
|
|
539
542
|
);
|
|
540
543
|
}
|
|
544
|
+
function withPlatformAgentResourceDescriptor(agent, getAgentResourceDescriptor, getResourceOntologyBinding) {
|
|
545
|
+
const resource = getAgentResourceDescriptor(agent.config.resourceId);
|
|
546
|
+
const sdkResource = toSdkResourceDescriptor(resource, getResourceOntologyBinding);
|
|
547
|
+
return {
|
|
548
|
+
...agent,
|
|
549
|
+
config: {
|
|
550
|
+
...agent.config,
|
|
551
|
+
resource: sdkResource,
|
|
552
|
+
resourceId: sdkResource.id,
|
|
553
|
+
type: sdkResource.kind
|
|
554
|
+
}
|
|
555
|
+
};
|
|
556
|
+
}
|
|
557
|
+
function withPlatformAgentResourceDescriptors(agents, getAgentResourceDescriptor, getResourceOntologyBinding) {
|
|
558
|
+
return agents.map(
|
|
559
|
+
(agent) => withPlatformAgentResourceDescriptor(agent, getAgentResourceDescriptor, getResourceOntologyBinding)
|
|
560
|
+
);
|
|
561
|
+
}
|
|
541
562
|
function withPlatformIntegrationResourceDescriptor(integration, getIntegrationResourceDescriptor, getResourceOntologyBinding) {
|
|
542
563
|
const resource = getIntegrationResourceDescriptor(integration.resourceId);
|
|
543
564
|
const sdkResource = toSdkResourceDescriptor(resource, getResourceOntologyBinding);
|
|
@@ -597,11 +618,16 @@ function projectDeploymentSpec(options) {
|
|
|
597
618
|
options.getIntegrationResourceDescriptor,
|
|
598
619
|
options.getResourceOntologyBinding
|
|
599
620
|
);
|
|
621
|
+
const agents = options.getAgentResourceDescriptor === void 0 ? options.agents ?? [] : withPlatformAgentResourceDescriptors(
|
|
622
|
+
options.agents ?? [],
|
|
623
|
+
options.getAgentResourceDescriptor,
|
|
624
|
+
options.getResourceOntologyBinding
|
|
625
|
+
);
|
|
600
626
|
return {
|
|
601
627
|
version: options.version,
|
|
602
628
|
organizationModel: options.organizationModel,
|
|
603
629
|
workflows,
|
|
604
|
-
agents
|
|
630
|
+
agents,
|
|
605
631
|
triggers: options.triggers,
|
|
606
632
|
integrations,
|
|
607
633
|
humanCheckpoints: options.humanCheckpoints,
|
|
@@ -610,4 +636,4 @@ function projectDeploymentSpec(options) {
|
|
|
610
636
|
};
|
|
611
637
|
}
|
|
612
638
|
|
|
613
|
-
export { generateKnowledgeBodies, generateKnowledgeNodes, generateKnowledgeNodesTs, projectDeploymentSpec, projectTopologyRelationships, readKnowledgeNodeMdx, runKnowledgeCodegen, toSdkResourceDescriptor, withPlatformIntegrationResourceDescriptor, withPlatformIntegrationResourceDescriptors, withPlatformResourceDescriptor, withPlatformResourceDescriptors };
|
|
639
|
+
export { generateKnowledgeBodies, generateKnowledgeNodes, generateKnowledgeNodesTs, projectDeploymentSpec, projectTopologyRelationships, readKnowledgeNodeMdx, runKnowledgeCodegen, toSdkResourceDescriptor, withPlatformAgentResourceDescriptor, withPlatformAgentResourceDescriptors, withPlatformIntegrationResourceDescriptor, withPlatformIntegrationResourceDescriptors, withPlatformResourceDescriptor, withPlatformResourceDescriptors };
|
|
@@ -259,7 +259,7 @@ type GoogleModel = 'gemini-3-flash-preview' | 'gemini-3.1-flash-lite-preview';
|
|
|
259
259
|
/**
|
|
260
260
|
* Supported Anthropic models (direct SDK access via @anthropic-ai/sdk)
|
|
261
261
|
*/
|
|
262
|
-
type AnthropicModel = 'claude-sonnet-4-5';
|
|
262
|
+
type AnthropicModel = 'claude-opus-4-8' | 'claude-sonnet-4-6' | 'claude-haiku-4-5-20251001' | 'claude-haiku-4-5' | 'claude-sonnet-4-5';
|
|
263
263
|
/** Supported LLM models */
|
|
264
264
|
type LLMModel = OpenAIModel | OpenRouterModel | GoogleModel | AnthropicModel | 'mock';
|
|
265
265
|
/**
|
|
@@ -302,9 +302,9 @@ declare const GoogleOptionsSchema: z.ZodObject<{
|
|
|
302
302
|
}, z.core.$strip>;
|
|
303
303
|
/**
|
|
304
304
|
* Anthropic model options schema
|
|
305
|
-
* Currently empty - future options
|
|
305
|
+
* Currently empty - future options must be added per supported model family
|
|
306
306
|
*/
|
|
307
|
-
declare const AnthropicOptionsSchema: z.ZodObject<{}, z.core.$
|
|
307
|
+
declare const AnthropicOptionsSchema: z.ZodObject<{}, z.core.$strict>;
|
|
308
308
|
/**
|
|
309
309
|
* Infer TypeScript types from schemas
|
|
310
310
|
*/
|
|
@@ -3370,6 +3370,138 @@ type Database = {
|
|
|
3370
3370
|
};
|
|
3371
3371
|
Relationships: [];
|
|
3372
3372
|
};
|
|
3373
|
+
agent_access_grants: {
|
|
3374
|
+
Row: {
|
|
3375
|
+
allowed_origins: string[];
|
|
3376
|
+
branding: Json;
|
|
3377
|
+
capture_fields: Json;
|
|
3378
|
+
code_hash: string | null;
|
|
3379
|
+
code_salt: string | null;
|
|
3380
|
+
created_at: string;
|
|
3381
|
+
disabled_at: string | null;
|
|
3382
|
+
expires_at: string | null;
|
|
3383
|
+
id: string;
|
|
3384
|
+
max_sessions_per_visitor: number;
|
|
3385
|
+
max_turns_per_session: number;
|
|
3386
|
+
mode: string;
|
|
3387
|
+
organization_id: string;
|
|
3388
|
+
resource_id: string;
|
|
3389
|
+
slug: string;
|
|
3390
|
+
tool_policy: Json;
|
|
3391
|
+
updated_at: string;
|
|
3392
|
+
};
|
|
3393
|
+
Insert: {
|
|
3394
|
+
allowed_origins?: string[];
|
|
3395
|
+
branding?: Json;
|
|
3396
|
+
capture_fields?: Json;
|
|
3397
|
+
code_hash?: string | null;
|
|
3398
|
+
code_salt?: string | null;
|
|
3399
|
+
created_at?: string;
|
|
3400
|
+
disabled_at?: string | null;
|
|
3401
|
+
expires_at?: string | null;
|
|
3402
|
+
id?: string;
|
|
3403
|
+
max_sessions_per_visitor?: number;
|
|
3404
|
+
max_turns_per_session?: number;
|
|
3405
|
+
mode?: string;
|
|
3406
|
+
organization_id: string;
|
|
3407
|
+
resource_id: string;
|
|
3408
|
+
slug: string;
|
|
3409
|
+
tool_policy?: Json;
|
|
3410
|
+
updated_at?: string;
|
|
3411
|
+
};
|
|
3412
|
+
Update: {
|
|
3413
|
+
allowed_origins?: string[];
|
|
3414
|
+
branding?: Json;
|
|
3415
|
+
capture_fields?: Json;
|
|
3416
|
+
code_hash?: string | null;
|
|
3417
|
+
code_salt?: string | null;
|
|
3418
|
+
created_at?: string;
|
|
3419
|
+
disabled_at?: string | null;
|
|
3420
|
+
expires_at?: string | null;
|
|
3421
|
+
id?: string;
|
|
3422
|
+
max_sessions_per_visitor?: number;
|
|
3423
|
+
max_turns_per_session?: number;
|
|
3424
|
+
mode?: string;
|
|
3425
|
+
organization_id?: string;
|
|
3426
|
+
resource_id?: string;
|
|
3427
|
+
slug?: string;
|
|
3428
|
+
tool_policy?: Json;
|
|
3429
|
+
updated_at?: string;
|
|
3430
|
+
};
|
|
3431
|
+
Relationships: [
|
|
3432
|
+
{
|
|
3433
|
+
foreignKeyName: "agent_access_grants_organization_id_fkey";
|
|
3434
|
+
columns: ["organization_id"];
|
|
3435
|
+
isOneToOne: false;
|
|
3436
|
+
referencedRelation: "organizations";
|
|
3437
|
+
referencedColumns: ["id"];
|
|
3438
|
+
}
|
|
3439
|
+
];
|
|
3440
|
+
};
|
|
3441
|
+
agent_chat_capabilities: {
|
|
3442
|
+
Row: {
|
|
3443
|
+
created_at: string;
|
|
3444
|
+
expires_at: string;
|
|
3445
|
+
grant_id: string;
|
|
3446
|
+
id: string;
|
|
3447
|
+
organization_id: string;
|
|
3448
|
+
origin: string | null;
|
|
3449
|
+
resource_id: string;
|
|
3450
|
+
revoked_at: string | null;
|
|
3451
|
+
session_id: string | null;
|
|
3452
|
+
token_hash: string;
|
|
3453
|
+
visitor_id: string | null;
|
|
3454
|
+
};
|
|
3455
|
+
Insert: {
|
|
3456
|
+
created_at?: string;
|
|
3457
|
+
expires_at: string;
|
|
3458
|
+
grant_id: string;
|
|
3459
|
+
id?: string;
|
|
3460
|
+
organization_id: string;
|
|
3461
|
+
origin?: string | null;
|
|
3462
|
+
resource_id: string;
|
|
3463
|
+
revoked_at?: string | null;
|
|
3464
|
+
session_id?: string | null;
|
|
3465
|
+
token_hash: string;
|
|
3466
|
+
visitor_id?: string | null;
|
|
3467
|
+
};
|
|
3468
|
+
Update: {
|
|
3469
|
+
created_at?: string;
|
|
3470
|
+
expires_at?: string;
|
|
3471
|
+
grant_id?: string;
|
|
3472
|
+
id?: string;
|
|
3473
|
+
organization_id?: string;
|
|
3474
|
+
origin?: string | null;
|
|
3475
|
+
resource_id?: string;
|
|
3476
|
+
revoked_at?: string | null;
|
|
3477
|
+
session_id?: string | null;
|
|
3478
|
+
token_hash?: string;
|
|
3479
|
+
visitor_id?: string | null;
|
|
3480
|
+
};
|
|
3481
|
+
Relationships: [
|
|
3482
|
+
{
|
|
3483
|
+
foreignKeyName: "agent_chat_capabilities_grant_id_fkey";
|
|
3484
|
+
columns: ["grant_id"];
|
|
3485
|
+
isOneToOne: false;
|
|
3486
|
+
referencedRelation: "agent_access_grants";
|
|
3487
|
+
referencedColumns: ["id"];
|
|
3488
|
+
},
|
|
3489
|
+
{
|
|
3490
|
+
foreignKeyName: "agent_chat_capabilities_organization_id_fkey";
|
|
3491
|
+
columns: ["organization_id"];
|
|
3492
|
+
isOneToOne: false;
|
|
3493
|
+
referencedRelation: "organizations";
|
|
3494
|
+
referencedColumns: ["id"];
|
|
3495
|
+
},
|
|
3496
|
+
{
|
|
3497
|
+
foreignKeyName: "agent_chat_capabilities_session_id_fkey";
|
|
3498
|
+
columns: ["session_id"];
|
|
3499
|
+
isOneToOne: false;
|
|
3500
|
+
referencedRelation: "sessions";
|
|
3501
|
+
referencedColumns: ["session_id"];
|
|
3502
|
+
}
|
|
3503
|
+
];
|
|
3504
|
+
};
|
|
3373
3505
|
organizations: {
|
|
3374
3506
|
Row: {
|
|
3375
3507
|
config: Json;
|
|
@@ -5864,7 +5996,7 @@ declare const OntologyScopeSchema: z.ZodDefault<z.ZodObject<{
|
|
|
5864
5996
|
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
5865
5997
|
members: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
|
|
5866
5998
|
}, z.core.$loose>>>>;
|
|
5867
|
-
|
|
5999
|
+
endpoints: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
5868
6000
|
id: z.ZodString;
|
|
5869
6001
|
label: z.ZodOptional<z.ZodString>;
|
|
5870
6002
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -6529,7 +6661,7 @@ declare const OrganizationModelSchema: z.ZodObject<{
|
|
|
6529
6661
|
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
6530
6662
|
members: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
|
|
6531
6663
|
}, z.core.$loose>>>>;
|
|
6532
|
-
|
|
6664
|
+
endpoints: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
6533
6665
|
id: z.ZodString;
|
|
6534
6666
|
label: z.ZodOptional<z.ZodString>;
|
|
6535
6667
|
description: z.ZodOptional<z.ZodString>;
|
package/dist/test-utils/index.js
CHANGED
|
@@ -4846,17 +4846,38 @@ var GoogleConfigSchema = z.object({
|
|
|
4846
4846
|
topP: z.number().min(0).max(1).optional(),
|
|
4847
4847
|
modelOptions: GoogleOptionsSchema.optional()
|
|
4848
4848
|
});
|
|
4849
|
-
var AnthropicOptionsSchema = z.object({});
|
|
4850
|
-
var
|
|
4851
|
-
model: z.enum([
|
|
4849
|
+
var AnthropicOptionsSchema = z.object({}).strict();
|
|
4850
|
+
var AnthropicStandardConfigSchema = z.object({
|
|
4851
|
+
model: z.enum([
|
|
4852
|
+
"claude-sonnet-4-6",
|
|
4853
|
+
"claude-haiku-4-5-20251001",
|
|
4854
|
+
"claude-haiku-4-5",
|
|
4855
|
+
"claude-sonnet-4-5"
|
|
4856
|
+
]),
|
|
4852
4857
|
provider: z.literal("anthropic"),
|
|
4853
4858
|
apiKey: z.string(),
|
|
4854
4859
|
temperature: z.number().min(0).max(1).optional(),
|
|
4855
|
-
maxOutputTokens: z.number().min(1e3).optional(),
|
|
4860
|
+
maxOutputTokens: z.number().min(1e3).max(64e3).optional(),
|
|
4856
4861
|
// Anthropic requires max_tokens
|
|
4857
4862
|
topP: z.number().min(0).max(1).optional(),
|
|
4858
4863
|
modelOptions: AnthropicOptionsSchema.optional()
|
|
4859
4864
|
});
|
|
4865
|
+
var AnthropicOpus48ConfigSchema = z.object({
|
|
4866
|
+
model: z.literal("claude-opus-4-8"),
|
|
4867
|
+
provider: z.literal("anthropic"),
|
|
4868
|
+
apiKey: z.string(),
|
|
4869
|
+
temperature: z.literal(1).optional(),
|
|
4870
|
+
maxOutputTokens: z.number().min(1e3).max(128e3).optional(),
|
|
4871
|
+
// Anthropic requires max_tokens
|
|
4872
|
+
topP: z.literal(1).optional(),
|
|
4873
|
+
topK: z.undefined().optional(),
|
|
4874
|
+
top_k: z.undefined().optional(),
|
|
4875
|
+
modelOptions: AnthropicOptionsSchema.optional()
|
|
4876
|
+
});
|
|
4877
|
+
var AnthropicConfigSchema = z.discriminatedUnion("model", [
|
|
4878
|
+
AnthropicOpus48ConfigSchema,
|
|
4879
|
+
AnthropicStandardConfigSchema
|
|
4880
|
+
]);
|
|
4860
4881
|
var MODEL_INFO = {
|
|
4861
4882
|
// OpenAI GPT-5 (Reasoning Models)
|
|
4862
4883
|
"gpt-5": {
|
|
@@ -4949,6 +4970,58 @@ var MODEL_INFO = {
|
|
|
4949
4970
|
configSchema: GoogleConfigSchema
|
|
4950
4971
|
},
|
|
4951
4972
|
// Anthropic Claude Models (direct SDK access via @anthropic-ai/sdk)
|
|
4973
|
+
"claude-opus-4-8": {
|
|
4974
|
+
inputCostPer1M: 500,
|
|
4975
|
+
// $5.00 per 1M tokens
|
|
4976
|
+
outputCostPer1M: 2500,
|
|
4977
|
+
// $25.00 per 1M tokens
|
|
4978
|
+
minTokens: 4e3,
|
|
4979
|
+
recommendedTokens: 8e3,
|
|
4980
|
+
maxTokens: 1e6,
|
|
4981
|
+
// 1M context window
|
|
4982
|
+
maxOutputTokens: 128e3,
|
|
4983
|
+
category: "reasoning",
|
|
4984
|
+
configSchema: AnthropicConfigSchema
|
|
4985
|
+
},
|
|
4986
|
+
"claude-sonnet-4-6": {
|
|
4987
|
+
inputCostPer1M: 300,
|
|
4988
|
+
// $3.00 per 1M tokens
|
|
4989
|
+
outputCostPer1M: 1500,
|
|
4990
|
+
// $15.00 per 1M tokens
|
|
4991
|
+
minTokens: 4e3,
|
|
4992
|
+
recommendedTokens: 8e3,
|
|
4993
|
+
maxTokens: 1e6,
|
|
4994
|
+
// 1M context window
|
|
4995
|
+
maxOutputTokens: 64e3,
|
|
4996
|
+
category: "standard",
|
|
4997
|
+
configSchema: AnthropicConfigSchema
|
|
4998
|
+
},
|
|
4999
|
+
"claude-haiku-4-5-20251001": {
|
|
5000
|
+
inputCostPer1M: 100,
|
|
5001
|
+
// $1.00 per 1M tokens
|
|
5002
|
+
outputCostPer1M: 500,
|
|
5003
|
+
// $5.00 per 1M tokens
|
|
5004
|
+
minTokens: 4e3,
|
|
5005
|
+
recommendedTokens: 8e3,
|
|
5006
|
+
maxTokens: 2e5,
|
|
5007
|
+
// 200k context window
|
|
5008
|
+
maxOutputTokens: 64e3,
|
|
5009
|
+
category: "standard",
|
|
5010
|
+
configSchema: AnthropicConfigSchema
|
|
5011
|
+
},
|
|
5012
|
+
"claude-haiku-4-5": {
|
|
5013
|
+
inputCostPer1M: 100,
|
|
5014
|
+
// $1.00 per 1M tokens
|
|
5015
|
+
outputCostPer1M: 500,
|
|
5016
|
+
// $5.00 per 1M tokens
|
|
5017
|
+
minTokens: 4e3,
|
|
5018
|
+
recommendedTokens: 8e3,
|
|
5019
|
+
maxTokens: 2e5,
|
|
5020
|
+
// 200k context window
|
|
5021
|
+
maxOutputTokens: 64e3,
|
|
5022
|
+
category: "standard",
|
|
5023
|
+
configSchema: AnthropicConfigSchema
|
|
5024
|
+
},
|
|
4952
5025
|
"claude-sonnet-4-5": {
|
|
4953
5026
|
inputCostPer1M: 300,
|
|
4954
5027
|
// $3.00 per 1M tokens
|
|
@@ -4958,6 +5031,7 @@ var MODEL_INFO = {
|
|
|
4958
5031
|
recommendedTokens: 8e3,
|
|
4959
5032
|
maxTokens: 2e5,
|
|
4960
5033
|
// 200k context window
|
|
5034
|
+
maxOutputTokens: 64e3,
|
|
4961
5035
|
category: "standard",
|
|
4962
5036
|
configSchema: AnthropicConfigSchema
|
|
4963
5037
|
}
|
|
@@ -8325,16 +8399,13 @@ var OntologyKindSchema = z.enum([
|
|
|
8325
8399
|
"value-type",
|
|
8326
8400
|
"property",
|
|
8327
8401
|
"group",
|
|
8328
|
-
"
|
|
8402
|
+
"endpoint"
|
|
8329
8403
|
]);
|
|
8330
8404
|
var SYSTEM_PATH_PATTERN = "[a-z0-9][a-z0-9-]*(?:\\.[a-z0-9][a-z0-9-]*)*";
|
|
8331
8405
|
var LOCAL_ID_PATTERN = "[a-z0-9][a-z0-9._-]*";
|
|
8332
8406
|
var ONTOLOGY_ID_PATTERN = `^(global|${SYSTEM_PATH_PATTERN}):(${OntologyKindSchema.options.join("|")})\\/(${LOCAL_ID_PATTERN})$`;
|
|
8333
8407
|
var ONTOLOGY_ID_REGEX = new RegExp(ONTOLOGY_ID_PATTERN);
|
|
8334
|
-
var OntologyIdSchema = z.string().trim().min(1).max(300).regex(
|
|
8335
|
-
ONTOLOGY_ID_REGEX,
|
|
8336
|
-
"Ontology IDs must use <system-path>:<kind>/<local-id> or global:<kind>/<local-id>"
|
|
8337
|
-
);
|
|
8408
|
+
var OntologyIdSchema = z.string().trim().min(1).max(300).regex(ONTOLOGY_ID_REGEX, "Ontology IDs must use <system-path>:<kind>/<local-id> or global:<kind>/<local-id>");
|
|
8338
8409
|
function parseOntologyId(id) {
|
|
8339
8410
|
const normalized = OntologyIdSchema.parse(id);
|
|
8340
8411
|
const match = ONTOLOGY_ID_REGEX.exec(normalized);
|
|
@@ -8397,7 +8468,7 @@ var OntologySharedPropertySchema = OntologyRecordBaseSchema.extend({
|
|
|
8397
8468
|
var OntologyGroupSchema = OntologyRecordBaseSchema.extend({
|
|
8398
8469
|
members: OntologyReferenceListSchema
|
|
8399
8470
|
});
|
|
8400
|
-
var
|
|
8471
|
+
var OntologyEndpointTypeSchema = OntologyRecordBaseSchema.extend({
|
|
8401
8472
|
route: z.string().trim().min(1).max(500).optional()
|
|
8402
8473
|
});
|
|
8403
8474
|
var OntologyScopeSchema = z.object({
|
|
@@ -8410,7 +8481,7 @@ var OntologyScopeSchema = z.object({
|
|
|
8410
8481
|
valueTypes: z.record(OntologyIdSchema, OntologyValueTypeSchema).default({}).optional(),
|
|
8411
8482
|
sharedProperties: z.record(OntologyIdSchema, OntologySharedPropertySchema).default({}).optional(),
|
|
8412
8483
|
groups: z.record(OntologyIdSchema, OntologyGroupSchema).default({}).optional(),
|
|
8413
|
-
|
|
8484
|
+
endpoints: z.record(OntologyIdSchema, OntologyEndpointTypeSchema).default({}).optional()
|
|
8414
8485
|
}).default({});
|
|
8415
8486
|
var SCOPE_KIND = {
|
|
8416
8487
|
objectTypes: "object",
|
|
@@ -8422,7 +8493,7 @@ var SCOPE_KIND = {
|
|
|
8422
8493
|
valueTypes: "value-type",
|
|
8423
8494
|
sharedProperties: "property",
|
|
8424
8495
|
groups: "group",
|
|
8425
|
-
|
|
8496
|
+
endpoints: "endpoint"
|
|
8426
8497
|
};
|
|
8427
8498
|
var SCOPE_KEYS = Object.keys(SCOPE_KIND);
|
|
8428
8499
|
function originFromContext(context) {
|
|
@@ -8445,7 +8516,7 @@ function createEmptyIndex() {
|
|
|
8445
8516
|
valueTypes: {},
|
|
8446
8517
|
sharedProperties: {},
|
|
8447
8518
|
groups: {},
|
|
8448
|
-
|
|
8519
|
+
endpoints: {}
|
|
8449
8520
|
};
|
|
8450
8521
|
}
|
|
8451
8522
|
function sortResolvedOntologyIndex(index2) {
|
|
@@ -9386,8 +9457,8 @@ function ontologyIndexForKind(index2, kind) {
|
|
|
9386
9457
|
return index2.sharedProperties;
|
|
9387
9458
|
case "group":
|
|
9388
9459
|
return index2.groups;
|
|
9389
|
-
case "
|
|
9390
|
-
return index2.
|
|
9460
|
+
case "endpoint":
|
|
9461
|
+
return index2.endpoints;
|
|
9391
9462
|
}
|
|
9392
9463
|
}
|
|
9393
9464
|
function sameJson(left, right) {
|
|
@@ -10169,6 +10240,7 @@ function startWorker(org) {
|
|
|
10169
10240
|
version: a3.config.version,
|
|
10170
10241
|
links: a3.config.links,
|
|
10171
10242
|
category: a3.config.category,
|
|
10243
|
+
sessionCapable: a3.config.sessionCapable ?? false,
|
|
10172
10244
|
contract: {
|
|
10173
10245
|
inputSchema: safeZodToJsonSchema(a3.contract?.inputSchema),
|
|
10174
10246
|
outputSchema: safeZodToJsonSchema(a3.contract?.outputSchema)
|
package/dist/worker/index.js
CHANGED
|
@@ -2968,17 +2968,38 @@ var GoogleConfigSchema = z.object({
|
|
|
2968
2968
|
topP: z.number().min(0).max(1).optional(),
|
|
2969
2969
|
modelOptions: GoogleOptionsSchema.optional()
|
|
2970
2970
|
});
|
|
2971
|
-
var AnthropicOptionsSchema = z.object({});
|
|
2972
|
-
var
|
|
2973
|
-
model: z.enum([
|
|
2971
|
+
var AnthropicOptionsSchema = z.object({}).strict();
|
|
2972
|
+
var AnthropicStandardConfigSchema = z.object({
|
|
2973
|
+
model: z.enum([
|
|
2974
|
+
"claude-sonnet-4-6",
|
|
2975
|
+
"claude-haiku-4-5-20251001",
|
|
2976
|
+
"claude-haiku-4-5",
|
|
2977
|
+
"claude-sonnet-4-5"
|
|
2978
|
+
]),
|
|
2974
2979
|
provider: z.literal("anthropic"),
|
|
2975
2980
|
apiKey: z.string(),
|
|
2976
2981
|
temperature: z.number().min(0).max(1).optional(),
|
|
2977
|
-
maxOutputTokens: z.number().min(1e3).optional(),
|
|
2982
|
+
maxOutputTokens: z.number().min(1e3).max(64e3).optional(),
|
|
2978
2983
|
// Anthropic requires max_tokens
|
|
2979
2984
|
topP: z.number().min(0).max(1).optional(),
|
|
2980
2985
|
modelOptions: AnthropicOptionsSchema.optional()
|
|
2981
2986
|
});
|
|
2987
|
+
var AnthropicOpus48ConfigSchema = z.object({
|
|
2988
|
+
model: z.literal("claude-opus-4-8"),
|
|
2989
|
+
provider: z.literal("anthropic"),
|
|
2990
|
+
apiKey: z.string(),
|
|
2991
|
+
temperature: z.literal(1).optional(),
|
|
2992
|
+
maxOutputTokens: z.number().min(1e3).max(128e3).optional(),
|
|
2993
|
+
// Anthropic requires max_tokens
|
|
2994
|
+
topP: z.literal(1).optional(),
|
|
2995
|
+
topK: z.undefined().optional(),
|
|
2996
|
+
top_k: z.undefined().optional(),
|
|
2997
|
+
modelOptions: AnthropicOptionsSchema.optional()
|
|
2998
|
+
});
|
|
2999
|
+
var AnthropicConfigSchema = z.discriminatedUnion("model", [
|
|
3000
|
+
AnthropicOpus48ConfigSchema,
|
|
3001
|
+
AnthropicStandardConfigSchema
|
|
3002
|
+
]);
|
|
2982
3003
|
var MODEL_INFO = {
|
|
2983
3004
|
// OpenAI GPT-5 (Reasoning Models)
|
|
2984
3005
|
"gpt-5": {
|
|
@@ -3071,6 +3092,58 @@ var MODEL_INFO = {
|
|
|
3071
3092
|
configSchema: GoogleConfigSchema
|
|
3072
3093
|
},
|
|
3073
3094
|
// Anthropic Claude Models (direct SDK access via @anthropic-ai/sdk)
|
|
3095
|
+
"claude-opus-4-8": {
|
|
3096
|
+
inputCostPer1M: 500,
|
|
3097
|
+
// $5.00 per 1M tokens
|
|
3098
|
+
outputCostPer1M: 2500,
|
|
3099
|
+
// $25.00 per 1M tokens
|
|
3100
|
+
minTokens: 4e3,
|
|
3101
|
+
recommendedTokens: 8e3,
|
|
3102
|
+
maxTokens: 1e6,
|
|
3103
|
+
// 1M context window
|
|
3104
|
+
maxOutputTokens: 128e3,
|
|
3105
|
+
category: "reasoning",
|
|
3106
|
+
configSchema: AnthropicConfigSchema
|
|
3107
|
+
},
|
|
3108
|
+
"claude-sonnet-4-6": {
|
|
3109
|
+
inputCostPer1M: 300,
|
|
3110
|
+
// $3.00 per 1M tokens
|
|
3111
|
+
outputCostPer1M: 1500,
|
|
3112
|
+
// $15.00 per 1M tokens
|
|
3113
|
+
minTokens: 4e3,
|
|
3114
|
+
recommendedTokens: 8e3,
|
|
3115
|
+
maxTokens: 1e6,
|
|
3116
|
+
// 1M context window
|
|
3117
|
+
maxOutputTokens: 64e3,
|
|
3118
|
+
category: "standard",
|
|
3119
|
+
configSchema: AnthropicConfigSchema
|
|
3120
|
+
},
|
|
3121
|
+
"claude-haiku-4-5-20251001": {
|
|
3122
|
+
inputCostPer1M: 100,
|
|
3123
|
+
// $1.00 per 1M tokens
|
|
3124
|
+
outputCostPer1M: 500,
|
|
3125
|
+
// $5.00 per 1M tokens
|
|
3126
|
+
minTokens: 4e3,
|
|
3127
|
+
recommendedTokens: 8e3,
|
|
3128
|
+
maxTokens: 2e5,
|
|
3129
|
+
// 200k context window
|
|
3130
|
+
maxOutputTokens: 64e3,
|
|
3131
|
+
category: "standard",
|
|
3132
|
+
configSchema: AnthropicConfigSchema
|
|
3133
|
+
},
|
|
3134
|
+
"claude-haiku-4-5": {
|
|
3135
|
+
inputCostPer1M: 100,
|
|
3136
|
+
// $1.00 per 1M tokens
|
|
3137
|
+
outputCostPer1M: 500,
|
|
3138
|
+
// $5.00 per 1M tokens
|
|
3139
|
+
minTokens: 4e3,
|
|
3140
|
+
recommendedTokens: 8e3,
|
|
3141
|
+
maxTokens: 2e5,
|
|
3142
|
+
// 200k context window
|
|
3143
|
+
maxOutputTokens: 64e3,
|
|
3144
|
+
category: "standard",
|
|
3145
|
+
configSchema: AnthropicConfigSchema
|
|
3146
|
+
},
|
|
3074
3147
|
"claude-sonnet-4-5": {
|
|
3075
3148
|
inputCostPer1M: 300,
|
|
3076
3149
|
// $3.00 per 1M tokens
|
|
@@ -3080,6 +3153,7 @@ var MODEL_INFO = {
|
|
|
3080
3153
|
recommendedTokens: 8e3,
|
|
3081
3154
|
maxTokens: 2e5,
|
|
3082
3155
|
// 200k context window
|
|
3156
|
+
maxOutputTokens: 64e3,
|
|
3083
3157
|
category: "standard",
|
|
3084
3158
|
configSchema: AnthropicConfigSchema
|
|
3085
3159
|
}
|
|
@@ -6837,6 +6911,7 @@ function startWorker(org) {
|
|
|
6837
6911
|
version: a.config.version,
|
|
6838
6912
|
links: a.config.links,
|
|
6839
6913
|
category: a.config.category,
|
|
6914
|
+
sessionCapable: a.config.sessionCapable ?? false,
|
|
6840
6915
|
contract: {
|
|
6841
6916
|
inputSchema: safeZodToJsonSchema(a.contract?.inputSchema),
|
|
6842
6917
|
outputSchema: safeZodToJsonSchema(a.contract?.outputSchema)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elevasis/sdk",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.34.1",
|
|
4
4
|
"description": "SDK for building Elevasis organization resources",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -58,16 +58,18 @@
|
|
|
58
58
|
"tsup": "^8.0.0",
|
|
59
59
|
"typescript": "5.9.2",
|
|
60
60
|
"zod": "^4.1.0",
|
|
61
|
-
"@repo/core": "0.
|
|
62
|
-
"@repo/
|
|
63
|
-
"@repo/
|
|
61
|
+
"@repo/core": "0.47.0",
|
|
62
|
+
"@repo/typescript-config": "0.0.0",
|
|
63
|
+
"@repo/eslint-config": "0.0.0"
|
|
64
64
|
},
|
|
65
65
|
"scripts": {
|
|
66
66
|
"lint": "eslint src --max-warnings 0",
|
|
67
67
|
"build": "node -e \"require('fs').rmSync('dist',{recursive:true,force:true})\" && tsc -p tsconfig.core-dts.json && tsc -p tsconfig.build.json && tsup && rollup -c rollup.dts.config.mjs && esbuild src/cli/index.ts --bundle --platform=node --outfile=dist/cli.cjs --format=cjs --external:esbuild --banner:js=\"#!/usr/bin/env node\" && node scripts/verify-skill-coverage.mjs && node scripts/copy-reference-docs.mjs && node ../../scripts/monorepo/generate-reference-artifacts.js",
|
|
68
68
|
"type-check": "tsc --noEmit",
|
|
69
69
|
"check-types": "pnpm type-check",
|
|
70
|
-
"test": "pnpm
|
|
71
|
-
"test:
|
|
70
|
+
"test": "pnpm test:bundle",
|
|
71
|
+
"test:source": "vitest run --config vitest.config.ts",
|
|
72
|
+
"test:dist": "pnpm build && node ../../scripts/monorepo/validate-reference-artifacts.js && vitest run --config vitest.bundle.config.ts",
|
|
73
|
+
"test:bundle": "pnpm test:source && pnpm test:dist"
|
|
72
74
|
}
|
|
73
75
|
}
|
package/reference/_navigation.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
Auto-generated from the package reference manifests.
|
|
6
6
|
|
|
7
|
-
Package entries indexed:
|
|
7
|
+
Package entries indexed: 61.
|
|
8
8
|
|
|
9
9
|
## @elevasis/core / Auth
|
|
10
10
|
|
|
@@ -101,6 +101,7 @@ Package entries indexed: 60.
|
|
|
101
101
|
| Features Clients | `packages/ui/src/features/README.md` | Published clients feature surface for downstream shells. | (not specified) |
|
|
102
102
|
| Features Notes | `packages/ui/src/features/README.md` | Published Notes panel view and supporting note components for shared right-panel integrations. | (not specified) |
|
|
103
103
|
| Features Right Panel Host | `packages/ui/src/features/README.md` | Published right-panel host provider, layer, trigger, keyboard shortcut, store, and view contract. | (not specified) |
|
|
104
|
+
| Features Public Agent Chat | `packages/ui/src/features/README.md` | Published public agent chat surface for downstream shells. | (not specified) |
|
|
104
105
|
|
|
105
106
|
## @elevasis/ui / Foundation
|
|
106
107
|
|
|
@@ -435,6 +435,20 @@
|
|
|
435
435
|
"referencePath": "packages/ui/src/features/README.md",
|
|
436
436
|
"publishedExportPath": "./dist/features/right-panel-host/index.js"
|
|
437
437
|
},
|
|
438
|
+
{
|
|
439
|
+
"packageName": "@elevasis/ui",
|
|
440
|
+
"packageDir": "packages/ui",
|
|
441
|
+
"subpath": "./features/public-agent-chat",
|
|
442
|
+
"kind": "subpath",
|
|
443
|
+
"title": "Features Public Agent Chat",
|
|
444
|
+
"description": "Published public agent chat surface for downstream shells.",
|
|
445
|
+
"group": "Features",
|
|
446
|
+
"order": 15,
|
|
447
|
+
"sourcePath": "packages/ui/src/features/public-agent-chat/index.ts",
|
|
448
|
+
"docPath": "packages/ui/src/features/README.md",
|
|
449
|
+
"referencePath": "packages/ui/src/features/README.md",
|
|
450
|
+
"publishedExportPath": "./dist/features/public-agent-chat/index.js"
|
|
451
|
+
},
|
|
438
452
|
{
|
|
439
453
|
"packageName": "@elevasis/ui",
|
|
440
454
|
"packageDir": "packages/ui",
|
|
@@ -41,7 +41,6 @@ Skills are the slash-command surface. Each skill is `.claude/skills/{name}/SKILL
|
|
|
41
41
|
|
|
42
42
|
<!-- @generated:start:sync-overview-skills -->
|
|
43
43
|
- **client** -- Client portfolio management -- list, resolve, inspect, and maintain client records and their lineage to companies, contacts, and source deals -- via the elevasis-sdk client:* CLI.
|
|
44
|
-
- **deploy** -- Test, build, fix issues, then commit and push
|
|
45
44
|
- **dsp** -- Dispatch subagents in parallel for implementation tasks
|
|
46
45
|
- **elevasis** -- Elevasis platform operations -- check, deploy, execute, inspect, and debug SDK resources
|
|
47
46
|
- **explore** -- Codebase exploration anchored to project documentation
|
|
@@ -119,5 +118,5 @@ Use the owning skill instead of guessing from the name alone:
|
|
|
119
118
|
| Refresh the Skills + Rules lists above | `pnpm gen:overview` (run from the monorepo) |
|
|
120
119
|
|
|
121
120
|
The Skills section is generated from `external/_template/.claude/skills/*/SKILL.md` frontmatter, and
|
|
122
|
-
the Rules section from the bundled rule source `packages/sdk/docs/agent-rules/*.md`, both by
|
|
123
|
-
|
|
121
|
+
the Rules section from the bundled rule source `packages/sdk/docs/agent-rules/*.md`, both by the
|
|
122
|
+
monorepo `pnpm gen:overview` generator. Do not hand-edit the generated blocks.
|