dashclaw 4.1.0 → 4.1.1
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/README.md +1 -0
- package/dashclaw.js +5 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -56,6 +56,7 @@ const { action, action_id } = await claw.createAction({
|
|
|
56
56
|
action_type: 'deploy',
|
|
57
57
|
declared_goal: 'Ship v2.4.0 to production',
|
|
58
58
|
risk_score: 90,
|
|
59
|
+
// session_id: 'sess_…' // optional: link to a started session for exact attribution (else server correlates by agent + time window)
|
|
59
60
|
});
|
|
60
61
|
|
|
61
62
|
// 3. If the server flagged this for human review, wait for an operator.
|
package/dashclaw.js
CHANGED
|
@@ -164,7 +164,12 @@ class DashClaw {
|
|
|
164
164
|
* to have a `non_fabrication` guard policy verify the content before the
|
|
165
165
|
* action proceeds. A violation blocks the action or routes it to approval and
|
|
166
166
|
* is recorded with a signed receipt in the decision ledger.
|
|
167
|
+
*
|
|
168
|
+
* Optional `session_id`: pass the id from `createSession()` to link this
|
|
169
|
+
* action to a session via the Direct path (exact attribution). When omitted,
|
|
170
|
+
* the server falls back to time-window correlation by agent_id.
|
|
167
171
|
* @param {Object} action
|
|
172
|
+
* @param {string} [action.session_id] Session to attribute this action to.
|
|
168
173
|
*/
|
|
169
174
|
async createAction(action) {
|
|
170
175
|
return this._request('/api/actions', 'POST', {
|