@promptbook/wizard 0.100.3-0 → 0.101.0-0

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.
Files changed (62) hide show
  1. package/esm/index.es.js +9 -2
  2. package/esm/index.es.js.map +1 -1
  3. package/esm/typings/src/_packages/core.index.d.ts +4 -2
  4. package/esm/typings/src/_packages/markdown-utils.index.d.ts +14 -0
  5. package/esm/typings/src/_packages/types.index.d.ts +4 -6
  6. package/esm/typings/src/book-2.0/agent-source/AgentBasicInformation.d.ts +21 -0
  7. package/esm/typings/src/book-2.0/{commitments/_misc → agent-source}/AgentModelRequirements.d.ts +1 -1
  8. package/esm/typings/src/book-2.0/{commitments/_misc → agent-source}/AgentSourceParseResult.d.ts +3 -1
  9. package/esm/typings/src/book-2.0/{commitments/_misc → agent-source}/createAgentModelRequirements.d.ts +2 -2
  10. package/esm/typings/src/book-2.0/{commitments/_misc → agent-source}/createAgentModelRequirementsWithCommitments.d.ts +3 -3
  11. package/esm/typings/src/book-2.0/{commitments/_misc → agent-source}/createCommitmentRegex.d.ts +2 -2
  12. package/esm/typings/src/book-2.0/agent-source/extractMetaLinks.d.ts +8 -0
  13. package/esm/typings/src/book-2.0/agent-source/parseAgentSource.d.ts +4 -19
  14. package/esm/typings/src/book-2.0/agent-source/parseAgentSourceWithCommitments.d.ts +9 -0
  15. package/esm/typings/src/book-2.0/commitments/ACTION/ACTION.d.ts +1 -1
  16. package/esm/typings/src/book-2.0/commitments/FORMAT/FORMAT.d.ts +1 -1
  17. package/esm/typings/src/book-2.0/commitments/KNOWLEDGE/KNOWLEDGE.d.ts +1 -1
  18. package/esm/typings/src/book-2.0/commitments/META_IMAGE/META_IMAGE.d.ts +1 -1
  19. package/esm/typings/src/book-2.0/commitments/META_LINK/META_LINK.d.ts +1 -1
  20. package/esm/typings/src/book-2.0/commitments/MODEL/MODEL.d.ts +1 -1
  21. package/esm/typings/src/book-2.0/commitments/NOTE/NOTE.d.ts +1 -1
  22. package/esm/typings/src/book-2.0/commitments/PERSONA/PERSONA.d.ts +1 -1
  23. package/esm/typings/src/book-2.0/commitments/RULE/RULE.d.ts +1 -1
  24. package/esm/typings/src/book-2.0/commitments/SAMPLE/SAMPLE.d.ts +1 -1
  25. package/esm/typings/src/book-2.0/commitments/STYLE/STYLE.d.ts +1 -1
  26. package/esm/typings/src/book-2.0/commitments/_base/BaseCommitmentDefinition.d.ts +1 -1
  27. package/esm/typings/src/book-2.0/commitments/_base/CommitmentDefinition.d.ts +1 -1
  28. package/esm/typings/src/book-2.0/commitments/_base/NotYetImplementedCommitmentDefinition.d.ts +1 -1
  29. package/esm/typings/src/book-2.0/commitments/{_misc → _base}/ParsedCommitment.d.ts +1 -1
  30. package/esm/typings/src/book-2.0/commitments/_base/createEmptyAgentModelRequirements.d.ts +1 -1
  31. package/esm/typings/src/book-2.0/utils/extractAgentMetadata.d.ts +17 -0
  32. package/esm/typings/src/book-2.0/utils/extractProfileImageFromSystemMessage.d.ts +12 -0
  33. package/esm/typings/src/book-2.0/utils/generateGravatarUrl.d.ts +10 -0
  34. package/esm/typings/src/book-2.0/utils/generatePlaceholderAgentProfileImageUrl.d.ts +10 -0
  35. package/esm/typings/src/book-components/AvatarProfile/AvatarChip/AvatarChip.d.ts +1 -1
  36. package/esm/typings/src/book-components/AvatarProfile/AvatarProfile/AvatarProfile.d.ts +2 -8
  37. package/esm/typings/src/book-components/Chat/Chat/ChatProps.d.ts +6 -0
  38. package/esm/typings/src/book-components/Chat/types/ChatParticipant.d.ts +1 -1
  39. package/esm/typings/src/llm-providers/_common/profiles/llmProviderProfiles.d.ts +1 -1
  40. package/esm/typings/src/utils/expectation-counters/countCharacters.d.ts +2 -1
  41. package/esm/typings/src/utils/expectation-counters/countLines.d.ts +2 -1
  42. package/esm/typings/src/utils/expectation-counters/countPages.d.ts +2 -1
  43. package/esm/typings/src/utils/expectation-counters/countParagraphs.d.ts +2 -1
  44. package/esm/typings/src/utils/expectation-counters/countSentences.d.ts +1 -0
  45. package/esm/typings/src/utils/expectation-counters/countWords.d.ts +3 -1
  46. package/esm/typings/src/utils/markdown/humanizeAiText.d.ts +12 -0
  47. package/esm/typings/src/utils/markdown/humanizeAiText.test.d.ts +1 -0
  48. package/esm/typings/src/utils/markdown/humanizeAiTextEllipsis.d.ts +12 -0
  49. package/esm/typings/src/utils/markdown/humanizeAiTextEmdashed.d.ts +12 -0
  50. package/esm/typings/src/utils/markdown/humanizeAiTextQuotes.d.ts +12 -0
  51. package/esm/typings/src/utils/markdown/humanizeAiTextWhitespace.d.ts +12 -0
  52. package/esm/typings/src/utils/markdown/promptbookifyAiText.d.ts +11 -0
  53. package/esm/typings/src/utils/markdown/promptbookifyAiText.test.d.ts +1 -0
  54. package/esm/typings/src/utils/markdown/removeMarkdownLinks.d.ts +11 -0
  55. package/esm/typings/src/utils/markdown/removeMarkdownLinks.test.d.ts +4 -0
  56. package/esm/typings/src/version.d.ts +1 -1
  57. package/package.json +2 -2
  58. package/umd/index.umd.js +9 -2
  59. package/umd/index.umd.js.map +1 -1
  60. package/esm/typings/src/book-2.0/commitments/_misc/parseAgentSourceWithCommitments.d.ts +0 -24
  61. package/esm/typings/src/book-2.0/utils/profileImageUtils.d.ts +0 -39
  62. /package/esm/typings/src/book-2.0/{commitments/_misc → agent-source}/removeCommentsFromSystemMessage.d.ts +0 -0
@@ -1,24 +0,0 @@
1
- import type { AgentBasicInformation } from '../../agent-source/parseAgentSource';
2
- import type { string_book } from '../../agent-source/string_book';
3
- import type { AgentSourceParseResult } from './AgentSourceParseResult';
4
- /**
5
- * Parses agent source using the new commitment system with multiline support
6
- * This function replaces the hardcoded commitment parsing in the original parseAgentSource
7
- *
8
- * @private
9
- */
10
- export declare function parseAgentSourceWithCommitments(agentSource: string_book): AgentSourceParseResult;
11
- /**
12
- * Extracts basic information from agent source using the new commitment system
13
- * This maintains compatibility with the original parseAgentSource interface
14
- *
15
- * @private
16
- */
17
- export declare function parseAgentSourceBasicInfo(agentSource: string_book): AgentBasicInformation;
18
- /**
19
- * Extracts META LINK commitments from agent source
20
- * Returns an array of all META LINK URLs found in the agent source
21
- *
22
- * @private
23
- */
24
- export declare function extractMetaLinks(agentSource: string_book): string[];
@@ -1,39 +0,0 @@
1
- import type { string_url_image } from '../../types/typeAliases';
2
- /**
3
- * Extracts profile image URL from agent definition text and returns cleaned system message
4
- * @param systemMessage The original system message that may contain META IMAGE line
5
- * @returns Object with profileImageUrl (if found) and cleanedSystemMessage (without META IMAGE line)
6
- *
7
- * @private - TODO: [🧠] Maybe should be public?
8
- */
9
- export declare function extractProfileImageFromSystemMessage(systemMessage: string): {
10
- profileImageUrl?: string_url_image;
11
- cleanedSystemMessage: string;
12
- };
13
- /**
14
- * Extracts persona, examples, and profile image from agent definition text
15
- * @param systemMessage The original system message that may contain PERSONA, EXAMPLE, and META IMAGE lines
16
- * @returns Object with extracted information and cleaned system message
17
- *
18
- * @private - TODO: [🧠] Maybe should be public?
19
- */
20
- export declare function extractAgentMetadata(systemMessage: string): {
21
- persona?: {
22
- name: string;
23
- description?: string;
24
- };
25
- examples: string[];
26
- profileImageUrl?: string_url_image;
27
- cleanedSystemMessage: string;
28
- };
29
- /**
30
- * Generates a gravatar URL based on agent name for fallback avatar
31
- * @param name The agent name to generate avatar for
32
- * @returns Gravatar URL
33
- *
34
- * @private - TODO: [🧠] Maybe should be public?
35
- */
36
- export declare function generateGravatarUrl(name?: string | null): string;
37
- /**
38
- * Note: [💞] Ignore a discrepancy between file name and entity name
39
- */