opendevbrowser 0.0.21 → 0.0.23
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 -3
- package/dist/{chunk-4KVXCXV3.js → chunk-2MG7BRPF.js} +521 -84
- package/dist/{chunk-4KVXCXV3.js.map → chunk-2MG7BRPF.js.map} +1 -1
- package/dist/chunk-3ILXPKSJ.js +86 -0
- package/dist/chunk-3ILXPKSJ.js.map +1 -0
- package/dist/{chunk-ZE2E7ZGH.js → chunk-K2TEHJCV.js} +240 -33
- package/dist/chunk-K2TEHJCV.js.map +1 -0
- package/dist/chunk-QVWOPIZJ.js +612 -0
- package/dist/chunk-QVWOPIZJ.js.map +1 -0
- package/dist/{chunk-3VA6XR25.js → chunk-STGGGVYT.js} +23 -100
- package/dist/chunk-STGGGVYT.js.map +1 -0
- package/dist/cli/commands/macro-resolve.d.ts.map +1 -1
- package/dist/cli/commands/uninstall.d.ts +1 -0
- package/dist/cli/commands/uninstall.d.ts.map +1 -1
- package/dist/cli/daemon-commands.d.ts.map +1 -1
- package/dist/cli/help.d.ts.map +1 -1
- package/dist/cli/index.js +298 -618
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/installers/postinstall-skill-sync.d.ts +15 -0
- package/dist/cli/installers/postinstall-skill-sync.d.ts.map +1 -0
- package/dist/cli/installers/postinstall-skill-sync.js +48 -0
- package/dist/cli/installers/postinstall-skill-sync.js.map +1 -0
- package/dist/cli/installers/skills.d.ts +9 -14
- package/dist/cli/installers/skills.d.ts.map +1 -1
- package/dist/cli/skill-lifecycle.d.ts +26 -0
- package/dist/cli/skill-lifecycle.d.ts.map +1 -0
- package/dist/cli/update-skill-modes.d.ts +3 -0
- package/dist/cli/update-skill-modes.d.ts.map +1 -0
- package/dist/cli/utils/workflow-message.d.ts +1 -0
- package/dist/cli/utils/workflow-message.d.ts.map +1 -1
- package/dist/index.js +25 -9
- package/dist/index.js.map +1 -1
- package/dist/opendevbrowser.js +25 -9
- package/dist/opendevbrowser.js.map +1 -1
- package/dist/providers/social/platform.d.ts.map +1 -1
- package/dist/providers/social/search-quality.d.ts.map +1 -1
- package/dist/providers/social/youtube.d.ts.map +1 -1
- package/dist/providers/workflow-handoff.d.ts +27 -3
- package/dist/providers/workflow-handoff.d.ts.map +1 -1
- package/dist/providers/workflows.d.ts +1 -0
- package/dist/providers/workflows.d.ts.map +1 -1
- package/dist/{providers-ZIVHHH4F.js → providers-6YVHKTOJ.js} +2 -2
- package/dist/public-surface/generated-manifest.d.ts +162 -4
- package/dist/public-surface/generated-manifest.d.ts.map +1 -1
- package/dist/public-surface/source.d.ts +12 -6
- package/dist/public-surface/source.d.ts.map +1 -1
- package/dist/skills/skill-loader.js +2 -1
- package/dist/tools/macro_resolve.d.ts.map +1 -1
- package/extension/manifest.json +1 -1
- package/package.json +6 -4
- package/scripts/postinstall-sync-skills.mjs +33 -0
- package/dist/chunk-3VA6XR25.js.map +0 -1
- package/dist/chunk-ZE2E7ZGH.js.map +0 -1
- /package/dist/{providers-ZIVHHH4F.js.map → providers-6YVHKTOJ.js.map} +0 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type SkillSyncResult, type SkillInstallMode } from "./skills";
|
|
2
|
+
export type PostinstallSkipReason = "disabled" | "repo_checkout";
|
|
3
|
+
export interface PostinstallSkillSyncResult {
|
|
4
|
+
success: boolean;
|
|
5
|
+
skipped: boolean;
|
|
6
|
+
reason?: PostinstallSkipReason;
|
|
7
|
+
message: string;
|
|
8
|
+
syncResult?: SkillSyncResult;
|
|
9
|
+
}
|
|
10
|
+
export interface RunPostinstallSkillSyncOptions {
|
|
11
|
+
mode?: SkillInstallMode;
|
|
12
|
+
skipRepoCheckoutGuard?: boolean;
|
|
13
|
+
}
|
|
14
|
+
export declare function runPostinstallSkillSync(options?: RunPostinstallSkillSyncOptions): PostinstallSkillSyncResult;
|
|
15
|
+
//# sourceMappingURL=postinstall-skill-sync.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"postinstall-skill-sync.d.ts","sourceRoot":"","sources":["../../../src/cli/installers/postinstall-skill-sync.ts"],"names":[],"mappings":"AAGA,OAAO,EAEL,KAAK,eAAe,EACpB,KAAK,gBAAgB,EACtB,MAAM,UAAU,CAAC;AAElB,MAAM,MAAM,qBAAqB,GAAG,UAAU,GAAG,eAAe,CAAC;AAEjE,MAAM,WAAW,0BAA0B;IACzC,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,CAAC,EAAE,qBAAqB,CAAC;IAC/B,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,eAAe,CAAC;CAC9B;AAED,MAAM,WAAW,8BAA8B;IAC7C,IAAI,CAAC,EAAE,gBAAgB,CAAC;IACxB,qBAAqB,CAAC,EAAE,OAAO,CAAC;CACjC;AA2BD,wBAAgB,uBAAuB,CACrC,OAAO,GAAE,8BAAmC,GAC3C,0BAA0B,CAgB5B"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import {
|
|
2
|
+
syncBundledSkills
|
|
3
|
+
} from "../../chunk-QVWOPIZJ.js";
|
|
4
|
+
import {
|
|
5
|
+
getPackageRoot
|
|
6
|
+
} from "../../chunk-3ILXPKSJ.js";
|
|
7
|
+
import "../../chunk-TBUCZX4A.js";
|
|
8
|
+
|
|
9
|
+
// src/cli/installers/postinstall-skill-sync.ts
|
|
10
|
+
import * as fs from "fs";
|
|
11
|
+
import * as path from "path";
|
|
12
|
+
function getSkipReason(packageRoot, skipRepoCheckoutGuard) {
|
|
13
|
+
if (process.env.OPDEVBROWSER_SKIP_POSTINSTALL_SKILL_SYNC === "1") {
|
|
14
|
+
return "disabled";
|
|
15
|
+
}
|
|
16
|
+
if (!skipRepoCheckoutGuard && fs.existsSync(path.join(packageRoot, ".git"))) {
|
|
17
|
+
return "repo_checkout";
|
|
18
|
+
}
|
|
19
|
+
return null;
|
|
20
|
+
}
|
|
21
|
+
function createSkippedResult(reason) {
|
|
22
|
+
const message = reason === "disabled" ? "Postinstall skill sync skipped (OPDEVBROWSER_SKIP_POSTINSTALL_SKILL_SYNC=1)." : "Postinstall skill sync skipped inside repo checkout.";
|
|
23
|
+
return {
|
|
24
|
+
success: true,
|
|
25
|
+
skipped: true,
|
|
26
|
+
reason,
|
|
27
|
+
message
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
function runPostinstallSkillSync(options = {}) {
|
|
31
|
+
const mode = options.mode ?? "global";
|
|
32
|
+
const packageRoot = getPackageRoot();
|
|
33
|
+
const skipReason = getSkipReason(packageRoot, options.skipRepoCheckoutGuard === true);
|
|
34
|
+
if (skipReason) {
|
|
35
|
+
return createSkippedResult(skipReason);
|
|
36
|
+
}
|
|
37
|
+
const syncResult = syncBundledSkills(mode);
|
|
38
|
+
return {
|
|
39
|
+
success: syncResult.success,
|
|
40
|
+
skipped: false,
|
|
41
|
+
message: syncResult.message,
|
|
42
|
+
syncResult
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
export {
|
|
46
|
+
runPostinstallSkillSync
|
|
47
|
+
};
|
|
48
|
+
//# sourceMappingURL=postinstall-skill-sync.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/cli/installers/postinstall-skill-sync.ts"],"sourcesContent":["import * as fs from \"fs\";\nimport * as path from \"path\";\nimport { getPackageRoot } from \"../../utils/package-assets\";\nimport {\n syncBundledSkills,\n type SkillSyncResult,\n type SkillInstallMode\n} from \"./skills\";\n\nexport type PostinstallSkipReason = \"disabled\" | \"repo_checkout\";\n\nexport interface PostinstallSkillSyncResult {\n success: boolean;\n skipped: boolean;\n reason?: PostinstallSkipReason;\n message: string;\n syncResult?: SkillSyncResult;\n}\n\nexport interface RunPostinstallSkillSyncOptions {\n mode?: SkillInstallMode;\n skipRepoCheckoutGuard?: boolean;\n}\n\nfunction getSkipReason(packageRoot: string, skipRepoCheckoutGuard: boolean): PostinstallSkipReason | null {\n if (process.env.OPDEVBROWSER_SKIP_POSTINSTALL_SKILL_SYNC === \"1\") {\n return \"disabled\";\n }\n\n if (!skipRepoCheckoutGuard && fs.existsSync(path.join(packageRoot, \".git\"))) {\n return \"repo_checkout\";\n }\n\n return null;\n}\n\nfunction createSkippedResult(reason: PostinstallSkipReason): PostinstallSkillSyncResult {\n const message = reason === \"disabled\"\n ? \"Postinstall skill sync skipped (OPDEVBROWSER_SKIP_POSTINSTALL_SKILL_SYNC=1).\"\n : \"Postinstall skill sync skipped inside repo checkout.\";\n\n return {\n success: true,\n skipped: true,\n reason,\n message\n };\n}\n\nexport function runPostinstallSkillSync(\n options: RunPostinstallSkillSyncOptions = {}\n): PostinstallSkillSyncResult {\n const mode = options.mode ?? \"global\";\n const packageRoot = getPackageRoot();\n const skipReason = getSkipReason(packageRoot, options.skipRepoCheckoutGuard === true);\n\n if (skipReason) {\n return createSkippedResult(skipReason);\n }\n\n const syncResult = syncBundledSkills(mode);\n return {\n success: syncResult.success,\n skipped: false,\n message: syncResult.message,\n syncResult\n };\n}\n"],"mappings":";;;;;;;;;AAAA,YAAY,QAAQ;AACpB,YAAY,UAAU;AAuBtB,SAAS,cAAc,aAAqB,uBAA8D;AACxG,MAAI,QAAQ,IAAI,6CAA6C,KAAK;AAChE,WAAO;AAAA,EACT;AAEA,MAAI,CAAC,yBAA4B,cAAgB,UAAK,aAAa,MAAM,CAAC,GAAG;AAC3E,WAAO;AAAA,EACT;AAEA,SAAO;AACT;AAEA,SAAS,oBAAoB,QAA2D;AACtF,QAAM,UAAU,WAAW,aACvB,iFACA;AAEJ,SAAO;AAAA,IACL,SAAS;AAAA,IACT,SAAS;AAAA,IACT;AAAA,IACA;AAAA,EACF;AACF;AAEO,SAAS,wBACd,UAA0C,CAAC,GACf;AAC5B,QAAM,OAAO,QAAQ,QAAQ;AAC7B,QAAM,cAAc,eAAe;AACnC,QAAM,aAAa,cAAc,aAAa,QAAQ,0BAA0B,IAAI;AAEpF,MAAI,YAAY;AACd,WAAO,oBAAoB,UAAU;AAAA,EACvC;AAEA,QAAM,aAAa,kBAAkB,IAAI;AACzC,SAAO;AAAA,IACL,SAAS,WAAW;AAAA,IACpB,SAAS;AAAA,IACT,SAAS,WAAW;AAAA,IACpB;AAAA,EACF;AACF;","names":[]}
|
|
@@ -1,10 +1,7 @@
|
|
|
1
|
+
import { type SkillTarget } from "../utils/skills";
|
|
1
2
|
export type SkillInstallMode = "global" | "local";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export interface PreservedLegacyAlias {
|
|
5
|
-
targetDir: string;
|
|
6
|
-
name: LegacyAliasName;
|
|
7
|
-
reason: LegacyAliasPreservationReason;
|
|
3
|
+
interface SkillLifecycleTargetOptions {
|
|
4
|
+
includeLegacyArtifacts: boolean;
|
|
8
5
|
}
|
|
9
6
|
export interface SkillTargetSyncResult {
|
|
10
7
|
agents: string[];
|
|
@@ -12,8 +9,6 @@ export interface SkillTargetSyncResult {
|
|
|
12
9
|
installed: string[];
|
|
13
10
|
refreshed: string[];
|
|
14
11
|
unchanged: string[];
|
|
15
|
-
removedLegacyAliases: string[];
|
|
16
|
-
preservedLegacyAliases: PreservedLegacyAlias[];
|
|
17
12
|
success: boolean;
|
|
18
13
|
error?: string;
|
|
19
14
|
}
|
|
@@ -25,16 +20,12 @@ export interface SkillSyncResult {
|
|
|
25
20
|
installed: string[];
|
|
26
21
|
refreshed: string[];
|
|
27
22
|
unchanged: string[];
|
|
28
|
-
removedLegacyAliases: string[];
|
|
29
|
-
preservedLegacyAliases: PreservedLegacyAlias[];
|
|
30
23
|
}
|
|
31
24
|
export interface SkillTargetRemovalResult {
|
|
32
25
|
agents: string[];
|
|
33
26
|
targetDir: string;
|
|
34
27
|
removed: string[];
|
|
35
28
|
missing: string[];
|
|
36
|
-
removedLegacyAliases: string[];
|
|
37
|
-
preservedLegacyAliases: PreservedLegacyAlias[];
|
|
38
29
|
success: boolean;
|
|
39
30
|
error?: string;
|
|
40
31
|
}
|
|
@@ -45,11 +36,15 @@ export interface SkillRemovalResult {
|
|
|
45
36
|
targets: SkillTargetRemovalResult[];
|
|
46
37
|
removed: string[];
|
|
47
38
|
missing: string[];
|
|
48
|
-
removedLegacyAliases: string[];
|
|
49
|
-
preservedLegacyAliases: PreservedLegacyAlias[];
|
|
50
39
|
}
|
|
40
|
+
export declare function createNoOpSkillRemovalResult(mode: SkillInstallMode): SkillRemovalResult;
|
|
41
|
+
export declare function getBundledSkillLifecycleTargets(mode: SkillInstallMode, options: SkillLifecycleTargetOptions): SkillTarget[];
|
|
42
|
+
export declare function getBundledSkillTargets(mode: SkillInstallMode): SkillTarget[];
|
|
43
|
+
export declare function syncBundledSkillsForTargets(mode: SkillInstallMode, targets: readonly SkillTarget[]): SkillSyncResult;
|
|
51
44
|
export declare function syncBundledSkills(mode: SkillInstallMode): SkillSyncResult;
|
|
45
|
+
export declare function removeBundledSkillsForTargets(mode: SkillInstallMode, targets: readonly SkillTarget[]): SkillRemovalResult;
|
|
52
46
|
export declare function removeBundledSkills(mode: SkillInstallMode): SkillRemovalResult;
|
|
53
47
|
export declare function hasBundledSkillArtifacts(mode: SkillInstallMode): boolean;
|
|
48
|
+
export declare function hasManagedBundledSkillInstall(mode: SkillInstallMode): boolean;
|
|
54
49
|
export {};
|
|
55
50
|
//# sourceMappingURL=skills.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"skills.d.ts","sourceRoot":"","sources":["../../../src/cli/installers/skills.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"skills.d.ts","sourceRoot":"","sources":["../../../src/cli/installers/skills.ts"],"names":[],"mappings":"AAIA,OAAO,EAAoE,KAAK,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAGrH,MAAM,MAAM,gBAAgB,GAAG,QAAQ,GAAG,OAAO,CAAC;AAsBlD,UAAU,2BAA2B;IACnC,sBAAsB,EAAE,OAAO,CAAC;CACjC;AAQD,MAAM,WAAW,qBAAqB;IACpC,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,eAAe;IAC9B,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,gBAAgB,CAAC;IACvB,OAAO,EAAE,qBAAqB,EAAE,CAAC;IACjC,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,SAAS,EAAE,MAAM,EAAE,CAAC;CACrB;AAED,MAAM,WAAW,wBAAwB;IACvC,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,kBAAkB;IACjC,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,gBAAgB,CAAC;IACvB,OAAO,EAAE,wBAAwB,EAAE,CAAC;IACpC,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB;AAsTD,wBAAgB,4BAA4B,CAAC,IAAI,EAAE,gBAAgB,GAAG,kBAAkB,CAWvF;AAED,wBAAgB,+BAA+B,CAC7C,IAAI,EAAE,gBAAgB,EACtB,OAAO,EAAE,2BAA2B,GACnC,WAAW,EAAE,CAsBf;AAED,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,gBAAgB,GAAG,WAAW,EAAE,CAE5E;AAED,wBAAgB,2BAA2B,CACzC,IAAI,EAAE,gBAAgB,EACtB,OAAO,EAAE,SAAS,WAAW,EAAE,GAC9B,eAAe,CAgHjB;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,gBAAgB,GAAG,eAAe,CAEzE;AAED,wBAAgB,6BAA6B,CAC3C,IAAI,EAAE,gBAAgB,EACtB,OAAO,EAAE,SAAS,WAAW,EAAE,GAC9B,kBAAkB,CA6DpB;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,gBAAgB,GAAG,kBAAkB,CAE9E;AAED,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,gBAAgB,GAAG,OAAO,CAKxE;AAED,wBAAgB,6BAA6B,CAAC,IAAI,EAAE,gBAAgB,GAAG,OAAO,CAE7E"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { InstallMode, ParsedArgs } from "./args";
|
|
2
|
+
import type { UninstallResult } from "./commands/uninstall";
|
|
3
|
+
import type { UpdateResult } from "./commands/update";
|
|
4
|
+
import type { CommandResult } from "./commands/types";
|
|
5
|
+
import { type SkillInstallMode, type SkillRemovalResult, type SkillSyncResult } from "./installers/skills";
|
|
6
|
+
import type { SkillTarget } from "./utils/skills";
|
|
7
|
+
type SkillTargetOptions = {
|
|
8
|
+
includeLegacyArtifacts: boolean;
|
|
9
|
+
};
|
|
10
|
+
type UpdateSkillDeps = {
|
|
11
|
+
resolveUpdateSkillModes(args: ParsedArgs): InstallMode[];
|
|
12
|
+
hasInstalledConfig(mode: InstallMode): boolean;
|
|
13
|
+
hasBundledSkillArtifacts(mode: SkillInstallMode): boolean;
|
|
14
|
+
getBundledSkillTargets(mode: SkillInstallMode): SkillTarget[];
|
|
15
|
+
getBundledSkillLifecycleTargets(mode: SkillInstallMode, options: SkillTargetOptions): SkillTarget[];
|
|
16
|
+
syncBundledSkillsForTargets(mode: SkillInstallMode, targets: readonly SkillTarget[]): SkillSyncResult;
|
|
17
|
+
};
|
|
18
|
+
type UninstallSkillDeps = {
|
|
19
|
+
hasBundledSkillArtifacts(mode: SkillInstallMode): boolean;
|
|
20
|
+
getBundledSkillLifecycleTargets(mode: SkillInstallMode, options: SkillTargetOptions): SkillTarget[];
|
|
21
|
+
removeBundledSkillsForTargets(mode: SkillInstallMode, targets: readonly SkillTarget[]): SkillRemovalResult;
|
|
22
|
+
};
|
|
23
|
+
export declare function buildUpdateCommandResult(args: ParsedArgs, result: UpdateResult, deps: UpdateSkillDeps): CommandResult;
|
|
24
|
+
export declare function buildUninstallCommandResult(args: ParsedArgs, mode: InstallMode, result: UninstallResult, deps: UninstallSkillDeps): CommandResult;
|
|
25
|
+
export {};
|
|
26
|
+
//# sourceMappingURL=skill-lifecycle.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"skill-lifecycle.d.ts","sourceRoot":"","sources":["../../src/cli/skill-lifecycle.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AACtD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,EAEL,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACvB,KAAK,eAAe,EACrB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAElD,KAAK,kBAAkB,GAAG;IACxB,sBAAsB,EAAE,OAAO,CAAC;CACjC,CAAC;AAEF,KAAK,eAAe,GAAG;IACrB,uBAAuB,CAAC,IAAI,EAAE,UAAU,GAAG,WAAW,EAAE,CAAC;IACzD,kBAAkB,CAAC,IAAI,EAAE,WAAW,GAAG,OAAO,CAAC;IAC/C,wBAAwB,CAAC,IAAI,EAAE,gBAAgB,GAAG,OAAO,CAAC;IAC1D,sBAAsB,CAAC,IAAI,EAAE,gBAAgB,GAAG,WAAW,EAAE,CAAC;IAC9D,+BAA+B,CAAC,IAAI,EAAE,gBAAgB,EAAE,OAAO,EAAE,kBAAkB,GAAG,WAAW,EAAE,CAAC;IACpG,2BAA2B,CAAC,IAAI,EAAE,gBAAgB,EAAE,OAAO,EAAE,SAAS,WAAW,EAAE,GAAG,eAAe,CAAC;CACvG,CAAC;AAEF,KAAK,kBAAkB,GAAG;IACxB,wBAAwB,CAAC,IAAI,EAAE,gBAAgB,GAAG,OAAO,CAAC;IAC1D,+BAA+B,CAAC,IAAI,EAAE,gBAAgB,EAAE,OAAO,EAAE,kBAAkB,GAAG,WAAW,EAAE,CAAC;IACpG,6BAA6B,CAAC,IAAI,EAAE,gBAAgB,EAAE,OAAO,EAAE,SAAS,WAAW,EAAE,GAAG,kBAAkB,CAAC;CAC5G,CAAC;AAmDF,wBAAgB,wBAAwB,CACtC,IAAI,EAAE,UAAU,EAChB,MAAM,EAAE,YAAY,EACpB,IAAI,EAAE,eAAe,GACpB,aAAa,CAgBf;AA8BD,wBAAgB,2BAA2B,CACzC,IAAI,EAAE,UAAU,EAChB,IAAI,EAAE,WAAW,EACjB,MAAM,EAAE,eAAe,EACvB,IAAI,EAAE,kBAAkB,GACvB,aAAa,CAiBf"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-skill-modes.d.ts","sourceRoot":"","sources":["../../src/cli/update-skill-modes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AAOtD,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,UAAU,GAAG,WAAW,EAAE,CAsBvE"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export declare const buildNextStepMessage: (message: string, nextStep: string | null) => string;
|
|
2
2
|
export declare const readSuggestedNextAction: (data: unknown) => string | null;
|
|
3
|
+
export declare const readSuggestedStepCommand: (data: unknown) => string | null;
|
|
3
4
|
export declare const readSuggestedStepReason: (data: unknown) => string | null;
|
|
4
5
|
export declare const buildWorkflowCompletionMessage: (workflowLabel: string, data: unknown) => string;
|
|
5
6
|
//# sourceMappingURL=workflow-message.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflow-message.d.ts","sourceRoot":"","sources":["../../../src/cli/utils/workflow-message.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"workflow-message.d.ts","sourceRoot":"","sources":["../../../src/cli/utils/workflow-message.ts"],"names":[],"mappings":"AAmFA,eAAO,MAAM,oBAAoB,GAAI,SAAS,MAAM,EAAE,UAAU,MAAM,GAAG,IAAI,KAAG,MAE/E,CAAC;AAEF,eAAO,MAAM,uBAAuB,GAAI,MAAM,OAAO,KAAG,MAAM,GAAG,IAKhE,CAAC;AAEF,eAAO,MAAM,wBAAwB,GAAI,MAAM,OAAO,KAAG,MAAM,GAAG,IAcjE,CAAC;AAEF,eAAO,MAAM,uBAAuB,GAAI,MAAM,OAAO,KAAG,MAAM,GAAG,IAYhE,CAAC;AAEF,eAAO,MAAM,8BAA8B,GAAI,eAAe,MAAM,EAAE,MAAM,OAAO,KAAG,MAuBrF,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -22,16 +22,18 @@ import {
|
|
|
22
22
|
resolveBundledProviderRuntime,
|
|
23
23
|
resolveSessionRelayRoute,
|
|
24
24
|
startDaemon
|
|
25
|
-
} from "./chunk-
|
|
26
|
-
import "./chunk-
|
|
25
|
+
} from "./chunk-2MG7BRPF.js";
|
|
26
|
+
import "./chunk-STGGGVYT.js";
|
|
27
|
+
import "./chunk-3ILXPKSJ.js";
|
|
27
28
|
import "./chunk-TBUCZX4A.js";
|
|
28
29
|
import "./chunk-Y2KL55OG.js";
|
|
29
30
|
import {
|
|
30
31
|
CHALLENGE_AUTOMATION_MODES,
|
|
31
32
|
buildBlockerArtifacts,
|
|
33
|
+
buildMacroResolveSuccessHandoff,
|
|
32
34
|
classifyBlockerSignal,
|
|
33
35
|
createRequestId
|
|
34
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-K2TEHJCV.js";
|
|
35
37
|
import "./chunk-FUSXMW3G.js";
|
|
36
38
|
|
|
37
39
|
// src/cli/remote-manager.ts
|
|
@@ -2696,10 +2698,17 @@ function createMacroResolveTool(deps) {
|
|
|
2696
2698
|
resolution = parseFallbackMacro(args.expression, args.defaultProvider);
|
|
2697
2699
|
}
|
|
2698
2700
|
if (!args.execute) {
|
|
2701
|
+
const handoff2 = buildMacroResolveSuccessHandoff({
|
|
2702
|
+
expression: args.expression,
|
|
2703
|
+
defaultProvider: args.defaultProvider,
|
|
2704
|
+
execute: false,
|
|
2705
|
+
blocked: false
|
|
2706
|
+
});
|
|
2699
2707
|
return ok({
|
|
2700
2708
|
runtime: resolvedRuntime,
|
|
2701
2709
|
resolution,
|
|
2702
|
-
...catalog ? { catalog } : {}
|
|
2710
|
+
...catalog ? { catalog } : {},
|
|
2711
|
+
...handoff2
|
|
2703
2712
|
});
|
|
2704
2713
|
}
|
|
2705
2714
|
const providerRuntime = await resolveProviderRuntime(deps);
|
|
@@ -2707,11 +2716,18 @@ function createMacroResolveTool(deps) {
|
|
|
2707
2716
|
resolution,
|
|
2708
2717
|
runtime: providerRuntime
|
|
2709
2718
|
});
|
|
2719
|
+
const handoff = buildMacroResolveSuccessHandoff({
|
|
2720
|
+
expression: args.expression,
|
|
2721
|
+
defaultProvider: args.defaultProvider,
|
|
2722
|
+
execute: true,
|
|
2723
|
+
blocked: Boolean(execution.meta.blocker)
|
|
2724
|
+
});
|
|
2710
2725
|
return ok({
|
|
2711
2726
|
runtime: resolvedRuntime,
|
|
2712
2727
|
resolution,
|
|
2713
2728
|
...catalog ? { catalog } : {},
|
|
2714
|
-
execution
|
|
2729
|
+
execution,
|
|
2730
|
+
...handoff
|
|
2715
2731
|
});
|
|
2716
2732
|
} catch (error) {
|
|
2717
2733
|
return failure(serializeError(error).message, "macro_resolve_failed");
|
|
@@ -3152,7 +3168,7 @@ function createResearchRunTool(deps) {
|
|
|
3152
3168
|
async execute(args) {
|
|
3153
3169
|
try {
|
|
3154
3170
|
const runtime = await resolveProviderRuntime(deps);
|
|
3155
|
-
const { runResearchWorkflow } = await import("./providers-
|
|
3171
|
+
const { runResearchWorkflow } = await import("./providers-6YVHKTOJ.js");
|
|
3156
3172
|
const result = await runResearchWorkflow(runtime, {
|
|
3157
3173
|
topic: args.topic,
|
|
3158
3174
|
days: args.days,
|
|
@@ -3203,7 +3219,7 @@ function createShoppingRunTool(deps) {
|
|
|
3203
3219
|
async execute(args) {
|
|
3204
3220
|
try {
|
|
3205
3221
|
const runtime = await resolveProviderRuntime(deps);
|
|
3206
|
-
const { runShoppingWorkflow } = await import("./providers-
|
|
3222
|
+
const { runShoppingWorkflow } = await import("./providers-6YVHKTOJ.js");
|
|
3207
3223
|
const result = await runShoppingWorkflow(runtime, {
|
|
3208
3224
|
query: args.query,
|
|
3209
3225
|
providers: args.providers,
|
|
@@ -3272,7 +3288,7 @@ function createProductVideoRunTool(deps) {
|
|
|
3272
3288
|
async execute(args) {
|
|
3273
3289
|
try {
|
|
3274
3290
|
const runtime = await resolveProviderRuntime(deps);
|
|
3275
|
-
const { runProductVideoWorkflow } = await import("./providers-
|
|
3291
|
+
const { runProductVideoWorkflow } = await import("./providers-6YVHKTOJ.js");
|
|
3276
3292
|
const includeScreenshots = args.include_screenshots ?? true;
|
|
3277
3293
|
const result = await runProductVideoWorkflow(runtime, {
|
|
3278
3294
|
product_url: args.product_url,
|
|
@@ -3324,7 +3340,7 @@ function createInspiredesignRunTool(deps) {
|
|
|
3324
3340
|
async execute(args) {
|
|
3325
3341
|
try {
|
|
3326
3342
|
const runtime = await resolveProviderRuntime(deps);
|
|
3327
|
-
const { runInspiredesignWorkflow } = await import("./providers-
|
|
3343
|
+
const { runInspiredesignWorkflow } = await import("./providers-6YVHKTOJ.js");
|
|
3328
3344
|
const captureMode = args.captureMode ?? "off";
|
|
3329
3345
|
const cookieSource = deps.config.get().providers?.cookieSource;
|
|
3330
3346
|
const result = await runInspiredesignWorkflow(runtime, {
|