@dreamlake/dreamlake-cli 0.105.0 → 0.106.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/api/index.d.ts +220 -14
- package/dist/api/native-experiments.d.ts +218 -7
- package/dist/api/native-experiments.js +154 -9
- package/dist/cli/auth/commands.d.ts +11 -1
- package/dist/cli/auth/commands.js +34 -10
- package/dist/cli/experiments/native-commands.d.ts +3 -1
- package/dist/cli/experiments/native-commands.js +21 -14
- package/dist/cli/experiments/native-run-data.d.ts +51 -0
- package/dist/cli/experiments/native-run-data.js +826 -0
- package/dist/cli/help-examples.generated.js +48 -37
- package/dist/cli/index.js +4 -3
- package/dist/cli/memos/move-command.js +2 -2
- package/dist/cli/skill/index.js +1 -1
- package/dist/cli/version.d.ts +1 -1
- package/dist/cli/version.js +1 -1
- package/package.json +9 -9
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Generated by docs/scripts/gen-help-examples.mjs. Edit docs code blocks with cli-help metadata.
|
|
2
2
|
export const helpExamples = {
|
|
3
|
-
"agents create": "dreamlake agents create reviewer --runtime builtin-v1 \\\n --prompt 'Read the evidence and summarize it with citations.' \\\n --tools dreamlake_notes_read --project dreamlake --namespace fortyfive\n\n# Existing
|
|
3
|
+
"agents create": "dreamlake agents create reviewer --runtime builtin-v1 \\\n --prompt 'Read the evidence and summarize it with citations.' \\\n --tools dreamlake_notes_read --project dreamlake --namespace fortyfive\n\n# Existing Memo/folder IDs; references remain live and are authorized per caller.\ndreamlake agents create researcher --instruction-note \"$MAIN_MEMO_ID\" \\\n --skill-note \"$SKILL_MEMO_ID\" --skill-folder \"$SKILLS_FOLDER_ID\" \\\n --project dreamlake --namespace fortyfive",
|
|
4
4
|
"agents list": "dreamlake agents list --namespace my-workspace\n# Stable text, even in a terminal; redirected output also defaults to text.\ndreamlake agents list --namespace my-workspace --plain\n# Prefixes match the beginning of a scoped agent name or registry ID.\ndreamlake agents list --prefix my_repo. --project research",
|
|
5
5
|
"agents show": "dreamlake agents show my_repo.tri --namespace my-workspace",
|
|
6
6
|
"agents edit": "dreamlake agents edit my_repo.tri --namespace my-workspace\n# Browser form: follow the localhost URL printed by the command.\ndreamlake agents edit my_repo.tri --namespace my-workspace --web",
|
|
@@ -15,6 +15,7 @@ export const helpExamples = {
|
|
|
15
15
|
"runnable execution-receipt": "dreamlake runnable execution-receipt exec/acme/recipes.process@EXECUTION_DIGEST \\\n --queue cpu --inputs record.json --timeout-seconds 600 --wait-seconds 30",
|
|
16
16
|
"hosts": "dreamlake hosts\ndreamlake hosts --all\ndreamlake hosts -h\ndreamlake hosts list -h",
|
|
17
17
|
"su": "dreamlake su fortyfive\ndreamlake hosts list\ndreamlake hosts list --namespace geyang\ndreamlake su geyang",
|
|
18
|
+
"logout": "dreamlake logout --env staging",
|
|
18
19
|
"nymph": "dreamlake nymph\ndreamlake nymph --json",
|
|
19
20
|
"nymph setup": "dreamlake nymph setup --name alice/computers/laptop --lakeshore-id CONNECTION_ID",
|
|
20
21
|
"nymph config": "dreamlake nymph config --name alice/computers/laptop",
|
|
@@ -31,6 +32,16 @@ export const helpExamples = {
|
|
|
31
32
|
"experiments runs delete": "dreamlake experiments runs delete \"$RUN_ID\" --namespace fortyfive --project research",
|
|
32
33
|
"experiments runs trash list": "dreamlake experiments runs trash list --namespace fortyfive --project research",
|
|
33
34
|
"experiments runs trash restore": "dreamlake experiments runs trash restore \"$RUN_ID\" --namespace fortyfive --project research",
|
|
35
|
+
"experiments runs show": "dreamlake experiments runs show \"$RUN_ID\" --namespace fortyfive --project research",
|
|
36
|
+
"experiments runs status": "dreamlake experiments runs status \"$RUN_ID\" COMPLETED --namespace fortyfive --project research",
|
|
37
|
+
"experiments runs params set": "echo '{\"lr\": 0.001, \"batch\": 64}' | dreamlake experiments runs params set \"$RUN_ID\" --data - --namespace fortyfive --project research",
|
|
38
|
+
"experiments runs metrics append": "dreamlake experiments runs metrics append \"$RUN_ID\" train.loss --data points.json --namespace fortyfive --project research",
|
|
39
|
+
"experiments runs metrics rows": "dreamlake experiments runs metrics rows \"$RUN_ID\" train.loss --limit 1000 --namespace fortyfive --project research",
|
|
40
|
+
"experiments runs logs read": "dreamlake experiments runs logs read \"$RUN_ID\" --level warn,error --search timeout --namespace fortyfive --project research",
|
|
41
|
+
"experiments runs files upload": "dreamlake experiments runs files upload \"$RUN_ID\" ./model.pt --prefix /checkpoints --tags best --namespace fortyfive --project research",
|
|
42
|
+
"experiments runs files download": "dreamlake experiments runs files download \"$RUN_ID\" \"$FILE_ID\" --out ./model.pt --namespace fortyfive --project research",
|
|
43
|
+
"experiments runs tracks append": "dreamlake experiments runs tracks append \"$RUN_ID\" robot/position --data entries.json --namespace fortyfive --project research",
|
|
44
|
+
"experiments runs tracks read": "dreamlake experiments runs tracks read \"$RUN_ID\" robot/position --format mcap --out position.mcap --namespace fortyfive --project research",
|
|
34
45
|
"experiments workspaces": "dreamlake experiments workspaces --namespace fortyfive --json",
|
|
35
46
|
"experiments binding": "dreamlake experiments binding --namespace fortyfive --json",
|
|
36
47
|
"experiments connect": "dreamlake experiments connect research --namespace fortyfive --json\n# Apply only after reviewing the preview. Use its actual revision, not this example's 0.\ndreamlake experiments connect \"$DASH_NAMESPACE_ID\" --namespace fortyfive --instance-id \"$DASH_INSTANCE_ID\" --apply --expected-revision 0 --json",
|
|
@@ -80,46 +91,46 @@ export const helpExamples = {
|
|
|
80
91
|
"layout apply": "dreamlake layout apply request.json --cdp http://127.0.0.1:9222 --page PAGE_ID --layout LAYOUT_ID",
|
|
81
92
|
"machine": "dreamlake machine self\ndreamlake machine host 0123456789abcdef01234567\ndreamlake machine project 0123456789abcdef01234567",
|
|
82
93
|
"auth identity": "dreamlake auth identity\ndreamlake --identity machine profile\ndreamlake --identity user profile",
|
|
83
|
-
"memos archive": "dreamlake memos archive
|
|
84
|
-
"memos unarchive": "dreamlake memos unarchive
|
|
94
|
+
"memos archive": "dreamlake memos archive MEMO_ID --json\n# With a slug or exact title, select its owning namespace.\ndreamlake memos archive release-plan --namespace acme",
|
|
95
|
+
"memos unarchive": "dreamlake memos unarchive MEMO_ID --json\n# Archived titles and slugs remain resolvable.\ndreamlake memos unarchive release-plan --namespace acme",
|
|
85
96
|
"folders list": "# List immediate contents at a project root or inside a folder.\ndreamlake folders list --project project-slug --namespace acme --include-archived --json\ndreamlake folders list --parent-id FOLDER_ID --include-archived --page 1 --page-size 50",
|
|
86
97
|
"folders archive": "dreamlake folders archive FOLDER_ID --json",
|
|
87
98
|
"folders unarchive": "dreamlake folders unarchive FOLDER_ID --json",
|
|
88
99
|
"memos files list": "dreamlake memos files list --note release-plan\ndreamlake memos files list 'assets/*.png' --note release-plan --limit 50\ndreamlake memos files list --note release-plan --json",
|
|
89
100
|
"memos media upload": "dreamlake memos media upload ./diagram.png\nIMAGE_URL=$(dreamlake memos media upload ./diagram.png)",
|
|
90
|
-
"memos files write": "dreamlake memos files write config.json --text '{\"enabled\":true}' --note \"$
|
|
91
|
-
"memos files cp": "dreamlake memos files cp config.json config-copy.json --note \"$
|
|
92
|
-
"memos files status": "# OPERATION_ID is the ID from the original response.\ndreamlake memos files status \"$OPERATION_ID\" --note \"$
|
|
93
|
-
"memos files reconcile": "dreamlake memos files reconcile \"$OPERATION_ID\" --note \"$
|
|
94
|
-
"memos files cancel": "dreamlake memos files cancel \"$OPERATION_ID\" --note \"$
|
|
95
|
-
"memos visit": "# Reuse the task's DREAMLAKE_AGENT_ID and DREAMLAKE_AGENT_NAME.\
|
|
96
|
-
"memos presence": "# Read the participant roster without joining. Text is the default.\
|
|
97
|
-
"memos select": "export DREAMLAKE_AGENT_ID=\"review-session-42\"\nexport DREAMLAKE_AGENT_NAME=\"Codex\"\
|
|
101
|
+
"memos files write": "dreamlake memos files write config.json --text '{\"enabled\":true}' --note \"$MEMO_ID\" --idempotency-key config-initial-1",
|
|
102
|
+
"memos files cp": "dreamlake memos files cp config.json config-copy.json --note \"$MEMO_ID\" --idempotency-key config-copy-1",
|
|
103
|
+
"memos files status": "# OPERATION_ID is the ID from the original response.\ndreamlake memos files status \"$OPERATION_ID\" --note \"$MEMO_ID\" --json",
|
|
104
|
+
"memos files reconcile": "dreamlake memos files reconcile \"$OPERATION_ID\" --note \"$MEMO_ID\" --json",
|
|
105
|
+
"memos files cancel": "dreamlake memos files cancel \"$OPERATION_ID\" --note \"$MEMO_ID\" --json",
|
|
106
|
+
"memos visit": "# Reuse the task's DREAMLAKE_AGENT_ID and DREAMLAKE_AGENT_NAME.\nMEMO_ID=release-plan\ndreamlake memos visit \"$MEMO_ID\"",
|
|
107
|
+
"memos presence": "# Read the participant roster without joining. Text is the default.\nMEMO_ID=release-plan\ndreamlake memos presence \"$MEMO_ID\"",
|
|
108
|
+
"memos select": "export DREAMLAKE_AGENT_ID=\"review-session-42\"\nexport DREAMLAKE_AGENT_NAME=\"Codex\"\nMEMO_ID=\"your-note-id\"\ndreamlake memos select --text \"The next step is tested in simulation.\" --note \"$MEMO_ID\"\n# Select the last occurrence of a repeated passage.\ndreamlake memos select --text \"simulation\" --note \"$MEMO_ID\" -o -1",
|
|
98
109
|
"memos contributors": "dreamlake memos contributors release-plan --namespace geyang --json\n# If hasMore is true, continue with the returned nextCursor:\ndreamlake memos contributors release-plan --namespace geyang --cursor LINK_CURSOR --json",
|
|
99
|
-
"memos rm": "# Read it first and confirm it is the note you mean.\ndreamlake memos read
|
|
100
|
-
"memos patch": "set -euo pipefail\ndreamlake memos create \"Patch tutorial\" --text 'Hello world.' > created.txt\
|
|
101
|
-
"memos append": "dreamlake memos append \"$
|
|
102
|
-
"memos insert": "dreamlake memos insert --note \"$
|
|
103
|
-
"memos delete": "dreamlake memos delete 'obsolete paragraph' --note \"$
|
|
104
|
-
"memos write": "dreamlake memos read \"$
|
|
110
|
+
"memos rm": "# Read it first and confirm it is the note you mean.\ndreamlake memos read MEMO_ID\n# Asks for confirmation, showing the title and owning namespace.\ndreamlake memos rm MEMO_ID\n# Scripts and agents: skip the prompt and take a JSON receipt.\ndreamlake memos rm MEMO_ID --yes --json\n# Afterwards a read reports not found.\ndreamlake memos read MEMO_ID",
|
|
111
|
+
"memos patch": "set -euo pipefail\ndreamlake memos create \"Patch tutorial\" --text 'Hello world.' > created.txt\nMEMO_ID=$(sed -n 's/^ id //p' created.txt)\ndreamlake memos read \"$MEMO_ID\" --view source --json > baseline.json\n# A plain text read is the mapped reading view and --view source is bytes only;\n# --json is the structured snapshot with note, hash and revision.\nBASE=$(jq -er .revision baseline.json)\ndreamlake memos patch \"$MEMO_ID\" --file - --base-revision \"$BASE\" --json > receipt.json <<'PATCH'\n@@ chars 0:12 @@\n~ Hello [-world-]{+team+}.\nPATCH\nACK=$(jq -er .revision receipt.json)\ndreamlake memos read \"$MEMO_ID\" --if-match \"$ACK\"\n# Expect Hello team. Inspect the result; do not repeat a successful patch.",
|
|
112
|
+
"memos append": "dreamlake memos append \"$MEMO_ID\" --file addition.md --base-revision \"$BASE\" --json\n# ACK is the revision in the successful append receipt.\ndreamlake memos read \"$MEMO_ID\" --at \"$ACK\"",
|
|
113
|
+
"memos insert": "dreamlake memos insert --note \"$MEMO_ID\" --ind 0 --text 'Review: ' \\\n --base-revision \"$BASE\" --json\n# ACK is the revision returned by the insertion receipt.\ndreamlake memos read \"$MEMO_ID\" --at \"$ACK\"",
|
|
114
|
+
"memos delete": "dreamlake memos delete 'obsolete paragraph' --note \"$MEMO_ID\" \\\n --base-revision \"$BASE\" --json\n# Pin verification to the receipt's acknowledged revision.\ndreamlake memos read \"$MEMO_ID\" --at \"$ACK\"",
|
|
115
|
+
"memos write": "dreamlake memos read \"$MEMO_ID\" --json > baseline.json\nBASE=$(jq -er .revision baseline.json)\njq -jr .content baseline.json > draft.md\n# Edit draft.md without changing the saved original baseline.\ndreamlake memos write \"$MEMO_ID\" --file draft.md --base-revision \"$BASE\" --json\n# ACK is the successful write receipt's revision.\ndreamlake memos read \"$MEMO_ID\" --at \"$ACK\"",
|
|
105
116
|
"memos": "# Find a note and read it directly.\ndreamlake memos search \"release plan\"\ndreamlake memos read release-plan\n\n# Preview a unique wording change, apply it, then read back.\ndreamlake memos replace \"Draft checklist\" --text \"Ready for review\" --note release-plan --dry-run\ndreamlake memos replace \"Draft checklist\" --text \"Ready for review\" --note release-plan\ndreamlake memos read release-plan\n\n# Create a private note from a Markdown file.\ndreamlake memos create \"Release plan\" --file release-plan.md\n\n# Cross-interface design (unreleased target APIs; verify installed --help):\n# https://docs.dreamlake.ai/notes/api/",
|
|
106
117
|
"memos list": "dreamlake memos list --limit 10\ndreamlake memos list --shared\ndreamlake memos list --namespace acme\ndreamlake memos list --include-archived",
|
|
107
118
|
"memos search": "dreamlake memos search \"release plan\"\ndreamlake memos search deploy --namespace acme --json\ndreamlake memos search deploy --include-archived",
|
|
108
119
|
"memos create": "dreamlake memos create \"Release plan\" --text \"Draft checklist\"\nprintf '# Release plan\\n' | dreamlake memos create \"Release plan\" --file - --json",
|
|
109
120
|
"memos read": "dreamlake memos read release-plan\n# Inspect source with generated address hints; do not write the hints back.\ndreamlake memos read release-plan --view markdown\n# Preserve exact source plus revision/hash for a programmatic edit baseline.\ndreamlake memos read release-plan --json > baseline.json\ndreamlake memos read release-plan --since \"10 minutes ago\" --format diff\n# Detailed read design (unreleased target syntax):\n# https://docs.dreamlake.ai/notes/api/reading/\n# Reuse a stable agent identity for this task.\nexport DREAMLAKE_AGENT_ID=release-reviewer-a\nexport DREAMLAKE_AGENT_NAME=\"Release reviewer A\"\ndreamlake memos read release-plan --linger\n# Ctrl-C stops following.\n\nExample notifications:\n+ @alice joined\n+ Reviewer (agent) joined\n* Reviewer (agent) read the note\n* Reviewer (agent) edited the note\n* @alice selected \"## The center\"\n- @alice left",
|
|
110
121
|
"memos projects": "dreamlake memos projects 000000000000000000000001 --namespace acme",
|
|
111
|
-
"memos move": "# Standalone cross-namespace
|
|
112
|
-
"memos diff": "
|
|
122
|
+
"memos move": "# Standalone cross-namespace Memo transfer is unavailable (exit 3).\ndreamlake memos move MEMO_ID --to-namespace my-org --project shared-research --dry-run\n# Add a project association within the note's CURRENT workspace.\ndreamlake memos move MEMO_ID --to-namespace current-workspace --project research --dry-run\n# Apply only an executable same-workspace preview.\ndreamlake memos move MEMO_ID --to-namespace current-workspace --project research\n# Relocate the note to an existing folder of one project (CLI 0.87.0+).\ndreamlake memos move MEMO_ID --namespace acme --project research --folder reports/2026 --dry-run",
|
|
123
|
+
"memos diff": "MEMO_ID=release-plan\ndreamlake memos read \"$MEMO_ID\" --json > baseline.json\nHASH=$(jq -er .hash baseline.json)\ndreamlake memos diff \"$MEMO_ID\" --since \"$HASH\" --format diff",
|
|
113
124
|
"memos sections": "dreamlake memos sections release-plan\ndreamlake memos sections release-plan --json",
|
|
114
|
-
"memos share": "# Find the release plan and inspect its source and current sharing.\ndreamlake memos search \"release plan\"\
|
|
115
|
-
"memos visibility": "
|
|
116
|
-
"memos share revoke": "
|
|
117
|
-
"memos share access": "
|
|
118
|
-
"memos share remove": "
|
|
125
|
+
"memos share": "# Find the release plan and inspect its source and current sharing.\ndreamlake memos search \"release plan\"\nMEMO=\"release-plan\" # Replace with the id or slug from search.\ndreamlake memos read \"$MEMO\"\ndreamlake memos share get \"$MEMO\"\n\n# Give signed-in recipients read access, then verify the returned link.\ndreamlake memos share create \"$MEMO\" --role read\ndreamlake memos share get \"$MEMO\"\n\n# When link access is no longer needed, revoke it and verify.\ndreamlake memos share revoke \"$MEMO\"\ndreamlake memos share get \"$MEMO\"",
|
|
126
|
+
"memos visibility": "MEMO=\"release-plan\" # Your existing memo id or slug.\ndreamlake memos visibility \"$MEMO\" public\ndreamlake memos visibility \"$MEMO\" private",
|
|
127
|
+
"memos share revoke": "MEMO=\"release-plan\" # Your existing memo id or slug.\ndreamlake memos share revoke \"$MEMO\" --revoke-accepted",
|
|
128
|
+
"memos share access": "MEMO=\"release-plan\" # Your existing memo id or slug.\n# List acceptance records and stored roles as a readable table.\ndreamlake memos share access \"$MEMO\"",
|
|
129
|
+
"memos share remove": "MEMO=\"release-plan\" # Your existing memo id or slug.\nUSER_ID=\"user-id-from-access-list\"\ndreamlake memos share remove \"$MEMO\" \"$USER_ID\"",
|
|
119
130
|
"memos suggest-diff": "# Review a change as a new private note.\ndreamlake memos suggest-diff before.md after.md --user \"Docs review\" \\\n | dreamlake memos create \"Redline: release plan\" --file -\n# Propose edits inside the note itself; refuses changes it cannot express.\ndreamlake memos suggest-diff current.md edited.md --in-place --user \"$DREAMLAKE_AGENT_NAME\" > proposal.md\n# Count insertions, deletions, replacements and changed code blocks.\ndreamlake memos suggest-diff before.md after.md --json | jq .stats",
|
|
120
|
-
"memos transfer": "dreamlake memos transfer
|
|
121
|
-
"memos tag": "# Save the current content on the existing
|
|
122
|
-
"memos hist": "dreamlake
|
|
131
|
+
"memos transfer": "dreamlake memos transfer MEMO_ID --namespace alice --to acme \\\n --dry-run --out note-transfer.json\n# Submit the exact reviewed file; the authorized destination member accepts separately.\ndreamlake memos transfer MEMO_ID --namespace alice --to acme \\\n --confirm --request-file note-transfer.json\n# If you also have destination acceptance authority:\ndreamlake memos transfer MEMO_ID --namespace alice --to acme \\\n --confirm --request-file note-transfer.json --accept-if-authorized --wait",
|
|
132
|
+
"memos tag": "# Save the current content on the existing Memo.\ndreamlake memos tag MEMO_ID end-of-day --namespace my-org --summary \"Reviewed today's actions\"\n# Require the hash retained from a reviewed full read (not its opaque revision).\ndreamlake memos tag MEMO_ID reviewed --hash sha256:CONTENT_HASH --json\n# Connect this checkpoint to an earlier version in the same Memo.\ndreamlake memos tag MEMO_ID next-checkpoint --parent VERSION_ID\n# Read and validate without creating a version.\ndreamlake memos tag MEMO_ID preview --dry-run --json",
|
|
133
|
+
"memos hist": "dreamlake memos hist MEMO_ID --namespace my-org --json\n# Continue with nextCursor returned by the previous page.\ndreamlake memos hist MEMO_ID --before VERSION_ID --json",
|
|
123
134
|
"ownership transfer": "dreamlake ownership transfer artifact ARTIFACT_ID --namespace alice --to acme \\\n --dry-run --out artifact-transfer.json\n# Review the full access inventory and blockers, then submit that exact file.\ndreamlake ownership transfer artifact ARTIFACT_ID --namespace alice --to acme \\\n --confirm --request-file artifact-transfer.json --accept-if-authorized --wait\n# Scene resources use the canonical env adapter, only if advertised and enabled.\ndreamlake ownership transfer scene SCENE_ID --namespace alice --to acme --dry-run\n# Pipeline requires the separately advertised metadata adapter.\ndreamlake ownership transfer pipeline PIPELINE_ID --namespace alice --to acme \\\n --dry-run --out pipeline-transfer.json\n# Source requires its own enabled metadata-only capability.\ndreamlake ownership transfer source SOURCE_ID --namespace alice --to acme \\\n --dry-run --out source-transfer.json",
|
|
124
135
|
"ownership capabilities": "dreamlake ownership capabilities --namespace acme",
|
|
125
136
|
"ownership list": "dreamlake ownership list --namespace acme --direction incoming\ndreamlake ownership list --namespace acme --direction outgoing",
|
|
@@ -132,7 +143,7 @@ export const helpExamples = {
|
|
|
132
143
|
"ownership inspect": "dreamlake ownership inspect <resource-id> --type project --namespace acme",
|
|
133
144
|
"ownership manifest": "dreamlake ownership manifest <resource-id> --type source --namespace acme",
|
|
134
145
|
"ownership restore": "dreamlake ownership restore <resource-id> --type project --namespace acme",
|
|
135
|
-
"project transfer-preview": "dreamlake project transfer-preview dreamlake --namespace geyang --to-namespace fortyfive\n# Explicitly include only reviewed Notes already filed in this project.\ndreamlake project transfer-preview dreamlake --namespace geyang --to-namespace fortyfive --include-note
|
|
146
|
+
"project transfer-preview": "dreamlake project transfer-preview dreamlake --namespace geyang --to-namespace fortyfive\n# Explicitly include only reviewed Notes already filed in this project.\ndreamlake project transfer-preview dreamlake --namespace geyang --to-namespace fortyfive --include-note MEMO_ID --json",
|
|
136
147
|
"ownership snapshot": "dreamlake ownership snapshot 000000000000000000000001 --namespace acme",
|
|
137
148
|
"ownership snapshot-cleanup": "# Inspect eligibility without deleting anything (the default).\ndreamlake ownership snapshot-cleanup 000000000000000000000001 --namespace acme\n# Delete only after server retention and recovery checks pass.\ndreamlake ownership snapshot-cleanup 000000000000000000000001 --namespace acme --execute",
|
|
138
149
|
"project move": "# Save a read-only streaming review with its stable request/key.\ndreamlake project move research --namespace personal --to acme --dry-run --out project-move-review.json\n# Confirm that exact saved review; the recipient must accept separately.\ndreamlake project move research --namespace personal --to acme --confirm --request-file project-move-review.json\n# Accept only with verified destination namespace authority, then wait a bounded time.\ndreamlake project move research --namespace personal --to acme --confirm --request-file project-move-review.json --accept-if-authorized --wait",
|
|
@@ -140,8 +151,8 @@ export const helpExamples = {
|
|
|
140
151
|
"project grants": "dreamlake project grants research --namespace acme",
|
|
141
152
|
"project grant": "dreamlake project grant research --namespace acme --user teammate --role WRITE\ndreamlake project grant research --namespace acme --team TEAM_ID --role READ",
|
|
142
153
|
"project revoke": "dreamlake project grants research --namespace acme\ndreamlake project revoke research GRANT_ID --namespace acme",
|
|
143
|
-
"project attach": "dreamlake project attach research --namespace acme --type note --resource \"$
|
|
144
|
-
"project detach": "dreamlake project detach research --namespace acme --type note --resource \"$
|
|
154
|
+
"project attach": "dreamlake project attach research --namespace acme --type note --resource \"$MEMO_ID\"",
|
|
155
|
+
"project detach": "dreamlake project detach research --namespace acme --type note --resource \"$MEMO_ID\"",
|
|
145
156
|
"provider create": "dreamlake provider create -n aws-demo --provider aws-jump-worker --json\n# Read the generated AGENT.md and terraform/ENROLLMENT.md.\n# Fill terraform/terraform.tfvars.json and terraform/backend.json explicitly.\ndreamlake provider create -n aws-demo --continue --json",
|
|
146
157
|
"provider plan": "# Requires the selected backend and authorized AWS read access.\ndreamlake provider plan -n aws-demo --json",
|
|
147
158
|
"provider machine": "dreamlake provider machine status -n aws-dev --account 123456789012 --json\ndreamlake provider machine start -n aws-dev --account 123456789012 --yes\ndreamlake provider machine terminal -n aws-dev --account 123456789012\ndreamlake provider machine stop -n aws-dev --account 123456789012 --yes",
|
|
@@ -176,7 +187,7 @@ export const helpExamples = {
|
|
|
176
187
|
"sessions register": "dreamlake sessions register --provider codex --session <native-uuid> --cwd /absolute/repository --json\n# Explicit private override for a new registration:\ndreamlake sessions register --provider claude --session <native-uuid> --cwd /absolute/repository --visibility private --json\n# From inside a Claude Code session: register it, print the saved ID and the control send recipe,\n# and write an env file other shells can source so their note/artifact writes link to it:\ndreamlake sessions register --provider claude --session \"${CLAUDE_SESSION_ID:-$CLAUDE_CODE_SESSION_ID}\" --cwd \"$PWD\" --visibility private --write-env \"$HOME/.dreamlake/sessions/current.env\"",
|
|
177
188
|
"claude": "# Interactive Claude Code, registered private before it starts, acceptEdits (workspace-write):\ndreamlake claude\n# One headless turn at plan level; everything after the wrapper's flags goes to claude unchanged:\ndreamlake claude --permission read-only -p \"Summarize the open PRs\" --model opus",
|
|
178
189
|
"codex": "dreamlake codex --permission full-access \"Fix the failing test\"",
|
|
179
|
-
"sessions link": "dreamlake sessions link SESSION_ID --namespace geyang \\\n --resource-namespace fortyfive --note
|
|
190
|
+
"sessions link": "dreamlake sessions link SESSION_ID --namespace geyang \\\n --resource-namespace fortyfive --note MEMO_ID --json\ndreamlake sessions link SESSION_ID --namespace geyang \\\n --resource-namespace fortyfive --artifact loss-plot --json",
|
|
180
191
|
"sessions unlink": "dreamlake sessions unlink SESSION_ID --namespace geyang \\\n --resource-namespace fortyfive --artifact loss-plot --json",
|
|
181
192
|
"sessions resources": "dreamlake sessions resources SESSION_ID --namespace geyang --page-size 25 --json",
|
|
182
193
|
"sessions": "dreamlake sessions targets --namespace geyang\ndreamlake sessions list --namespace geyang",
|
|
@@ -210,14 +221,14 @@ export const helpExamples = {
|
|
|
210
221
|
"sessions archive": "dreamlake sessions rename <session-id> \"Flaky test hunt\"\ndreamlake sessions archive <session-id>\ndreamlake sessions unarchive <session-id>",
|
|
211
222
|
"sessions chat": "dreamlake sessions chat \"Which of my sessions need attention?\"\n# Allow lifecycle and messaging tools this turn:\ndreamlake sessions chat --control \"Send 'rebase on main' to the two Claude sessions working on notes\"",
|
|
212
223
|
"sessions tool-calls": "dreamlake sessions tool-calls <conversation-id>",
|
|
213
|
-
"dreamlake": "# Guided agent setup: choose agent and scope, install dreamlake-cli offline\ndreamlake init\n# Install more skills from the public release\ndreamlake skill install dreamlake-
|
|
224
|
+
"dreamlake": "# Guided agent setup: choose agent and scope, install dreamlake-cli offline\ndreamlake init\n# Install more skills from the public release\ndreamlake skill install dreamlake-memos\n# Keep installed skills current\ndreamlake skill update",
|
|
214
225
|
"init": "dreamlake init\ndreamlake init --agent codex\ndreamlake init --agent claude --global\n# Claude Code and Codex: one copy in each agent's directory\ndreamlake init --agent all --global",
|
|
215
|
-
"skill": "dreamlake skill list\ndreamlake skill read dreamlake-
|
|
226
|
+
"skill": "dreamlake skill list\ndreamlake skill read dreamlake-memos\ndreamlake skill install dreamlake-memos\ndreamlake skill update\ndreamlake skill remove dreamlake-memos",
|
|
216
227
|
"skill list": "# The server's registry when logged in, else the embedded snapshot\ndreamlake skill list\n# Choose the source; --local never uses the network\ndreamlake skill list --local\ndreamlake skill list --remote\n# Fetch the latest catalog and show it next to the installed versions\ndreamlake skill list --refresh\ndreamlake skill list --agent codex --json",
|
|
217
|
-
"skill read": "# SKILL.md, from the server's registry when logged in, else the embedded bundle\ndreamlake skill read dreamlake-
|
|
218
|
-
"skill install": "# The embedded dreamlake-cli skill; offline when it matches the release\ndreamlake skill install dreamlake-cli\n# A catalog skill plus whatever it requires, from the latest release\ndreamlake skill install dreamlake-
|
|
219
|
-
"skill update": "# Every skill with a manifest in the selected scope\ndreamlake skill update\ndreamlake skill update dreamlake-cli --global\n# Overwrite edited files; retired files you edited are still kept\ndreamlake skill update dreamlake-
|
|
220
|
-
"skill remove": "dreamlake skill remove dreamlake-
|
|
228
|
+
"skill read": "# SKILL.md, from the server's registry when logged in, else the embedded bundle\ndreamlake skill read dreamlake-memos\n# One file inside the skill\ndreamlake skill read dreamlake-memos --file actions/read.md\n# Choose the source; --json carries the same fields as the agent's dreamlake_skills_read\ndreamlake skill read dreamlake-cli --local --json\ndreamlake skill read dreamlake-scenes --remote",
|
|
229
|
+
"skill install": "# The embedded dreamlake-cli skill; offline when it matches the release\ndreamlake skill install dreamlake-cli\n# A catalog skill plus whatever it requires, from the latest release\ndreamlake skill install dreamlake-memos --agent codex\n# One copy for Claude Code and one for Codex\ndreamlake skill install dreamlake-memos --agent all --global\n# Replace files you edited with the release copies\ndreamlake skill install dreamlake-memos --force",
|
|
230
|
+
"skill update": "# Every skill with a manifest in the selected scope\ndreamlake skill update\ndreamlake skill update dreamlake-cli --global\n# Overwrite edited files; retired files you edited are still kept\ndreamlake skill update dreamlake-memos --force\n# Go back to an older release, or replace a copy whose version cannot be ordered\ndreamlake skill update dreamlake-memos --allow-downgrade",
|
|
231
|
+
"skill remove": "dreamlake skill remove dreamlake-memos\ndreamlake skill remove dreamlake-memos --agent codex --global --json",
|
|
221
232
|
"vault cloud import": "# No --file: list standard candidate paths without opening their contents.\ndreamlake vault cloud import --provider aws -p alice/aws/dev\n# Explicit selections: preview names, sizes and profile metadata, without upload.\ndreamlake vault cloud import --provider aws -p alice/aws/dev \\\n --file \"$HOME/.aws/config\" --file \"$HOME/.aws/credentials\"\n# Repeat the selection with --apply to upload.\ndreamlake vault cloud import --provider aws -p alice/aws/dev \\\n --file \"$HOME/.aws/config\" --file \"$HOME/.aws/credentials\" --apply\ndreamlake vault cloud import --provider gcp -p alice/gcp/dev \\\n --file /private/config/service-account.json --apply",
|
|
222
233
|
"vault cloud restore": "# Preview checks metadata and destination without retrieving the secret.\ndreamlake vault cloud restore -n alice/aws/dev/credentials \\\n --to '~/.aws/credentials'\n# Write only after explicit --apply; existing files additionally need --overwrite.\ndreamlake vault cloud restore -n alice/aws/dev/credentials \\\n --to '~/.aws/credentials' --apply",
|
|
223
234
|
"vault add": "# Keep a 90-day registry token for exactly as long as the registry honors it.\npbpaste | dreamlake vault add -p alice -n cli/npm/access-token --stdin --expires-in 90d --env NPM_TOKEN\n# An exact UTC timestamp works the same way.\npbpaste | dreamlake vault add -p alice -n cli/npm/access-token --stdin --expires-at 2027-01-24T00:00:00Z\n# Replace a value and clear its expiry, pinning the current revision.\npbpaste | dreamlake vault add -p alice -n cli/npm/access-token --stdin --if-match 2 --no-expiry",
|
package/dist/cli/index.js
CHANGED
|
@@ -147,9 +147,10 @@ async function main(argv) {
|
|
|
147
147
|
});
|
|
148
148
|
program
|
|
149
149
|
.command("logout")
|
|
150
|
-
.description("log out of the active environment (removes its saved token)")
|
|
151
|
-
.
|
|
152
|
-
|
|
150
|
+
.description("log out of the active environment, or --env <name> (removes its saved token)")
|
|
151
|
+
.option("--env <name>", "saved environment to log out of (default: the active one)")
|
|
152
|
+
.action(async (opts) => {
|
|
153
|
+
process.exit(await runLogout({ env: opts.env }));
|
|
153
154
|
});
|
|
154
155
|
program
|
|
155
156
|
.command("profile")
|
|
@@ -67,7 +67,7 @@ export async function runMemosMove(ref, opts) {
|
|
|
67
67
|
emitJson(receipt);
|
|
68
68
|
else {
|
|
69
69
|
process.stdout.write(`${receipt.dryRun ? "Move preview" : receipt.moved ? "Memo moved" : "Project filing updated"}: ${receipt.note.name}\n`);
|
|
70
|
-
process.stdout.write(`
|
|
70
|
+
process.stdout.write(`Memo: ${receipt.note.id}\nFrom: @${receipt.source.namespaceSlug}\nTo: @${receipt.destination.namespaceSlug}\n`);
|
|
71
71
|
process.stdout.write(`Projects: ${receipt.destination.projects.map(p => p.slug).join(", ") || "none"}\n`);
|
|
72
72
|
if (receipt.source.namespaceSlug !== receipt.destination.namespaceSlug && receipt.source.projects.length)
|
|
73
73
|
process.stdout.write(`Previous project associations removed${receipt.dryRun ? " on confirmation" : ""}: ${receipt.source.projects.map(p => p.slug).join(", ")}\n`);
|
|
@@ -217,7 +217,7 @@ export async function runMemosFolderMove(ref, opts) {
|
|
|
217
217
|
emitJson(receipt);
|
|
218
218
|
else {
|
|
219
219
|
process.stdout.write(`${receipt.dryRun ? "Move preview" : receipt.moved ? "Memo moved" : "Already there"}: ${receipt.note.name}\n`);
|
|
220
|
-
process.stdout.write(`
|
|
220
|
+
process.stdout.write(`Memo: ${id} (node ${node.id}) in ${project}@${ns}\n`);
|
|
221
221
|
process.stdout.write(`From: ${receipt.source.path}\nTo: ${receipt.destination.path}\n`);
|
|
222
222
|
if (unchanged)
|
|
223
223
|
process.stdout.write("The memo is already in that folder. Nothing changed.\n");
|
package/dist/cli/skill/index.js
CHANGED
|
@@ -1387,7 +1387,7 @@ bundle; --remote and --local choose explicitly. Every answer names its source an
|
|
|
1387
1387
|
`);
|
|
1388
1388
|
skill.command("read")
|
|
1389
1389
|
.description("print one file of a skill — SKILL.md by default — from the server registry or the embedded bundle")
|
|
1390
|
-
.argument("<name>", "skill name, e.g. dreamlake-
|
|
1390
|
+
.argument("<name>", "skill name, e.g. dreamlake-memos")
|
|
1391
1391
|
.option("--file <path>", "a path inside the skill, like actions/read.md (default: SKILL.md)")
|
|
1392
1392
|
.option("--local", "read the bundle embedded in this CLI, offline")
|
|
1393
1393
|
.option("--remote", "read the server's skills registry (needs a login)")
|
package/dist/cli/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.106.0";
|
package/dist/cli/version.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dreamlake/dreamlake-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.106.0",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/dreamlake-ai/dreamlake-cli.git"
|
|
@@ -36,13 +36,13 @@
|
|
|
36
36
|
"node": ">=18"
|
|
37
37
|
},
|
|
38
38
|
"optionalDependencies": {
|
|
39
|
-
"@dreamlake/dreamlake-cli-darwin-arm64": "0.
|
|
40
|
-
"@dreamlake/dreamlake-cli-darwin-x64": "0.
|
|
41
|
-
"@dreamlake/dreamlake-cli-linux-x64": "0.
|
|
42
|
-
"@dreamlake/dreamlake-cli-linux-arm64": "0.
|
|
43
|
-
"@dreamlake/dreamlake-cli-linux-x64-musl": "0.
|
|
44
|
-
"@dreamlake/dreamlake-cli-linux-arm64-musl": "0.
|
|
45
|
-
"@dreamlake/dreamlake-cli-win32-x64": "0.
|
|
46
|
-
"@dreamlake/dreamlake-cli-win32-arm64": "0.
|
|
39
|
+
"@dreamlake/dreamlake-cli-darwin-arm64": "0.106.0",
|
|
40
|
+
"@dreamlake/dreamlake-cli-darwin-x64": "0.106.0",
|
|
41
|
+
"@dreamlake/dreamlake-cli-linux-x64": "0.106.0",
|
|
42
|
+
"@dreamlake/dreamlake-cli-linux-arm64": "0.106.0",
|
|
43
|
+
"@dreamlake/dreamlake-cli-linux-x64-musl": "0.106.0",
|
|
44
|
+
"@dreamlake/dreamlake-cli-linux-arm64-musl": "0.106.0",
|
|
45
|
+
"@dreamlake/dreamlake-cli-win32-x64": "0.106.0",
|
|
46
|
+
"@dreamlake/dreamlake-cli-win32-arm64": "0.106.0"
|
|
47
47
|
}
|
|
48
48
|
}
|