@usenaive-sdk/blueprints 0.5.0 → 0.6.0
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/index.d.ts +73 -2
- package/dist/index.js +321 -138
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -230,9 +230,33 @@ declare const SkillDeclSchema: z.ZodObject<{
|
|
|
230
230
|
slug: z.ZodString;
|
|
231
231
|
file: z.ZodString;
|
|
232
232
|
}, z.core.$strip>;
|
|
233
|
+
/**
|
|
234
|
+
* `connections` is the accounts the studio asks an operator to connect to this persona BEFORE the
|
|
235
|
+
* crew exists (`canonical-spec §31.10`): `social.from` names a declared `choice` question and
|
|
236
|
+
* `social.map` maps its option labels to publishing networks. Published on the artifact, never read
|
|
237
|
+
* by the apply.
|
|
238
|
+
*/
|
|
233
239
|
declare const IdentityDeclSchema: z.ZodObject<{
|
|
234
240
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
235
241
|
name: z.ZodString;
|
|
242
|
+
connections: z.ZodOptional<z.ZodObject<{
|
|
243
|
+
social: z.ZodOptional<z.ZodObject<{
|
|
244
|
+
from: z.ZodString;
|
|
245
|
+
map: z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
246
|
+
bluesky: "bluesky";
|
|
247
|
+
facebook: "facebook";
|
|
248
|
+
instagram: "instagram";
|
|
249
|
+
linkedin: "linkedin";
|
|
250
|
+
mastodon: "mastodon";
|
|
251
|
+
pinterest: "pinterest";
|
|
252
|
+
reddit: "reddit";
|
|
253
|
+
threads: "threads";
|
|
254
|
+
tiktok: "tiktok";
|
|
255
|
+
x: "x";
|
|
256
|
+
youtube: "youtube";
|
|
257
|
+
}>>;
|
|
258
|
+
}, z.core.$strip>>;
|
|
259
|
+
}, z.core.$strip>>;
|
|
236
260
|
legal: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
237
261
|
description: z.ZodString;
|
|
238
262
|
state: z.ZodEnum<{
|
|
@@ -318,6 +342,19 @@ declare const IdentityDeclSchema: z.ZodObject<{
|
|
|
318
342
|
load_micro_usd: z.ZodNumber;
|
|
319
343
|
}, z.core.$strip>>>;
|
|
320
344
|
}, z.core.$strip>;
|
|
345
|
+
/**
|
|
346
|
+
* One card the apply seeds on the organization's board (`canonical-spec §31.11`). `key` is the
|
|
347
|
+
* card's idempotency handle — `<project>:<key>` on the wire — so a re-apply finds the card it wrote;
|
|
348
|
+
* `assignee` is an agent NAME, which is what a board card carries (§28.11); `blocked_by` names
|
|
349
|
+
* sibling tasks by key and becomes their `crd_` ids at apply time.
|
|
350
|
+
*/
|
|
351
|
+
declare const TaskDeclSchema: z.ZodObject<{
|
|
352
|
+
key: z.ZodString;
|
|
353
|
+
title: z.ZodString;
|
|
354
|
+
body: z.ZodOptional<z.ZodString>;
|
|
355
|
+
assignee: z.ZodOptional<z.ZodString>;
|
|
356
|
+
blocked_by: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
357
|
+
}, z.core.$strip>;
|
|
321
358
|
declare const ProjectSchema: z.ZodObject<{
|
|
322
359
|
name: z.ZodString;
|
|
323
360
|
blueprint: z.ZodOptional<z.ZodString>;
|
|
@@ -344,6 +381,24 @@ declare const ProjectSchema: z.ZodObject<{
|
|
|
344
381
|
identities: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
345
382
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
346
383
|
name: z.ZodString;
|
|
384
|
+
connections: z.ZodOptional<z.ZodObject<{
|
|
385
|
+
social: z.ZodOptional<z.ZodObject<{
|
|
386
|
+
from: z.ZodString;
|
|
387
|
+
map: z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
388
|
+
bluesky: "bluesky";
|
|
389
|
+
facebook: "facebook";
|
|
390
|
+
instagram: "instagram";
|
|
391
|
+
linkedin: "linkedin";
|
|
392
|
+
mastodon: "mastodon";
|
|
393
|
+
pinterest: "pinterest";
|
|
394
|
+
reddit: "reddit";
|
|
395
|
+
threads: "threads";
|
|
396
|
+
tiktok: "tiktok";
|
|
397
|
+
x: "x";
|
|
398
|
+
youtube: "youtube";
|
|
399
|
+
}>>;
|
|
400
|
+
}, z.core.$strip>>;
|
|
401
|
+
}, z.core.$strip>>;
|
|
347
402
|
legal: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
348
403
|
description: z.ZodString;
|
|
349
404
|
state: z.ZodEnum<{
|
|
@@ -553,6 +608,13 @@ declare const ProjectSchema: z.ZodObject<{
|
|
|
553
608
|
role: z.ZodOptional<z.ZodString>;
|
|
554
609
|
description: z.ZodOptional<z.ZodString>;
|
|
555
610
|
}, z.core.$strip>>>;
|
|
611
|
+
tasks: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
612
|
+
key: z.ZodString;
|
|
613
|
+
title: z.ZodString;
|
|
614
|
+
body: z.ZodOptional<z.ZodString>;
|
|
615
|
+
assignee: z.ZodOptional<z.ZodString>;
|
|
616
|
+
blocked_by: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
617
|
+
}, z.core.$strip>>>;
|
|
556
618
|
removed: z.ZodDefault<z.ZodObject<{
|
|
557
619
|
apps: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
558
620
|
agents: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
@@ -572,6 +634,7 @@ type SkillDecl = z.infer<typeof SkillDeclSchema>;
|
|
|
572
634
|
type IdentityDecl = z.infer<typeof IdentityDeclSchema>;
|
|
573
635
|
type VaultDecl = z.infer<typeof VaultDeclSchema>;
|
|
574
636
|
type CredentialDecl = z.infer<typeof CredentialDeclSchema>;
|
|
637
|
+
type TaskDecl = z.infer<typeof TaskDeclSchema>;
|
|
575
638
|
type ProjectConfig = z.infer<typeof ProjectSchema>;
|
|
576
639
|
/** Validate an untyped value (a loaded `.json`, an evaluated module) into a frozen project. */
|
|
577
640
|
declare function parseProject(input: unknown): Readonly<ProjectConfig>;
|
|
@@ -836,7 +899,9 @@ declare function generatedPassword(): string;
|
|
|
836
899
|
* One thing here is not a reconcile: an agent this apply **created** that declares an `intake` is
|
|
837
900
|
* sent its briefing as a started session (`agents.ts`, `canonical-spec §31.4`). It is what turns a
|
|
838
901
|
* provisioned crew into a crew that has started working, and it is idempotent for the same reason
|
|
839
|
-
* everything else here is — the agent is created exactly once.
|
|
902
|
+
* everything else here is — the agent is created exactly once. `tasks` (`tasks.ts`, §31.11) is the
|
|
903
|
+
* reconcile that supersedes it: cards on the organization's board, keyed so a re-apply finds them,
|
|
904
|
+
* woken by the API's tick rather than started here.
|
|
840
905
|
*/
|
|
841
906
|
|
|
842
907
|
interface UpReport {
|
|
@@ -858,6 +923,12 @@ interface UpReport {
|
|
|
858
923
|
* agent is created once, so it is briefed once (`agents.ts`).
|
|
859
924
|
*/
|
|
860
925
|
intake: ResourceReport[];
|
|
926
|
+
/**
|
|
927
|
+
* One line per declared task, named by its key, `id` the `crd_` (`tasks.ts`, `canonical-spec
|
|
928
|
+
* §31.11`): `created` on the apply that seeded the card, `unchanged` on every later one — the
|
|
929
|
+
* card's key stands for the task. The board's owner is a line under `agents` like any member.
|
|
930
|
+
*/
|
|
931
|
+
tasks: ResourceReport[];
|
|
861
932
|
/**
|
|
862
933
|
* Live rows this client could not parse, named and stepped over (`report.ts`). One legacy row
|
|
863
934
|
* used to abort the whole apply before any write; it is now a line here and nothing else.
|
|
@@ -984,4 +1055,4 @@ declare function up(config: Readonly<ProjectConfig>, client: VettaClient, opts?:
|
|
|
984
1055
|
*/
|
|
985
1056
|
declare const PROJECT_CONTEXT_PREAMBLE: string;
|
|
986
1057
|
|
|
987
|
-
export { type AgentDecl, type AppDecl, BLUEPRINTS, BlueprintRefusal, CONFIG_CANDIDATES, type ConfigLoad, type CredentialDecl, type CrewPerClientDecl, type DefineInput, type FileSource, type IdentityDecl, type MigrationFile, PLATFORM_ENV, PROJECT_CONTEXT_PREAMBLE, type PlatformEnv, type ProjectConfig, type ResourceAction, type ResourceReport, type ScheduleDecl, type SkillDecl, type Template, type TemplateChoice, type TemplateKind, type UpOptions, type UpReport, type VaultDecl, chooseTemplate, collectFiles, contentHash, defineProject, generatedPassword, generatedSecret, hasRoster, loadConfig, migrationFiles, parseProject, selectCrew, up };
|
|
1058
|
+
export { type AgentDecl, type AppDecl, BLUEPRINTS, BlueprintRefusal, CONFIG_CANDIDATES, type ConfigLoad, type CredentialDecl, type CrewPerClientDecl, type DefineInput, type FileSource, type IdentityDecl, type MigrationFile, PLATFORM_ENV, PROJECT_CONTEXT_PREAMBLE, type PlatformEnv, type ProjectConfig, type ResourceAction, type ResourceReport, type ScheduleDecl, type SkillDecl, type TaskDecl, type Template, type TemplateChoice, type TemplateKind, type UpOptions, type UpReport, type VaultDecl, chooseTemplate, collectFiles, contentHash, defineProject, generatedPassword, generatedSecret, hasRoster, loadConfig, migrationFiles, parseProject, selectCrew, up };
|