@anchrd/colab-sdk 0.1.36 → 0.1.38

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.
Files changed (49) hide show
  1. package/dist/actions/actions.d.ts +34 -23
  2. package/dist/actions/actions.js +5 -2
  3. package/dist/archive/archive.d.ts +1 -0
  4. package/dist/archive/archive.js +3 -0
  5. package/dist/boards/boards.d.ts +21 -21
  6. package/dist/columns/columns.d.ts +2 -2
  7. package/dist/connectors/connectors.d.ts +6 -6
  8. package/dist/crawls/crawls.d.ts +3 -3
  9. package/dist/error/error.d.ts +9 -3
  10. package/dist/error/error.js +12 -3
  11. package/dist/gadgets/gadgets.d.ts +147 -9
  12. package/dist/gadgets/gadgets.js +156 -0
  13. package/dist/goals/goals.d.ts +56 -10
  14. package/dist/goals/goals.js +36 -7
  15. package/dist/grammar/grammar.d.ts +2 -0
  16. package/dist/grammar/grammar.js +10 -0
  17. package/dist/home/home.d.ts +312 -0
  18. package/dist/home/home.js +53 -0
  19. package/dist/links/links.d.ts +166 -0
  20. package/dist/links/links.js +149 -0
  21. package/dist/mcps/mcps.d.ts +3 -3
  22. package/dist/messages/messages.d.ts +26 -0
  23. package/dist/messages/messages.js +33 -0
  24. package/dist/nodes/nodes.d.ts +46 -20
  25. package/dist/nodes/nodes.js +11 -3
  26. package/dist/operators/operators.d.ts +737 -47
  27. package/dist/operators/operators.js +388 -71
  28. package/dist/organisation/organisation.d.ts +2 -0
  29. package/dist/organisation/organisation.js +9 -0
  30. package/dist/primitives/primitives.d.ts +9 -0
  31. package/dist/primitives/primitives.js +16 -0
  32. package/dist/roles/roles.d.ts +1 -0
  33. package/dist/roles/roles.js +3 -0
  34. package/dist/runs/runs.d.ts +2 -2
  35. package/dist/sdk.d.ts +12 -11
  36. package/dist/sdk.js +12 -11
  37. package/dist/skills/skills.d.ts +37 -7
  38. package/dist/skills/skills.js +50 -0
  39. package/dist/sources/sources.d.ts +82 -20
  40. package/dist/sources/sources.js +71 -12
  41. package/dist/tables/tables.d.ts +42 -0
  42. package/dist/tables/tables.js +55 -2
  43. package/dist/tool.d.ts +1 -0
  44. package/dist/tree-order/tree-order.d.ts +2 -2
  45. package/dist/tree-order/tree-order.js +1 -1
  46. package/dist/users/users.d.ts +2 -0
  47. package/dist/users/users.js +3 -2
  48. package/dist/versions/versions.d.ts +13 -13
  49. package/package.json +1 -1
@@ -17,3 +17,19 @@ export const Rev = z
17
17
  .int()
18
18
  .min(1)
19
19
  .describe("The revision of the node this change is based on, as the last read returned it. If someone saved in between, the call answers conflict, changes nothing and names under current what stands now: decide, and send it again with that rev.");
20
+ // The nodes one step of a plan may name as its evidence (E219, #1037), for goals and Operator runs.
21
+ export const planEvidenceMax = 20;
22
+ // A subagent of a Gateway Operator's run (E220, #1038): the name its main agent gave it, and its own
23
+ // plan under the step it took, one level, for goals and Operator runs alike.
24
+ export const gatewayAgentsMax = 3;
25
+ export const AgentName = z
26
+ .string()
27
+ .trim()
28
+ .min(1)
29
+ .max(60)
30
+ .describe("The subagent's name, as its main agent gave it.");
31
+ export const PlanSubstep = z.object({
32
+ title: z.string(),
33
+ result: z.string().nullable(),
34
+ done: z.boolean(),
35
+ });
@@ -1,5 +1,6 @@
1
1
  import { z } from "zod";
2
2
  export declare const RoleId: z.ZodTemplateLiteral<`role_${string}`>;
3
+ export declare const validatorRoleId = "role_01K0000000000000000000VDR1";
3
4
  export declare const RightPath: z.ZodString;
4
5
  export declare const RoleListInput: z.ZodObject<{
5
6
  archived: z.ZodOptional<z.ZodPreprocess<z.ZodBoolean, unknown>>;
@@ -5,6 +5,9 @@ import { Flag, Limit } from "../list-input.js";
5
5
  // their routes, and the answers the UI reads. A right is `package / resource / action`, every word one
6
6
  // word (E64).
7
7
  export const RoleId = idSchema("role");
8
+ // The fixed role `validator` (E79, E80): its id is fixed, so `operator` knows the validation's
9
+ // Operator at its creation (E185) without asking `access`.
10
+ export const validatorRoleId = "role_01K0000000000000000000VDR1";
8
11
  // A right (`access / role / list`) or the prefix of a level (`intelligence / document`, `connectors`).
9
12
  // The spaces around `/` are optional; `access` stores the form with them. The last word may be a
10
13
  // connector's function, `connectors / shopify / order-list` (#5): resource and action joined by a
@@ -102,25 +102,25 @@ export declare const RunList: z.ZodObject<{
102
102
  export type RunList = z.infer<typeof RunList>;
103
103
  export declare const RunDetail: z.ZodObject<{
104
104
  counts: z.ZodNullable<z.ZodRecord<z.ZodEnum<{
105
- archive: "archive";
106
105
  backlog: "backlog";
107
106
  open: "open";
108
107
  progress: "progress";
109
108
  done: "done";
110
109
  discarded: "discarded";
111
110
  blocked: "blocked";
111
+ archive: "archive";
112
112
  }> & z.core.$partial, z.ZodNumber>>;
113
113
  columns: z.ZodNullable<z.ZodArray<z.ZodObject<{
114
114
  columnId: z.ZodTemplateLiteral<`column_${string}`>;
115
115
  name: z.ZodString;
116
116
  type: z.ZodEnum<{
117
- archive: "archive";
118
117
  backlog: "backlog";
119
118
  open: "open";
120
119
  progress: "progress";
121
120
  done: "done";
122
121
  discarded: "discarded";
123
122
  blocked: "blocked";
123
+ archive: "archive";
124
124
  }>;
125
125
  tasks: z.ZodNumber;
126
126
  }, z.core.$strip>>>;
package/dist/sdk.d.ts CHANGED
@@ -17,37 +17,38 @@ export { ActorKind, Event, EventId, EventKind, EventList, EventListInput, EventS
17
17
  export { ExcerptCursor, excerptChars, RowsExcerpt, TextExcerpt } from "./excerpt/excerpt.js";
18
18
  export { FileCreateInput, FileDetail, type FileFormat, FileGetInput, FileId, FileTextState, FileUpdateInput, FileUpload, fileFormatExtensions, fileFormatOf, fileTextStates, maxFileBytes, UploadTicket, uploadTicketHeader, uploadTicketLifetimeMs, } from "./files/files.js";
19
19
  export { FunctionRemoved, ServiceInterfaceFunctionCreateInput, ServiceInterfaceFunctionRemoveInput, ServiceInterfaceFunctionUpdateInput, } from "./functions/functions.js";
20
- export { GadgetCall, GadgetCallCreateInput, GadgetCallEntry, GadgetCallGetInput, GadgetCallItem, GadgetCallList, GadgetCallListInput, GadgetCallStatus, GadgetChange, GadgetClientLog, GadgetConsoleLine, GadgetCreateInput, GadgetDetail, GadgetFile, GadgetFilePath, GadgetFunction, GadgetFunctionName, GadgetGetInput, GadgetLevel, GadgetManifest, GadgetPublishInput, GadgetSettings, GadgetTestHooks, GadgetTestInput, GadgetTestResult, GadgetTestRun, GadgetToolUse, GadgetUpdateInput, GadgetVersionRef, gadgetLimits, gadgetLogDays, TestLimits, testLimits, testLimitsText, } from "./gadgets/gadgets.js";
21
- export { GoalCheck, GoalCreateInput, GoalDetail, GoalFields, GoalFollowUp, GoalGetInput, GoalId, GoalPlanning, GoalPlanStep, GoalReady, GoalReport, GoalRunCancelInput, GoalRunCompleteInput, GoalRunCreateInput, GoalRunDetail, GoalRunGetInput, GoalRunItem, GoalRunList, GoalRunListInput, GoalRunStatus, GoalRunTrigger, GoalRunUpdateInput, GoalSession, GoalUpdateInput, goalPlannings, goalRunStatuses, } from "./goals/goals.js";
20
+ export { GadgetAccess, GadgetCall, GadgetCallCreateInput, GadgetCallEntry, GadgetCallGetInput, GadgetCallItem, GadgetCallList, GadgetCallListInput, GadgetCallStatus, GadgetChange, GadgetClientLog, GadgetConsoleLine, GadgetCreateInput, GadgetDetail, GadgetDiffFile, GadgetDistAnswer, GadgetFile, GadgetFilePath, GadgetFunction, GadgetFunctionName, GadgetGetInput, GadgetLevel, GadgetManifest, GadgetPublishInput, GadgetRequires, GadgetSettings, GadgetTestHooks, GadgetTestInput, GadgetTestResult, GadgetTestRun, GadgetToolUse, GadgetUpdateInput, GadgetUseRight, GadgetUses, GadgetVersionRef, gadgetLimits, gadgetLogDays, TestLimits, testLimits, testLimitsText, } from "./gadgets/gadgets.js";
21
+ export { GoalCheck, GoalCreateInput, GoalDetail, GoalFields, GoalFollowUp, GoalGetInput, GoalId, GoalPlanning, GoalPlanStep, GoalProof, GoalReady, GoalReport, GoalRunCancelInput, GoalRunCompleteInput, GoalRunCreateInput, GoalRunDetail, GoalRunGetInput, GoalRunItem, GoalRunList, GoalRunListInput, GoalRunStatus, GoalRunTrigger, GoalRunUpdateInput, GoalSession, GoalUpdateInput, goalPlannings, goalRunStatuses, } from "./goals/goals.js";
22
22
  export { type Action, actions, hasRoute, isAction, isPackage, isWord, type Package, packages, parseConnectorFunction, parseToolName, type Resource, type Route, resources, type ToolName, toolAnnotations, toolEvent, toolPermission, toolRoute, toolSchemaName, verbs, } from "./grammar/grammar.js";
23
23
  export { GrantId, GrantRight, NodeGrant, NodeGrantList, NodeGrantListInput, NodeGrantRevoked, NodeGrantRevokeInput, NodeShared, NodeShareInput, } from "./grants/grants.js";
24
+ export { ColabNews, Home, HomeGetInput, HomeSetupState, HomeSetupStep, homeIncludes, homePersonSteps, homeSetupSteps, } from "./home/home.js";
24
25
  export { createId, type Id, idSchema } from "./ids/ids.js";
25
26
  export { Digest, InstructionRead, Instructions, InstructionsLink, InstructionsRead, InstructionText, instructionsNames, isInstructionsName, isKnownText, Known, KnownText, maxKnown, validationSection, } from "./instructions/instructions.js";
26
27
  export { FunctionNames, InterfaceRemoved, ServiceInterfaceCreateInput, ServiceInterfaceDeclared, ServiceInterfaceDeclareInput, ServiceInterfaceRemoveInput, ServiceInterfaceUndeclared, ServiceInterfaceUpdateInput, } from "./interfaces/interfaces.js";
27
28
  export { Delivery, Invitation, InvitationAcceptInput, InvitationCreateInput, InvitationId, InvitationLookup, InvitationLookupQuery, InvitationResendInput, InvitationRevokeInput, InvitationSent, InvitationSocialInput, InvitationStatus, RoleChip, } from "./invitations/invitations.js";
28
- export { defaultLinkDays, LinkId, LinkStatus, maxLinkDays, NodeLink, NodeLinkCreateInput, NodeLinkList, NodeLinkListInput, NodeLinkRevokeInput, NodeLinkUpdateInput, publicLinkPath, } from "./links/links.js";
29
+ export { defaultLinkDays, GadgetLink, GadgetLinkCallInput, GadgetLinkCodeInput, GadgetLinkCreateInput, GadgetLinkList, GadgetLinkListInput, GadgetLinkPage, GadgetLinkRevokeInput, GadgetLinkVisit, GadgetLinkVisitInput, gadgetLinkLimits, gadgetLinkPath, LinkId, LinkStatus, maxLinkDays, NodeLink, NodeLinkCreateInput, NodeLinkList, NodeLinkListInput, NodeLinkRevokeInput, NodeLinkUpdateInput, publicLinkPath, } from "./links/links.js";
29
30
  export { Flag, Limit } from "./list-input.js";
30
31
  export { MachineArchiveInput, MachineCreateInput, MachineId, MachineKey, MachinePurged, MachinePurgeInput, MachineRestoreInput, MachineRotateInput, MachineUpdateInput, } from "./machines/machines.js";
31
32
  export { Mcp, McpAuth, McpCall, McpCallAction, McpCallList, McpCallListInput, type McpCatalogEntry, McpCatalogId, McpCreateInput, McpGetInput, McpId, McpList, McpListInput, McpRevokeInput, McpState, McpTestInput, McpTool, McpUpdateInput, mcpCatalog, } from "./mcps/mcps.js";
32
- export { ChatRead, ChatUpdateInput, Message, MessageAuthor, MessageCreateInput, MessageId, MessageList, MessageListInput, messageMaxLength, } from "./messages/messages.js";
33
+ export { ChatRead, ChatTopic, ChatUpdateInput, Message, MessageAuthor, MessageCreateInput, MessageId, MessageList, MessageListInput, messageMaxLength, TopicName, topicMaxLength, topicOf, } from "./messages/messages.js";
33
34
  export { Missing, MissingCall, MissingCode, missingCodes, Reached, } from "./missing/missing.js";
34
- export { BoardShownKind, BoardSystem, FolderCreated, FolderCreateInput, IntelligenceUser, IntelligenceUserList, IntelligenceUserListInput, NodeDetail, NodeGetInput, NodeHit, NodeHitFoundIn, NodeHitGroup, NodeId, NodeKind, NodeList, NodeListInput, NodeListItem, NodeMoved, NodeMoveInput, NodePath, NodePerson, NodeQuery, NodeReader, NodeSearch, NodeSection, NodeSort, NodeUpdateInput, NodeValidation, nodeKinds, responsibleKinds, SearchIndexState, SecretFields, SecretId, } from "./nodes/nodes.js";
35
- export { ChangeTrigger, Credential, CredentialCreateInput, CredentialGetInput, CredentialId, CredentialKind, CredentialList, CredentialListInput, CredentialRevokeInput, CredentialState, CredentialTested, CredentialTestInput, CredentialTestResult, CredentialUpdateInput, compactRunLimit, GatewayTarget, MachineDisableInput, MachineEnableInput, MachineGetInput, MachineListInput, modelsOf, Operator, OperatorBudget, OperatorLimits, OperatorList, OperatorMachineArchiveInput, OperatorMachineCreateInput, OperatorMachineRestoreInput, OperatorMachineUpdateInput, OperatorModel, type OperatorProviderEntry, OperatorRun, OperatorRunAgents, OperatorRunFallbackReason, OperatorRunGetInput, OperatorRunId, OperatorRunInstructions, OperatorRunList, OperatorRunListInput, OperatorRunReason, OperatorRunStatus, OperatorRunStep, OperatorRunStepKind, OperatorRunStepList, OperatorRunTokens, OperatorRunTouched, OperatorRunTrigger, OperatorRunUsage, OperatorRunWoken, OperatorState, OperatorUser, OperatorUserList, OperatorUserListInput, OperatorUserUpdateInput, operatorDefaults, operatorProviders, PauseReason, RunCancelInput, RunStepListInput, RunUpdateInput, runSummaryChars, Subagents, Trigger, } from "./operators/operators.js";
35
+ export { BoardShownKind, BoardSystem, FolderCreated, FolderCreateInput, IntelligenceUser, IntelligenceUserList, IntelligenceUserListInput, NodeDetail, NodeGetInput, NodeHit, NodeHitFoundIn, NodeHitGroup, NodeId, NodeKind, NodeKindRead, NodeList, NodeListInput, NodeListItem, NodeMoved, NodeMoveInput, NodePath, NodePerson, NodeQuery, NodeReader, NodeSearch, NodeSection, NodeSort, NodeUpdateInput, NodeValidation, nodeKinds, responsibleKinds, SearchIndexState, SecretFields, SecretId, unknownNodeKind, } from "./nodes/nodes.js";
36
+ export { ChangeTrigger, Credential, CredentialCreateInput, CredentialGetInput, CredentialId, CredentialKind, CredentialList, CredentialListInput, CredentialRevokeInput, CredentialState, CredentialTested, CredentialTestInput, CredentialTestResult, CredentialUpdateInput, cacheWritePriceOf, compactRunLimit, type GatewayModel, type GatewayModelEntry, GatewayModelEntrySchema, type GatewayOutputLimit, GatewayRight, GatewayRightCheck, GatewayTarget, gatewayCatalog, gatewayModelOf, inCatalog, KeepStepsDays, MachineDisableInput, MachineEnableInput, MachineGetInput, MachineListInput, modelsOf, Operator, OperatorBudget, OperatorLimits, OperatorList, OperatorMachineArchiveInput, OperatorMachineCreateInput, OperatorMachineRestoreInput, OperatorMachineUpdateInput, OperatorModel, type OperatorProviderEntry, OperatorRun, OperatorRunAgents, OperatorRunCostSource, OperatorRunFallbackReason, OperatorRunGetInput, OperatorRunId, OperatorRunInstructions, OperatorRunList, OperatorRunListInput, OperatorRunReason, OperatorRunStatus, OperatorRunStep, OperatorRunStepKind, OperatorRunStepList, OperatorRunTokens, OperatorRunTouched, OperatorRunTrigger, OperatorRunUsage, OperatorRunWoken, OperatorState, OperatorUser, OperatorUserList, OperatorUserListInput, OperatorUserUpdateInput, operatorDefaults, operatorProviders, outputLimitOf, PauseReason, planAnswerOf, type RetiredGatewayModel, RunCancelInput, RunPlanAnswer, RunPlanStep, RunStepListInput, RunUpdateInput, reasoningEffortOf, retiredGatewayModels, runPlanMax, runSummaryChars, Subagents, scheduleQuietMinutes, Trigger, validatorTrigger, } from "./operators/operators.js";
36
37
  export { Currency, CurrencyRate, currencies, Organisation, OrganisationGetInput, OrganisationUpdateInput, } from "./organisation/organisation.js";
37
38
  export { PageDetail, PageGetInput, PageHead, PageHeading, PageId, PageList, PageListInput, PageSummary, } from "./pages/pages.js";
38
- export { IdempotencyKey, Rev } from "./primitives/primitives.js";
39
+ export { AgentName, gatewayAgentsMax, IdempotencyKey, PlanSubstep, planEvidenceMax, Rev, } from "./primitives/primitives.js";
39
40
  export { Locale, locales, Name, ProfileImageResponse, ProfileUpdateInput, profileImageMaxBytes, profileImageTypes, Theme, TimeZone, themes, } from "./profile/profile.js";
40
41
  export { offersSignIn, Provider, ProviderId, ProviderList, ProviderListInput, ProviderRemoveInput, ProviderSource, ProviderTest, ProviderTestInput, ProviderUpdateInput, providerEndpoints, providerIds, SignInProviderId, SignInProviders, signInProviderIds, } from "./providers/providers.js";
41
- export { GrantChange, PermissionsResponse, RightInCode, RightPath, RightTree, Role, RoleArchiveInput, RoleCreateInput, RoleDetail, RoleGetInput, RoleGrantCreateInput, RoleGrantRevokeInput, RoleId, RoleList, RoleListInput, RoleRestoreInput, RoleUpdateInput, } from "./roles/roles.js";
42
+ export { GrantChange, PermissionsResponse, RightInCode, RightPath, RightTree, Role, RoleArchiveInput, RoleCreateInput, RoleDetail, RoleGetInput, RoleGrantCreateInput, RoleGrantRevokeInput, RoleId, RoleList, RoleListInput, RoleRestoreInput, RoleUpdateInput, validatorRoleId, } from "./roles/roles.js";
42
43
  export { RunDetail, RunGetInput, RunId, RunItem, RunList, RunListInput, RunStatus, runStatuses, } from "./runs/runs.js";
43
44
  export { RuntimeConfig } from "./runtime-config.js";
44
45
  export { rhythms, Schedule, WhileOpen, weekdays, weeksOfMonth, whileOpenModes, } from "./schedule/schedule.js";
45
46
  export { NodeSecret, NodeSecretCreateInput, NodeSecretDetail, NodeSecretGetInput, NodeSecretRemoveInput, NodeSecretUpdateInput, NodeUnlocked, NodeUnlockInput, unlockMinutes, } from "./secrets/secrets.js";
46
47
  export { type Authorized, type AuthorizeResult, createServiceClient, type InterfaceDeclaredResult, type InterfaceRemovedResult, type ServiceClient, type ServiceClientDeps, type ServiceClientFailure, } from "./service-client/service-client.js";
47
48
  export { ConsentResource, FunctionId, InterfaceId, RightWord, Service, ServiceArchiveInput, ServiceCreateInput, ServiceFunction, ServiceId, ServiceInterface, ServiceKeyIssued, ServiceList, ServiceListInput, ServiceName, ServicePurged, ServicePurgeInput, ServiceRestoreInput, ServiceRotateInput, ServiceUpdateInput, } from "./services/services.js";
48
- export { SkillCaseResult, SkillCreateInput, SkillDetail, SkillFields, SkillFile, SkillFilePath, SkillGetInput, SkillId, SkillOffer, SkillPoint, SkillRunCall, SkillRunDetail, SkillRunGetInput, SkillRunItem, SkillRunList, SkillRunListInput, SkillTestInput, SkillTestReport, SkillTokens, SkillTriggerHit, SkillUpdateInput, skillCaseStatuses, skillFilePattern, skillRunKinds, skillRunStatuses, } from "./skills/skills.js";
49
- export { ItemId, QueryId, SourceAccess, SourceCreateInput, SourceDetail, SourceField, SourceFieldType, SourceGetInput, SourceItem, SourceItemList, SourceItemListInput, SourceManifest, SourcePaging, SourceParam, SourcePath, SourceProbe, SourcePublishInput, SourceQuery, SourceQueryArchiveInput, SourceQueryCreateInput, SourceQueryList, SourceQueryListInput, SourceQueryRestoreInput, SourceQueryUpdateInput, SourceRun, SourceRunCounts, SourceRunCreateInput, SourceRunFailure, SourceRunGetInput, SourceRunList, SourceRunListInput, SourceSchedule, SourceSecretsInput, SourceStep, SourceTestInput, SourceUpdateInput, SourceVersionRef, SourceWhere, sourceCleans, sourceCodePath, sourceEvery, sourceFieldTypes, sourceKeepDays, sourceLimits, sourceManifestPath, sourceSchema, } from "./sources/sources.js";
50
- export { TableColumn, TableColumnChange, TableColumnType, TableCreateInput, TableDetail, TableExcerpt, TableGetInput, TableId, TableSaved, TableUpdateInput, tableColumnTypes, tableFormats, } from "./tables/tables.js";
49
+ export { SkillCallName, SkillCaseCalls, SkillCaseResult, SkillCreateInput, SkillDetail, SkillFields, SkillFile, SkillFilePath, SkillGetInput, SkillId, SkillOffer, SkillPoint, SkillRunCall, SkillRunDetail, SkillRunGetInput, SkillRunItem, SkillRunList, SkillRunListInput, SkillTestInput, SkillTestReport, SkillToken, SkillTokenCreateInput, SkillTokens, SkillTriggerHit, SkillUpdateInput, SkillWriteName, skillCaseStatuses, skillFilePattern, skillRunKinds, skillRunStatuses, } from "./skills/skills.js";
50
+ export { ItemId, QueryId, SourceAccess, SourceCreateInput, SourceDetail, SourceField, SourceFieldType, SourceGetInput, SourceItem, SourceItemList, SourceItemListInput, SourceManifest, SourcePaging, SourceParam, SourcePath, SourceProbe, SourcePublishInput, SourceQuery, SourceQueryArchiveInput, SourceQueryCreateInput, SourceQueryList, SourceQueryListInput, SourceQueryRestoreInput, SourceQueryUpdateInput, SourceRun, SourceRunCounts, SourceRunCreateInput, SourceRunFailure, SourceRunFailureRead, SourceRunGetInput, SourceRunList, SourceRunListInput, SourceSchedule, SourceSecretsInput, SourceStep, SourceTestInput, SourceUpdateInput, SourceVersionRef, SourceWhere, sourceCleans, sourceCodePath, sourceEvery, sourceFieldTypes, sourceFormHeaders, sourceKeepDays, sourceLimits, sourceManifestPath, sourceSchema, } from "./sources/sources.js";
51
+ export { maxTableColumns, maxTableRows, RowLimit, TableColumn, TableColumnChange, TableColumnType, TableCreateInput, TableDetail, TableExcerpt, TableFilter, TableGetInput, TableId, TableSaved, TableSort, TableUpdateInput, tableColumnTypes, tableFormats, } from "./tables/tables.js";
51
52
  export { type Actor, defineTool, type Permission, type Tool, type ToolAnnotations, type ToolContext, type ToolInput, type ToolSource, } from "./tool.js";
52
53
  export { compareTreeNames, treeKindOrder, treeKindRank, } from "./tree-order/tree-order.js";
53
54
  export { IntelligenceUserGetInput, IntelligenceUserUpdateInput, NotifyMode, notifyModes, UserSettings, } from "./user-settings/user-settings.js";
package/dist/sdk.js CHANGED
@@ -20,37 +20,38 @@ export { ActorKind, Event, EventId, EventKind, EventList, EventListInput, EventS
20
20
  export { ExcerptCursor, excerptChars, RowsExcerpt, TextExcerpt } from "./excerpt/excerpt.js";
21
21
  export { FileCreateInput, FileDetail, FileGetInput, FileId, FileTextState, FileUpdateInput, FileUpload, fileFormatExtensions, fileFormatOf, fileTextStates, maxFileBytes, UploadTicket, uploadTicketHeader, uploadTicketLifetimeMs, } from "./files/files.js";
22
22
  export { FunctionRemoved, ServiceInterfaceFunctionCreateInput, ServiceInterfaceFunctionRemoveInput, ServiceInterfaceFunctionUpdateInput, } from "./functions/functions.js";
23
- export { GadgetCall, GadgetCallCreateInput, GadgetCallEntry, GadgetCallGetInput, GadgetCallItem, GadgetCallList, GadgetCallListInput, GadgetCallStatus, GadgetChange, GadgetClientLog, GadgetConsoleLine, GadgetCreateInput, GadgetDetail, GadgetFile, GadgetFilePath, GadgetFunction, GadgetFunctionName, GadgetGetInput, GadgetLevel, GadgetManifest, GadgetPublishInput, GadgetSettings, GadgetTestHooks, GadgetTestInput, GadgetTestResult, GadgetTestRun, GadgetToolUse, GadgetUpdateInput, GadgetVersionRef, gadgetLimits, gadgetLogDays, TestLimits, testLimits, testLimitsText, } from "./gadgets/gadgets.js";
24
- export { GoalCheck, GoalCreateInput, GoalDetail, GoalFields, GoalFollowUp, GoalGetInput, GoalId, GoalPlanning, GoalPlanStep, GoalReady, GoalReport, GoalRunCancelInput, GoalRunCompleteInput, GoalRunCreateInput, GoalRunDetail, GoalRunGetInput, GoalRunItem, GoalRunList, GoalRunListInput, GoalRunStatus, GoalRunTrigger, GoalRunUpdateInput, GoalSession, GoalUpdateInput, goalPlannings, goalRunStatuses, } from "./goals/goals.js";
23
+ export { GadgetAccess, GadgetCall, GadgetCallCreateInput, GadgetCallEntry, GadgetCallGetInput, GadgetCallItem, GadgetCallList, GadgetCallListInput, GadgetCallStatus, GadgetChange, GadgetClientLog, GadgetConsoleLine, GadgetCreateInput, GadgetDetail, GadgetDiffFile, GadgetDistAnswer, GadgetFile, GadgetFilePath, GadgetFunction, GadgetFunctionName, GadgetGetInput, GadgetLevel, GadgetManifest, GadgetPublishInput, GadgetRequires, GadgetSettings, GadgetTestHooks, GadgetTestInput, GadgetTestResult, GadgetTestRun, GadgetToolUse, GadgetUpdateInput, GadgetUseRight, GadgetUses, GadgetVersionRef, gadgetLimits, gadgetLogDays, TestLimits, testLimits, testLimitsText, } from "./gadgets/gadgets.js";
24
+ export { GoalCheck, GoalCreateInput, GoalDetail, GoalFields, GoalFollowUp, GoalGetInput, GoalId, GoalPlanning, GoalPlanStep, GoalProof, GoalReady, GoalReport, GoalRunCancelInput, GoalRunCompleteInput, GoalRunCreateInput, GoalRunDetail, GoalRunGetInput, GoalRunItem, GoalRunList, GoalRunListInput, GoalRunStatus, GoalRunTrigger, GoalRunUpdateInput, GoalSession, GoalUpdateInput, goalPlannings, goalRunStatuses, } from "./goals/goals.js";
25
25
  export { actions, hasRoute, isAction, isPackage, isWord, packages, parseConnectorFunction, parseToolName, resources, toolAnnotations, toolEvent, toolPermission, toolRoute, toolSchemaName, verbs, } from "./grammar/grammar.js";
26
26
  export { GrantId, GrantRight, NodeGrant, NodeGrantList, NodeGrantListInput, NodeGrantRevoked, NodeGrantRevokeInput, NodeShared, NodeShareInput, } from "./grants/grants.js";
27
+ export { ColabNews, Home, HomeGetInput, HomeSetupState, HomeSetupStep, homeIncludes, homePersonSteps, homeSetupSteps, } from "./home/home.js";
27
28
  export { createId, idSchema } from "./ids/ids.js";
28
29
  export { Digest, InstructionRead, Instructions, InstructionsLink, InstructionsRead, InstructionText, instructionsNames, isInstructionsName, isKnownText, Known, KnownText, maxKnown, validationSection, } from "./instructions/instructions.js";
29
30
  export { FunctionNames, InterfaceRemoved, ServiceInterfaceCreateInput, ServiceInterfaceDeclared, ServiceInterfaceDeclareInput, ServiceInterfaceRemoveInput, ServiceInterfaceUndeclared, ServiceInterfaceUpdateInput, } from "./interfaces/interfaces.js";
30
31
  export { Delivery, Invitation, InvitationAcceptInput, InvitationCreateInput, InvitationId, InvitationLookup, InvitationLookupQuery, InvitationResendInput, InvitationRevokeInput, InvitationSent, InvitationSocialInput, InvitationStatus, RoleChip, } from "./invitations/invitations.js";
31
- export { defaultLinkDays, LinkId, LinkStatus, maxLinkDays, NodeLink, NodeLinkCreateInput, NodeLinkList, NodeLinkListInput, NodeLinkRevokeInput, NodeLinkUpdateInput, publicLinkPath, } from "./links/links.js";
32
+ export { defaultLinkDays, GadgetLink, GadgetLinkCallInput, GadgetLinkCodeInput, GadgetLinkCreateInput, GadgetLinkList, GadgetLinkListInput, GadgetLinkPage, GadgetLinkRevokeInput, GadgetLinkVisit, GadgetLinkVisitInput, gadgetLinkLimits, gadgetLinkPath, LinkId, LinkStatus, maxLinkDays, NodeLink, NodeLinkCreateInput, NodeLinkList, NodeLinkListInput, NodeLinkRevokeInput, NodeLinkUpdateInput, publicLinkPath, } from "./links/links.js";
32
33
  export { Flag, Limit } from "./list-input.js";
33
34
  export { MachineArchiveInput, MachineCreateInput, MachineId, MachineKey, MachinePurged, MachinePurgeInput, MachineRestoreInput, MachineRotateInput, MachineUpdateInput, } from "./machines/machines.js";
34
35
  export { Mcp, McpAuth, McpCall, McpCallAction, McpCallList, McpCallListInput, McpCatalogId, McpCreateInput, McpGetInput, McpId, McpList, McpListInput, McpRevokeInput, McpState, McpTestInput, McpTool, McpUpdateInput, mcpCatalog, } from "./mcps/mcps.js";
35
- export { ChatRead, ChatUpdateInput, Message, MessageAuthor, MessageCreateInput, MessageId, MessageList, MessageListInput, messageMaxLength, } from "./messages/messages.js";
36
+ export { ChatRead, ChatTopic, ChatUpdateInput, Message, MessageAuthor, MessageCreateInput, MessageId, MessageList, MessageListInput, messageMaxLength, TopicName, topicMaxLength, topicOf, } from "./messages/messages.js";
36
37
  export { Missing, MissingCall, MissingCode, missingCodes, Reached, } from "./missing/missing.js";
37
- export { BoardShownKind, BoardSystem, FolderCreated, FolderCreateInput, IntelligenceUser, IntelligenceUserList, IntelligenceUserListInput, NodeDetail, NodeGetInput, NodeHit, NodeHitFoundIn, NodeHitGroup, NodeId, NodeKind, NodeList, NodeListInput, NodeListItem, NodeMoved, NodeMoveInput, NodePath, NodePerson, NodeQuery, NodeReader, NodeSearch, NodeSection, NodeSort, NodeUpdateInput, NodeValidation, nodeKinds, responsibleKinds, SearchIndexState, SecretFields, SecretId, } from "./nodes/nodes.js";
38
- export { ChangeTrigger, Credential, CredentialCreateInput, CredentialGetInput, CredentialId, CredentialKind, CredentialList, CredentialListInput, CredentialRevokeInput, CredentialState, CredentialTested, CredentialTestInput, CredentialTestResult, CredentialUpdateInput, compactRunLimit, GatewayTarget, MachineDisableInput, MachineEnableInput, MachineGetInput, MachineListInput, modelsOf, Operator, OperatorBudget, OperatorLimits, OperatorList, OperatorMachineArchiveInput, OperatorMachineCreateInput, OperatorMachineRestoreInput, OperatorMachineUpdateInput, OperatorModel, OperatorRun, OperatorRunAgents, OperatorRunFallbackReason, OperatorRunGetInput, OperatorRunId, OperatorRunInstructions, OperatorRunList, OperatorRunListInput, OperatorRunReason, OperatorRunStatus, OperatorRunStep, OperatorRunStepKind, OperatorRunStepList, OperatorRunTokens, OperatorRunTouched, OperatorRunTrigger, OperatorRunUsage, OperatorRunWoken, OperatorState, OperatorUser, OperatorUserList, OperatorUserListInput, OperatorUserUpdateInput, operatorDefaults, operatorProviders, PauseReason, RunCancelInput, RunStepListInput, RunUpdateInput, runSummaryChars, Subagents, Trigger, } from "./operators/operators.js";
38
+ export { BoardShownKind, BoardSystem, FolderCreated, FolderCreateInput, IntelligenceUser, IntelligenceUserList, IntelligenceUserListInput, NodeDetail, NodeGetInput, NodeHit, NodeHitFoundIn, NodeHitGroup, NodeId, NodeKind, NodeKindRead, NodeList, NodeListInput, NodeListItem, NodeMoved, NodeMoveInput, NodePath, NodePerson, NodeQuery, NodeReader, NodeSearch, NodeSection, NodeSort, NodeUpdateInput, NodeValidation, nodeKinds, responsibleKinds, SearchIndexState, SecretFields, SecretId, unknownNodeKind, } from "./nodes/nodes.js";
39
+ export { ChangeTrigger, Credential, CredentialCreateInput, CredentialGetInput, CredentialId, CredentialKind, CredentialList, CredentialListInput, CredentialRevokeInput, CredentialState, CredentialTested, CredentialTestInput, CredentialTestResult, CredentialUpdateInput, cacheWritePriceOf, compactRunLimit, GatewayModelEntrySchema, GatewayRight, GatewayRightCheck, GatewayTarget, gatewayCatalog, gatewayModelOf, inCatalog, KeepStepsDays, MachineDisableInput, MachineEnableInput, MachineGetInput, MachineListInput, modelsOf, Operator, OperatorBudget, OperatorLimits, OperatorList, OperatorMachineArchiveInput, OperatorMachineCreateInput, OperatorMachineRestoreInput, OperatorMachineUpdateInput, OperatorModel, OperatorRun, OperatorRunAgents, OperatorRunCostSource, OperatorRunFallbackReason, OperatorRunGetInput, OperatorRunId, OperatorRunInstructions, OperatorRunList, OperatorRunListInput, OperatorRunReason, OperatorRunStatus, OperatorRunStep, OperatorRunStepKind, OperatorRunStepList, OperatorRunTokens, OperatorRunTouched, OperatorRunTrigger, OperatorRunUsage, OperatorRunWoken, OperatorState, OperatorUser, OperatorUserList, OperatorUserListInput, OperatorUserUpdateInput, operatorDefaults, operatorProviders, outputLimitOf, PauseReason, planAnswerOf, RunCancelInput, RunPlanAnswer, RunPlanStep, RunStepListInput, RunUpdateInput, reasoningEffortOf, retiredGatewayModels, runPlanMax, runSummaryChars, Subagents, scheduleQuietMinutes, Trigger, validatorTrigger, } from "./operators/operators.js";
39
40
  export { Currency, CurrencyRate, currencies, Organisation, OrganisationGetInput, OrganisationUpdateInput, } from "./organisation/organisation.js";
40
41
  export { PageDetail, PageGetInput, PageHead, PageHeading, PageId, PageList, PageListInput, PageSummary, } from "./pages/pages.js";
41
- export { IdempotencyKey, Rev } from "./primitives/primitives.js";
42
+ export { AgentName, gatewayAgentsMax, IdempotencyKey, PlanSubstep, planEvidenceMax, Rev, } from "./primitives/primitives.js";
42
43
  export { Locale, locales, Name, ProfileImageResponse, ProfileUpdateInput, profileImageMaxBytes, profileImageTypes, Theme, TimeZone, themes, } from "./profile/profile.js";
43
44
  export { offersSignIn, Provider, ProviderId, ProviderList, ProviderListInput, ProviderRemoveInput, ProviderSource, ProviderTest, ProviderTestInput, ProviderUpdateInput, providerEndpoints, providerIds, SignInProviderId, SignInProviders, signInProviderIds, } from "./providers/providers.js";
44
- export { GrantChange, PermissionsResponse, RightInCode, RightPath, RightTree, Role, RoleArchiveInput, RoleCreateInput, RoleDetail, RoleGetInput, RoleGrantCreateInput, RoleGrantRevokeInput, RoleId, RoleList, RoleListInput, RoleRestoreInput, RoleUpdateInput, } from "./roles/roles.js";
45
+ export { GrantChange, PermissionsResponse, RightInCode, RightPath, RightTree, Role, RoleArchiveInput, RoleCreateInput, RoleDetail, RoleGetInput, RoleGrantCreateInput, RoleGrantRevokeInput, RoleId, RoleList, RoleListInput, RoleRestoreInput, RoleUpdateInput, validatorRoleId, } from "./roles/roles.js";
45
46
  export { RunDetail, RunGetInput, RunId, RunItem, RunList, RunListInput, RunStatus, runStatuses, } from "./runs/runs.js";
46
47
  export { RuntimeConfig } from "./runtime-config.js";
47
48
  export { rhythms, Schedule, WhileOpen, weekdays, weeksOfMonth, whileOpenModes, } from "./schedule/schedule.js";
48
49
  export { NodeSecret, NodeSecretCreateInput, NodeSecretDetail, NodeSecretGetInput, NodeSecretRemoveInput, NodeSecretUpdateInput, NodeUnlocked, NodeUnlockInput, unlockMinutes, } from "./secrets/secrets.js";
49
50
  export { createServiceClient, } from "./service-client/service-client.js";
50
51
  export { ConsentResource, FunctionId, InterfaceId, RightWord, Service, ServiceArchiveInput, ServiceCreateInput, ServiceFunction, ServiceId, ServiceInterface, ServiceKeyIssued, ServiceList, ServiceListInput, ServiceName, ServicePurged, ServicePurgeInput, ServiceRestoreInput, ServiceRotateInput, ServiceUpdateInput, } from "./services/services.js";
51
- export { SkillCaseResult, SkillCreateInput, SkillDetail, SkillFields, SkillFile, SkillFilePath, SkillGetInput, SkillId, SkillOffer, SkillPoint, SkillRunCall, SkillRunDetail, SkillRunGetInput, SkillRunItem, SkillRunList, SkillRunListInput, SkillTestInput, SkillTestReport, SkillTokens, SkillTriggerHit, SkillUpdateInput, skillCaseStatuses, skillFilePattern, skillRunKinds, skillRunStatuses, } from "./skills/skills.js";
52
- export { ItemId, QueryId, SourceAccess, SourceCreateInput, SourceDetail, SourceField, SourceFieldType, SourceGetInput, SourceItem, SourceItemList, SourceItemListInput, SourceManifest, SourcePaging, SourceParam, SourcePath, SourceProbe, SourcePublishInput, SourceQuery, SourceQueryArchiveInput, SourceQueryCreateInput, SourceQueryList, SourceQueryListInput, SourceQueryRestoreInput, SourceQueryUpdateInput, SourceRun, SourceRunCounts, SourceRunCreateInput, SourceRunFailure, SourceRunGetInput, SourceRunList, SourceRunListInput, SourceSchedule, SourceSecretsInput, SourceStep, SourceTestInput, SourceUpdateInput, SourceVersionRef, SourceWhere, sourceCleans, sourceCodePath, sourceEvery, sourceFieldTypes, sourceKeepDays, sourceLimits, sourceManifestPath, sourceSchema, } from "./sources/sources.js";
53
- export { TableColumn, TableColumnChange, TableColumnType, TableCreateInput, TableDetail, TableExcerpt, TableGetInput, TableId, TableSaved, TableUpdateInput, tableColumnTypes, tableFormats, } from "./tables/tables.js";
52
+ export { SkillCallName, SkillCaseCalls, SkillCaseResult, SkillCreateInput, SkillDetail, SkillFields, SkillFile, SkillFilePath, SkillGetInput, SkillId, SkillOffer, SkillPoint, SkillRunCall, SkillRunDetail, SkillRunGetInput, SkillRunItem, SkillRunList, SkillRunListInput, SkillTestInput, SkillTestReport, SkillToken, SkillTokenCreateInput, SkillTokens, SkillTriggerHit, SkillUpdateInput, SkillWriteName, skillCaseStatuses, skillFilePattern, skillRunKinds, skillRunStatuses, } from "./skills/skills.js";
53
+ export { ItemId, QueryId, SourceAccess, SourceCreateInput, SourceDetail, SourceField, SourceFieldType, SourceGetInput, SourceItem, SourceItemList, SourceItemListInput, SourceManifest, SourcePaging, SourceParam, SourcePath, SourceProbe, SourcePublishInput, SourceQuery, SourceQueryArchiveInput, SourceQueryCreateInput, SourceQueryList, SourceQueryListInput, SourceQueryRestoreInput, SourceQueryUpdateInput, SourceRun, SourceRunCounts, SourceRunCreateInput, SourceRunFailure, SourceRunFailureRead, SourceRunGetInput, SourceRunList, SourceRunListInput, SourceSchedule, SourceSecretsInput, SourceStep, SourceTestInput, SourceUpdateInput, SourceVersionRef, SourceWhere, sourceCleans, sourceCodePath, sourceEvery, sourceFieldTypes, sourceFormHeaders, sourceKeepDays, sourceLimits, sourceManifestPath, sourceSchema, } from "./sources/sources.js";
54
+ export { maxTableColumns, maxTableRows, RowLimit, TableColumn, TableColumnChange, TableColumnType, TableCreateInput, TableDetail, TableExcerpt, TableFilter, TableGetInput, TableId, TableSaved, TableSort, TableUpdateInput, tableColumnTypes, tableFormats, } from "./tables/tables.js";
54
55
  export { defineTool, } from "./tool.js";
55
56
  export { compareTreeNames, treeKindOrder, treeKindRank, } from "./tree-order/tree-order.js";
56
57
  export { IntelligenceUserGetInput, IntelligenceUserUpdateInput, NotifyMode, notifyModes, UserSettings, } from "./user-settings/user-settings.js";
@@ -54,12 +54,20 @@ export declare const SkillFile: z.ZodObject<{
54
54
  path: z.ZodString;
55
55
  content: z.ZodString;
56
56
  }, z.core.$strip>;
57
+ export declare const SkillCallName: z.ZodString;
58
+ export declare const SkillWriteName: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
59
+ export declare const SkillCaseCalls: z.ZodObject<{
60
+ echt: z.ZodOptional<z.ZodArray<z.ZodString>>;
61
+ mock: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
62
+ schreibt: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>>;
63
+ }, z.core.$strict>;
64
+ export type SkillCaseCalls = z.infer<typeof SkillCaseCalls>;
57
65
  export type SkillFile = z.infer<typeof SkillFile>;
58
66
  export declare const SkillPoint: z.ZodObject<{
59
67
  text: z.ZodString;
60
68
  kind: z.ZodEnum<{
61
- expected: "expected";
62
69
  result: "result";
70
+ expected: "expected";
63
71
  }>;
64
72
  ok: z.ZodBoolean;
65
73
  reason: z.ZodNullable<z.ZodString>;
@@ -86,8 +94,8 @@ export declare const SkillCaseResult: z.ZodObject<{
86
94
  points: z.ZodArray<z.ZodObject<{
87
95
  text: z.ZodString;
88
96
  kind: z.ZodEnum<{
89
- expected: "expected";
90
97
  result: "result";
98
+ expected: "expected";
91
99
  }>;
92
100
  ok: z.ZodBoolean;
93
101
  reason: z.ZodNullable<z.ZodString>;
@@ -180,8 +188,8 @@ export declare const SkillTestReport: z.ZodObject<{
180
188
  points: z.ZodArray<z.ZodObject<{
181
189
  text: z.ZodString;
182
190
  kind: z.ZodEnum<{
183
- expected: "expected";
184
191
  result: "result";
192
+ expected: "expected";
185
193
  }>;
186
194
  ok: z.ZodBoolean;
187
195
  reason: z.ZodNullable<z.ZodString>;
@@ -205,6 +213,7 @@ export declare const SkillTestReport: z.ZodObject<{
205
213
  excluded: z.ZodOptional<z.ZodArray<z.ZodString>>;
206
214
  }, z.core.$strip>>;
207
215
  problem: z.ZodNullable<z.ZodString>;
216
+ uses: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
208
217
  }, z.core.$strip>;
209
218
  export type SkillTestReport = z.infer<typeof SkillTestReport>;
210
219
  export declare const SkillDetail: z.ZodObject<{
@@ -293,8 +302,8 @@ export declare const SkillDetail: z.ZodObject<{
293
302
  points: z.ZodArray<z.ZodObject<{
294
303
  text: z.ZodString;
295
304
  kind: z.ZodEnum<{
296
- expected: "expected";
297
305
  result: "result";
306
+ expected: "expected";
298
307
  }>;
299
308
  ok: z.ZodBoolean;
300
309
  reason: z.ZodNullable<z.ZodString>;
@@ -318,6 +327,7 @@ export declare const SkillDetail: z.ZodObject<{
318
327
  excluded: z.ZodOptional<z.ZodArray<z.ZodString>>;
319
328
  }, z.core.$strip>>;
320
329
  problem: z.ZodNullable<z.ZodString>;
330
+ uses: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
321
331
  }, z.core.$strip>>;
322
332
  rights: z.ZodObject<{
323
333
  write: z.ZodBoolean;
@@ -357,8 +367,8 @@ export declare const SkillRunItem: z.ZodObject<{
357
367
  open: "open";
358
368
  failed: "failed";
359
369
  passed: "passed";
360
- reached: "reached";
361
370
  missing: "missing";
371
+ reached: "reached";
362
372
  missed: "missed";
363
373
  }>;
364
374
  startedAt: z.ZodISODateTime;
@@ -410,8 +420,8 @@ export declare const SkillRunDetail: z.ZodObject<{
410
420
  open: "open";
411
421
  failed: "failed";
412
422
  passed: "passed";
413
- reached: "reached";
414
423
  missing: "missing";
424
+ reached: "reached";
415
425
  missed: "missed";
416
426
  }>;
417
427
  startedAt: z.ZodISODateTime;
@@ -464,8 +474,8 @@ export declare const SkillRunList: z.ZodObject<{
464
474
  open: "open";
465
475
  failed: "failed";
466
476
  passed: "passed";
467
- reached: "reached";
468
477
  missing: "missing";
478
+ reached: "reached";
469
479
  missed: "missed";
470
480
  }>;
471
481
  startedAt: z.ZodISODateTime;
@@ -489,3 +499,23 @@ export declare const SkillOffer: z.ZodObject<{
489
499
  trigger: z.ZodString;
490
500
  }, z.core.$strip>;
491
501
  export type SkillOffer = z.infer<typeof SkillOffer>;
502
+ export declare const SkillTokenCreateInput: z.ZodObject<{
503
+ skillId: z.ZodTemplateLiteral<`node_${string}`>;
504
+ scope: z.ZodEnum<{
505
+ write: "write";
506
+ read: "read";
507
+ }>;
508
+ seconds: z.ZodOptional<z.ZodInt>;
509
+ }, z.core.$strict>;
510
+ export type SkillTokenCreateInput = z.infer<typeof SkillTokenCreateInput>;
511
+ export declare const SkillToken: z.ZodObject<{
512
+ skillId: z.ZodTemplateLiteral<`node_${string}`>;
513
+ url: z.ZodString;
514
+ token: z.ZodString;
515
+ scope: z.ZodEnum<{
516
+ write: "write";
517
+ read: "read";
518
+ }>;
519
+ expiresAt: z.ZodISODateTime;
520
+ }, z.core.$strip>;
521
+ export type SkillToken = z.infer<typeof SkillToken>;
@@ -86,6 +86,30 @@ export const SkillRunListInput = z.strictObject({
86
86
  });
87
87
  export const SkillRunGetInput = z.strictObject({ skillId: SkillId, runId: RunId });
88
88
  export const SkillFile = z.object({ path: z.string(), content: z.string() });
89
+ // A call a test case declares (E180, #954): a gadget's function as `<gadget>.<function>` (the
90
+ // gadget's name written like a case's folder) or a connector's tool as
91
+ // `<connector>.<resource>.<action>`.
92
+ export const SkillCallName = z
93
+ .string()
94
+ .max(140)
95
+ .regex(/^(?:[a-z0-9][a-z0-9-]{0,63}\.[A-Za-z_$][A-Za-z0-9_$]{0,63}|[a-z0-9]+\.[a-z]+\.[a-z]+)$/, {
96
+ error: "A call is named <gadget>.<function> (crm.updateLead) or <connector>.<resource>.<action> (emdash.post.create).",
97
+ });
98
+ // What a case expects to write: a tool of Colab by its name, a gadget's or a connector's call as
99
+ // above.
100
+ export const SkillWriteName = z.union([
101
+ SkillCallName,
102
+ z.string().regex(/^[a-z]+(?:_[a-z]+){2,4}$/, {
103
+ error: "A write of Colab is named by its tool, like intelligence_board_task_create.",
104
+ }),
105
+ ]);
106
+ // The calls of a case in evals.yaml (E180): which run for real, which answer a mock, what it writes.
107
+ // Strict: a misspelt key in a hand-written file must be refused, not dropped.
108
+ export const SkillCaseCalls = z.strictObject({
109
+ echt: z.array(SkillCallName).max(100).optional(),
110
+ mock: z.record(SkillCallName, z.unknown()).optional(),
111
+ schreibt: z.array(SkillWriteName).max(100).optional(),
112
+ });
89
113
  // One point a case is checked against: a line of the result, or one it expects in addition.
90
114
  export const SkillPoint = z.object({
91
115
  text: z.string(),
@@ -168,6 +192,9 @@ export const SkillTestReport = z.object({
168
192
  cases: z.array(SkillCaseResult),
169
193
  // What evals.yaml got wrong, a sentence; null when it reads.
170
194
  problem: z.string().nullable(),
195
+ // What the cases declare under echt and mock, by name, with the state each was tested against (a
196
+ // gadget's live version, a connector tool's schema); a change of one starts the test again (E180).
197
+ uses: z.record(z.string(), z.string()).optional(),
171
198
  });
172
199
  export const SkillDetail = z.object({
173
200
  skillId: SkillId,
@@ -266,3 +293,26 @@ export const SkillOffer = z.object({
266
293
  name: z.string(),
267
294
  trigger: z.string(),
268
295
  });
296
+ // A Git token of the skill's repository (E215, #976): for `git clone` (read) or `git push` (write)
297
+ // from outside, for whoever may change the skill, never stored and never in a protocol.
298
+ export const SkillTokenCreateInput = z.strictObject({
299
+ skillId: SkillId,
300
+ scope: z
301
+ .enum(["read", "write"])
302
+ .describe("read for git clone and git fetch, write also for git push."),
303
+ seconds: z
304
+ .int()
305
+ .min(60)
306
+ .max(3600)
307
+ .optional()
308
+ .describe("How long the token holds, 60 to 3600 seconds; 900 when left out."),
309
+ });
310
+ export const SkillToken = z.object({
311
+ skillId: SkillId,
312
+ url: z.string().describe("The repository's address for git."),
313
+ token: z
314
+ .string()
315
+ .describe("The secret, as the password of Basic auth with any user name: https://x:<token>@…"),
316
+ scope: z.enum(["read", "write"]),
317
+ expiresAt: z.iso.datetime(),
318
+ });