@promptbook/cli 0.112.0-41 → 0.112.0-42
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/esm/apps/agents-server/src/database/acquireMigrationExecutionLock.d.ts +12 -1
- package/esm/apps/agents-server/src/database/runDatabaseMigrations.d.ts +9 -0
- package/esm/index.es.js +189 -29
- package/esm/index.es.js.map +1 -1
- package/esm/scripts/verify-prompts/verify-prompts.d.ts +23 -2
- package/esm/src/cli/cli-commands/coder/verify.test.d.ts +1 -0
- package/esm/src/collection/agent-collection/constructors/agent-collection-in-supabase/AgentCollectionInSupabase.d.ts +2 -14
- package/esm/src/collection/agent-collection/constructors/agent-collection-in-supabase/createAgentPersistenceRecords.d.ts +40 -0
- package/esm/src/collection/agent-collection/constructors/agent-collection-in-supabase/createAgentPersistenceRecords.test.d.ts +1 -0
- package/esm/src/version.d.ts +1 -1
- package/package.json +1 -1
- package/umd/apps/agents-server/src/database/acquireMigrationExecutionLock.d.ts +12 -1
- package/umd/apps/agents-server/src/database/runDatabaseMigrations.d.ts +9 -0
- package/umd/index.umd.js +189 -29
- package/umd/index.umd.js.map +1 -1
- package/umd/scripts/verify-prompts/verify-prompts.d.ts +23 -2
- package/umd/src/cli/cli-commands/coder/verify.test.d.ts +1 -0
- package/umd/src/collection/agent-collection/constructors/agent-collection-in-supabase/AgentCollectionInSupabase.d.ts +2 -14
- package/umd/src/collection/agent-collection/constructors/agent-collection-in-supabase/createAgentPersistenceRecords.d.ts +40 -0
- package/umd/src/collection/agent-collection/constructors/agent-collection-in-supabase/createAgentPersistenceRecords.test.d.ts +1 -0
- package/umd/src/version.d.ts +1 -1
|
@@ -1,8 +1,29 @@
|
|
|
1
|
+
import type { PromptFile } from '../run-codex-prompts/prompts/types/PromptFile';
|
|
2
|
+
/**
|
|
3
|
+
* Options supported by the prompt verification helper.
|
|
4
|
+
*/
|
|
5
|
+
export type VerifyPromptsOptions = {
|
|
6
|
+
/**
|
|
7
|
+
* Process prompt files in reverse order.
|
|
8
|
+
*/
|
|
9
|
+
readonly reverse?: boolean;
|
|
10
|
+
/**
|
|
11
|
+
* Ignore prompt files whose filename or first prompt line contains one of the provided values.
|
|
12
|
+
*/
|
|
13
|
+
readonly ignore?: ReadonlyArray<string>;
|
|
14
|
+
};
|
|
1
15
|
/**
|
|
2
16
|
* Starts the verification loop and exits when no `[ ]` prompts remain.
|
|
3
17
|
*
|
|
4
|
-
* @
|
|
18
|
+
* @public exported from `@promptbook/cli`
|
|
19
|
+
*/
|
|
20
|
+
export declare function verifyPrompts(options?: VerifyPromptsOptions): Promise<void>;
|
|
21
|
+
/**
|
|
22
|
+
* Splits prompt files into files that should be verified now and files ignored for this run.
|
|
5
23
|
*
|
|
6
24
|
* @public exported from `@promptbook/cli`
|
|
7
25
|
*/
|
|
8
|
-
export declare function
|
|
26
|
+
export declare function partitionPromptFilesByIgnore(promptFiles: ReadonlyArray<PromptFile>, ignoreValues: ReadonlyArray<string>): {
|
|
27
|
+
promptFiles: PromptFile[];
|
|
28
|
+
ignoredPromptFiles: PromptFile[];
|
|
29
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -4,23 +4,11 @@ import type { string_book } from '../../../../book-2.0/agent-source/string_book'
|
|
|
4
4
|
import type { string_agent_name, string_agent_permanent_id } from '../../../../types/typeAliases';
|
|
5
5
|
import { AgentCollectionInSupabaseOptions } from './AgentCollectionInSupabaseOptions';
|
|
6
6
|
import type { AgentsDatabaseSchema } from './AgentsDatabaseSchema';
|
|
7
|
+
import { type CreateAgentPersistenceRecordsOptions } from './createAgentPersistenceRecords';
|
|
7
8
|
/**
|
|
8
9
|
* Options for creating a new agent entry.
|
|
9
10
|
*/
|
|
10
|
-
type CreateAgentOptions =
|
|
11
|
-
/**
|
|
12
|
-
* Visibility for the new agent.
|
|
13
|
-
*/
|
|
14
|
-
readonly visibility?: 'PRIVATE' | 'UNLISTED' | 'PUBLIC';
|
|
15
|
-
/**
|
|
16
|
-
* Folder identifier to assign the new agent to.
|
|
17
|
-
*/
|
|
18
|
-
readonly folderId?: number | null;
|
|
19
|
-
/**
|
|
20
|
-
* Sort order for the agent within its parent folder.
|
|
21
|
-
*/
|
|
22
|
-
readonly sortOrder?: number;
|
|
23
|
-
};
|
|
11
|
+
type CreateAgentOptions = CreateAgentPersistenceRecordsOptions;
|
|
24
12
|
/**
|
|
25
13
|
* Optional controls for persisting one source update.
|
|
26
14
|
*/
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import type { AgentBasicInformation } from '../../../../book-2.0/agent-source/AgentBasicInformation';
|
|
2
|
+
import type { string_book } from '../../../../book-2.0/agent-source/string_book';
|
|
3
|
+
import type { CreateAgentInput } from '../../CreateAgentInput';
|
|
4
|
+
import type { AgentsDatabaseSchema } from './AgentsDatabaseSchema';
|
|
5
|
+
/**
|
|
6
|
+
* Optional persistence overrides for one new agent row.
|
|
7
|
+
*
|
|
8
|
+
* @private shared persistence helper for `AgentCollectionInSupabase`
|
|
9
|
+
*/
|
|
10
|
+
export type CreateAgentPersistenceRecordsOptions = Omit<CreateAgentInput, 'source'>;
|
|
11
|
+
/**
|
|
12
|
+
* Prepared insert rows and returned profile for one newly persisted agent.
|
|
13
|
+
*
|
|
14
|
+
* @private shared persistence helper for `AgentCollectionInSupabase`
|
|
15
|
+
*/
|
|
16
|
+
export type CreateAgentPersistenceRecordsResult = {
|
|
17
|
+
/**
|
|
18
|
+
* Parsed created agent profile including the resolved permanent id.
|
|
19
|
+
*/
|
|
20
|
+
readonly createdAgent: AgentBasicInformation & Required<Pick<AgentBasicInformation, 'permanentId'>>;
|
|
21
|
+
/**
|
|
22
|
+
* Insert row for the `Agent` table.
|
|
23
|
+
*/
|
|
24
|
+
readonly agentInsertRecord: AgentsDatabaseSchema['public']['Tables']['Agent']['Insert'];
|
|
25
|
+
/**
|
|
26
|
+
* Insert row for the `AgentHistory` table.
|
|
27
|
+
*/
|
|
28
|
+
readonly agentHistoryInsertRecord: AgentsDatabaseSchema['public']['Tables']['AgentHistory']['Insert'];
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* Builds normalized insert rows for a newly created persisted agent.
|
|
32
|
+
*
|
|
33
|
+
* @param agentSource - Source content of the agent.
|
|
34
|
+
* @param options - Optional folder placement, ordering, and visibility overrides.
|
|
35
|
+
* @param createdAt - Shared creation timestamp used across all persisted rows.
|
|
36
|
+
* @returns Insert rows and the created agent profile.
|
|
37
|
+
*
|
|
38
|
+
* @private shared persistence helper for `AgentCollectionInSupabase`
|
|
39
|
+
*/
|
|
40
|
+
export declare function createAgentPersistenceRecords(agentSource: string_book, options?: CreateAgentPersistenceRecordsOptions, createdAt?: string): CreateAgentPersistenceRecordsResult;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/umd/src/version.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ export declare const BOOK_LANGUAGE_VERSION: string_semantic_version;
|
|
|
15
15
|
export declare const PROMPTBOOK_ENGINE_VERSION: string_promptbook_version;
|
|
16
16
|
/**
|
|
17
17
|
* Represents the version string of the Promptbook engine.
|
|
18
|
-
* It follows semantic versioning (e.g., `0.112.0-
|
|
18
|
+
* It follows semantic versioning (e.g., `0.112.0-41`).
|
|
19
19
|
*
|
|
20
20
|
* @generated
|
|
21
21
|
*/
|