crewly 1.20.81 → 1.20.82
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/backend/backend/src/services/ai/prompt-modules/skills-reference.module.d.ts +18 -0
- package/dist/backend/backend/src/services/ai/prompt-modules/skills-reference.module.d.ts.map +1 -1
- package/dist/backend/backend/src/services/ai/prompt-modules/skills-reference.module.js +48 -1
- package/dist/backend/backend/src/services/ai/prompt-modules/skills-reference.module.js.map +1 -1
- package/dist/backend/build-info.json +2 -2
- package/dist/cli/backend/src/services/ai/prompt-modules/skills-reference.module.d.ts +18 -0
- package/dist/cli/backend/src/services/ai/prompt-modules/skills-reference.module.d.ts.map +1 -1
- package/dist/cli/backend/src/services/ai/prompt-modules/skills-reference.module.js +48 -1
- package/dist/cli/backend/src/services/ai/prompt-modules/skills-reference.module.js.map +1 -1
- package/package.json +1 -1
|
@@ -25,6 +25,24 @@ export declare class SkillsReferenceModule implements PromptModule {
|
|
|
25
25
|
* @returns Formatted markdown skills reference section
|
|
26
26
|
*/
|
|
27
27
|
build(config: ModuleConfig): Promise<string>;
|
|
28
|
+
/**
|
|
29
|
+
* Build the connector skills section.
|
|
30
|
+
*
|
|
31
|
+
* These existed for weeks and no agent knew about them. The prompt
|
|
32
|
+
* described `remote-browser` at length as the way to reach anything
|
|
33
|
+
* behind the owner's login, and said nothing about Drive, Docs, Sheets,
|
|
34
|
+
* Slides, Gmail or Calendar — so an agent asked to read a Drive folder
|
|
35
|
+
* reasonably reached for the browser, found the Chrome extension
|
|
36
|
+
* disconnected, and reported that it could not do the job. The
|
|
37
|
+
* capability was installed and the account was connected the whole time.
|
|
38
|
+
*
|
|
39
|
+
* Hence the ordering note: for Google content the connector is the
|
|
40
|
+
* right tool and the browser is the fallback, not the other way round.
|
|
41
|
+
*
|
|
42
|
+
* @param config - Module configuration, for the skills path
|
|
43
|
+
* @returns The formatted section
|
|
44
|
+
*/
|
|
45
|
+
private buildConnectors;
|
|
28
46
|
/**
|
|
29
47
|
* Build the core skills list — available to all roles.
|
|
30
48
|
*/
|
package/dist/backend/backend/src/services/ai/prompt-modules/skills-reference.module.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"skills-reference.module.d.ts","sourceRoot":"","sources":["../../../../../../../backend/src/services/ai/prompt-modules/skills-reference.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAE1E;;;;;;;;GAQG;AACH,qBAAa,qBAAsB,YAAW,YAAY;IACzD,IAAI,SAAuB;IAC3B,QAAQ,SAAK;IACb,SAAS,SAAO;IAChB,WAAW,UAAS;IAEpB;;OAEG;IACH,aAAa,CAAC,OAAO,EAAE,YAAY,GAAG,OAAO;IAI7C;;;;;;OAMG;IACG,KAAK,CAAC,MAAM,EAAE,YAAY,GAAG,OAAO,CAAC,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"skills-reference.module.d.ts","sourceRoot":"","sources":["../../../../../../../backend/src/services/ai/prompt-modules/skills-reference.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAE1E;;;;;;;;GAQG;AACH,qBAAa,qBAAsB,YAAW,YAAY;IACzD,IAAI,SAAuB;IAC3B,QAAQ,SAAK;IACb,SAAS,SAAO;IAChB,WAAW,UAAS;IAEpB;;OAEG;IACH,aAAa,CAAC,OAAO,EAAE,YAAY,GAAG,OAAO;IAI7C;;;;;;OAMG;IACG,KAAK,CAAC,MAAM,EAAE,YAAY,GAAG,OAAO,CAAC,MAAM,CAAC;IAclD;;;;;;;;;;;;;;;;OAgBG;IACH,OAAO,CAAC,eAAe;IA8BvB;;OAEG;IACH,OAAO,CAAC,eAAe;IA0EvB;;;OAGG;IACH,OAAO,CAAC,iBAAiB;IA0DzB;;;;;;;;;;;;;;;;;;OAkBG;IACH,OAAO,CAAC,kBAAkB;IAyD1B;;OAEG;IACH,OAAO,CAAC,kBAAkB;CAkB1B"}
|
|
@@ -30,12 +30,59 @@ export class SkillsReferenceModule {
|
|
|
30
30
|
const capabilities = this.buildCapabilities(config);
|
|
31
31
|
const communication = this.buildCommunication(config);
|
|
32
32
|
const safeCallGuide = this.buildSafeCallGuide(config);
|
|
33
|
-
const
|
|
33
|
+
const connectors = this.buildConnectors(config);
|
|
34
|
+
const parts = [coreSkills, capabilities, connectors, communication];
|
|
34
35
|
if (safeCallGuide) {
|
|
35
36
|
parts.push(safeCallGuide);
|
|
36
37
|
}
|
|
37
38
|
return parts.join('\n\n');
|
|
38
39
|
}
|
|
40
|
+
/**
|
|
41
|
+
* Build the connector skills section.
|
|
42
|
+
*
|
|
43
|
+
* These existed for weeks and no agent knew about them. The prompt
|
|
44
|
+
* described `remote-browser` at length as the way to reach anything
|
|
45
|
+
* behind the owner's login, and said nothing about Drive, Docs, Sheets,
|
|
46
|
+
* Slides, Gmail or Calendar — so an agent asked to read a Drive folder
|
|
47
|
+
* reasonably reached for the browser, found the Chrome extension
|
|
48
|
+
* disconnected, and reported that it could not do the job. The
|
|
49
|
+
* capability was installed and the account was connected the whole time.
|
|
50
|
+
*
|
|
51
|
+
* Hence the ordering note: for Google content the connector is the
|
|
52
|
+
* right tool and the browser is the fallback, not the other way round.
|
|
53
|
+
*
|
|
54
|
+
* @param config - Module configuration, for the skills path
|
|
55
|
+
* @returns The formatted section
|
|
56
|
+
*/
|
|
57
|
+
buildConnectors(config) {
|
|
58
|
+
const p = `${config.agentSkillsPath}/core`;
|
|
59
|
+
return [
|
|
60
|
+
'## Connected accounts (Google Workspace)',
|
|
61
|
+
'',
|
|
62
|
+
'The owner can connect Google to Crewly. When they have, these skills read and',
|
|
63
|
+
'write it directly through that grant — **no browser, no Chrome extension, no login**.',
|
|
64
|
+
'',
|
|
65
|
+
`- \`${p}/drive-search\` — find files in Drive by text, type or folder`,
|
|
66
|
+
`- \`${p}/drive-read\` — read a Drive file's content`,
|
|
67
|
+
`- \`${p}/drive-upload\` — put a file or text into Drive`,
|
|
68
|
+
`- \`${p}/docs-read\` / \`docs-write\` — read a Google Doc as text; create one or append to it`,
|
|
69
|
+
`- \`${p}/sheets-read\` / \`sheets-write\` — read a range as rows; create a sheet or append rows`,
|
|
70
|
+
`- \`${p}/slides-read\` / \`slides-create\` — read a deck as text; build one from an outline`,
|
|
71
|
+
`- \`${p}/gmail-search\` / \`gmail-read\` — search and read the owner's mail`,
|
|
72
|
+
`- \`${p}/gmail-send\` — compose mail. It leaves a **draft**; only the owner sends it`,
|
|
73
|
+
`- \`${p}/calendar-list\` / \`calendar-create\` — upcoming events; create one`,
|
|
74
|
+
'',
|
|
75
|
+
'**For anything in Google, reach for these first.** `remote-browser` is the fallback,',
|
|
76
|
+
'not the default: it needs the Chrome extension connected, it is slower, and it acts',
|
|
77
|
+
'inside a real logged-in browser where a stray click has real consequences.',
|
|
78
|
+
'',
|
|
79
|
+
`Not connected yet? The call returns \`{"success":false,"reason":"not_connected","hint":"<url>"}\`.`,
|
|
80
|
+
`Do not report that as "I cannot do this" — run \`${p}/google-connect\` to ask the owner`,
|
|
81
|
+
'to authorize it, tell them what you are waiting on, and stop there.',
|
|
82
|
+
'',
|
|
83
|
+
'Consent is per product, so an account connected for Calendar cannot read Drive.',
|
|
84
|
+
].join('\n');
|
|
85
|
+
}
|
|
39
86
|
/**
|
|
40
87
|
* Build the core skills list — available to all roles.
|
|
41
88
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"skills-reference.module.js","sourceRoot":"","sources":["../../../../../../../backend/src/services/ai/prompt-modules/skills-reference.module.ts"],"names":[],"mappings":"AAEA;;;;;;;;GAQG;AACH,MAAM,OAAO,qBAAqB;IACjC,IAAI,GAAG,mBAAmB,CAAC;IAC3B,QAAQ,GAAG,CAAC,CAAC;IACb,SAAS,GAAG,GAAG,CAAC;IAChB,WAAW,GAAG,KAAK,CAAC;IAEpB;;OAEG;IACH,aAAa,CAAC,OAAqB;QAClC,OAAO,IAAI,CAAC;IACb,CAAC;IAED;;;;;;OAMG;IACH,KAAK,CAAC,KAAK,CAAC,MAAoB;QAC/B,MAAM,UAAU,GAAG,IAAI,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC;QAChD,MAAM,YAAY,GAAG,IAAI,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC;QACpD,MAAM,aAAa,GAAG,IAAI,CAAC,kBAAkB,CAAC,MAAM,CAAC,CAAC;QAEtD,MAAM,aAAa,GAAG,IAAI,CAAC,kBAAkB,CAAC,MAAM,CAAC,CAAC;QACtD,MAAM,KAAK,GAAG,CAAC,UAAU,EAAE,YAAY,EAAE,aAAa,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"skills-reference.module.js","sourceRoot":"","sources":["../../../../../../../backend/src/services/ai/prompt-modules/skills-reference.module.ts"],"names":[],"mappings":"AAEA;;;;;;;;GAQG;AACH,MAAM,OAAO,qBAAqB;IACjC,IAAI,GAAG,mBAAmB,CAAC;IAC3B,QAAQ,GAAG,CAAC,CAAC;IACb,SAAS,GAAG,GAAG,CAAC;IAChB,WAAW,GAAG,KAAK,CAAC;IAEpB;;OAEG;IACH,aAAa,CAAC,OAAqB;QAClC,OAAO,IAAI,CAAC;IACb,CAAC;IAED;;;;;;OAMG;IACH,KAAK,CAAC,KAAK,CAAC,MAAoB;QAC/B,MAAM,UAAU,GAAG,IAAI,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC;QAChD,MAAM,YAAY,GAAG,IAAI,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC;QACpD,MAAM,aAAa,GAAG,IAAI,CAAC,kBAAkB,CAAC,MAAM,CAAC,CAAC;QAEtD,MAAM,aAAa,GAAG,IAAI,CAAC,kBAAkB,CAAC,MAAM,CAAC,CAAC;QACtD,MAAM,UAAU,GAAG,IAAI,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC;QAChD,MAAM,KAAK,GAAG,CAAC,UAAU,EAAE,Y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,MAAM,CAAC,WAAW,IAAI,MAAM,CAAC,WAAW;;;OAGnJ,MAAM,CAAC,eAAe,mFAAmF,MAAM,CAAC,WAAW,IAAI,MAAM,CAAC,WAAW;;;;;;mEAMrF,MAAM,CAAC,eAAe,gFAAgF,MAAM,CAAC,WAAW,IAAI,MAAM,CAAC,WAAW;;;;;;OAM1M,MAAM,CAAC,eAAe,gHAAgH,MAAM,CAAC,WAAW,IAAI,MAAM,CAAC,WAAW;QAC7K,MAAM,CAAC,WAAW,CAAC,CAAC,CAAC;;;;;OAKtB,MAAM,CAAC,YAAY,2GAA2G,MAAM,CAAC,WAAW,IAAI,MAAM,CAAC,WAAW,aAAa,MAAM,CAAC,MAAM,IAAI,EAAE,kBAAkB,MAAM,CAAC,QAAQ;;;+CAG/L,MAAM,CAAC,YAAY,8EAA8E,MAAM,CAAC,WAAW,IAAI,MAAM,CAAC,WAAW;OACjL,CAAC,CAAC,CAAC,EAAE;;;;;;;0DAO8C,CAAC;IAC1D,CAAC;IAED;;OAEG;IACK,kBAAkB,CAAC,MAAoB;QAC9C,OAAO;;uBAEc,MAAM,CAAC,eAAe;;;;;;;;;;;;;kLAaqI,CAAC;IAClL,CAAC;CACD"}
|
|
@@ -25,6 +25,24 @@ export declare class SkillsReferenceModule implements PromptModule {
|
|
|
25
25
|
* @returns Formatted markdown skills reference section
|
|
26
26
|
*/
|
|
27
27
|
build(config: ModuleConfig): Promise<string>;
|
|
28
|
+
/**
|
|
29
|
+
* Build the connector skills section.
|
|
30
|
+
*
|
|
31
|
+
* These existed for weeks and no agent knew about them. The prompt
|
|
32
|
+
* described `remote-browser` at length as the way to reach anything
|
|
33
|
+
* behind the owner's login, and said nothing about Drive, Docs, Sheets,
|
|
34
|
+
* Slides, Gmail or Calendar — so an agent asked to read a Drive folder
|
|
35
|
+
* reasonably reached for the browser, found the Chrome extension
|
|
36
|
+
* disconnected, and reported that it could not do the job. The
|
|
37
|
+
* capability was installed and the account was connected the whole time.
|
|
38
|
+
*
|
|
39
|
+
* Hence the ordering note: for Google content the connector is the
|
|
40
|
+
* right tool and the browser is the fallback, not the other way round.
|
|
41
|
+
*
|
|
42
|
+
* @param config - Module configuration, for the skills path
|
|
43
|
+
* @returns The formatted section
|
|
44
|
+
*/
|
|
45
|
+
private buildConnectors;
|
|
28
46
|
/**
|
|
29
47
|
* Build the core skills list — available to all roles.
|
|
30
48
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"skills-reference.module.d.ts","sourceRoot":"","sources":["../../../../../../../backend/src/services/ai/prompt-modules/skills-reference.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAE1E;;;;;;;;GAQG;AACH,qBAAa,qBAAsB,YAAW,YAAY;IACzD,IAAI,SAAuB;IAC3B,QAAQ,SAAK;IACb,SAAS,SAAO;IAChB,WAAW,UAAS;IAEpB;;OAEG;IACH,aAAa,CAAC,OAAO,EAAE,YAAY,GAAG,OAAO;IAI7C;;;;;;OAMG;IACG,KAAK,CAAC,MAAM,EAAE,YAAY,GAAG,OAAO,CAAC,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"skills-reference.module.d.ts","sourceRoot":"","sources":["../../../../../../../backend/src/services/ai/prompt-modules/skills-reference.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAE1E;;;;;;;;GAQG;AACH,qBAAa,qBAAsB,YAAW,YAAY;IACzD,IAAI,SAAuB;IAC3B,QAAQ,SAAK;IACb,SAAS,SAAO;IAChB,WAAW,UAAS;IAEpB;;OAEG;IACH,aAAa,CAAC,OAAO,EAAE,YAAY,GAAG,OAAO;IAI7C;;;;;;OAMG;IACG,KAAK,CAAC,MAAM,EAAE,YAAY,GAAG,OAAO,CAAC,MAAM,CAAC;IAclD;;;;;;;;;;;;;;;;OAgBG;IACH,OAAO,CAAC,eAAe;IA8BvB;;OAEG;IACH,OAAO,CAAC,eAAe;IA0EvB;;;OAGG;IACH,OAAO,CAAC,iBAAiB;IA0DzB;;;;;;;;;;;;;;;;;;OAkBG;IACH,OAAO,CAAC,kBAAkB;IAyD1B;;OAEG;IACH,OAAO,CAAC,kBAAkB;CAkB1B"}
|
|
@@ -30,12 +30,59 @@ export class SkillsReferenceModule {
|
|
|
30
30
|
const capabilities = this.buildCapabilities(config);
|
|
31
31
|
const communication = this.buildCommunication(config);
|
|
32
32
|
const safeCallGuide = this.buildSafeCallGuide(config);
|
|
33
|
-
const
|
|
33
|
+
const connectors = this.buildConnectors(config);
|
|
34
|
+
const parts = [coreSkills, capabilities, connectors, communication];
|
|
34
35
|
if (safeCallGuide) {
|
|
35
36
|
parts.push(safeCallGuide);
|
|
36
37
|
}
|
|
37
38
|
return parts.join('\n\n');
|
|
38
39
|
}
|
|
40
|
+
/**
|
|
41
|
+
* Build the connector skills section.
|
|
42
|
+
*
|
|
43
|
+
* These existed for weeks and no agent knew about them. The prompt
|
|
44
|
+
* described `remote-browser` at length as the way to reach anything
|
|
45
|
+
* behind the owner's login, and said nothing about Drive, Docs, Sheets,
|
|
46
|
+
* Slides, Gmail or Calendar — so an agent asked to read a Drive folder
|
|
47
|
+
* reasonably reached for the browser, found the Chrome extension
|
|
48
|
+
* disconnected, and reported that it could not do the job. The
|
|
49
|
+
* capability was installed and the account was connected the whole time.
|
|
50
|
+
*
|
|
51
|
+
* Hence the ordering note: for Google content the connector is the
|
|
52
|
+
* right tool and the browser is the fallback, not the other way round.
|
|
53
|
+
*
|
|
54
|
+
* @param config - Module configuration, for the skills path
|
|
55
|
+
* @returns The formatted section
|
|
56
|
+
*/
|
|
57
|
+
buildConnectors(config) {
|
|
58
|
+
const p = `${config.agentSkillsPath}/core`;
|
|
59
|
+
return [
|
|
60
|
+
'## Connected accounts (Google Workspace)',
|
|
61
|
+
'',
|
|
62
|
+
'The owner can connect Google to Crewly. When they have, these skills read and',
|
|
63
|
+
'write it directly through that grant — **no browser, no Chrome extension, no login**.',
|
|
64
|
+
'',
|
|
65
|
+
`- \`${p}/drive-search\` — find files in Drive by text, type or folder`,
|
|
66
|
+
`- \`${p}/drive-read\` — read a Drive file's content`,
|
|
67
|
+
`- \`${p}/drive-upload\` — put a file or text into Drive`,
|
|
68
|
+
`- \`${p}/docs-read\` / \`docs-write\` — read a Google Doc as text; create one or append to it`,
|
|
69
|
+
`- \`${p}/sheets-read\` / \`sheets-write\` — read a range as rows; create a sheet or append rows`,
|
|
70
|
+
`- \`${p}/slides-read\` / \`slides-create\` — read a deck as text; build one from an outline`,
|
|
71
|
+
`- \`${p}/gmail-search\` / \`gmail-read\` — search and read the owner's mail`,
|
|
72
|
+
`- \`${p}/gmail-send\` — compose mail. It leaves a **draft**; only the owner sends it`,
|
|
73
|
+
`- \`${p}/calendar-list\` / \`calendar-create\` — upcoming events; create one`,
|
|
74
|
+
'',
|
|
75
|
+
'**For anything in Google, reach for these first.** `remote-browser` is the fallback,',
|
|
76
|
+
'not the default: it needs the Chrome extension connected, it is slower, and it acts',
|
|
77
|
+
'inside a real logged-in browser where a stray click has real consequences.',
|
|
78
|
+
'',
|
|
79
|
+
`Not connected yet? The call returns \`{"success":false,"reason":"not_connected","hint":"<url>"}\`.`,
|
|
80
|
+
`Do not report that as "I cannot do this" — run \`${p}/google-connect\` to ask the owner`,
|
|
81
|
+
'to authorize it, tell them what you are waiting on, and stop there.',
|
|
82
|
+
'',
|
|
83
|
+
'Consent is per product, so an account connected for Calendar cannot read Drive.',
|
|
84
|
+
].join('\n');
|
|
85
|
+
}
|
|
39
86
|
/**
|
|
40
87
|
* Build the core skills list — available to all roles.
|
|
41
88
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"skills-reference.module.js","sourceRoot":"","sources":["../../../../../../../backend/src/services/ai/prompt-modules/skills-reference.module.ts"],"names":[],"mappings":"AAEA;;;;;;;;GAQG;AACH,MAAM,OAAO,qBAAqB;IACjC,IAAI,GAAG,mBAAmB,CAAC;IAC3B,QAAQ,GAAG,CAAC,CAAC;IACb,SAAS,GAAG,GAAG,CAAC;IAChB,WAAW,GAAG,KAAK,CAAC;IAEpB;;OAEG;IACH,aAAa,CAAC,OAAqB;QAClC,OAAO,IAAI,CAAC;IACb,CAAC;IAED;;;;;;OAMG;IACH,KAAK,CAAC,KAAK,CAAC,MAAoB;QAC/B,MAAM,UAAU,GAAG,IAAI,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC;QAChD,MAAM,YAAY,GAAG,IAAI,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC;QACpD,MAAM,aAAa,GAAG,IAAI,CAAC,kBAAkB,CAAC,MAAM,CAAC,CAAC;QAEtD,MAAM,aAAa,GAAG,IAAI,CAAC,kBAAkB,CAAC,MAAM,CAAC,CAAC;QACtD,MAAM,KAAK,GAAG,CAAC,UAAU,EAAE,YAAY,EAAE,aAAa,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"skills-reference.module.js","sourceRoot":"","sources":["../../../../../../../backend/src/services/ai/prompt-modules/skills-reference.module.ts"],"names":[],"mappings":"AAEA;;;;;;;;GAQG;AACH,MAAM,OAAO,qBAAqB;IACjC,IAAI,GAAG,mBAAmB,CAAC;IAC3B,QAAQ,GAAG,CAAC,CAAC;IACb,SAAS,GAAG,GAAG,CAAC;IAChB,WAAW,GAAG,KAAK,CAAC;IAEpB;;OAEG;IACH,aAAa,CAAC,OAAqB;QAClC,OAAO,IAAI,CAAC;IACb,CAAC;IAED;;;;;;OAMG;IACH,KAAK,CAAC,KAAK,CAAC,MAAoB;QAC/B,MAAM,UAAU,GAAG,IAAI,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC;QAChD,MAAM,YAAY,GAAG,IAAI,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC;QACpD,MAAM,aAAa,GAAG,IAAI,CAAC,kBAAkB,CAAC,MAAM,CAAC,CAAC;QAEtD,MAAM,aAAa,GAAG,IAAI,CAAC,kBAAkB,CA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MAAM,CAAC,eAAe;;;OAGtB,MAAM,CAAC,eAAe,sHAAsH,MAAM,CAAC,WAAW,IAAI,MAAM,CAAC,WAAW;;;OAGpL,MAAM,CAAC,eAAe,qFAAqF,MAAM,CAAC,WAAW,IAAI,MAAM,CAAC,WAAW;;;OAGnJ,MAAM,CAAC,eAAe,mFAAmF,MAAM,CAAC,WAAW,IAAI,MAAM,CAAC,WAAW;;;;;;mEAMrF,MAAM,CAAC,eAAe,gFAAgF,MAAM,CAAC,WAAW,IAAI,MAAM,CAAC,WAAW;;;;;;OAM1M,MAAM,CAAC,eAAe,gHAAgH,MAAM,CAAC,WAAW,IAAI,MAAM,CAAC,WAAW;QAC7K,MAAM,CAAC,WAAW,CAAC,CAAC,CAAC;;;;;OAKtB,MAAM,CAAC,YAAY,2GAA2G,MAAM,CAAC,WAAW,IAAI,MAAM,CAAC,WAAW,aAAa,MAAM,CAAC,MAAM,IAAI,EAAE,kBAAkB,MAAM,CAAC,QAAQ;;;+CAG/L,MAAM,CAAC,YAAY,8EAA8E,MAAM,CAAC,WAAW,IAAI,MAAM,CAAC,WAAW;OACjL,CAAC,CAAC,CAAC,EAAE;;;;;;;0DAO8C,CAAC;IAC1D,CAAC;IAED;;OAEG;IACK,kBAAkB,CAAC,MAAoB;QAC9C,OAAO;;uBAEc,MAAM,CAAC,eAAe;;;;;;;;;;;;;kLAaqI,CAAC;IAClL,CAAC;CACD"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "crewly",
|
|
3
|
-
"version": "1.20.
|
|
3
|
+
"version": "1.20.82",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Multi-agent orchestration platform for AI coding teams — coordinates Claude Code, Gemini CLI, and Codex agents with a real-time web dashboard",
|
|
6
6
|
"workspaces": [
|