@agent-workspace/cli 0.8.2 → 0.9.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.
@@ -1,4 +1,6 @@
1
1
  export declare function initCommand(dir: string, options: {
2
2
  name?: string;
3
+ withExamples?: boolean;
4
+ agentName?: string;
3
5
  }): Promise<void>;
4
6
  //# sourceMappingURL=init.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../src/commands/init.ts"],"names":[],"mappings":"AA2HA,wBAAsB,WAAW,CAC/B,GAAG,EAAE,MAAM,EACX,OAAO,EAAE;IAAE,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,GACzB,OAAO,CAAC,IAAI,CAAC,CAsDf"}
1
+ {"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../src/commands/init.ts"],"names":[],"mappings":"AAkZA,wBAAsB,WAAW,CAC/B,GAAG,EAAE,MAAM,EACX,OAAO,EAAE;IAAE,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,YAAY,CAAC,EAAE,OAAO,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,GACrE,OAAO,CAAC,IAAI,CAAC,CA6Hf"}
@@ -1,7 +1,263 @@
1
1
  import { mkdir, writeFile } from "node:fs/promises";
2
2
  import { join } from "node:path";
3
- import { AWP_VERSION, MANIFEST_PATH } from "@agent-workspace/core";
3
+ import { AWP_VERSION, SMP_VERSION, RDP_VERSION, CDP_VERSION, MANIFEST_PATH, } from "@agent-workspace/core";
4
4
  import { createDefaultManifest } from "../lib/workspace.js";
5
+ // ============================================================================
6
+ // Example Files for --with-examples flag
7
+ // These help agents understand AWP formats without reading documentation
8
+ // ============================================================================
9
+ const EXAMPLE_ARTIFACT = (agentDid, now) => `---
10
+ awp: "${AWP_VERSION}"
11
+ smp: "${SMP_VERSION}"
12
+ type: "knowledge-artifact"
13
+ id: "artifact:example-research"
14
+ title: "Example Research Artifact"
15
+ authors:
16
+ - "${agentDid}"
17
+ version: 1
18
+ confidence: 0.75
19
+ tags:
20
+ - "example"
21
+ - "research"
22
+ created: "${now}"
23
+ lastModified: "${now}"
24
+ modifiedBy: "${agentDid}"
25
+ provenance:
26
+ - agent: "${agentDid}"
27
+ action: "created" # Valid: created, updated, merged
28
+ timestamp: "${now}"
29
+ message: "Initial creation"
30
+ ---
31
+
32
+ # Example Research Artifact
33
+
34
+ This is an example knowledge artifact. Key features:
35
+
36
+ - **Confidence score** (0.0-1.0): How certain you are about the content
37
+ - **Provenance**: Track who wrote/edited what and when
38
+ - **Tags**: Categorize for search and filtering
39
+ - **Version**: Increments on each update
40
+
41
+ ## When to Create Artifacts
42
+
43
+ Create artifacts for knowledge that:
44
+ - Should persist across sessions
45
+ - Might be referenced by multiple tasks
46
+ - Has value beyond a single conversation
47
+
48
+ ## Updating This Artifact
49
+
50
+ Use \`awp artifact commit example-research -m "Your change message"\` to record updates.
51
+ `;
52
+ const EXAMPLE_PROJECT = (agentDid, agentSlug, now) => `---
53
+ awp: "${AWP_VERSION}"
54
+ cdp: "${CDP_VERSION}"
55
+ type: "project"
56
+ id: "project:example-project"
57
+ title: "Example Project"
58
+ status: "active" # Valid: draft, active, paused, completed, archived
59
+ owner: "${agentDid}"
60
+ created: "${now}"
61
+ members:
62
+ - did: "${agentDid}"
63
+ role: "lead"
64
+ slug: "${agentSlug}"
65
+ tags:
66
+ - "example"
67
+ taskCount: 1
68
+ completedCount: 0
69
+ ---
70
+
71
+ # Example Project
72
+
73
+ This is an example project. Projects organize related tasks.
74
+
75
+ ## Goals
76
+
77
+ - Demonstrate AWP project structure
78
+ - Show how tasks connect to projects
79
+ - Provide a template for real projects
80
+
81
+ ## Notes
82
+
83
+ - Tasks live in \`projects/example-project/tasks/\`
84
+ - Use \`awp task create example-project <slug>\` to add tasks
85
+ - Use \`awp project show example-project\` to see status
86
+ `;
87
+ const EXAMPLE_TASK = (now) => `---
88
+ awp: "${AWP_VERSION}"
89
+ cdp: "${CDP_VERSION}"
90
+ type: "task"
91
+ id: "task:example-project/example-task"
92
+ projectId: "project:example-project"
93
+ title: "Example Task"
94
+ status: "pending" # Valid: pending, in-progress, blocked, review, completed, cancelled
95
+ priority: "medium" # Valid: low, medium, high, critical
96
+ created: "${now}"
97
+ blockedBy: [] # Array of task IDs like "task:project-slug/task-slug"
98
+ blocks: []
99
+ # Optional fields (uncomment to use):
100
+ # assignee: "did:key:zXXX"
101
+ # assigneeSlug: "agent-slug"
102
+ # deadline: "2026-02-15T00:00:00.000Z"
103
+ # outputArtifact: "artifact-slug"
104
+ # contractSlug: "contract-slug"
105
+ ---
106
+
107
+ # Example Task
108
+
109
+ This is an example task showing the correct format.
110
+
111
+ ## Acceptance Criteria
112
+
113
+ - [ ] Criterion 1
114
+ - [ ] Criterion 2
115
+
116
+ ## Notes
117
+
118
+ - Update status with: \`awp task update example-project example-task --status in-progress\`
119
+ - Common typos like \`in_progress\` are auto-corrected to \`in-progress\`
120
+ `;
121
+ const EXAMPLE_REPUTATION = (agentDid, agentSlug, agentName, now) => `---
122
+ awp: "${AWP_VERSION}"
123
+ rdp: "${RDP_VERSION}"
124
+ type: "reputation-profile"
125
+ id: "reputation:${agentSlug}"
126
+ agentDid: "${agentDid}"
127
+ agentName: "${agentName}"
128
+ lastUpdated: "${now}"
129
+ dimensions:
130
+ reliability:
131
+ score: 0.5 # 0.0-1.0, starts at 0.5 (unknown baseline)
132
+ confidence: 0.0 # Based on sample size
133
+ sampleSize: 0
134
+ lastSignal: "${now}"
135
+ epistemic-hygiene:
136
+ score: 0.5
137
+ confidence: 0.0
138
+ sampleSize: 0
139
+ lastSignal: "${now}"
140
+ coordination:
141
+ score: 0.5
142
+ confidence: 0.0
143
+ sampleSize: 0
144
+ lastSignal: "${now}"
145
+ domainCompetence: {} # Add domains as you work: ai-research, typescript, etc.
146
+ signals: [] # Signals are appended here, never deleted
147
+ ---
148
+
149
+ # ${agentName} — Reputation Profile
150
+
151
+ This is your reputation profile. It tracks trustworthiness across dimensions.
152
+
153
+ ## Dimensions
154
+
155
+ - **reliability**: Do you complete tasks and meet constraints?
156
+ - **epistemic-hygiene**: Do you cite sources and acknowledge uncertainty?
157
+ - **coordination**: Do you communicate status and handle handoffs well?
158
+
159
+ ## How Reputation Works
160
+
161
+ 1. Signals are recorded via \`awp reputation signal\` or contract evaluation
162
+ 2. Scores update via EWMA (recent signals weight more)
163
+ 3. Scores decay toward 0.5 over time without new signals
164
+ 4. Confidence reflects sample size, not score quality
165
+
166
+ ## Adding Signals
167
+
168
+ \`\`\`bash
169
+ awp reputation signal ${agentSlug} --dimension reliability --score 0.9 --message "Completed task on time"
170
+ \`\`\`
171
+ `;
172
+ const EXAMPLE_CONTRACT = (agentDid, agentSlug, now, deadline) => `---
173
+ awp: "${AWP_VERSION}"
174
+ rdp: "${RDP_VERSION}"
175
+ type: "delegation-contract"
176
+ id: "contract:example-contract"
177
+ status: "draft" # Valid: draft, active, completed, evaluated
178
+ delegator: "${agentDid}" # Who is assigning the work
179
+ delegate: "${agentDid}" # Who is doing the work (can be same for self-contracts)
180
+ delegateSlug: "${agentSlug}"
181
+ created: "${now}"
182
+ deadline: "${deadline}"
183
+ task:
184
+ description: "Example task description"
185
+ outputFormat: "knowledge-artifact"
186
+ outputSlug: "example-research"
187
+ scope:
188
+ include:
189
+ - "What is in scope"
190
+ exclude:
191
+ - "What is out of scope"
192
+ constraints:
193
+ requireCitations: true
194
+ confidenceThreshold: 0.7
195
+ evaluation:
196
+ criteria:
197
+ completeness: 0.3 # Weights must sum to 1.0
198
+ accuracy: 0.3
199
+ clarity: 0.25
200
+ timeliness: 0.15
201
+ result: null # Filled in after evaluation
202
+ ---
203
+
204
+ # Example Contract
205
+
206
+ Contracts formalize work agreements. Even self-assigned work benefits from explicit scope.
207
+
208
+ ## Why Use Contracts
209
+
210
+ 1. **Clarity**: Define what "done" means upfront
211
+ 2. **Accountability**: Track commitments
212
+ 3. **Reputation**: Evaluation generates reputation signals
213
+
214
+ ## Contract Lifecycle
215
+
216
+ \`\`\`
217
+ draft → active → completed → evaluated
218
+ \`\`\`
219
+
220
+ ## Evaluating Contracts
221
+
222
+ \`\`\`bash
223
+ awp contract evaluate example-contract \\
224
+ --completeness 0.9 --accuracy 0.85 --clarity 0.8 --timeliness 1.0
225
+ \`\`\`
226
+
227
+ This generates reputation signals automatically.
228
+ `;
229
+ const EXAMPLE_MEMORY = (now, dateStr) => `---
230
+ date: "${dateStr}"
231
+ entries:
232
+ - time: "09:00"
233
+ content: "AWP workspace initialized with example files"
234
+ tags:
235
+ - "setup"
236
+ - "awp"
237
+ - time: "09:05"
238
+ content: "Review the example files in artifacts/, projects/, reputation/, and contracts/ to understand AWP formats"
239
+ tags:
240
+ - "learning"
241
+ - "onboarding"
242
+ ---
243
+
244
+ # ${dateStr} — Daily Log
245
+
246
+ ## Summary
247
+
248
+ AWP workspace created. Example files demonstrate the format for:
249
+ - Knowledge artifacts (versioned, provenanced documents)
250
+ - Projects and tasks (work coordination)
251
+ - Reputation profiles (trust tracking)
252
+ - Delegation contracts (formal work agreements)
253
+
254
+ ## Next Steps
255
+
256
+ 1. Generate a DID: \`awp identity generate\`
257
+ 2. Personalize IDENTITY.md with your name and capabilities
258
+ 3. Create your first real project: \`awp project create my-project --title "My Project"\`
259
+ 4. Run \`awp status\` to see workspace overview
260
+ `;
5
261
  const IDENTITY_TEMPLATE = `---
6
262
  awp: "${AWP_VERSION}"
7
263
  type: "identity"
@@ -120,11 +376,16 @@ The more you know, the better you can help. But remember — you're learning abo
120
376
  export async function initCommand(dir, options) {
121
377
  const root = dir || process.cwd();
122
378
  const name = options.name || "my-agent-workspace";
379
+ const agentName = options.agentName || "My Agent";
380
+ const agentSlug = agentName
381
+ .toLowerCase()
382
+ .replace(/\s+/g, "-")
383
+ .replace(/[^a-z0-9-]/g, "");
123
384
  console.log(`Initializing AWP workspace in ${root}...`);
124
385
  // Create .awp directory and manifest
125
386
  const awpDir = join(root, ".awp");
126
387
  await mkdir(awpDir, { recursive: true });
127
- const manifest = createDefaultManifest(name, "My Agent");
388
+ const manifest = createDefaultManifest(name, agentName);
128
389
  await writeFile(join(root, MANIFEST_PATH), JSON.stringify(manifest, null, 2) + "\n", "utf-8");
129
390
  console.log(` Created ${MANIFEST_PATH}`);
130
391
  // Create required files
@@ -135,7 +396,7 @@ export async function initCommand(dir, options) {
135
396
  // Create optional files
136
397
  await writeFile(join(root, "USER.md"), USER_TEMPLATE, "utf-8");
137
398
  console.log(" Created USER.md");
138
- // Create memory and artifacts directories
399
+ // Create directories
139
400
  await mkdir(join(root, "memory"), { recursive: true });
140
401
  console.log(" Created memory/");
141
402
  await mkdir(join(root, "artifacts"), { recursive: true });
@@ -146,14 +407,56 @@ export async function initCommand(dir, options) {
146
407
  console.log(" Created contracts/");
147
408
  await mkdir(join(root, "projects"), { recursive: true });
148
409
  console.log(" Created projects/");
410
+ // If --with-examples, create sample files in each directory
411
+ if (options.withExamples) {
412
+ console.log("");
413
+ console.log("Creating example files...");
414
+ const now = new Date().toISOString();
415
+ const dateStr = now.split("T")[0];
416
+ const deadline = new Date(Date.now() + 14 * 24 * 60 * 60 * 1000).toISOString(); // 2 weeks
417
+ const agentDid = "did:key:zEXAMPLE"; // Placeholder until identity generate
418
+ // Example artifact
419
+ await writeFile(join(root, "artifacts", "example-research.md"), EXAMPLE_ARTIFACT(agentDid, now), "utf-8");
420
+ console.log(" Created artifacts/example-research.md");
421
+ // Example project
422
+ await mkdir(join(root, "projects", "example-project", "tasks"), { recursive: true });
423
+ await writeFile(join(root, "projects", "example-project.md"), EXAMPLE_PROJECT(agentDid, agentSlug, now), "utf-8");
424
+ console.log(" Created projects/example-project.md");
425
+ // Example task
426
+ await writeFile(join(root, "projects", "example-project", "tasks", "example-task.md"), EXAMPLE_TASK(now), "utf-8");
427
+ console.log(" Created projects/example-project/tasks/example-task.md");
428
+ // Example reputation profile
429
+ await writeFile(join(root, "reputation", `${agentSlug}.md`), EXAMPLE_REPUTATION(agentDid, agentSlug, agentName, now), "utf-8");
430
+ console.log(` Created reputation/${agentSlug}.md`);
431
+ // Example contract
432
+ await writeFile(join(root, "contracts", "example-contract.md"), EXAMPLE_CONTRACT(agentDid, agentSlug, now, deadline), "utf-8");
433
+ console.log(" Created contracts/example-contract.md");
434
+ // Example memory entry
435
+ await writeFile(join(root, "memory", `${dateStr}.md`), EXAMPLE_MEMORY(now, dateStr), "utf-8");
436
+ console.log(` Created memory/${dateStr}.md`);
437
+ }
149
438
  console.log("");
150
439
  console.log(`AWP workspace initialized (${manifest.awp}).`);
151
440
  console.log(`Workspace ID: ${manifest.id}`);
152
441
  console.log("");
153
- console.log("Next steps:");
154
- console.log(" 1. Edit IDENTITY.md give your agent a name and personality");
155
- console.log(" 2. Edit SOUL.md — define values and boundaries");
156
- console.log(" 3. Run 'awp validate' to verify your workspace");
157
- console.log(" 4. Run 'awp identity generate' to create a DID");
442
+ if (options.withExamples) {
443
+ console.log("Example files created! Review them to understand AWP formats.");
444
+ console.log("");
445
+ console.log("Next steps:");
446
+ console.log(" 1. Run 'awp identity generate' to create a DID");
447
+ console.log(" 2. Edit IDENTITY.md — personalize your agent");
448
+ console.log(" 3. Run 'awp status' to see workspace overview");
449
+ console.log(" 4. Delete example files when you're ready to start fresh");
450
+ }
451
+ else {
452
+ console.log("Next steps:");
453
+ console.log(" 1. Edit IDENTITY.md — give your agent a name and personality");
454
+ console.log(" 2. Edit SOUL.md — define values and boundaries");
455
+ console.log(" 3. Run 'awp validate' to verify your workspace");
456
+ console.log(" 4. Run 'awp identity generate' to create a DID");
457
+ console.log("");
458
+ console.log("Tip: Use 'awp init --with-examples' to create sample files that");
459
+ console.log(" demonstrate AWP formats (helpful for AI agents).");
460
+ }
158
461
  }
159
462
  //# sourceMappingURL=init.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"init.js","sourceRoot":"","sources":["../../src/commands/init.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;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,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;QAC3B,OAAO,CAAC,GAAG,CAAC,gEAAgE,CAAC,CAAC;QAC9E,OAAO,CAAC,GAAG,CAAC,kDAAkD,CAAC,CAAC;QAChE,OAAO,CAAC,GAAG,CAAC,kDAAkD,CAAC,CAAC;QAChE,OAAO,CAAC,GAAG,CAAC,kDAAkD,CAAC,CAAC;QAChE,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;QAChB,OAAO,CAAC,GAAG,CAAC,iEAAiE,CAAC,CAAC;QAC/E,OAAO,CAAC,GAAG,CAAC,uDAAuD,CAAC,CAAC;IACvE,CAAC;AACH,CAAC"}
@@ -0,0 +1,27 @@
1
+ /**
2
+ * awp schema — Agent-friendly schema discovery
3
+ *
4
+ * Allows agents to discover AWP file formats without reading docs.
5
+ * This makes AWP more "plug and play" for AI agents.
6
+ */
7
+ /**
8
+ * awp schema list — List all available schema types
9
+ */
10
+ export declare function schemaListCommand(): Promise<void>;
11
+ /**
12
+ * awp schema show <type> — Show schema for a specific type
13
+ */
14
+ export declare function schemaShowCommand(type: string, options: {
15
+ json?: boolean;
16
+ }): Promise<void>;
17
+ /**
18
+ * awp schema values — Show all valid enum values (most useful for agents)
19
+ */
20
+ export declare function schemaValuesCommand(options: {
21
+ json?: boolean;
22
+ }): Promise<void>;
23
+ /**
24
+ * awp schema example <type> — Show an example file for a type
25
+ */
26
+ export declare function schemaExampleCommand(type: string): Promise<void>;
27
+ //# sourceMappingURL=schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../src/commands/schema.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AA8BH;;GAEG;AACH,wBAAsB,iBAAiB,IAAI,OAAO,CAAC,IAAI,CAAC,CAQvD;AAED;;GAEG;AACH,wBAAsB,iBAAiB,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE;IAAE,IAAI,CAAC,EAAE,OAAO,CAAA;CAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAqChG;AAED;;GAEG;AACH,wBAAsB,mBAAmB,CAAC,OAAO,EAAE;IAAE,IAAI,CAAC,EAAE,OAAO,CAAA;CAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAsCpF;AAED;;GAEG;AACH,wBAAsB,oBAAoB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CA8ItE"}
@@ -0,0 +1,256 @@
1
+ /**
2
+ * awp schema — Agent-friendly schema discovery
3
+ *
4
+ * Allows agents to discover AWP file formats without reading docs.
5
+ * This makes AWP more "plug and play" for AI agents.
6
+ */
7
+ import { readFile } from "node:fs/promises";
8
+ import { SCHEMA_MAP, getSchemaPath } from "@agent-workspace/core";
9
+ import { VALID_TASK_STATUSES, VALID_PROJECT_STATUSES, VALID_PROVENANCE_ACTIONS, VALID_PRIORITIES, } from "@agent-workspace/utils";
10
+ /** Schema types that agents can query */
11
+ const SCHEMA_TYPES = [
12
+ "identity",
13
+ "soul",
14
+ "user",
15
+ "operations",
16
+ "tools",
17
+ "knowledge-artifact",
18
+ "reputation-profile",
19
+ "delegation-contract",
20
+ "project",
21
+ "task",
22
+ "swarm",
23
+ "experiment",
24
+ "manifesto",
25
+ ];
26
+ /**
27
+ * awp schema list — List all available schema types
28
+ */
29
+ export async function schemaListCommand() {
30
+ console.log("Available AWP schema types:\n");
31
+ for (const type of SCHEMA_TYPES) {
32
+ const schemaFile = SCHEMA_MAP[type];
33
+ console.log(` ${type.padEnd(22)} → ${schemaFile || "(no schema)"}`);
34
+ }
35
+ console.log("\nUse 'awp schema show <type>' to see the full schema.");
36
+ console.log("Use 'awp schema values' to see valid enum values.");
37
+ }
38
+ /**
39
+ * awp schema show <type> — Show schema for a specific type
40
+ */
41
+ export async function schemaShowCommand(type, options) {
42
+ if (!SCHEMA_TYPES.includes(type)) {
43
+ console.error(`Unknown type: "${type}"`);
44
+ console.error(`Valid types: ${SCHEMA_TYPES.join(", ")}`);
45
+ process.exit(1);
46
+ }
47
+ const schemaFile = SCHEMA_MAP[type];
48
+ if (!schemaFile) {
49
+ console.error(`No schema defined for type: ${type}`);
50
+ process.exit(1);
51
+ }
52
+ try {
53
+ const schemaPath = getSchemaPath(schemaFile);
54
+ const content = await readFile(schemaPath, "utf-8");
55
+ const schema = JSON.parse(content);
56
+ if (options.json) {
57
+ console.log(JSON.stringify(schema, null, 2));
58
+ }
59
+ else {
60
+ console.log(`Schema for "${type}":\n`);
61
+ console.log(`File: ${schemaFile}`);
62
+ console.log(`Required fields: ${(schema.required || []).join(", ") || "(none)"}\n`);
63
+ console.log("Properties:");
64
+ const props = schema.properties || {};
65
+ for (const [key, value] of Object.entries(props)) {
66
+ const v = value;
67
+ const typeStr = v.enum ? `enum: [${v.enum.join(", ")}]` : v.type || "any";
68
+ const desc = v.description ? ` — ${v.description}` : "";
69
+ console.log(` ${key}: ${typeStr}${desc}`);
70
+ }
71
+ }
72
+ }
73
+ catch (err) {
74
+ console.error(`Error loading schema: ${err}`);
75
+ process.exit(1);
76
+ }
77
+ }
78
+ /**
79
+ * awp schema values — Show all valid enum values (most useful for agents)
80
+ */
81
+ export async function schemaValuesCommand(options) {
82
+ const values = {
83
+ taskStatus: [...VALID_TASK_STATUSES],
84
+ projectStatus: [...VALID_PROJECT_STATUSES],
85
+ provenanceAction: [...VALID_PROVENANCE_ACTIONS],
86
+ priority: [...VALID_PRIORITIES],
87
+ // Add more as needed
88
+ artifactType: ["knowledge-artifact"],
89
+ contractStatus: ["draft", "active", "completed", "evaluated"],
90
+ swarmStatus: ["recruiting", "active", "paused", "completed", "disbanded"],
91
+ };
92
+ if (options.json) {
93
+ console.log(JSON.stringify(values, null, 2));
94
+ return;
95
+ }
96
+ console.log("Valid AWP enum values:\n");
97
+ console.log("Task Status:");
98
+ console.log(` ${VALID_TASK_STATUSES.join(", ")}\n`);
99
+ console.log("Project Status:");
100
+ console.log(` ${VALID_PROJECT_STATUSES.join(", ")}\n`);
101
+ console.log("Provenance Action:");
102
+ console.log(` ${VALID_PROVENANCE_ACTIONS.join(", ")}\n`);
103
+ console.log("Priority:");
104
+ console.log(` ${VALID_PRIORITIES.join(", ")}\n`);
105
+ console.log("Contract Status:");
106
+ console.log(` draft, active, completed, evaluated\n`);
107
+ console.log("Swarm Status:");
108
+ console.log(` recruiting, active, paused, completed, disbanded\n`);
109
+ console.log("---");
110
+ console.log("Tip: Use 'awp schema values --json' for machine-readable output.");
111
+ }
112
+ /**
113
+ * awp schema example <type> — Show an example file for a type
114
+ */
115
+ export async function schemaExampleCommand(type) {
116
+ const examples = {
117
+ task: `---
118
+ awp: "0.4.0"
119
+ cdp: "1.0"
120
+ type: "task"
121
+ id: "task:my-project/my-task"
122
+ projectId: "project:my-project"
123
+ title: "My Task Title"
124
+ status: "pending" # Valid: pending, in-progress, blocked, review, completed, cancelled
125
+ priority: "medium" # Valid: low, medium, high, critical
126
+ created: "2026-01-31T12:00:00.000Z"
127
+ blockedBy: [] # Array of task IDs like "task:project/slug"
128
+ blocks: []
129
+ # Optional fields:
130
+ # assignee: "did:key:zXXX"
131
+ # assigneeSlug: "agent-slug"
132
+ # deadline: "2026-02-15T00:00:00.000Z"
133
+ # outputArtifact: "artifact-slug"
134
+ # contractSlug: "contract-slug"
135
+ ---
136
+
137
+ # My Task Title
138
+
139
+ ## Acceptance Criteria
140
+
141
+ - Criterion 1
142
+ - Criterion 2
143
+
144
+ ## Notes
145
+
146
+ - Notes go here
147
+ `,
148
+ "knowledge-artifact": `---
149
+ awp: "0.4.0"
150
+ smp: "1.0"
151
+ type: "knowledge-artifact"
152
+ id: "artifact:my-artifact"
153
+ title: "My Artifact Title"
154
+ authors:
155
+ - "did:key:zXXX"
156
+ version: 1
157
+ confidence: 0.8 # 0.0 to 1.0
158
+ tags:
159
+ - "tag1"
160
+ - "tag2"
161
+ created: "2026-01-31T12:00:00.000Z"
162
+ lastModified: "2026-01-31T12:00:00.000Z"
163
+ modifiedBy: "did:key:zXXX"
164
+ provenance:
165
+ - agent: "did:key:zXXX"
166
+ action: "created" # Valid: created, updated, merged
167
+ timestamp: "2026-01-31T12:00:00.000Z"
168
+ message: "Initial creation"
169
+ ---
170
+
171
+ # My Artifact Title
172
+
173
+ Content goes here...
174
+ `,
175
+ project: `---
176
+ awp: "0.4.0"
177
+ cdp: "1.0"
178
+ type: "project"
179
+ id: "project:my-project"
180
+ title: "My Project Title"
181
+ status: "active" # Valid: draft, active, paused, completed, archived
182
+ owner: "did:key:zXXX"
183
+ created: "2026-01-31T12:00:00.000Z"
184
+ members:
185
+ - did: "did:key:zXXX"
186
+ role: "lead"
187
+ slug: "agent-slug"
188
+ tags:
189
+ - "tag1"
190
+ taskCount: 0
191
+ completedCount: 0
192
+ ---
193
+
194
+ # My Project Title
195
+
196
+ ## Goals
197
+
198
+ - Goal 1
199
+ - Goal 2
200
+
201
+ ## Notes
202
+
203
+ - Notes go here
204
+ `,
205
+ "reputation-profile": `---
206
+ awp: "0.4.0"
207
+ rdp: "1.0"
208
+ type: "reputation-profile"
209
+ id: "reputation:agent-slug"
210
+ agentDid: "did:key:zXXX"
211
+ agentName: "Agent Name"
212
+ lastUpdated: "2026-01-31T12:00:00.000Z"
213
+ dimensions:
214
+ reliability:
215
+ score: 0.85 # 0.0 to 1.0
216
+ confidence: 0.50 # Based on sample size
217
+ sampleSize: 10
218
+ lastSignal: "2026-01-31T12:00:00.000Z"
219
+ epistemic-hygiene:
220
+ score: 0.80
221
+ confidence: 0.33
222
+ sampleSize: 5
223
+ lastSignal: "2026-01-31T12:00:00.000Z"
224
+ coordination:
225
+ score: 0.75
226
+ confidence: 0.25
227
+ sampleSize: 3
228
+ lastSignal: "2026-01-31T12:00:00.000Z"
229
+ domainCompetence:
230
+ my-domain:
231
+ score: 0.90
232
+ confidence: 0.50
233
+ sampleSize: 10
234
+ lastSignal: "2026-01-31T12:00:00.000Z"
235
+ signals:
236
+ - source: "did:key:zEvaluator"
237
+ dimension: "reliability"
238
+ score: 0.85
239
+ timestamp: "2026-01-31T12:00:00.000Z"
240
+ evidence: "contract:my-contract"
241
+ message: "Completed task successfully"
242
+ ---
243
+
244
+ # Agent Name — Reputation Profile
245
+
246
+ Notes about this agent's reputation...
247
+ `,
248
+ };
249
+ if (!examples[type]) {
250
+ console.error(`No example available for type: "${type}"`);
251
+ console.error(`Available examples: ${Object.keys(examples).join(", ")}`);
252
+ process.exit(1);
253
+ }
254
+ console.log(examples[type]);
255
+ }
256
+ //# sourceMappingURL=schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema.js","sourceRoot":"","sources":["../../src/commands/schema.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAClE,OAAO,EACL,mBAAmB,EACnB,sBAAsB,EACtB,wBAAwB,EACxB,gBAAgB,GACjB,MAAM,wBAAwB,CAAC;AAEhC,yCAAyC;AACzC,MAAM,YAAY,GAAG;IACnB,UAAU;IACV,MAAM;IACN,MAAM;IACN,YAAY;IACZ,OAAO;IACP,oBAAoB;IACpB,oBAAoB;IACpB,qBAAqB;IACrB,SAAS;IACT,MAAM;IACN,OAAO;IACP,YAAY;IACZ,WAAW;CACH,CAAC;AAIX;;GAEG;AACH,MAAM,CAAC,KAAK,UAAU,iBAAiB;IACrC,OAAO,CAAC,GAAG,CAAC,+BAA+B,CAAC,CAAC;IAC7C,KAAK,MAAM,IAAI,IAAI,YAAY,EAAE,CAAC;QAChC,MAAM,UAAU,GAAG,UAAU,CAAC,IAAI,CAAC,CAAC;QACpC,OAAO,CAAC,GAAG,CAAC,KAAK,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC,MAAM,UAAU,IAAI,aAAa,EAAE,CAAC,CAAC;IACvE,CAAC;IACD,OAAO,CAAC,GAAG,CAAC,wDAAwD,CAAC,CAAC;IACtE,OAAO,CAAC,GAAG,C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