promptlike-mcp 0.1.0 → 0.1.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/index.js +9 -5
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -35,14 +35,18 @@ async function guarded(fn) {
|
|
|
35
35
|
return fail(err instanceof Error ? err.message : 'Unexpected error.');
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
|
-
/** Bir versiyonun kopyalanabilir düz metni
|
|
38
|
+
/** Bir versiyonun kopyalanabilir düz metni. Yapısal parçalardan yeniden kurar ve
|
|
39
|
+
* BOŞ bölümleri atlar (E2E bulgusu F2: yalnız-description prompt'ta başıboş `---`
|
|
40
|
+
* çıkmasın). Stored `content` yalnız üç parça da boşken (legacy) yedek. */
|
|
39
41
|
function versionText(v) {
|
|
40
42
|
if (!v)
|
|
41
43
|
return '';
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
44
|
+
const parts = [v.role_text, v.description_text, v.context_text]
|
|
45
|
+
.map((s) => (s || '').trim())
|
|
46
|
+
.filter(Boolean);
|
|
47
|
+
if (parts.length > 0)
|
|
48
|
+
return parts.join('\n\n---\n\n');
|
|
49
|
+
return v.content && v.content.trim() ? v.content.trim() : '';
|
|
46
50
|
}
|
|
47
51
|
/** Ambiguous/not-found çözümleme sonuçlarını tool yanıtına çevirir. */
|
|
48
52
|
function resolveFailure(name, result) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "promptlike-mcp",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "MCP server for PromptLikeEngineer - gives AI agents read-only access to your prompt library (list, search, get, fill variables).",
|
|
5
5
|
"bin": {
|
|
6
6
|
"promptlike-mcp": "dist/index.js",
|