@skrr-ai/cli 0.1.162 → 0.1.164
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/base-command.d.ts +5 -2
- package/dist/base-command.js +108 -39
- package/dist/commands/activity/list.d.ts +7 -0
- package/dist/commands/activity/list.js +17 -0
- package/dist/commands/activity/scan-older.d.ts +2 -2
- package/dist/commands/activity/scan-older.js +6 -5
- package/dist/commands/activity/show.d.ts +0 -2
- package/dist/commands/activity/show.js +21 -42
- package/dist/commands/agents/always-on/release-run.d.ts +3 -3
- package/dist/commands/agents/always-on/release-run.js +5 -6
- package/dist/commands/agents/mini-computer/app/reset.d.ts +1 -0
- package/dist/commands/agents/mini-computer/app/reset.js +5 -2
- package/dist/commands/agents/mini-computer/app/set.js +1 -1
- package/dist/commands/agents/mini-computer/show.js +10 -2
- package/dist/commands/agents/mini-computer/tasks-view.js +2 -2
- package/dist/commands/agents/supervision.d.ts +25 -0
- package/dist/commands/agents/supervision.js +129 -0
- package/dist/commands/agents/triggers/replay.js +1 -1
- package/dist/commands/agents/triggers/runs.d.ts +2 -3
- package/dist/commands/agents/triggers/runs.js +4 -5
- package/dist/commands/apps/auto-apply.js +31 -10
- package/dist/commands/apps/check.js +8 -0
- package/dist/commands/apps/data/batch.js +16 -5
- package/dist/commands/apps/data/collections.js +1 -1
- package/dist/commands/apps/data/delete.js +12 -4
- package/dist/commands/apps/data/patch.js +11 -4
- package/dist/commands/apps/data/put.js +13 -6
- package/dist/commands/apps/data/query.js +3 -3
- package/dist/commands/apps/install.js +24 -7
- package/dist/commands/apps/installations/events.d.ts +1 -0
- package/dist/commands/apps/installations/events.js +63 -10
- package/dist/commands/apps/installations/show.js +26 -5
- package/dist/commands/apps/installations/snapshot.js +1 -1
- package/dist/commands/apps/installations/versions.js +25 -9
- package/dist/commands/apps/logs.js +4 -1
- package/dist/commands/apps/push.js +10 -2
- package/dist/commands/apps/reconsent.js +7 -1
- package/dist/commands/apps/rollback.js +2 -2
- package/dist/commands/apps/settings/set.js +81 -4
- package/dist/commands/apps/settings/show.js +38 -7
- package/dist/commands/duties/action-proposal.js +19 -11
- package/dist/commands/duties/cadence-decisions.js +7 -0
- package/dist/commands/duties/status.js +20 -15
- package/dist/commands/duties/trigger-status.js +2 -2
- package/dist/commands/duties/wake-capabilities.js +12 -6
- package/dist/commands/outbox/drop.js +21 -15
- package/dist/commands/outbox/list.d.ts +2 -1
- package/dist/commands/outbox/list.js +20 -11
- package/dist/commands/outbox/retry.d.ts +8 -11
- package/dist/commands/outbox/retry.js +135 -92
- package/dist/commands/spaces/create.js +1 -1
- package/dist/commands/tasks/comments/add.js +1 -1
- package/dist/commands/triggers/audit.js +3 -5
- package/dist/commands/triggers/fire-detail.js +7 -1
- package/dist/commands/triggers/replay.js +1 -1
- package/dist/commands/triggers/runs.d.ts +2 -4
- package/dist/commands/triggers/runs.js +3 -5
- package/dist/generated/agent-guides.json +19 -19
- package/dist/lib/agent-activity.d.ts +21 -1
- package/dist/lib/agent-activity.js +98 -29
- package/dist/lib/api-fetch.d.ts +2 -0
- package/dist/lib/api-fetch.js +5 -5
- package/dist/lib/appData.d.ts +43 -5
- package/dist/lib/appData.js +117 -25
- package/dist/lib/appInstallations.d.ts +5 -5
- package/dist/lib/appInstallations.js +232 -74
- package/dist/lib/appSettings.d.ts +2 -0
- package/dist/lib/appSettings.js +36 -3
- package/dist/lib/apps-command.d.ts +9 -0
- package/dist/lib/apps-command.js +191 -7
- package/dist/lib/appsCheck.js +40 -3
- package/dist/lib/appsFs.d.ts +1 -1
- package/dist/lib/chat-supervision.d.ts +21 -0
- package/dist/lib/chat-supervision.js +37 -0
- package/dist/lib/duties.d.ts +4 -0
- package/dist/lib/json-output.d.ts +4 -0
- package/dist/lib/json-output.js +38 -0
- package/dist/lib/miniComputer.d.ts +1 -0
- package/dist/lib/miniComputer.js +16 -4
- package/dist/lib/miniComputerCommand.js +4 -1
- package/dist/lib/node-adapter.js +35 -2
- package/dist/lib/outbox.d.ts +20 -5
- package/dist/lib/outbox.js +233 -76
- package/dist/lib/rate-limit-retry.d.ts +3 -2
- package/dist/lib/rate-limit-retry.js +3 -2
- package/dist/lib/roles.d.ts +1 -1
- package/dist/lib/triggers.d.ts +3 -0
- package/dist/lib/triggers.js +10 -0
- package/dist/lib/widgetCheck.js +30 -4
- package/dist/lib/widgetStaticScan.d.ts +17 -6
- package/dist/lib/widgetStaticScan.js +336 -94
- package/dist/node_modules/@skrr-ai/data-provider/APP_HTML_PARSER_LICENSES.txt +36 -0
- package/dist/node_modules/@skrr-ai/data-provider/index.js +15543 -10133
- package/oclif.manifest.json +334 -47
- package/package.json +5 -3
|
@@ -30,15 +30,20 @@
|
|
|
30
30
|
* both over one corpus and fails when they disagree about what the frame refuses.
|
|
31
31
|
*/
|
|
32
32
|
import { UI_WIDGET_FENCE } from '@skrr-ai/data-provider';
|
|
33
|
+
/** Parse as an actual ECMAScript module without executing author code. */
|
|
34
|
+
export declare function checkModuleSyntax(source: string): {
|
|
35
|
+
message: string;
|
|
36
|
+
line?: number;
|
|
37
|
+
} | null;
|
|
33
38
|
export type ScanSection = Exclude<(typeof UI_WIDGET_FENCE.sections)[number], 'fallback'>;
|
|
34
39
|
export type StaticSeverity = 'error' | 'warn';
|
|
35
|
-
export type StaticCode = 'external-resource' | 'external-url' | 'external-link' | 'relative-url' | 'network-api' | 'worker' | 'dynamic-code' | 'storage' | 'host-access' | 'popup' | 'navigation' | 'form-action' | 'base-element' | 'nested-frame' | 'plugin-element' | 'element-close' | 'webrtc';
|
|
40
|
+
export type StaticCode = 'external-resource' | 'external-url' | 'external-link' | 'relative-url' | 'network-api' | 'worker' | 'dynamic-code' | 'storage' | 'host-access' | 'popup' | 'navigation' | 'form-action' | 'base-element' | 'nested-frame' | 'plugin-element' | 'element-close' | 'webrtc' | 'source-line-unavailable';
|
|
36
41
|
export interface StaticFinding {
|
|
37
42
|
severity: StaticSeverity;
|
|
38
43
|
code: StaticCode;
|
|
39
44
|
section: ScanSection;
|
|
40
45
|
/** 1-based line within the section's own text. */
|
|
41
|
-
line
|
|
46
|
+
line?: number;
|
|
42
47
|
message: string;
|
|
43
48
|
fix?: string;
|
|
44
49
|
}
|
|
@@ -47,11 +52,16 @@ export interface InlineScript {
|
|
|
47
52
|
content: string;
|
|
48
53
|
/** 1-based line within the html section where the script's text starts. */
|
|
49
54
|
line: number;
|
|
55
|
+
sourceLines: number[] | null;
|
|
50
56
|
}
|
|
51
57
|
export interface StaticScanResult {
|
|
52
58
|
findings: StaticFinding[];
|
|
53
59
|
/** Classic inline scripts of the html section, for a syntax check by the caller. */
|
|
54
60
|
inlineScripts: InlineScript[];
|
|
61
|
+
/** Inline module bodies, separately so classic-only widget syntax checks remain unchanged. */
|
|
62
|
+
inlineModules: InlineScript[];
|
|
63
|
+
/** False when template-contained script could be activated later by app code. */
|
|
64
|
+
inlineCoverageComplete: boolean;
|
|
55
65
|
}
|
|
56
66
|
export interface WidgetSource {
|
|
57
67
|
css: string;
|
|
@@ -103,9 +113,10 @@ type UrlKind = 'external' | 'inline' | 'relative' | 'empty';
|
|
|
103
113
|
/** A URL the frame cannot fetch from, a self-contained one, or one with no base to resolve against. */
|
|
104
114
|
export declare function classifyUrl(raw: string): UrlKind;
|
|
105
115
|
/**
|
|
106
|
-
* Scan one widget's three sections
|
|
107
|
-
*
|
|
108
|
-
* caller has already bounded by the widget limits.
|
|
116
|
+
* Scan one widget's three sections without executing author code. The caller
|
|
117
|
+
* must bound inputs and treat parser failures as an incomplete scan.
|
|
109
118
|
*/
|
|
110
|
-
export declare function scanWidgetSource(source: WidgetSource
|
|
119
|
+
export declare function scanWidgetSource(source: WidgetSource, options?: {
|
|
120
|
+
allowAppLocalReferences?: boolean;
|
|
121
|
+
}): StaticScanResult;
|
|
111
122
|
export {};
|