@usenaive-sdk/blueprints 0.5.0 → 0.7.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 +78 -2
- package/dist/index.js +1364 -950
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
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>;
|
|
@@ -328,6 +365,7 @@ declare const ProjectSchema: z.ZodObject<{
|
|
|
328
365
|
key: z.ZodString;
|
|
329
366
|
label: z.ZodString;
|
|
330
367
|
help: z.ZodOptional<z.ZodString>;
|
|
368
|
+
optional: z.ZodOptional<z.ZodBoolean>;
|
|
331
369
|
}, z.core.$strip>, z.ZodObject<{
|
|
332
370
|
type: z.ZodLiteral<"choice">;
|
|
333
371
|
options: z.ZodArray<z.ZodString>;
|
|
@@ -336,6 +374,7 @@ declare const ProjectSchema: z.ZodObject<{
|
|
|
336
374
|
key: z.ZodString;
|
|
337
375
|
label: z.ZodString;
|
|
338
376
|
help: z.ZodOptional<z.ZodString>;
|
|
377
|
+
optional: z.ZodOptional<z.ZodBoolean>;
|
|
339
378
|
}, z.core.$strip>], "type">>>;
|
|
340
379
|
skills: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
341
380
|
slug: z.ZodString;
|
|
@@ -344,6 +383,24 @@ declare const ProjectSchema: z.ZodObject<{
|
|
|
344
383
|
identities: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
345
384
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
346
385
|
name: z.ZodString;
|
|
386
|
+
connections: z.ZodOptional<z.ZodObject<{
|
|
387
|
+
social: z.ZodOptional<z.ZodObject<{
|
|
388
|
+
from: z.ZodString;
|
|
389
|
+
map: z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
390
|
+
bluesky: "bluesky";
|
|
391
|
+
facebook: "facebook";
|
|
392
|
+
instagram: "instagram";
|
|
393
|
+
linkedin: "linkedin";
|
|
394
|
+
mastodon: "mastodon";
|
|
395
|
+
pinterest: "pinterest";
|
|
396
|
+
reddit: "reddit";
|
|
397
|
+
threads: "threads";
|
|
398
|
+
tiktok: "tiktok";
|
|
399
|
+
x: "x";
|
|
400
|
+
youtube: "youtube";
|
|
401
|
+
}>>;
|
|
402
|
+
}, z.core.$strip>>;
|
|
403
|
+
}, z.core.$strip>>;
|
|
347
404
|
legal: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
348
405
|
description: z.ZodString;
|
|
349
406
|
state: z.ZodEnum<{
|
|
@@ -553,6 +610,13 @@ declare const ProjectSchema: z.ZodObject<{
|
|
|
553
610
|
role: z.ZodOptional<z.ZodString>;
|
|
554
611
|
description: z.ZodOptional<z.ZodString>;
|
|
555
612
|
}, z.core.$strip>>>;
|
|
613
|
+
tasks: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
614
|
+
key: z.ZodString;
|
|
615
|
+
title: z.ZodString;
|
|
616
|
+
body: z.ZodOptional<z.ZodString>;
|
|
617
|
+
assignee: z.ZodOptional<z.ZodString>;
|
|
618
|
+
blocked_by: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
619
|
+
}, z.core.$strip>>>;
|
|
556
620
|
removed: z.ZodDefault<z.ZodObject<{
|
|
557
621
|
apps: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
558
622
|
agents: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
@@ -572,6 +636,7 @@ type SkillDecl = z.infer<typeof SkillDeclSchema>;
|
|
|
572
636
|
type IdentityDecl = z.infer<typeof IdentityDeclSchema>;
|
|
573
637
|
type VaultDecl = z.infer<typeof VaultDeclSchema>;
|
|
574
638
|
type CredentialDecl = z.infer<typeof CredentialDeclSchema>;
|
|
639
|
+
type TaskDecl = z.infer<typeof TaskDeclSchema>;
|
|
575
640
|
type ProjectConfig = z.infer<typeof ProjectSchema>;
|
|
576
641
|
/** Validate an untyped value (a loaded `.json`, an evaluated module) into a frozen project. */
|
|
577
642
|
declare function parseProject(input: unknown): Readonly<ProjectConfig>;
|
|
@@ -627,6 +692,9 @@ declare const ResourceReportSchema: z.ZodObject<{
|
|
|
627
692
|
}>;
|
|
628
693
|
id: z.ZodOptional<z.ZodString>;
|
|
629
694
|
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
695
|
+
title: z.ZodOptional<z.ZodString>;
|
|
696
|
+
assignee: z.ZodOptional<z.ZodString>;
|
|
697
|
+
summary: z.ZodOptional<z.ZodString>;
|
|
630
698
|
reason: z.ZodOptional<z.ZodString>;
|
|
631
699
|
}, z.core.$strip>;
|
|
632
700
|
type ResourceReportLine = z.infer<typeof ResourceReportSchema>;
|
|
@@ -836,7 +904,9 @@ declare function generatedPassword(): string;
|
|
|
836
904
|
* One thing here is not a reconcile: an agent this apply **created** that declares an `intake` is
|
|
837
905
|
* sent its briefing as a started session (`agents.ts`, `canonical-spec §31.4`). It is what turns a
|
|
838
906
|
* 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.
|
|
907
|
+
* everything else here is — the agent is created exactly once. `tasks` (`tasks.ts`, §31.11) is the
|
|
908
|
+
* reconcile that supersedes it: cards on the organization's board, keyed so a re-apply finds them,
|
|
909
|
+
* woken by the API's tick rather than started here.
|
|
840
910
|
*/
|
|
841
911
|
|
|
842
912
|
interface UpReport {
|
|
@@ -858,6 +928,12 @@ interface UpReport {
|
|
|
858
928
|
* agent is created once, so it is briefed once (`agents.ts`).
|
|
859
929
|
*/
|
|
860
930
|
intake: ResourceReport[];
|
|
931
|
+
/**
|
|
932
|
+
* One line per declared task, named by its key, `id` the `crd_` (`tasks.ts`, `canonical-spec
|
|
933
|
+
* §31.11`): `created` on the apply that seeded the card, `unchanged` on every later one — the
|
|
934
|
+
* card's key stands for the task. The board's owner is a line under `agents` like any member.
|
|
935
|
+
*/
|
|
936
|
+
tasks: ResourceReport[];
|
|
861
937
|
/**
|
|
862
938
|
* Live rows this client could not parse, named and stepped over (`report.ts`). One legacy row
|
|
863
939
|
* used to abort the whole apply before any write; it is now a line here and nothing else.
|
|
@@ -984,4 +1060,4 @@ declare function up(config: Readonly<ProjectConfig>, client: VettaClient, opts?:
|
|
|
984
1060
|
*/
|
|
985
1061
|
declare const PROJECT_CONTEXT_PREAMBLE: string;
|
|
986
1062
|
|
|
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 };
|
|
1063
|
+
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 };
|