runwork 0.11.0 → 0.13.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/dist/agents/__tests__/intro-skill.test.js +32 -0
- package/dist/agents/claude-code.d.ts +21 -0
- package/dist/agents/claude-code.js +58 -2
- package/dist/agents/claude-desktop-plugin-tree.d.ts +15 -0
- package/dist/agents/claude-desktop-plugin-tree.js +37 -1
- package/dist/agents/conversation-skills.d.ts +18 -0
- package/dist/agents/conversation-skills.js +229 -0
- package/dist/agents/intro-skill.d.ts +9 -0
- package/dist/agents/intro-skill.js +41 -0
- package/dist/agents/registry-data.d.ts +35 -0
- package/dist/agents/registry-data.js +58 -1
- package/dist/agents/runtime-detection.d.ts +82 -0
- package/dist/agents/runtime-detection.js +271 -0
- package/dist/agents/session-start-hook.d.ts +37 -0
- package/dist/agents/session-start-hook.js +159 -0
- package/dist/agents/types.d.ts +12 -0
- package/dist/api/client.d.ts +47 -0
- package/dist/api/client.js +32 -0
- package/dist/commands/__tests__/setup-persona.test.d.ts +1 -0
- package/dist/commands/__tests__/setup-persona.test.js +31 -0
- package/dist/commands/doctor.js +89 -2
- package/dist/commands/inbox.d.ts +11 -0
- package/dist/commands/inbox.js +60 -0
- package/dist/commands/info.d.ts +1 -1
- package/dist/commands/info.js +7 -2
- package/dist/commands/resume.d.ts +2 -0
- package/dist/commands/resume.js +265 -0
- package/dist/commands/save-convo.d.ts +8 -0
- package/dist/commands/save-convo.js +20 -0
- package/dist/commands/setup.d.ts +7 -0
- package/dist/commands/setup.js +22 -0
- package/dist/commands/share-convo.d.ts +24 -0
- package/dist/commands/share-convo.js +167 -0
- package/dist/commands/sync.js +96 -10
- package/dist/generated/bundled-types.js +33 -33
- package/dist/generated/version.d.ts +1 -1
- package/dist/generated/version.js +1 -1
- package/dist/index.js +8 -0
- package/dist/types.d.ts +13 -0
- package/dist/utils/app-info.d.ts +4 -0
- package/dist/utils/app-info.js +17 -0
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.13.1";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// Auto-generated by scripts/embed-types.ts -- do not edit
|
|
2
|
-
export const VERSION = "0.
|
|
2
|
+
export const VERSION = "0.13.1";
|
package/dist/index.js
CHANGED
|
@@ -27,6 +27,10 @@ import { buildPluginCommand } from './commands/build-plugin.js';
|
|
|
27
27
|
import { uninstallCommand } from './commands/uninstall.js';
|
|
28
28
|
import { appsCommand } from './commands/apps.js';
|
|
29
29
|
import { doctorCommand } from './commands/doctor.js';
|
|
30
|
+
import { shareConvoCommand } from './commands/share-convo.js';
|
|
31
|
+
import { saveConvoCommand } from './commands/save-convo.js';
|
|
32
|
+
import { inboxCommand } from './commands/inbox.js';
|
|
33
|
+
import { resumeCommand } from './commands/resume.js';
|
|
30
34
|
import { handleGitCredentialRequest } from './git/credentials.js';
|
|
31
35
|
import { VERSION } from './generated/version.js';
|
|
32
36
|
import { shouldOutputJson, jsonOut } from './utils/output.js';
|
|
@@ -79,6 +83,10 @@ program.addCommand(buildPluginCommand);
|
|
|
79
83
|
program.addCommand(uninstallCommand);
|
|
80
84
|
program.addCommand(appsCommand);
|
|
81
85
|
program.addCommand(doctorCommand);
|
|
86
|
+
program.addCommand(shareConvoCommand);
|
|
87
|
+
program.addCommand(saveConvoCommand);
|
|
88
|
+
program.addCommand(inboxCommand);
|
|
89
|
+
program.addCommand(resumeCommand);
|
|
82
90
|
program.addHelpText('after', '\nFor AI agents: run "runwork info --json" to discover app context and available commands.');
|
|
83
91
|
// JSON help: intercept --help when --json is active or stdout is not a TTY.
|
|
84
92
|
// Outputs the full command tree as structured JSON for AI agents.
|
package/dist/types.d.ts
CHANGED
|
@@ -23,6 +23,11 @@ export interface AppInfo {
|
|
|
23
23
|
workspaceId: string;
|
|
24
24
|
workspaceName: string;
|
|
25
25
|
gitRemoteUrl: string;
|
|
26
|
+
/** Production deployment state. Present on getApp responses. */
|
|
27
|
+
production?: {
|
|
28
|
+
url: string | null;
|
|
29
|
+
deployed: boolean;
|
|
30
|
+
};
|
|
26
31
|
}
|
|
27
32
|
export interface WorkspaceInfo {
|
|
28
33
|
id: string;
|
|
@@ -170,6 +175,14 @@ export interface SetupState {
|
|
|
170
175
|
agentDefaultsVersion?: number;
|
|
171
176
|
/** Per-agent slug => default rule state. Absence of an entry means bootstrap. */
|
|
172
177
|
agentDefaults?: Record<string, AgentDefaultsState>;
|
|
178
|
+
/**
|
|
179
|
+
* Technical-level classification from desktop onboarding. Used to inject
|
|
180
|
+
* persona-specific default instructions into integrated agents.
|
|
181
|
+
*/
|
|
182
|
+
persona?: {
|
|
183
|
+
level: 1 | 2 | 3;
|
|
184
|
+
label: 'novice' | 'curious' | 'engineer';
|
|
185
|
+
};
|
|
173
186
|
}
|
|
174
187
|
export interface WorkflowInfo {
|
|
175
188
|
name: string;
|
package/dist/utils/app-info.d.ts
CHANGED
package/dist/utils/app-info.js
CHANGED
|
@@ -14,6 +14,16 @@ export async function fetchAppInfo(client, opts, serverData) {
|
|
|
14
14
|
catch {
|
|
15
15
|
// No active dev session
|
|
16
16
|
}
|
|
17
|
+
let production = { url: null, deployed: false };
|
|
18
|
+
try {
|
|
19
|
+
const app = await client.getApp(opts.appId);
|
|
20
|
+
if (app.production) {
|
|
21
|
+
production = app.production;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
catch {
|
|
25
|
+
// App lookup failed; leave production unset
|
|
26
|
+
}
|
|
17
27
|
let registries = null;
|
|
18
28
|
const data = serverData !== undefined ? serverData : await fetchServerData(client, opts.workspaceId);
|
|
19
29
|
if (data) {
|
|
@@ -23,6 +33,7 @@ export async function fetchAppInfo(client, opts, serverData) {
|
|
|
23
33
|
app: { id: opts.appId, name: opts.appName, slug: opts.appSlug },
|
|
24
34
|
workspace: { id: opts.workspaceId, name: opts.workspaceName },
|
|
25
35
|
preview,
|
|
36
|
+
production,
|
|
26
37
|
dashboardUrl: `${opts.baseUrl}/chat/${opts.appId}`,
|
|
27
38
|
gitRemoteUrl: client.getGitRemoteUrl(opts.workspaceId, opts.appId),
|
|
28
39
|
registries,
|
|
@@ -82,6 +93,12 @@ export function printAppInfo(data) {
|
|
|
82
93
|
else {
|
|
83
94
|
console.log(` ${dim(pad('Preview:'))}${dim('(not running)')}`);
|
|
84
95
|
}
|
|
96
|
+
if (data.production.url) {
|
|
97
|
+
console.log(` ${dim(pad('Production:'))}${green(data.production.url)} ${dim('(deployed)')}`);
|
|
98
|
+
}
|
|
99
|
+
else {
|
|
100
|
+
console.log(` ${dim(pad('Production:'))}${dim('(not deployed)')}`);
|
|
101
|
+
}
|
|
85
102
|
const reg = data.registries;
|
|
86
103
|
if (!reg) {
|
|
87
104
|
console.log('');
|
package/package.json
CHANGED