@arisutalk/character-spec 0.0.5 → 0.0.6

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.
@@ -126,7 +126,7 @@ export type Character = {
126
126
  /** The maximum memory usage of the script, in MB. Not an exact limit. May be exceeded or ignored. */
127
127
  mem?: number | undefined;
128
128
  /** The maximum execution time of the script, in seconds. Not an exact limit. May be exceeded or ignored. It is used per call, not a total limit. Default is 3 seconds. */
129
- timout: number;
129
+ timeout: number;
130
130
  };
131
131
  /** Replace hooks for the script. */
132
132
  replaceHooks: {
@@ -12,7 +12,7 @@ export type ScriptSetting = {
12
12
  /** The maximum memory usage of the script, in MB. Not an exact limit. May be exceeded or ignored. */
13
13
  mem?: number | undefined;
14
14
  /** The maximum execution time of the script, in seconds. Not an exact limit. May be exceeded or ignored. It is used per call, not a total limit. Default is 3 seconds. */
15
- timout: number;
15
+ timeout: number;
16
16
  };
17
17
  /** Replace hooks for the script. */
18
18
  replaceHooks: {
@@ -6,7 +6,7 @@ const n = e.object({
6
6
  mem: t.optional().meta({
7
7
  description: "The maximum memory usage of the script, in MB. Not an exact limit. May be exceeded or ignored."
8
8
  }),
9
- timout: t.default(3).meta({
9
+ timeout: t.default(3).meta({
10
10
  description: "The maximum execution time of the script, in seconds. Not an exact limit. May be exceeded or ignored. It is used per call, not a total limit. Default is 3 seconds."
11
11
  })
12
12
  }).prefault({}).meta({
@@ -1 +1 @@
1
- {"version":3,"file":"Executable.js","sources":["../../../src/types/v0/Executables/Executable.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { ReplaceHookSchema } from \"@/types/v0/Executables/ReplaceHook\";\nimport { positiveInteger } from \"@/types/v0/utils\";\n\n/**\n * This is the script for character. It includes hook, script settings, something else.\n */\nexport const ScriptSettingSchema = z\n .object({\n runtimeSetting: z\n .object({\n mem: positiveInteger.optional().meta({\n description:\n \"The maximum memory usage of the script, in MB. Not an exact limit. May be exceeded or ignored.\",\n }),\n timout: positiveInteger.default(3).meta({\n description:\n \"The maximum execution time of the script, in seconds. Not an exact limit. May be exceeded or ignored. \" +\n \"It is used per call, not a total limit. Default is 3 seconds.\",\n }),\n })\n .prefault({})\n .meta({\n description:\n \"Runtime settings for the script. Controls runtime environment. All values capped at user's configuration.\",\n }),\n replaceHooks: ReplaceHookSchema.meta({\n description: \"Replace hooks for the script.\",\n }),\n })\n .prefault({})\n .meta({\n description:\n \"Script settings for character. Includes hooks and script settings.\",\n });\n"],"names":["ScriptSettingSchema","z","positiveInteger","ReplaceHookSchema"],"mappings":";;;AAOO,MAAMA,IAAsBC,EAC9B,OAAO;AAAA,EACJ,gBAAgBA,EACX,OAAO;AAAA,IACJ,KAAKC,EAAgB,SAAA,EAAW,KAAK;AAAA,MACjC,aACI;AAAA,IAAA,CACP;AAAA,IACD,QAAQA,EAAgB,QAAQ,CAAC,EAAE,KAAK;AAAA,MACpC,aACI;AAAA,IAAA,CAEP;AAAA,EAAA,CACJ,EACA,SAAS,EAAE,EACX,KAAK;AAAA,IACF,aACI;AAAA,EAAA,CACP;AAAA,EACL,cAAcC,EAAkB,KAAK;AAAA,IACjC,aAAa;AAAA,EAAA,CAChB;AACL,CAAC,EACA,SAAS,EAAE,EACX,KAAK;AAAA,EACF,aACI;AACR,CAAC;"}
1
+ {"version":3,"file":"Executable.js","sources":["../../../src/types/v0/Executables/Executable.ts"],"sourcesContent":["import { z } from \"zod\";\nimport { ReplaceHookSchema } from \"@/types/v0/Executables/ReplaceHook\";\nimport { positiveInteger } from \"@/types/v0/utils\";\n\n/**\n * This is the script for character. It includes hook, script settings, something else.\n */\nexport const ScriptSettingSchema = z\n .object({\n runtimeSetting: z\n .object({\n mem: positiveInteger.optional().meta({\n description:\n \"The maximum memory usage of the script, in MB. Not an exact limit. May be exceeded or ignored.\",\n }),\n timeout: positiveInteger.default(3).meta({\n description:\n \"The maximum execution time of the script, in seconds. Not an exact limit. May be exceeded or ignored. \" +\n \"It is used per call, not a total limit. Default is 3 seconds.\",\n }),\n })\n .prefault({})\n .meta({\n description:\n \"Runtime settings for the script. Controls runtime environment. All values capped at user's configuration.\",\n }),\n replaceHooks: ReplaceHookSchema.meta({\n description: \"Replace hooks for the script.\",\n }),\n })\n .prefault({})\n .meta({\n description:\n \"Script settings for character. Includes hooks and script settings.\",\n });\n"],"names":["ScriptSettingSchema","z","positiveInteger","ReplaceHookSchema"],"mappings":";;;AAOO,MAAMA,IAAsBC,EAC9B,OAAO;AAAA,EACJ,gBAAgBA,EACX,OAAO;AAAA,IACJ,KAAKC,EAAgB,SAAA,EAAW,KAAK;AAAA,MACjC,aACI;AAAA,IAAA,CACP;AAAA,IACD,SAASA,EAAgB,QAAQ,CAAC,EAAE,KAAK;AAAA,MACrC,aACI;AAAA,IAAA,CAEP;AAAA,EAAA,CACJ,EACA,SAAS,EAAE,EACX,KAAK;AAAA,IACF,aACI;AAAA,EAAA,CACP;AAAA,EACL,cAAcC,EAAkB,KAAK;AAAA,IACjC,aAAa;AAAA,EAAA,CAChB;AACL,CAAC,EACA,SAAS,EAAE,EACX,KAAK;AAAA,EACF,aACI;AACR,CAAC;"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@arisutalk/character-spec",
3
3
  "description": "Character specification, schema & migration for ArisuTalk",
4
- "version": "0.0.5",
4
+ "version": "0.0.6",
5
5
  "contributors": [
6
6
  {
7
7
  "name": "concertypin",
@@ -58,4 +58,4 @@
58
58
  }
59
59
  },
60
60
  "packageManager": "pnpm@10.16.1+sha512.0e155aa2629db8672b49e8475da6226aa4bdea85fdcdfdc15350874946d4f3c91faaf64cbdc4a5d1ab8002f473d5c3fcedcd197989cf0390f9badd3c04678706"
61
- }
61
+ }