@skrr-ai/cli 0.1.143 → 0.1.145
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 +13 -0
- package/dist/commands/agenda/plan.d.ts +7 -0
- package/dist/commands/agenda/plan.js +17 -0
- package/dist/commands/agenda/trigger/create.js +4 -2
- package/dist/commands/agenda/trigger/list.js +7 -7
- package/dist/commands/agent/message/approve.d.ts +17 -0
- package/dist/commands/agent/message/approve.js +70 -0
- package/dist/commands/agent/message/decline.d.ts +17 -0
- package/dist/commands/agent/message/decline.js +70 -0
- package/dist/commands/agent/message/pending.d.ts +18 -0
- package/dist/commands/agent/message/pending.js +79 -0
- package/dist/commands/agents/delete.d.ts +45 -0
- package/dist/commands/agents/delete.js +139 -2
- package/dist/commands/agents/plan-day.d.ts +50 -7
- package/dist/commands/agents/plan-day.js +293 -65
- package/dist/commands/agents/proactive-audit.d.ts +22 -0
- package/dist/commands/agents/proactive-audit.js +86 -0
- package/dist/commands/agents/schedule-overview.d.ts +7 -0
- package/dist/commands/agents/schedule-overview.js +49 -5
- package/dist/commands/agents/schedule-trace.js +42 -21
- package/dist/commands/agents/spawn.d.ts +78 -1
- package/dist/commands/agents/spawn.js +262 -6
- package/dist/commands/agents/todos/list.d.ts +5 -0
- package/dist/commands/agents/todos/list.js +19 -5
- package/dist/commands/agents/triggers/create.js +1 -1
- package/dist/commands/agents/triggers/update.js +1 -1
- package/dist/commands/agents/upcoming.d.ts +1 -0
- package/dist/commands/agents/upcoming.js +18 -7
- package/dist/commands/commitments/create.js +14 -4
- package/dist/commands/commitments/preflight.js +14 -3
- package/dist/commands/commitments/update.js +1 -1
- package/dist/commands/initiatives/worker/deactivate.d.ts +23 -0
- package/dist/commands/initiatives/worker/deactivate.js +78 -0
- package/dist/commands/login.js +8 -2
- package/dist/commands/logout.d.ts +20 -0
- package/dist/commands/logout.js +110 -5
- package/dist/commands/memory/maintain.js +16 -2
- package/dist/commands/spaces/delete.js +6 -1
- package/dist/commands/spaces/workflow-templates/insert.js +4 -0
- package/dist/commands/spaces/workflows/archive.js +6 -1
- package/dist/commands/spaces/workflows/publish.js +3 -1
- package/dist/commands/spaces/workflows/run.d.ts +1 -0
- package/dist/commands/spaces/workflows/run.js +17 -1
- package/dist/commands/spaces/workflows/triggers/create.js +3 -1
- package/dist/commands/store/show.js +22 -0
- package/dist/commands/tasks/workflow-context.js +3 -1
- package/dist/commands/triggers/capabilities.js +17 -1
- package/dist/commands/triggers/create.d.ts +2 -0
- package/dist/commands/triggers/create.js +23 -7
- package/dist/commands/triggers/fire-detail.js +12 -3
- package/dist/commands/triggers/list.d.ts +1 -0
- package/dist/commands/triggers/list.js +13 -1
- package/dist/commands/triggers/preflight.js +18 -0
- package/dist/commands/triggers/prune.js +9 -5
- package/dist/commands/triggers/update.js +13 -4
- package/dist/generated/agent-guides.json +35 -35
- package/dist/lib/agent-proactive-baseline.js +7 -1
- package/dist/lib/agentic-stream.d.ts +7 -0
- package/dist/lib/agentic-stream.js +22 -0
- package/dist/lib/commitments.d.ts +16 -9
- package/dist/lib/commitments.js +78 -5
- package/dist/lib/compasses.js +1 -1
- package/dist/lib/daemon-setup.js +9 -3
- package/dist/lib/daemonBroker.d.ts +7 -0
- package/dist/lib/daemonBroker.js +5 -0
- package/dist/lib/daemonHandoff.d.ts +2 -0
- package/dist/lib/daemonHandoff.js +10 -1
- package/dist/lib/daemonIslandProfile.d.ts +19 -0
- package/dist/lib/daemonIslandProfile.js +41 -0
- package/dist/lib/dedicated-power.js +10 -3
- package/dist/lib/format.d.ts +47 -0
- package/dist/lib/format.js +136 -1
- package/dist/lib/initiatives-worker.d.ts +25 -0
- package/dist/lib/initiatives-worker.js +13 -0
- package/dist/lib/login.d.ts +7 -0
- package/dist/lib/login.js +5 -0
- package/dist/lib/planOutcome.d.ts +51 -0
- package/dist/lib/planOutcome.js +88 -0
- package/dist/lib/proactive-audit.d.ts +52 -0
- package/dist/lib/proactive-audit.js +67 -0
- package/dist/lib/proactiveApi.d.ts +71 -0
- package/dist/lib/proactiveApi.js +10 -1
- package/dist/lib/refresh.d.ts +20 -6
- package/dist/lib/refresh.js +27 -9
- package/dist/lib/roles.d.ts +1 -1
- package/dist/lib/schedule.d.ts +214 -10
- package/dist/lib/schedule.js +317 -21
- package/dist/lib/triggers.d.ts +139 -3
- package/dist/lib/triggers.js +382 -18
- package/dist/lib/workflow-node-control.js +8 -0
- package/dist/lib/workflow-run-view.js +9 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/index.d.ts +1 -1
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/index.js +2 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/refresh.d.ts +22 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/refresh.js +15 -4
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/index.d.ts +1 -1
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/index.js +1 -1
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/refresh.d.ts +22 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/refresh.js +22 -4
- package/dist/node_modules/@skrr-ai/data-provider/index.js +5252 -5211
- package/oclif.manifest.json +526 -29
- package/package.json +1 -1
|
@@ -40,7 +40,10 @@ class TriggersCreate extends base_command_1.BaseCommand {
|
|
|
40
40
|
description: 'Create enabled or disabled (default: enabled; pass --no-enabled to author it inert)',
|
|
41
41
|
allowNo: true,
|
|
42
42
|
}),
|
|
43
|
-
mode: core_1.Flags.string({
|
|
43
|
+
mode: core_1.Flags.string({
|
|
44
|
+
description: triggers_1.TRIGGER_MODE_FLAG_DESCRIPTION,
|
|
45
|
+
options: [...triggers_1.TRIGGER_EXECUTOR_MODES],
|
|
46
|
+
}),
|
|
44
47
|
prompt: core_1.Flags.string({ description: 'Prompt template sent when the trigger fires' }),
|
|
45
48
|
'builtin-action': core_1.Flags.string({
|
|
46
49
|
description: 'Typed builtinAction JSON object for mode=builtin_action',
|
|
@@ -81,8 +84,12 @@ class TriggersCreate extends base_command_1.BaseCommand {
|
|
|
81
84
|
multiple: true,
|
|
82
85
|
}),
|
|
83
86
|
references: core_1.Flags.string({ description: 'Execution references JSON array' }),
|
|
84
|
-
'working-hours': core_1.Flags.string({
|
|
85
|
-
|
|
87
|
+
'working-hours': core_1.Flags.string({
|
|
88
|
+
description: `Execution workingHours: only fires inside the window run. ${triggers_1.TRIGGER_WINDOW_FLAG_HELP}`,
|
|
89
|
+
}),
|
|
90
|
+
'quiet-hours': core_1.Flags.string({
|
|
91
|
+
description: `Execution quietHours: fires inside the window are skipped. ${triggers_1.TRIGGER_WINDOW_FLAG_HELP}`,
|
|
92
|
+
}),
|
|
86
93
|
cron: core_1.Flags.string({ description: 'Cron expression for schedule triggers' }),
|
|
87
94
|
'interval-ms': core_1.Flags.integer({ description: 'Interval schedule period in milliseconds' }),
|
|
88
95
|
'interval-minutes': core_1.Flags.integer({ description: 'Interval schedule period in minutes' }),
|
|
@@ -90,7 +97,9 @@ class TriggersCreate extends base_command_1.BaseCommand {
|
|
|
90
97
|
description: 'Daily HH:MM fire time for schedule triggers (repeatable or comma-separated)',
|
|
91
98
|
multiple: true,
|
|
92
99
|
}),
|
|
93
|
-
timezone: core_1.Flags.string({
|
|
100
|
+
timezone: core_1.Flags.string({
|
|
101
|
+
description: 'IANA timezone for schedule triggers, for example America/Los_Angeles. Defaults to UTC: without it --daily-time 09:30 or a cron runs at 09:30 UTC, not at 09:30 where you are.',
|
|
102
|
+
}),
|
|
94
103
|
'max-fires-per-day': core_1.Flags.integer({
|
|
95
104
|
description: 'Daily fire cap (schedule, stochastic and self_scheduled triggers only)',
|
|
96
105
|
}),
|
|
@@ -325,6 +334,7 @@ class TriggersCreate extends base_command_1.BaseCommand {
|
|
|
325
334
|
if (trigger.dryRun) {
|
|
326
335
|
this.log('Trigger accepted by dry run.');
|
|
327
336
|
this.warnMissingSelfSchedule(trigger);
|
|
337
|
+
this.warnWindowAdvice(trigger);
|
|
328
338
|
return;
|
|
329
339
|
}
|
|
330
340
|
this.log('Created trigger:');
|
|
@@ -333,6 +343,12 @@ class TriggersCreate extends base_command_1.BaseCommand {
|
|
|
333
343
|
this.log(`View it at ${url}`);
|
|
334
344
|
this.warnDuplicateSubscriptions(trigger);
|
|
335
345
|
this.warnMissingSelfSchedule(trigger);
|
|
346
|
+
this.warnWindowAdvice(trigger);
|
|
347
|
+
}
|
|
348
|
+
/** How a saved working / quiet window will be read, when that is not what it looks like (OSK-22530). */
|
|
349
|
+
warnWindowAdvice(trigger) {
|
|
350
|
+
for (const advice of (0, triggers_1.windowAuthoringAdvice)(trigger))
|
|
351
|
+
this.warn(advice);
|
|
336
352
|
}
|
|
337
353
|
warnMissingSelfSchedule(trigger) {
|
|
338
354
|
const warnings = trigger?.warnings;
|
|
@@ -381,9 +397,9 @@ class TriggersCreate extends base_command_1.BaseCommand {
|
|
|
381
397
|
if (execution.mode === 'builtin_action') {
|
|
382
398
|
const builtinAction = execution.builtinAction;
|
|
383
399
|
if (!builtinAction || typeof builtinAction.builtinType !== 'string') {
|
|
384
|
-
this.error('mode=builtin_action
|
|
385
|
-
|
|
386
|
-
|
|
400
|
+
this.error('mode=builtin_action runs a deterministic action with no model turn, so it needs an action and no prompt: ' +
|
|
401
|
+
'pass --builtin-type and --builtin-config, or execution.builtinAction { builtinType, config } in --from-json. ' +
|
|
402
|
+
`\`${this.config.bin} triggers actions\` lists the types and their config.`, { exit: 1 });
|
|
387
403
|
}
|
|
388
404
|
const { ok, missing } = (0, builtinActions_1.validateBuiltinConfig)(builtinAction.builtinType, builtinAction.config);
|
|
389
405
|
if (!ok) {
|
|
@@ -25,14 +25,23 @@ function describeFireAuditDetail(detail, fireId, triggerId) {
|
|
|
25
25
|
lines.push(`Reason: ${reason}`);
|
|
26
26
|
if (message && message !== reason)
|
|
27
27
|
lines.push(`${reason ? 'Detail:' : 'Reason:'} ${message}`);
|
|
28
|
-
const
|
|
29
|
-
if (
|
|
30
|
-
lines.push(`Explanation: ${
|
|
28
|
+
const clockSkip = (0, triggers_1.clockSkipAuditExplanation)(detail);
|
|
29
|
+
if (clockSkip) {
|
|
30
|
+
lines.push(`Explanation: ${clockSkip.summary}. ${clockSkip.detail}`);
|
|
31
31
|
}
|
|
32
32
|
const policy = (0, triggers_1.policyAuditExplanation)(detail);
|
|
33
33
|
if (policy) {
|
|
34
34
|
lines.push(`Explanation: ${policy.summary}. ${policy.detail}`);
|
|
35
35
|
}
|
|
36
|
+
const coalesced = (0, triggers_1.coalescedAuditExplanation)(detail);
|
|
37
|
+
if (coalesced) {
|
|
38
|
+
lines.push(`Explanation: ${coalesced.summary}. ${coalesced.detail}`);
|
|
39
|
+
}
|
|
40
|
+
// Any fire whose receipt was offered as a card says what came of it, whatever skipped it (ask-first,
|
|
41
|
+
// quiet hours, a cap), not only the suggestions-only case explained above.
|
|
42
|
+
const policyCard = (0, triggers_1.policyCardSentence)(detail.metadata?.policyCard);
|
|
43
|
+
if (policyCard && !policy)
|
|
44
|
+
lines.push(`Inbox card: ${policyCard}`);
|
|
36
45
|
if (detail.durationMs !== undefined)
|
|
37
46
|
lines.push(`Duration: ${String(detail.durationMs)}ms`);
|
|
38
47
|
if (detail.conversationId)
|
|
@@ -7,6 +7,7 @@ export default class TriggersList extends BaseCommand {
|
|
|
7
7
|
scope: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
8
8
|
kind: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
9
9
|
enabled: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
10
|
+
ref: import("@oclif/core/interfaces").OptionFlag<string[] | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
10
11
|
'ref-entity': import("@oclif/core/interfaces").OptionFlag<string[] | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
11
12
|
limit: import("@oclif/core/interfaces").OptionFlag<number, import("@oclif/core/interfaces").CustomOptions>;
|
|
12
13
|
before: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
@@ -9,6 +9,7 @@ class TriggersList extends base_command_1.BaseCommand {
|
|
|
9
9
|
static examples = [
|
|
10
10
|
'<%= config.bin %> triggers list',
|
|
11
11
|
'<%= config.bin %> triggers list --scope agent --kind schedule --enabled',
|
|
12
|
+
'<%= config.bin %> triggers list --ref agentId=<agent-id> --json',
|
|
12
13
|
'<%= config.bin %> triggers list --ref-entity agent:<agent-id> --json',
|
|
13
14
|
];
|
|
14
15
|
static flags = {
|
|
@@ -16,6 +17,10 @@ class TriggersList extends base_command_1.BaseCommand {
|
|
|
16
17
|
scope: core_1.Flags.string({ description: 'Filter by scope kind', options: [...triggers_1.TRIGGER_SCOPE_KINDS] }),
|
|
17
18
|
kind: core_1.Flags.string({ description: 'Filter by trigger kind', options: [...triggers_1.TRIGGER_KINDS] }),
|
|
18
19
|
enabled: core_1.Flags.boolean({ description: 'Filter by enabled state', allowNo: true }),
|
|
20
|
+
ref: core_1.Flags.string({
|
|
21
|
+
description: 'Filter by a scope ref as key=value (repeatable), the same spelling `triggers create` takes, for example --ref agentId=abc',
|
|
22
|
+
multiple: true,
|
|
23
|
+
}),
|
|
19
24
|
'ref-entity': core_1.Flags.string({
|
|
20
25
|
description: 'Filter by ref entity as kind:id (repeatable), e.g. --ref-entity agent:abc',
|
|
21
26
|
multiple: true,
|
|
@@ -26,11 +31,18 @@ class TriggersList extends base_command_1.BaseCommand {
|
|
|
26
31
|
async run() {
|
|
27
32
|
this.requireAuth();
|
|
28
33
|
const { flags } = await this.parse(TriggersList);
|
|
34
|
+
let refEntity;
|
|
35
|
+
try {
|
|
36
|
+
refEntity = [...(flags['ref-entity'] ?? []), ...(0, triggers_1.refEntitiesFromRefFlags)(flags.ref)];
|
|
37
|
+
}
|
|
38
|
+
catch (err) {
|
|
39
|
+
this.error(err.message, { exit: 2 });
|
|
40
|
+
}
|
|
29
41
|
const path = (0, triggers_1.withQuery)('/api/triggers', {
|
|
30
42
|
scope: flags.scope,
|
|
31
43
|
kind: flags.kind,
|
|
32
44
|
enabled: flags.enabled,
|
|
33
|
-
refEntity:
|
|
45
|
+
refEntity: refEntity.length > 0 ? refEntity : undefined,
|
|
34
46
|
limit: flags.limit,
|
|
35
47
|
before: flags.before,
|
|
36
48
|
});
|
|
@@ -97,6 +97,11 @@ class TriggersPreflight extends base_command_1.BaseCommand {
|
|
|
97
97
|
: '';
|
|
98
98
|
this.log(`${verdict}${because}`);
|
|
99
99
|
this.log(`kind=${report.kind ?? '-'} mode=${report.executorMode ?? '-'} enabled=${String(report.enabled ?? '-')}`);
|
|
100
|
+
// `mode=run_only` is a name, not a consequence. Say whether firing starts an Agent turn so a
|
|
101
|
+
// person can decide before enabling it (OSK-21766).
|
|
102
|
+
const effect = (0, triggers_1.executorModeEffect)(report.executorMode);
|
|
103
|
+
if (effect)
|
|
104
|
+
this.log(`mode ${String(report.executorMode)}: ${effect}`);
|
|
100
105
|
this.log('\nGates:');
|
|
101
106
|
for (const gate of report.gates) {
|
|
102
107
|
const mark = gate.verdict === 'pass'
|
|
@@ -109,6 +114,19 @@ class TriggersPreflight extends base_command_1.BaseCommand {
|
|
|
109
114
|
? '?? '
|
|
110
115
|
: '- ';
|
|
111
116
|
this.log(` ${mark} ${gate.name}${gate.reason ? ` — ${gate.reason}` : ''}`);
|
|
117
|
+
// The debounce gate is a bare `ok` otherwise, and what the window means (trigger-wide, skipped
|
|
118
|
+
// not queued) was readable only from the implementation (OSK-21756). The working-hours gate
|
|
119
|
+
// says which instant it judged when that is not the moment preflight ran (OSK-22527).
|
|
120
|
+
const note = gate.name === 'debounce' || gate.name === 'concurrency' || gate.name === 'working_hours'
|
|
121
|
+
? gate.detail?.note
|
|
122
|
+
: undefined;
|
|
123
|
+
if (typeof note === 'string' && note)
|
|
124
|
+
this.log(` ${note}`);
|
|
125
|
+
// The lane a fire takes is what decides whether two triggers can drop each other; it was in the
|
|
126
|
+
// JSON only, beside a bare `requires_live_lease` (OSK-22510).
|
|
127
|
+
const lane = gate.name === 'concurrency' ? gate.detail?.concurrencyKey : undefined;
|
|
128
|
+
if (typeof lane === 'string' && lane)
|
|
129
|
+
this.log(` lane: ${lane}`);
|
|
112
130
|
}
|
|
113
131
|
if (report.notes?.length) {
|
|
114
132
|
this.log('\nNotes:');
|
|
@@ -96,17 +96,21 @@ class TriggersPrune extends base_command_1.BaseCommand {
|
|
|
96
96
|
}
|
|
97
97
|
if (ownerWide) {
|
|
98
98
|
this.log('Scope: all (every scope you own)');
|
|
99
|
-
this.log(`Owner quota${quota.counterWorkspaceId ? ` (workspace ${quota.counterWorkspaceId})` : quota.counterWorkspaceId === null ? ' (no workspace)' : ''}: ${quota.perUser
|
|
99
|
+
this.log(`Owner quota${quota.counterWorkspaceId ? ` (workspace ${quota.counterWorkspaceId})` : quota.counterWorkspaceId === null ? ' (no workspace)' : ''}: ${(0, triggers_1.describeTriggerBudget)({ used: quota.perUser, limit: quota.perUserLimit, free: quota.perUserRemaining, unlimited: quota.perUserUnlimited })}`);
|
|
100
100
|
}
|
|
101
101
|
else {
|
|
102
102
|
this.log(`Scope: ${quota.scopeKind}`);
|
|
103
|
-
this.log(`Active: ${quota.active
|
|
103
|
+
this.log(`Active: ${(0, triggers_1.describeTriggerBudget)({ used: quota.active, limit: quota.limit, free: quota.remaining, unlimited: quota.unlimited })}`);
|
|
104
104
|
if (quota.counterWorkspaceId !== undefined) {
|
|
105
105
|
this.log(`Quota workspace: ${quota.counterWorkspaceId || 'none'}`);
|
|
106
106
|
}
|
|
107
107
|
}
|
|
108
108
|
if (quota.reclaimableScope === 'owner_all_workspaces') {
|
|
109
|
-
|
|
109
|
+
// The candidate filter is the scope you named, across every workspace you
|
|
110
|
+
// own; it is not the quota counter's workspace, which is printed above.
|
|
111
|
+
this.log(ownerWide
|
|
112
|
+
? 'Prune candidates span all workspaces you own.'
|
|
113
|
+
: `Prune candidates are only this ${scope}'s disabled triggers, across all workspaces you own.`);
|
|
110
114
|
}
|
|
111
115
|
this.log(`Would delete: ${preview.wouldDelete} disabled trigger(s)`);
|
|
112
116
|
for (const id of preview.ids)
|
|
@@ -155,8 +159,8 @@ class TriggersPrune extends base_command_1.BaseCommand {
|
|
|
155
159
|
}
|
|
156
160
|
this.log(`Deleted ${result.deleted} disabled trigger(s).`);
|
|
157
161
|
this.log(ownerWide
|
|
158
|
-
? `Budget now: ${result.quota.perUser
|
|
159
|
-
: `Budget now: ${result.quota.active
|
|
162
|
+
? `Budget now: ${(0, triggers_1.describeTriggerBudget)({ used: result.quota.perUser, limit: result.quota.perUserLimit, free: result.quota.perUserRemaining, unlimited: result.quota.perUserUnlimited })}`
|
|
163
|
+
: `Budget now: ${(0, triggers_1.describeTriggerBudget)({ used: result.quota.active, limit: result.quota.limit, free: result.quota.remaining, unlimited: result.quota.unlimited })}`);
|
|
160
164
|
if (ownerWide && result.deleted === (flags.limit ?? 200)) {
|
|
161
165
|
this.log('Hit the per-call limit — run it again to continue.');
|
|
162
166
|
}
|
|
@@ -21,7 +21,7 @@ class TriggersUpdate extends base_command_1.BaseCommand {
|
|
|
21
21
|
}),
|
|
22
22
|
label: core_1.Flags.string({ description: 'Human-readable trigger label' }),
|
|
23
23
|
enabled: core_1.Flags.boolean({ description: 'Enable or disable the trigger', allowNo: true }),
|
|
24
|
-
mode: core_1.Flags.string({ description:
|
|
24
|
+
mode: core_1.Flags.string({ description: triggers_1.TRIGGER_MODE_FLAG_DESCRIPTION, options: [...triggers_1.TRIGGER_EXECUTOR_MODES] }),
|
|
25
25
|
prompt: core_1.Flags.string({ description: 'Prompt template sent when the trigger fires' }),
|
|
26
26
|
'builtin-action': core_1.Flags.string({
|
|
27
27
|
description: 'Typed builtinAction JSON object for mode=builtin_action',
|
|
@@ -38,8 +38,12 @@ class TriggersUpdate extends base_command_1.BaseCommand {
|
|
|
38
38
|
multiple: true,
|
|
39
39
|
}),
|
|
40
40
|
references: core_1.Flags.string({ description: 'Execution references JSON array' }),
|
|
41
|
-
'working-hours': core_1.Flags.string({
|
|
42
|
-
|
|
41
|
+
'working-hours': core_1.Flags.string({
|
|
42
|
+
description: `Execution workingHours: only fires inside the window run. ${triggers_1.TRIGGER_WINDOW_FLAG_HELP}`,
|
|
43
|
+
}),
|
|
44
|
+
'quiet-hours': core_1.Flags.string({
|
|
45
|
+
description: `Execution quietHours: fires inside the window are skipped. ${triggers_1.TRIGGER_WINDOW_FLAG_HELP}`,
|
|
46
|
+
}),
|
|
43
47
|
cron: core_1.Flags.string({ description: 'Cron expression for schedule triggers' }),
|
|
44
48
|
'interval-ms': core_1.Flags.integer({ description: 'Interval schedule period in milliseconds' }),
|
|
45
49
|
'interval-minutes': core_1.Flags.integer({ description: 'Interval schedule period in minutes' }),
|
|
@@ -47,7 +51,9 @@ class TriggersUpdate extends base_command_1.BaseCommand {
|
|
|
47
51
|
description: 'Daily HH:MM fire time for schedule triggers (repeatable or comma-separated)',
|
|
48
52
|
multiple: true,
|
|
49
53
|
}),
|
|
50
|
-
timezone: core_1.Flags.string({
|
|
54
|
+
timezone: core_1.Flags.string({
|
|
55
|
+
description: 'IANA timezone for schedule triggers, for example America/Los_Angeles. Defaults to UTC: without it --daily-time 09:30 or a cron runs at 09:30 UTC, not at 09:30 where you are.',
|
|
56
|
+
}),
|
|
51
57
|
'max-fires-per-day': core_1.Flags.integer({
|
|
52
58
|
description: 'Daily fire cap (schedule, stochastic and self_scheduled triggers only)',
|
|
53
59
|
}),
|
|
@@ -266,6 +272,9 @@ class TriggersUpdate extends base_command_1.BaseCommand {
|
|
|
266
272
|
}
|
|
267
273
|
this.log('Updated trigger:');
|
|
268
274
|
(0, triggers_1.renderTriggerSummary)(trigger, (line) => this.log(line));
|
|
275
|
+
// How a window this update saved will be read, when that is not what it looks like (OSK-22530).
|
|
276
|
+
for (const advice of (0, triggers_1.windowAuthoringAdvice)(trigger))
|
|
277
|
+
this.warn(advice);
|
|
269
278
|
}
|
|
270
279
|
}
|
|
271
280
|
exports.default = TriggersUpdate;
|
|
@@ -392,7 +392,7 @@
|
|
|
392
392
|
"id": "later",
|
|
393
393
|
"title": "Choose how to act later",
|
|
394
394
|
"readWhen": "you must choose how to make something happen later, repeatedly or continuously",
|
|
395
|
-
"tokens":
|
|
395
|
+
"tokens": 538,
|
|
396
396
|
"aliases": [],
|
|
397
397
|
"explains": []
|
|
398
398
|
},
|
|
@@ -410,7 +410,7 @@
|
|
|
410
410
|
"id": "authoring",
|
|
411
411
|
"title": "Write a Commitment: sources, keys, cadence and budgets",
|
|
412
412
|
"readWhen": "you draft or change a Commitment's contract: what it watches, how often, where its work goes, what it may spend",
|
|
413
|
-
"tokens":
|
|
413
|
+
"tokens": 1200,
|
|
414
414
|
"aliases": [],
|
|
415
415
|
"explains": [
|
|
416
416
|
"COMMITMENT_MODE_RETIRED",
|
|
@@ -709,7 +709,7 @@
|
|
|
709
709
|
]
|
|
710
710
|
}
|
|
711
711
|
],
|
|
712
|
-
"hash": "
|
|
712
|
+
"hash": "094f13baf76b8cc49ff78f524d5806068a955865810f5d9171d2d630fe16e2c1",
|
|
713
713
|
"tokens": 545
|
|
714
714
|
},
|
|
715
715
|
"routedIndex": {
|
|
@@ -1105,7 +1105,7 @@
|
|
|
1105
1105
|
"id": "later",
|
|
1106
1106
|
"title": "Choose how to act later",
|
|
1107
1107
|
"readWhen": "you must choose how to make something happen later, repeatedly or continuously",
|
|
1108
|
-
"tokens":
|
|
1108
|
+
"tokens": 538,
|
|
1109
1109
|
"aliases": [],
|
|
1110
1110
|
"explains": []
|
|
1111
1111
|
},
|
|
@@ -1123,7 +1123,7 @@
|
|
|
1123
1123
|
"id": "authoring",
|
|
1124
1124
|
"title": "Write a Commitment: sources, keys, cadence and budgets",
|
|
1125
1125
|
"readWhen": "you draft or change a Commitment's contract: what it watches, how often, where its work goes, what it may spend",
|
|
1126
|
-
"tokens":
|
|
1126
|
+
"tokens": 1200,
|
|
1127
1127
|
"aliases": [],
|
|
1128
1128
|
"explains": [
|
|
1129
1129
|
"COMMITMENT_MODE_RETIRED",
|
|
@@ -1353,7 +1353,7 @@
|
|
|
1353
1353
|
]
|
|
1354
1354
|
}
|
|
1355
1355
|
],
|
|
1356
|
-
"hash": "
|
|
1356
|
+
"hash": "86969256907c1a1f9a35abfb01eae0f510a5fd52fac5ebc6a959d9a5fcb3382a",
|
|
1357
1357
|
"tokens": 494
|
|
1358
1358
|
},
|
|
1359
1359
|
"cards": {
|
|
@@ -1747,7 +1747,7 @@
|
|
|
1747
1747
|
"routed": true,
|
|
1748
1748
|
"aliases": [],
|
|
1749
1749
|
"body": "## Concept model\n\n| Noun | Question it answers |\n| --- | --- |\n| **Compass** | What does good look like for this Agent, and what may it never trade away? |\n| **Northstar** | Which Commitments should exist, at what priority and on what budget? |\n| **Commitment** | Which outcome does this Agent keep true, and how does it keep checking? |\n| **Check** | What did one wake of a Commitment see, decide and do? |\n\nA Commitment is not a unit of work. A **Task** is one unit of work and a **Goal** is a dated\noutcome with key results; a Commitment watches both and may create Tasks, and is neither.\n\n## Decide\n\nFive mechanisms make something happen later, and the noun alone does not pick one:\n\n| Mechanism | What it is for | The signal that picks it |\n| --- | --- | --- |\n| **Follow-up** | Coming back to one thing, once or a bounded few times: a reminder, a watch, a check-in, an agreed action | The ask ends: \"look tomorrow\", \"tell me when CI is green\" |\n| **Trigger** | Running the Agent with a set prompt on a schedule, an event, once, or on demand | The person names when, and every run does the same work |\n| **Heartbeat** | Checking in on a conversation, group chat or Space at a frequency that backs off while unread | The person wants regular contact, not an outcome held |\n| **Commitment** | Keeping an outcome true: watched sources, a cadence and a loop that decides when to act | \"Keep X true\", \"watch this metric\": no end, and stale evidence matters |\n| **Workflow** | Running a durable graph of Tasks in order | Repeatable work whose steps depend on each other |\n\nA one-off \"look at it tomorrow\" is a follow-up, never a Commitment. Standing observation is a\nCommitment with a freshness contract, not a recurring trigger or a task board left running.\n\n## Workflow\n\n### Start a Commitment\n\n1. Read the Agent's Commitments first, and change one rather than add a near-duplicate.\n2. Create it and turn it on in one call: the outcome, what it watches, how often it checks, where\n its work goes. Turning it on runs Preflight; a refusal keeps the draft and reports the code,\n reason and fix.\n3. Leave it a draft only when the person asked to see it first.\n4. Read it back, and tell the person what it watches, how often, and whether it is on.\n\n## Authority\n\n| Actor | May do | Only a person may do |\n| --- | --- | --- |\n| Agent | Read the Commitments of an Agent it can view; create one, change it and turn it on; request a check; pause one; decide whether a finding is worth telling the owner | Lift a stop a person made; set or clear a concurrency limit; choose the Task review policy; approve an action proposal or a cadence change; configure a Northstar's governance or decide its intents |\n| Person | Everything in both columns | — |\n\nA Commitment grants no permission: its runs work under the Agent's own. A Check never writes an\nowner-facing message, and a Compass never creates, rewrites, pauses or archives a Commitment. The\nserver cannot always tell an Agent from the person whose login it holds, so an accepted call is\nnot permission: the right-hand column stays a person's.\n\n## Live state\n\n- `skrr commitments list --agent <agent-id>` — an Agent's Commitments, with status and assessment.\n- `skrr commitments show <commitment-id>` — the contract, its next check and the last one.\n- `skrr commitments roster --agent <agent-id>` — each loop: whether it is armed, its next wake, runs today.\n\n## Related guides\n\n- `tasks` — the Tasks a Commitment creates or watches.\n- `spaces` — Goals, and Workflows: durable graphs of Tasks.\n- `agents` — the Agent a Commitment belongs to, and where its runs execute.\n- `communication` — whether, what and how to tell the owner.",
|
|
1750
|
-
"hash": "
|
|
1750
|
+
"hash": "eb283ae15f588c7245fb4bbcc0249d31ca5a541efbe6ac77c98a2bc0a3e8ec30",
|
|
1751
1751
|
"tokens": 1169,
|
|
1752
1752
|
"sections": [
|
|
1753
1753
|
{
|
|
@@ -1762,7 +1762,7 @@
|
|
|
1762
1762
|
"id": "later",
|
|
1763
1763
|
"title": "Choose how to act later",
|
|
1764
1764
|
"readWhen": "you must choose how to make something happen later, repeatedly or continuously",
|
|
1765
|
-
"tokens":
|
|
1765
|
+
"tokens": 538,
|
|
1766
1766
|
"aliases": [],
|
|
1767
1767
|
"explains": []
|
|
1768
1768
|
},
|
|
@@ -1780,7 +1780,7 @@
|
|
|
1780
1780
|
"id": "authoring",
|
|
1781
1781
|
"title": "Write a Commitment: sources, keys, cadence and budgets",
|
|
1782
1782
|
"readWhen": "you draft or change a Commitment's contract: what it watches, how often, where its work goes, what it may spend",
|
|
1783
|
-
"tokens":
|
|
1783
|
+
"tokens": 1200,
|
|
1784
1784
|
"aliases": [],
|
|
1785
1785
|
"explains": [
|
|
1786
1786
|
"COMMITMENT_MODE_RETIRED",
|
|
@@ -5788,7 +5788,7 @@
|
|
|
5788
5788
|
"id": "later",
|
|
5789
5789
|
"title": "Choose how to act later",
|
|
5790
5790
|
"readWhen": "you must choose how to make something happen later, repeatedly or continuously",
|
|
5791
|
-
"tokens":
|
|
5791
|
+
"tokens": 538,
|
|
5792
5792
|
"aliases": [],
|
|
5793
5793
|
"explains": []
|
|
5794
5794
|
},
|
|
@@ -5806,7 +5806,7 @@
|
|
|
5806
5806
|
"id": "authoring",
|
|
5807
5807
|
"title": "Write a Commitment: sources, keys, cadence and budgets",
|
|
5808
5808
|
"readWhen": "you draft or change a Commitment's contract: what it watches, how often, where its work goes, what it may spend",
|
|
5809
|
-
"tokens":
|
|
5809
|
+
"tokens": 1200,
|
|
5810
5810
|
"aliases": [],
|
|
5811
5811
|
"explains": [
|
|
5812
5812
|
"COMMITMENT_MODE_RETIRED",
|
|
@@ -5888,9 +5888,9 @@
|
|
|
5888
5888
|
"version": 4,
|
|
5889
5889
|
"aliases": [],
|
|
5890
5890
|
"explains": [],
|
|
5891
|
-
"body": "Read this when you must choose how to make something happen later, repeatedly or continuously.\n\n## Choose by the ask\n\n- **It ends.** \"Look tomorrow\", \"tell me when the review lands\", \"remind me on Friday\": a\n follow-up. A loop that outlives the ask is the wrong record, however useful it seems.\n- **It repeats on a clock the person named, with the same work each time.** \"Every weekday at 9,\n brief me\": a trigger.\n- **It is contact, not an outcome.** \"Check in with me daily\": a heartbeat, which backs off while\n its messages go unread.\n- **It must stay true.** \"Keep our deploy failure rate low\", \"watch this metric\": a Commitment. It\n needs sources it can read and a cadence, and its loop decides when anything is worth doing.\n- **It is several steps in order.** A Workflow: a graph of Tasks in a Space.\n\nWho asked matters as much as when. A reminder keeps the person's words. A check-in you decided on\nis arranged by you, without asking whether you should.\n\n## Arrange it\n\n| Mechanism | Command |\n| --- | --- |\n| Follow-up | `skrr followups remind`, `skrr followups watch`, `skrr followups checkin` or `skrr followups act` |\n| Trigger | `skrr triggers create` |\n| Heartbeat | `skrr spaces heartbeats create`, for a Space
|
|
5892
|
-
"hash": "
|
|
5893
|
-
"tokens":
|
|
5891
|
+
"body": "Read this when you must choose how to make something happen later, repeatedly or continuously.\n\n## Choose by the ask\n\n- **It ends.** \"Look tomorrow\", \"tell me when the review lands\", \"remind me on Friday\": a\n follow-up. A loop that outlives the ask is the wrong record, however useful it seems.\n- **It repeats on a clock the person named, with the same work each time.** \"Every weekday at 9,\n brief me\": a trigger.\n- **It is contact, not an outcome.** \"Check in with me daily\": a heartbeat, which backs off while\n its messages go unread.\n- **It must stay true.** \"Keep our deploy failure rate low\", \"watch this metric\": a Commitment. It\n needs sources it can read and a cadence, and its loop decides when anything is worth doing.\n- **It is several steps in order.** A Workflow: a graph of Tasks in a Space.\n\nWho asked matters as much as when. A reminder keeps the person's words. A check-in you decided on\nis arranged by you, without asking whether you should.\n\n## Arrange it\n\n| Mechanism | Command |\n| --- | --- |\n| Follow-up | `skrr followups remind`, `skrr followups watch`, `skrr followups checkin` or `skrr followups act` |\n| Trigger | `skrr triggers create` |\n| Heartbeat | `skrr spaces heartbeats create`, for a Space. No command sets up a personal one: for \"check in with me\", use `skrr followups checkin --frequency \"<cron>\" --timezone <zone>` |\n| Commitment | `skrr commitments create`, which makes a draft |\n| Workflow | `skrr spaces workflows create` |\n\n## Example\n\n\"CI on main has been flaky all week. Look at it tomorrow morning and tell me whether it's still\nred.\" The ask ends tomorrow, so it is a watch follow-up: one look at a set time that reports back.\n\n```bash\nskrr followups watch --subject ci:main --why \"Owner asked whether CI on main is still red\" \\\n --check \"Read the latest CI run on main\" --success \"The latest run on main passed\" \\\n --abort \"No CI run on main within two days\" --wait clock --wait-at <tomorrow-09:00-with-offset>\n```\n\nWhen it wakes, report either answer to the owner and settle it with `skrr followups resolve`.",
|
|
5892
|
+
"hash": "1f37219cbeedbe5af8fe0c2b4d32d5794d112854314287691ad878a2e2fd4050",
|
|
5893
|
+
"tokens": 538,
|
|
5894
5894
|
"sections": [
|
|
5895
5895
|
{
|
|
5896
5896
|
"id": "model",
|
|
@@ -5904,7 +5904,7 @@
|
|
|
5904
5904
|
"id": "later",
|
|
5905
5905
|
"title": "Choose how to act later",
|
|
5906
5906
|
"readWhen": "you must choose how to make something happen later, repeatedly or continuously",
|
|
5907
|
-
"tokens":
|
|
5907
|
+
"tokens": 538,
|
|
5908
5908
|
"aliases": [],
|
|
5909
5909
|
"explains": []
|
|
5910
5910
|
},
|
|
@@ -5922,7 +5922,7 @@
|
|
|
5922
5922
|
"id": "authoring",
|
|
5923
5923
|
"title": "Write a Commitment: sources, keys, cadence and budgets",
|
|
5924
5924
|
"readWhen": "you draft or change a Commitment's contract: what it watches, how often, where its work goes, what it may spend",
|
|
5925
|
-
"tokens":
|
|
5925
|
+
"tokens": 1200,
|
|
5926
5926
|
"aliases": [],
|
|
5927
5927
|
"explains": [
|
|
5928
5928
|
"COMMITMENT_MODE_RETIRED",
|
|
@@ -6022,7 +6022,7 @@
|
|
|
6022
6022
|
"id": "later",
|
|
6023
6023
|
"title": "Choose how to act later",
|
|
6024
6024
|
"readWhen": "you must choose how to make something happen later, repeatedly or continuously",
|
|
6025
|
-
"tokens":
|
|
6025
|
+
"tokens": 538,
|
|
6026
6026
|
"aliases": [],
|
|
6027
6027
|
"explains": []
|
|
6028
6028
|
},
|
|
@@ -6040,7 +6040,7 @@
|
|
|
6040
6040
|
"id": "authoring",
|
|
6041
6041
|
"title": "Write a Commitment: sources, keys, cadence and budgets",
|
|
6042
6042
|
"readWhen": "you draft or change a Commitment's contract: what it watches, how often, where its work goes, what it may spend",
|
|
6043
|
-
"tokens":
|
|
6043
|
+
"tokens": 1200,
|
|
6044
6044
|
"aliases": [],
|
|
6045
6045
|
"explains": [
|
|
6046
6046
|
"COMMITMENT_MODE_RETIRED",
|
|
@@ -6128,9 +6128,9 @@
|
|
|
6128
6128
|
"COMMITMENT_CONCURRENCY_REQUIRES_OWNER_DECISION",
|
|
6129
6129
|
"COMMITMENT_TASK_REVIEW_POLICY_OWNER_REQUIRED"
|
|
6130
6130
|
],
|
|
6131
|
-
"body": "Read this when you draft or change a Commitment's contract: what it watches, how often, where its work goes, what it may spend.\n\nA Commitment starts as a draft; create and turn it on in one call unless the person asked to\nreview it first. Activation runs Preflight — a refusal keeps the draft and reports the code,\nreason and fix. An active contract spends compute on every check, so make it say exactly what\nwill be watched.\n\n- **Outcome and criteria**: the state to hold true, and how you will know it holds.\n- **Watched sources**: what each check reads. A source the platform reads itself (Tasks, a Goal,\n GitHub, metric snapshots it records) needs only its name and scope. A value only a run can read,\n such as a dashboard or an outside CI rate, is an `agent_run` key you declare.\n- **Declared keys**: the operator declares the keys, and the agent fills them. A run may report any\n key, but only a declared one can move the loop, and only as its `changeRule` says: `any` change,\n or `numeric_delta` with `minDelta`, `minRatio`, `direction` and `absoluteFloor`.\n- **Cadence**: `interval` (`1m` to `365d`), `daily` at `HH:MM` times in a timezone,\n `event_plus_interval`
|
|
6132
|
-
"hash": "
|
|
6133
|
-
"tokens":
|
|
6131
|
+
"body": "Read this when you draft or change a Commitment's contract: what it watches, how often, where its work goes, what it may spend.\n\nA Commitment starts as a draft; create and turn it on in one call unless the person asked to\nreview it first. Activation runs Preflight — a refusal keeps the draft and reports the code,\nreason and fix. An active contract spends compute on every check, so make it say exactly what\nwill be watched.\n\n- **Outcome and criteria**: the state to hold true, and how you will know it holds.\n- **Watched sources**: what each check reads. A source the platform reads itself (Tasks, a Goal,\n GitHub, metric snapshots it records) needs only its name and scope. A value only a run can read,\n such as a dashboard or an outside CI rate, is an `agent_run` key you declare.\n- **Declared keys**: the operator declares the keys, and the agent fills them. A run may report any\n key, but only a declared one can move the loop, and only as its `changeRule` says: `any` change,\n or `numeric_delta` with `minDelta`, `minRatio`, `direction` and `absoluteFloor`.\n- **Cadence**: `interval` (`1m` to `365d`), `daily` at `HH:MM` times in a timezone,\n `event_plus_interval`, or `manual`. Only `event_plus_interval` reads events (CLI:\n `--event-driven`), and an event is an accelerator, not a delivery receipt: a missed one is not\n replayed, and each interval re-checks current state, while it is running. Silence means no\n event was seen, not that none happened. `skrr triggers event-catalog --json` marks each event's\n `commitmentWake` and how to select it (`watchedSource` or `attachedSensor`); a selection that cannot\n wake it is set aside and named by the write.\n- **Delivery**: where its work goes. `report_only` reports and changes nothing.\n- **Budgets**: `policy.executionBudget` caps runs, sensing runs and cost per day. `0` blocks; `null`\n is no limit.\n- **Event sources**: `policy.executionBudget.allowedEventSources` limits which sources may wake it.\n An empty or missing list allows every source; name sources to restrict it.\n- **Interruptions**: `policy.maxUserNudgesPerDay` caps messages to the person: `0` mutes, `null` is\n no limit. `minUserNudgeIntervalMs` is the least gap between two.\n- **Quiet hours**: `policy.quietHours` is `{enabled, start, end, timezone}`. Times are 24-hour\n `HH:MM`; `enabled: true` needs both, and they must differ. A window may cross midnight, and `end`\n is outside it. `timezone` is an IANA name; omitted means UTC, not the person's zone.\n\n## Example\n\nA daily, report-only watch on a deploy failure rate:\n\nSave this as `commitment.json`:\n\n```json\n{\n \"agentId\": \"<agent-id>\",\n \"title\": \"Deploy failure rate\",\n \"status\": \"draft\",\n \"target\": { \"outcome\": \"A rise in the deploy failure rate is reported the day it happens\" },\n \"cadence\": { \"mode\": \"daily\", \"times\": [\"09:00\"], \"timezone\": \"America/New_York\" },\n \"delivery\": { \"mode\": \"report_only\" },\n \"watchedSources\": [{\n \"source\": \"agent_run\",\n \"config\": { \"keys\": [{\n \"key\": \"deploys.failure_rate_7d\",\n \"label\": \"Deploy failure rate, last 7 days\",\n \"changeRule\": { \"mode\": \"numeric_delta\", \"minDelta\": 0.02, \"direction\": \"up\" }\n }] }\n }],\n \"policy\": { \"executionBudget\": { \"maxRunsPerDay\": 2, \"maxObservationRunsPerDay\": 2 } }\n}\n```\n\n```bash\nskrr commitments create --from-json commitment.json --activate --json\n```\n\n`create` prints a `Warning:` for anything the body leaves inert, such as an `agent_run` source\nwith no keys. `--activate` turns it on in the same call: it runs Preflight, and a refusal keeps\nthe draft and reports it, such as Always-On being off for the Agent. Drop `--activate` only when\nthe person asked to review it first; `skrr commitments resume` turns a draft on later, and\n`skrr commitments update` changes it.\n\n## Refusals\n\n| Code | Cause | Fix |\n| --- | --- | --- |\n| `COMMITMENT_MODE_RETIRED` | The body carries `mode`; Commitment modes are retired. | Leave it out: runs work under the Agent's own permissions. |\n| `COMMITMENT_POLICY_RETIRED` | The body carries a retired permission-tier policy field. | Remove the field the refusal names. |\n| `COMMITMENT_DELIVERY_REQUIRED` | A coding Commitment names no delivery. | Choose where its work goes. |\n| `COMMITMENT_CONCURRENCY_REQUIRES_OWNER_DECISION` | An Agent set or cleared a finite concurrency limit. | Recommend the limit; the person sets it. |\n| `COMMITMENT_TASK_REVIEW_POLICY_OWNER_REQUIRED` | Only the owner chooses the Task review policy. | Leave it out and ask the owner. |",
|
|
6132
|
+
"hash": "8e2ed95ad9aa146cd1b1ee8d0a2181f8d52dd22d98104bfde7b175fd721099bd",
|
|
6133
|
+
"tokens": 1200,
|
|
6134
6134
|
"sections": [
|
|
6135
6135
|
{
|
|
6136
6136
|
"id": "model",
|
|
@@ -6144,7 +6144,7 @@
|
|
|
6144
6144
|
"id": "later",
|
|
6145
6145
|
"title": "Choose how to act later",
|
|
6146
6146
|
"readWhen": "you must choose how to make something happen later, repeatedly or continuously",
|
|
6147
|
-
"tokens":
|
|
6147
|
+
"tokens": 538,
|
|
6148
6148
|
"aliases": [],
|
|
6149
6149
|
"explains": []
|
|
6150
6150
|
},
|
|
@@ -6162,7 +6162,7 @@
|
|
|
6162
6162
|
"id": "authoring",
|
|
6163
6163
|
"title": "Write a Commitment: sources, keys, cadence and budgets",
|
|
6164
6164
|
"readWhen": "you draft or change a Commitment's contract: what it watches, how often, where its work goes, what it may spend",
|
|
6165
|
-
"tokens":
|
|
6165
|
+
"tokens": 1200,
|
|
6166
6166
|
"aliases": [],
|
|
6167
6167
|
"explains": [
|
|
6168
6168
|
"COMMITMENT_MODE_RETIRED",
|
|
@@ -6260,7 +6260,7 @@
|
|
|
6260
6260
|
"id": "later",
|
|
6261
6261
|
"title": "Choose how to act later",
|
|
6262
6262
|
"readWhen": "you must choose how to make something happen later, repeatedly or continuously",
|
|
6263
|
-
"tokens":
|
|
6263
|
+
"tokens": 538,
|
|
6264
6264
|
"aliases": [],
|
|
6265
6265
|
"explains": []
|
|
6266
6266
|
},
|
|
@@ -6278,7 +6278,7 @@
|
|
|
6278
6278
|
"id": "authoring",
|
|
6279
6279
|
"title": "Write a Commitment: sources, keys, cadence and budgets",
|
|
6280
6280
|
"readWhen": "you draft or change a Commitment's contract: what it watches, how often, where its work goes, what it may spend",
|
|
6281
|
-
"tokens":
|
|
6281
|
+
"tokens": 1200,
|
|
6282
6282
|
"aliases": [],
|
|
6283
6283
|
"explains": [
|
|
6284
6284
|
"COMMITMENT_MODE_RETIRED",
|
|
@@ -6376,7 +6376,7 @@
|
|
|
6376
6376
|
"id": "later",
|
|
6377
6377
|
"title": "Choose how to act later",
|
|
6378
6378
|
"readWhen": "you must choose how to make something happen later, repeatedly or continuously",
|
|
6379
|
-
"tokens":
|
|
6379
|
+
"tokens": 538,
|
|
6380
6380
|
"aliases": [],
|
|
6381
6381
|
"explains": []
|
|
6382
6382
|
},
|
|
@@ -6394,7 +6394,7 @@
|
|
|
6394
6394
|
"id": "authoring",
|
|
6395
6395
|
"title": "Write a Commitment: sources, keys, cadence and budgets",
|
|
6396
6396
|
"readWhen": "you draft or change a Commitment's contract: what it watches, how often, where its work goes, what it may spend",
|
|
6397
|
-
"tokens":
|
|
6397
|
+
"tokens": 1200,
|
|
6398
6398
|
"aliases": [],
|
|
6399
6399
|
"explains": [
|
|
6400
6400
|
"COMMITMENT_MODE_RETIRED",
|
|
@@ -6498,7 +6498,7 @@
|
|
|
6498
6498
|
"id": "later",
|
|
6499
6499
|
"title": "Choose how to act later",
|
|
6500
6500
|
"readWhen": "you must choose how to make something happen later, repeatedly or continuously",
|
|
6501
|
-
"tokens":
|
|
6501
|
+
"tokens": 538,
|
|
6502
6502
|
"aliases": [],
|
|
6503
6503
|
"explains": []
|
|
6504
6504
|
},
|
|
@@ -6516,7 +6516,7 @@
|
|
|
6516
6516
|
"id": "authoring",
|
|
6517
6517
|
"title": "Write a Commitment: sources, keys, cadence and budgets",
|
|
6518
6518
|
"readWhen": "you draft or change a Commitment's contract: what it watches, how often, where its work goes, what it may spend",
|
|
6519
|
-
"tokens":
|
|
6519
|
+
"tokens": 1200,
|
|
6520
6520
|
"aliases": [],
|
|
6521
6521
|
"explains": [
|
|
6522
6522
|
"COMMITMENT_MODE_RETIRED",
|
|
@@ -6614,7 +6614,7 @@
|
|
|
6614
6614
|
"id": "later",
|
|
6615
6615
|
"title": "Choose how to act later",
|
|
6616
6616
|
"readWhen": "you must choose how to make something happen later, repeatedly or continuously",
|
|
6617
|
-
"tokens":
|
|
6617
|
+
"tokens": 538,
|
|
6618
6618
|
"aliases": [],
|
|
6619
6619
|
"explains": []
|
|
6620
6620
|
},
|
|
@@ -6632,7 +6632,7 @@
|
|
|
6632
6632
|
"id": "authoring",
|
|
6633
6633
|
"title": "Write a Commitment: sources, keys, cadence and budgets",
|
|
6634
6634
|
"readWhen": "you draft or change a Commitment's contract: what it watches, how often, where its work goes, what it may spend",
|
|
6635
|
-
"tokens":
|
|
6635
|
+
"tokens": 1200,
|
|
6636
6636
|
"aliases": [],
|
|
6637
6637
|
"explains": [
|
|
6638
6638
|
"COMMITMENT_MODE_RETIRED",
|
|
@@ -6734,7 +6734,7 @@
|
|
|
6734
6734
|
"id": "later",
|
|
6735
6735
|
"title": "Choose how to act later",
|
|
6736
6736
|
"readWhen": "you must choose how to make something happen later, repeatedly or continuously",
|
|
6737
|
-
"tokens":
|
|
6737
|
+
"tokens": 538,
|
|
6738
6738
|
"aliases": [],
|
|
6739
6739
|
"explains": []
|
|
6740
6740
|
},
|
|
@@ -6752,7 +6752,7 @@
|
|
|
6752
6752
|
"id": "authoring",
|
|
6753
6753
|
"title": "Write a Commitment: sources, keys, cadence and budgets",
|
|
6754
6754
|
"readWhen": "you draft or change a Commitment's contract: what it watches, how often, where its work goes, what it may spend",
|
|
6755
|
-
"tokens":
|
|
6755
|
+
"tokens": 1200,
|
|
6756
6756
|
"aliases": [],
|
|
6757
6757
|
"explains": [
|
|
6758
6758
|
"COMMITMENT_MODE_RETIRED",
|
|
@@ -6852,7 +6852,7 @@
|
|
|
6852
6852
|
"id": "later",
|
|
6853
6853
|
"title": "Choose how to act later",
|
|
6854
6854
|
"readWhen": "you must choose how to make something happen later, repeatedly or continuously",
|
|
6855
|
-
"tokens":
|
|
6855
|
+
"tokens": 538,
|
|
6856
6856
|
"aliases": [],
|
|
6857
6857
|
"explains": []
|
|
6858
6858
|
},
|
|
@@ -6870,7 +6870,7 @@
|
|
|
6870
6870
|
"id": "authoring",
|
|
6871
6871
|
"title": "Write a Commitment: sources, keys, cadence and budgets",
|
|
6872
6872
|
"readWhen": "you draft or change a Commitment's contract: what it watches, how often, where its work goes, what it may spend",
|
|
6873
|
-
"tokens":
|
|
6873
|
+
"tokens": 1200,
|
|
6874
6874
|
"aliases": [],
|
|
6875
6875
|
"explains": [
|
|
6876
6876
|
"COMMITMENT_MODE_RETIRED",
|
|
@@ -25,8 +25,14 @@ function proactiveBaselineLines(b) {
|
|
|
25
25
|
const watchers = b.watchers.status === 'unknown'
|
|
26
26
|
? 'unknown'
|
|
27
27
|
: `${b.watchers.total} (${b.watchers.enabled} enabled; separate from Always-On)`;
|
|
28
|
+
// `unknown` also means "present, but who wrote it is not recorded" (a Compass applied from a
|
|
29
|
+
// spec, say); only an unreadable one is listed under `unknown[]`. Printing "Compass unknown"
|
|
30
|
+
// beside an empty `unknown` list read like a failed read (OSK-22348).
|
|
31
|
+
const compassText = b.compass.source === 'unknown' && !b.unknown.includes('compass')
|
|
32
|
+
? 'present (author not recorded)'
|
|
33
|
+
: b.compass.source;
|
|
28
34
|
const lines = [
|
|
29
|
-
`Baseline: Always-On ${armed}; policy ${b.policy.source}; Compass ${
|
|
35
|
+
`Baseline: Always-On ${armed}; policy ${b.policy.source}; Compass ${compassText}`,
|
|
30
36
|
];
|
|
31
37
|
const quiet = b.policy.quietHours;
|
|
32
38
|
if (quiet) {
|
|
@@ -603,6 +603,13 @@ export declare class AgenticStreamClient {
|
|
|
603
603
|
*/
|
|
604
604
|
private readonly openPermissionPrompts;
|
|
605
605
|
private readonly browserPermissionRequests;
|
|
606
|
+
/**
|
|
607
|
+
* Tool calls THIS client refused (the person answered no, or nobody was asked
|
|
608
|
+
* and the CLI declined). A cloud run's `tool:end` for such a call carries no
|
|
609
|
+
* status, so without this it printed `[tool completed]` for a call that never
|
|
610
|
+
* ran (OSK-22553).
|
|
611
|
+
*/
|
|
612
|
+
private readonly deniedToolUseIds;
|
|
606
613
|
private readonly permissionGenerations;
|
|
607
614
|
private readonly permissionEpochs;
|
|
608
615
|
/**
|